From 94e1f2bc051437d51b99ecbc93e2556ae48c377b Mon Sep 17 00:00:00 2001 From: iratqq Date: Sat, 2 Feb 2008 18:53:17 +0000 Subject: [PATCH] drop libwrap. --- trunk/configure.in | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/trunk/configure.in b/trunk/configure.in index 3f9db62..78d975d 100644 --- a/trunk/configure.in +++ b/trunk/configure.in @@ -600,8 +600,6 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include [AC_MSG_RESULT(no) AC_DEFINE(SNPRINTF_CONST, [/* not const */])]) -AC_ARG_WITH(libwrap,[ --with-libwrap use tcp wrappers [default=no]], , wrap_ok=no) - # Check for missing getpeereid (or equiv) support NO_PEERCHECK="" if test "x$ac_cv_func_getpeereid" != "xyes" ; then @@ -750,43 +748,6 @@ AC_ARG_ENABLE(demo, AM_CONDITIONAL(BUILDABLE_SJ3DEMO, test x$enable_demo = xyes) AC_MSG_RESULT($enable_demo) -WRAP_LIB= -if test "x$with_libwrap" = "xyes"; then - sj3_save_LIBS="$LIBS" - LIBS="$LIBS -lwrap" - - AC_MSG_CHECKING([for tcp_wrapper library and headers]) - - wrap_ok=no - AC_TRY_LINK( -[#include -#include -#include -int allow_severity = LOG_INFO; -int deny_severity = LOG_WARNING;], -[struct request_info *request; return hosts_access (request);], - [AC_DEFINE(USE_LIBWRAP, 1, [Define if you have the tcp_wrapper library.]) - WRAP_LIB="-lwrap" - wrap_ok=yes], - [LIBS="$LIBS -lnsl" - AC_TRY_LINK( -[#include -#include -#include -int allow_severity = LOG_INFO; -int deny_severity = LOG_WARNING;], -[struct request_info *request; return hosts_access (request);], - - [AC_DEFINE(USE_LIBWRAP, 1, [Define if you have the tcp_wrapper library.]) - WRAP_LIB="-lwrap -lnsl" - wrap_ok=yes])]) - - AC_MSG_RESULT($wrap_ok) - - LIBS="$sj3_save_LIBS" -fi -AC_SUBST(WRAP_LIB) - AC_ARG_WITH(external-lua, AS_HELP_STRING([--with-external-lua], [Use external lua library, @<:@default=no@:>@]),