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
f06fcc76e9
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

@@ -2806,34 +2806,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2806 2806
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2807 2807
 ])
2808 2808
 
2809
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2810
-[
2811
-AC_MSG_CHECKING(if you need GNU extensions)
2812
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2813
-[
2814
-cat > conftest.c << EOF
2815
-#include <features.h>
2816
-
2817
-#ifdef __GNU_LIBRARY__
2818
-yes
2819
-#endif
2820
-EOF
2821
-
2822
-if (eval "$ac_cpp conftest.c") 2>&5 |
2823
-  egrep "yes" >/dev/null 2>&1; then
2824
-  rm -rf conftest*
2825
-  ac_cv_gnu_extensions=yes
2826
-else
2827
-  ac_cv_gnu_extensions=no
2828
-fi
2829
-])
2830
-
2831
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2832
-if test "$ac_cv_gnu_extensions" = "yes"; then
2833
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2834
-fi
2835
-])
2836
-
2837 2809
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2838 2810
 [
2839 2811
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3059,8 +3031,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3059 3031
         CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
3060 3032
         case $host in
3061 3033
           *-*-linux-gnu)	
3062
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3063
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3034
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3035
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3064 3036
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3065 3037
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3066 3038
           ;;

Loading…
Cancel
Save