$NetBSD: patch-af,v 1.4 2001/05/02 08:22:31 jlam Exp $ --- configure.orig Thu Mar 15 19:52:05 2001 +++ configure @@ -5004,7 +5004,10 @@ #define HAVE_LIBWRAP 1 EOF - WRAPLIBS="-L$with_libwrap/lib -lwrap" + if test "$with_libwrap" != "yes"; then + WRAPLIBS="-L${with_libwrap}/lib" + fi + WRAPLIBS="${WRAPLIBS} -lwrap" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 @@ -9345,7 +9348,11 @@ # This requires readline to be in a standard place. Mosty for linux # there readline may be a shared library. readline_dir="" - readline_link="-lreadline" + if test -z "$readline_lib" + then + readline_lib="readline" + fi + readline_link="-l$readline_lib" fi @@ -10466,7 +10473,7 @@ MT_INCLUDES="-I\$(top_srcdir)/mit-pthreads/include" - MT_LD_ADD="-L \$(top_srcdir)/mit-pthreads/obj/ -lpthread" + MT_LD_ADD="\$(top_srcdir)/mit-pthreads/obj/libpthread.a" LIBS="$MT_LD_ADD $LIBS" echo ""