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 4 months ago
parent
commit
e264a83a78
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 2 additions and 30 deletions
  1. 2
    30
      acinclude.m4

+ 2
- 30
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 -Wconversion -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 -Wconversion -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