$NetBSD: patch-al,v 1.5 2007/03/04 13:43:45 tonio Exp $

--- configure.orig	2006-09-01 09:01:21.000000000 +0200
+++ configure
@@ -17512,6 +17512,7 @@ if test "${with_bdb+set}" = set; then
   withval=$with_bdb; ac_bdb_prefix=$withval
 fi
 
+    if test x$BDB_INCLUDE_DIR = x -o test x$BDB_LIB_DIR = x -o test x$BDB_LIB = x; then
     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes -a x$ac_cv_vlopen != xyes; then
         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
         for d in $ac_bdb_prefix; do
@@ -17618,6 +17619,9 @@ echo "${ECHO_T}yes" >&6; }
 echo "${ECHO_T}no" >&6; }
         fi
     fi
+    else
+        ac_cv_dbcreate=yes
+    fi
 
     if test x$ac_cv_vlopen = xyes; then
         CPPFLAGS="$OLDCPPFLAGS"
