dnl $Id: tcp-wrappers.m4,v 1.1.4.2 2003-10-29 23:53:24 bfernhomberg Exp $ AC_DEFUN([NETATALK_TCP_WRAPPERS], [ check=maybe AC_ARG_ENABLE(tcp-wrappers, [ --disable-tcp-wrappers disable TCP wrappers support], [ if test "x$enableval" == "xno"; then check=no else check=yes fi ] ) enable=no if test "x$check" != "xno"; then AC_CHECK_LIB(wrap, tcpd_warn, enable=yes) fi if test "x$enable" == "xyes"; then AC_CHECK_HEADERS(tcpd.h) if test "x$ac_cv_header_tcpd_h" != "xyes"; then enable=no fi fi netatalk_cv_tcpwrap=no AC_MSG_CHECKING([whether to enable the TCP wrappers]) if test "x$enable" == "xyes"; then AC_DEFINE(TCPWRAP, 1, [Define if TCP wrappers should be used]) WRAP_LIBS="-lwrap" netatalk_cv_tcpwrap=yes AC_MSG_RESULT([yes]) else if test "x$check" == "xyes"; then AC_MSG_ERROR([libwrap not found]) else AC_MSG_RESULT([no]) fi fi AC_SUBST(WRAP_LIBS) ])