summaryrefslogtreecommitdiff
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
parent9fb07e4b8baa291d7fda56e8621780cfd1fde287 (diff)
- Check for libwrap if --with-tcp-wrappers option specified. Suggestion
Mate Wierdl <mw@moni.msci.memphis.edu>
-rw-r--r--ChangeLog2
-rw-r--r--configure.in19
2 files changed, 20 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a0e45148..22d3377b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
3 - Explicitly seed OpenSSL's PRNG before checking rsa_alive() 3 - Explicitly seed OpenSSL's PRNG before checking rsa_alive()
4 - Check for getpagesize in libucb.a if not found in libc. Fix for old 4 - Check for getpagesize in libucb.a if not found in libc. Fix for old
5 Solaris from Andre Lucas <andre.lucas@dial.pipex.com> 5 Solaris from Andre Lucas <andre.lucas@dial.pipex.com>
6 - Check for libwrap if --with-tcp-wrappers option specified. Suggestion
7 Mate Wierdl <mw@moni.msci.memphis.edu>
6 8
720000303 920000303
8 - Added "make host-key" target, Suggestion from Dominik Brettnacher 10 - Added "make host-key" target, Suggestion from Dominik Brettnacher
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)