$NetBSD: patch-af,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $ --- configure.orig Tue Dec 17 14:08:36 2002 +++ configure Tue Dec 17 15:30:26 2002 @@ -3488,6 +3488,6 @@ done fi - if test "x$BERKELEY_DB_DIR" = "xyes" ; then - for d in /opt /usr/local /usr; do + if test "x$BERKELEY_DB_DIR" != "x" ; then + for d in $BERKELEY_DB_DIR /opt /usr/local /usr; do for v in db4 db3 db; do if test -f "$d/include/$v/db.h" ; then