path: root/m4/acx_libwrap.m4
diff options
authorDiego 'Flameeyes' Pettenò <>2008-08-08 12:18:53 +0200
committerDiego 'Flameeyes' Pettenò <>2008-08-08 15:09:32 +0200
commitf46ae106a54f1f84651b45561f6fa01a825e8b30 (patch)
treeec891b40064525f9f0b27bb693f99075f2d8f99b /m4/acx_libwrap.m4
parent66512f3fd6346f4fefbf9b0bb69945c5ac46935f (diff)
Create an m4 directory for common macros and use it.
Split acinclude.m4 in multiple macro files. Let it be known to autoconf and aclocal to use the m4 directory. Ignore macro files copied or linked by libtool and intltool.
Diffstat (limited to 'm4/acx_libwrap.m4')
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/acx_libwrap.m4 b/m4/acx_libwrap.m4
new file mode 100644
index 00000000..e1602144
--- /dev/null
+++ b/m4/acx_libwrap.m4
@@ -0,0 +1,19 @@
+LIBS="$LIBS -lwrap"
+AC_MSG_CHECKING([for tcpwrap library and headers])
+[#include <tcpd.h>
+#include <syslog.h>
+int allow_severity = LOG_INFO;
+int deny_severity = LOG_WARNING;],
+[struct request_info *req;
+return hosts_access (req);]),
+[AC_DEFINE(HAVE_LIBWRAP, [], [Have tcpwrap?])