Commit 667a2899 authored by Pontus Freyhult's avatar Pontus Freyhult

Things neccessarry for tcp wrappers.

Rev: configure.ac:1.8
parent eff7e73b
......@@ -72,6 +72,16 @@ AC_ARG_WITH(zlib,
AC_HELP_STRING([--without-zlib], [Don't use zlib compression]),,
[with_zlib=yes])
AC_ARG_WITH(tcpwrappers,
AC_HELP_STRING([--with-tcpwrappers],
[Use tcp-wrappers for filtering connections]),
[if test -z "$withval"; then
with_tcpwrappers=yes;
else
with_tcpwrappers="$withval";
fi],
[with_tcpwrappers=no])
# Checking this variable is delayed until we have checked if zlib is
# actually available.
......@@ -356,6 +366,30 @@ if test x$with_zlib = xyes; then
LSH_RPATH_FIX
fi
# FIXME: Should we let people use --with-tcpwrappers=/here/they/are?
if test x$with_tcpwrappers = xyes; then
AC_CHECK_LIB(wrap, request_init,,
[
AC_MSG_WARN([Failed to link libwrap, you might try adding socket to youd LDFLAGS])
with_tcpwrappers=no
])
AC_CHECK_HEADER(tcpd.h,, [with_tcpwrappers=no])
if test x$with_tcpwrappers = xno; then
AC_MSG_WARN([Failed to find a working tcpwrappers setup, disabling wrappers])
fi
fi
if test x$with_tcpwrappers = xyes; then
LSH_RPATH_FIX
AC_DEFINE(WITH_TCPWRAPPERS,1,[Whatever to use tcpwrappers])
else
AC_DEFINE(WITH_TCPWRAPPERS,0,[Whatever to use tcpwrappers])
fi
# X11 stuff. We only need libXau.
AC_PATH_X
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment