Browse Source

Replaced _BSD_SOURCE, _SVID_SOURCE with _DEFAULT_SOURCE. Removed AC_CHECK_GNU_EXTENSIONS.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Michele Calgaro 6 months ago
parent
commit
9e342c2a09
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
39 changed files with 78 additions and 1170 deletions
  1. 2
    30
      koffice-i18n-bg/acinclude.m4
  2. 2
    30
      koffice-i18n-ca/acinclude.m4
  3. 2
    30
      koffice-i18n-cs/acinclude.m4
  4. 2
    30
      koffice-i18n-cy/acinclude.m4
  5. 2
    30
      koffice-i18n-da/acinclude.m4
  6. 2
    30
      koffice-i18n-de/acinclude.m4
  7. 2
    30
      koffice-i18n-el/acinclude.m4
  8. 2
    30
      koffice-i18n-en_GB/acinclude.m4
  9. 2
    30
      koffice-i18n-es/acinclude.m4
  10. 2
    30
      koffice-i18n-et/acinclude.m4
  11. 2
    30
      koffice-i18n-eu/acinclude.m4
  12. 2
    30
      koffice-i18n-fa/acinclude.m4
  13. 2
    30
      koffice-i18n-fi/acinclude.m4
  14. 2
    30
      koffice-i18n-fr/acinclude.m4
  15. 2
    30
      koffice-i18n-ga/acinclude.m4
  16. 2
    30
      koffice-i18n-gl/acinclude.m4
  17. 2
    30
      koffice-i18n-hu/acinclude.m4
  18. 2
    30
      koffice-i18n-it/acinclude.m4
  19. 2
    30
      koffice-i18n-ja/acinclude.m4
  20. 2
    30
      koffice-i18n-km/acinclude.m4
  21. 2
    30
      koffice-i18n-lv/acinclude.m4
  22. 2
    30
      koffice-i18n-ms/acinclude.m4
  23. 2
    30
      koffice-i18n-nb/acinclude.m4
  24. 2
    30
      koffice-i18n-nds/acinclude.m4
  25. 2
    30
      koffice-i18n-ne/acinclude.m4
  26. 2
    30
      koffice-i18n-nl/acinclude.m4
  27. 2
    30
      koffice-i18n-pl/acinclude.m4
  28. 2
    30
      koffice-i18n-pt/acinclude.m4
  29. 2
    30
      koffice-i18n-pt_BR/acinclude.m4
  30. 2
    30
      koffice-i18n-ru/acinclude.m4
  31. 2
    30
      koffice-i18n-sk/acinclude.m4
  32. 2
    30
      koffice-i18n-sl/acinclude.m4
  33. 2
    30
      koffice-i18n-sr/acinclude.m4
  34. 2
    30
      koffice-i18n-sr@Latn/acinclude.m4
  35. 2
    30
      koffice-i18n-sv/acinclude.m4
  36. 2
    30
      koffice-i18n-tr/acinclude.m4
  37. 2
    30
      koffice-i18n-uk/acinclude.m4
  38. 2
    30
      koffice-i18n-zh_CN/acinclude.m4
  39. 2
    30
      koffice-i18n-zh_TW/acinclude.m4

+ 2
- 30
koffice-i18n-bg/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-ca/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-cs/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-cy/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-da/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-de/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-el/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-en_GB/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-es/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-et/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-eu/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-fa/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-fi/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-fr/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-ga/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-gl/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-hu/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-it/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-ja/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-km/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-lv/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-ms/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-nb/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-nds/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-ne/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-nl/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-pl/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-pt/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-pt_BR/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-ru/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-sk/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-sl/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-sr/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-sr@Latn/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-sv/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-tr/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-uk/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-zh_CN/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

+ 2
- 30
koffice-i18n-zh_TW/acinclude.m4 View File

@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2872 2872
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2873 2873
 ])
2874 2874
 
2875
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2876
-[
2877
-AC_MSG_CHECKING(if you need GNU extensions)
2878
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2879
-[
2880
-cat > conftest.c << EOF
2881
-#include <features.h>
2882
-
2883
-#ifdef __GNU_LIBRARY__
2884
-yes
2885
-#endif
2886
-EOF
2887
-
2888
-if (eval "$ac_cpp conftest.c") 2>&5 |
2889
-  egrep "yes" >/dev/null 2>&1; then
2890
-  rm -rf conftest*
2891
-  ac_cv_gnu_extensions=yes
2892
-else
2893
-  ac_cv_gnu_extensions=no
2894
-fi
2895
-])
2896
-
2897
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2898
-if test "$ac_cv_gnu_extensions" = "yes"; then
2899
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2900
-fi
2901
-])
2902
-
2903 2875
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2904 2876
 [
2905 2877
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3197 3169
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3198 3170
         case $host in
3199 3171
           *-*-linux-gnu)	
3200
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3201
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3172
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3173
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3202 3174
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3203 3175
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3204 3176
           ;;

Loading…
Cancel
Save