83e3e9c25f
patch - also fixed autoconf to have HAVE_HOSTS_ACCESS defined when using a shared libwrap library
31 lines
960 B
Plaintext
31 lines
960 B
Plaintext
$OpenBSD: patch-configure_in,v 1.1 2001/03/15 01:15:23 brad Exp $
|
|
--- configure.in.orig Tue Jan 30 15:49:57 2001
|
|
+++ configure.in Wed Mar 14 17:33:43 2001
|
|
@@ -161,7 +161,7 @@
|
|
-L*)
|
|
THEFILE="`echo $I | sed -e 's,^-L,,'`"
|
|
echo "From $I, checking in dir $THEFILE for libwrap.so" 1>&5
|
|
- if test -f $THEFILE/libwrap.so; then
|
|
+ if test -f $THEFILE/libwrap.so*; then
|
|
LIB_WRAP=-lwrap
|
|
echo "Found $THEFILE/libwrap.so" 1>&5
|
|
break
|
|
@@ -197,7 +197,7 @@
|
|
|
|
dnl find out if we need -lnsl or whatever
|
|
LIB_NSL=
|
|
-if test -n "$LIBWRAP_PATH"; then
|
|
+if test -n "$LIBWRAP_PATH" || test -n "$LIB_WRAP"; then
|
|
AC_MSG_CHECKING(whether -lwrap requires -lnsl)
|
|
ORIG_LIBS="$LIBS"
|
|
LIBS="$LIBWRAP_PATH $LIB_WRAP $LIBS"
|
|
@@ -227,7 +227,7 @@
|
|
AC_SUBST(LIBWRAP_PATH)
|
|
AC_SUBST(LIB_WRAP)
|
|
AM_CONDITIONAL(HAVE_HOSTS_ACCESS, test -n "$LIBWRAP_PATH")
|
|
-if test -n "$LIBWRAP_PATH"; then
|
|
+if test -n "$LIBWRAP_PATH" || test -n "$LIB_WRAP"; then
|
|
AC_DEFINE(HAVE_HOSTS_ACCESS)
|
|
fi
|
|
|