$NetBSD$

--- configure.orig	2004-01-24 06:41:45.000000000 +0000
+++ configure
@@ -11042,6 +11042,7 @@ fi
 
 							if test "x$HAVE_DB40" = "xyes"; then
 
+		CPPFLAGS="$CPPFLAGS -DBDB_V4"
 								berkeleydb_libs="-ldb4"
 							else
 								{ { echo "$as_me:$LINENO: error: no supported BerkeleyDB found (4,1, 4.0, 3.1, 3.2, 3.3)" >&5
