From c18514440d7edce2ca7ae14cc2c88cfbac436e67 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 26 Jan 2011 17:59:11 -0200 Subject: build-sys: fix AC_COMPILE_IFELSE tests This removes some warnings when bootstrapping. The warnings were introduced in autoconf 2.68. Reference: http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html The following code AC_COMPILE_IFELSE([ ], ...) is changed to AC_COMPILE_IFELSE( [AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], ...) --- m4/acx_libwrap.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4/acx_libwrap.m4') diff --git a/m4/acx_libwrap.m4 b/m4/acx_libwrap.m4 index e1602144b5..ccf8afc0aa 100644 --- a/m4/acx_libwrap.m4 +++ b/m4/acx_libwrap.m4 @@ -4,13 +4,13 @@ saved_LIBS="$LIBS" LIBS="$LIBS -lwrap" AC_MSG_CHECKING([for tcpwrap library and headers]) AC_LINK_IFELSE( -AC_LANG_PROGRAM( +[AC_LANG_PROGRAM( [#include #include int allow_severity = LOG_INFO; int deny_severity = LOG_WARNING;], [struct request_info *req; -return hosts_access (req);]), +return hosts_access (req);])], [AC_DEFINE(HAVE_LIBWRAP, [], [Have tcpwrap?]) LIBWRAP_LIBS="-lwrap" AC_MSG_RESULT(yes)], -- cgit v1.2.3-54-g00ecf