$OpenBSD: patch-configure_in,v 1.2 2002/02/24 22:43:59 brad Exp $
--- configure.in.orig	Mon Jan  7 04:09:28 2002
+++ configure.in	Sun Feb 24 16:56:17 2002
@@ -161,7 +161,7 @@ for I in $LDFLAGS $LIBS -L/usr/lib; do
 	-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 @@ fi
 
 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 @@ fi
 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
 
