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
98a6d095f1
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

@@ -2741,34 +2741,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2741 2741
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2742 2742
 ])
2743 2743
 
2744
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2745
-[
2746
-AC_MSG_CHECKING(if you need GNU extensions)
2747
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2748
-[
2749
-cat > conftest.c << EOF
2750
-#include <features.h>
2751
-
2752
-#ifdef __GNU_LIBRARY__
2753
-yes
2754
-#endif
2755
-EOF
2756
-
2757
-if (eval "$ac_cpp conftest.c") 2>&5 |
2758
-  egrep "yes" >/dev/null 2>&1; then
2759
-  rm -rf conftest*
2760
-  ac_cv_gnu_extensions=yes
2761
-else
2762
-  ac_cv_gnu_extensions=no
2763
-fi
2764
-])
2765
-
2766
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2767
-if test "$ac_cv_gnu_extensions" = "yes"; then
2768
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2769
-fi
2770
-])
2771
-
2772 2744
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2773 2745
 [
2774 2746
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -2994,8 +2966,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
2994 2966
         CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
2995 2967
         case $host in
2996 2968
           *-*-linux-gnu)	
2997
-            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
2998
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2969
+            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
2970
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2999 2971
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3000 2972
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3001 2973
           ;;

Loading…
Cancel
Save