$NetBSD: patch-aa,v 1.1.1.1 2006/10/25 14:05:31 rillig Exp $

--- configure.orig	2006-10-23 13:49:50.000000000 +0200
+++ configure	2006-10-23 13:57:09.000000000 +0200
@@ -27069,9 +27069,10 @@ test -z "${with_db+set}" && with_db=yes
 
 echo "$as_me:$LINENO: checking for BerkeleyDB library" >&5
 echo $ECHO_N "checking for BerkeleyDB library... $ECHO_C" >&6
-if test "$DB_DIR" -a "$with_db" = yes; then
-    CPPFLAGS="$CPPFLAGS "'-I$(top_builddir)/'"$DB_DIR/dist"
-    DB_LIB='$(top_builddir)/'"$DB_DIR/dist/.libs/libdb-*.a"
+if true; then
+    # let's cheat a bit -- the detection is much too complicated.
+    DB_DIR="${prefix}"
+    DB_LIB="-ldb4"
     echo "$as_me:$LINENO: result: using distribution in $DB_DIR subdirectory" >&5
 echo "${ECHO_T}using distribution in $DB_DIR subdirectory" >&6
 elif test x"$with_db" != xno; then
