$NetBSD: patch-ac,v 1.14 2005/01/13 09:58:57 adam Exp $ --- configure.orig 2002-06-06 11:27:24.000000000 +0000 +++ configure @@ -7922,7 +7922,7 @@ EOF fi done -for ac_header in stddef.h wchar.h wcstr.h wctype.h machine/types.h tcpd.h +for ac_header in alloca.h stddef.h wchar.h wcstr.h wctype.h machine/types.h tcpd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:7928: checking for $ac_header" >&5 @@ -8835,6 +8835,7 @@ rm -f conftest.$ac_objext conftest.$ac_e echo "$as_me:8836: checking \"whether to use TCP wrappers\"" >&5 echo $ECHO_N "checking \"whether to use TCP wrappers\"... $ECHO_C" >&6 +if test -z "$LIBWRAP_PATH" && test -z "$LIB_WRAP"; then LIBWRAP_PATH="" LIB_WRAP="" for I in $LDFLAGS $LIBS -L/usr/lib; do @@ -8846,6 +8847,10 @@ for I in $LDFLAGS $LIBS -L/usr/lib; do LIB_WRAP=-lwrap echo "Found $THEFILE/libwrap.so" 1>&5 break + elif test -f `set $THEFILE/libwrap.so.*.*; echo $1`; then + LIB_WRAP=-lwrap + echo "Found $THEFILE/libwrap.so" 1>&5 + break else echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5 if test -f $THEFILE/libwrap.a; then @@ -8856,6 +8861,7 @@ for I in $LDFLAGS $LIBS -L/usr/lib; do fi esac done +fi if test -n "$LIBWRAP_PATH" || test -n "$LIB_WRAP"; then echo "$as_me:8860: result: yes" >&5 echo "${ECHO_T}yes" >&6