1 dnl $Id: tcp-wrappers.m4,v 1.1.4.4 2004-08-11 03:05:45 bfernhomberg Exp $
3 AC_DEFUN([NETATALK_TCP_WRAPPERS], [
5 AC_ARG_ENABLE(tcp-wrappers,
6 [ --disable-tcp-wrappers disable TCP wrappers support],
8 if test "x$enableval" = "xno"; then
17 netatalk_cv_tcpwrap=no
18 if test "x$wrapcheck" != "xno"; then
23 int allow_severity = 0;
24 int deny_severity = 0;
26 tcpd_warn ("link test");
27 ], netatalk_cv_tcpwrap=yes, netatalk_cv_tcpwrap=no, netatalk_cv_tcpwrap=cross)
32 AC_MSG_CHECKING([whether to enable the TCP wrappers])
33 if test "x$netatalk_cv_tcpwrap" = "xyes"; then
34 AC_DEFINE(TCPWRAP, 1, [Define if TCP wrappers should be used])
38 if test "x$wrapcheck" = "xyes"; then
39 AC_MSG_ERROR([libwrap not found])