summaryrefslogtreecommitdiff
path: root/m4/acx_libwrap.m4
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-01-26 17:59:11 -0200
committerLennart Poettering <lennart@poettering.net>2011-02-08 12:11:53 +0100
commitc18514440d7edce2ca7ae14cc2c88cfbac436e67 (patch)
tree8ed6a1e77186100b0446828e0a1463c8e1ea3cb1 /m4/acx_libwrap.m4
parent591622d7efbc828f00f190d91b6608148b967ff5 (diff)
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([ <MY C CODE HERE> ], ...) is changed to AC_COMPILE_IFELSE( [AC_COMPILE_IFELSE([AC_LANG_SOURCE([ <MY C CODE HERE> ])], ...)
Diffstat (limited to 'm4/acx_libwrap.m4')
-rw-r--r--m4/acx_libwrap.m44
1 files changed, 2 insertions, 2 deletions
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 <tcpd.h>
#include <syslog.h>
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)],