$OpenBSD: patch-configure,v 1.6 2010/05/23 16:25:21 espie Exp $
--- configure.orig	Sun May 18 03:50:55 2003
+++ configure	Sat May 22 16:42:06 2010
@@ -2616,8 +2616,8 @@ _ACEOF
 
 	DBINC="-I$withval/dist"
 	DBLIB="-L$withval/dist -ldb"
-     elif test -f $withval/include/db_185.h -a \
-	       -f $withval/lib/libdb.a; then
+     elif test -f $withval/include/db/db_185.h -a \
+	       -f $withval/lib/db/libdb.a; then
 	owd=`pwd`
 	if cd $withval; then withval=`pwd`; cd $owd; fi
 
@@ -2625,8 +2625,8 @@ cat >>confdefs.h <<\_ACEOF
 #define HAVE_DB_185_H 1
 _ACEOF
 
-	DBINC="-I$withval/include"
-	DBLIB="-L$withval/lib -ldb"
+	DBINC="-I$withval/include/db"
+	DBLIB="-L$withval/lib/db -ldb"
      else
         { { echo "$as_me:$LINENO: error: db_185.h or libdb.a not found in $withval or not configured with --enable-compat185" >&5
 echo "$as_me: error: db_185.h or libdb.a not found in $withval or not configured with --enable-compat185" >&2;}
