Browse Source

Replaced _BSD_SOURCE, _SVID_SOURCE with _DEFAULT_SOURCE. Removed AC_CHECK_GNU_EXTENSIONS.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 8 months ago
parent
commit
a00e7b445a
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

@@ -2708,34 +2708,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2708 2708
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2709 2709
 ])
2710 2710
 
2711
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2712
-[
2713
-AC_MSG_CHECKING(if you need GNU extensions)
2714
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2715
-[
2716
-cat > conftest.c << EOF
2717
-#include <features.h>
2718
-
2719
-#ifdef __GNU_LIBRARY__
2720
-yes
2721
-#endif
2722
-EOF
2723
-
2724
-if (eval "$ac_cpp conftest.c") 2>&5 |
2725
-  egrep "yes" >/dev/null 2>&1; then
2726
-  rm -rf conftest*
2727
-  ac_cv_gnu_extensions=yes
2728
-else
2729
-  ac_cv_gnu_extensions=no
2730
-fi
2731
-])
2732
-
2733
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2734
-if test "$ac_cv_gnu_extensions" = "yes"; then
2735
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2736
-fi
2737
-])
2738
-
2739 2711
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2740 2712
 [
2741 2713
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -2934,8 +2906,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
2934 2906
       if test "$GCC" = "yes"; then
2935 2907
         case $host in
2936 2908
           *-*-linux-gnu)	
2937
-            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
2938
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2909
+            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
2910
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2939 2911
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"; CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
2940 2912
           ;;
2941 2913
         esac

Loading…
Cancel
Save