summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-13 21:09:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-13 21:09:49 +0900
commitfc9e774ff9ea7f5c12d93556de61ad7dd53c9a69 (patch)
tree02cc15a1e46b79d480a282054ed0807a27c83574
parent1108e9e1a66b27df3d22772fd7f4dec332988dab (diff)
downloadkrusader-fc9e774ff9ea7f5c12d93556de61ad7dd53c9a69.tar.gz
krusader-fc9e774ff9ea7f5c12d93556de61ad7dd53c9a69.zip
Replaced _BSD_SOURCE, _SVID_SOURCE with _DEFAULT_SOURCE. Removed AC_CHECK_GNU_EXTENSIONS.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--INSTALL2
-rw-r--r--acinclude.m432
-rw-r--r--doc/en/installation.docbook2
-rw-r--r--doc/ru/installation.docbook2
4 files changed, 5 insertions, 33 deletions
diff --git a/INSTALL b/INSTALL
index 9b6f746..50daf8d 100644
--- a/INSTALL
+++ b/INSTALL
@@ -423,7 +423,7 @@ the FAQ. If the problem persists, use the help_request to ask for help.
C Compiler: gcc
C Compiler flags: -ansi -W -Wall -pedantic -Wchar-subscripts -Wshadow
-Wpointer-arith
- -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -
+ -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -
O2
-Wformat-security -Wmissing-format-attribute
C++ Compiler: g++
diff --git a/acinclude.m4 b/acinclude.m4
index d8dc59e..d814ed8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2872,34 +2872,6 @@ AC_DEFUN([AC_CHECK_BOOL],
AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
])
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
-[
-AC_MSG_CHECKING(if you need GNU extensions)
-AC_CACHE_VAL(ac_cv_gnu_extensions,
-[
-cat > conftest.c << EOF
-#include <features.h>
-
-#ifdef __GNU_LIBRARY__
-yes
-#endif
-EOF
-
-if (eval "$ac_cpp conftest.c") 2>&5 |
- egrep "yes" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_gnu_extensions=yes
-else
- ac_cv_gnu_extensions=no
-fi
-])
-
-AC_MSG_RESULT($ac_cv_gnu_extensions)
-if test "$ac_cv_gnu_extensions" = "yes"; then
- AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
-fi
-])
-
AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
[
AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3197,8 +3169,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
case $host in
*-*-linux-gnu)
- CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
- CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
+ CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
+ CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
;;
diff --git a/doc/en/installation.docbook b/doc/en/installation.docbook
index 6c5162c..8a813c2 100644
--- a/doc/en/installation.docbook
+++ b/doc/en/installation.docbook
@@ -738,7 +738,7 @@ Krusader Project:
Source code location: .
C Compiler: gcc
C Compiler flags: -ansi -W -Wall -pedantic -Wchar-subscripts -Wshadow -Wpointer-arith
--Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2
+-Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -O2
-Wformat-security -Wmissing-format-attribute
C++ Compiler: g++
prefix: /usr/local
diff --git a/doc/ru/installation.docbook b/doc/ru/installation.docbook
index 130380a..8981101 100644
--- a/doc/ru/installation.docbook
+++ b/doc/ru/installation.docbook
@@ -664,7 +664,7 @@ Krusader Project:
Source code location: .
C Compiler: gcc
C Compiler flags: -ansi -W -Wall -pedantic -Wchar-subscripts -Wshadow -Wpointer-arith
--Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2
+-Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -O2
-Wformat-security -Wmissing-format-attribute
C++ Compiler: g++
prefix: /usr/local