summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-05 17:02:45 +1100
committerDamien Miller <djm@mindrot.org>2000-03-05 17:02:45 +1100
commit65165f8d83f342b1f3664eebb011c6a0ce6215b4 (patch)
treeb1e00767781c90bb0a076af0ed577d02abafaf08 /configure.in
parent9fb07e4b8baa291d7fda56e8621780cfd1fde287 (diff)
- Check for libwrap if --with-tcp-wrappers option specified. Suggestion
Mate Wierdl <mw@moni.msci.memphis.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index c9bd33b02..4b5ee92cf 100644
--- a/configure.in
+++ b/configure.in
@@ -699,8 +699,25 @@ AC_ARG_WITH(tcp-wrappers,
699 [ --with-tcp-wrappers Enable tcpwrappers support], 699 [ --with-tcp-wrappers Enable tcpwrappers support],
700 [ 700 [
701 if test "x$withval" != "$xno" ; then 701 if test "x$withval" != "$xno" ; then
702 AC_DEFINE(LIBWRAP) 702 saved_LIBS="$LIBS"
703 LIBS="$LIBS -lwrap" 703 LIBS="$LIBS -lwrap"
704 AC_MSG_CHECKING(for libwrap)
705 AC_TRY_LINK(
706 [
707 #include <tcpd.h>
708 int deny_severity = 0, allow_severity = 0;
709 ],
710 [hosts_access(0);],
711 [
712 AC_MSG_RESULT(yes)
713 AC_DEFINE(LIBWRAP)
714 ],
715 [
716 AC_MSG_RESULT(no)
717 AC_MSG_WARN([*** libwrap missing - tcpwrapper support disabled ***])
718 LIBS="$saved_LIBS"
719 ]
720 )
704 fi 721 fi
705 ] 722 ]
706) 723)