3 --- m4/db.m4.orig 2009-08-25 16:24:29.000000000 -0300
5 @@ -43,7 +43,11 @@ AC_ARG_WITH(db, [ --with-db=PATH Berk
7 db_incdir="$DBDIR/include"
8 if ! test -e "$db_incdir/db.h" ; then
9 - AC_MSG_ERROR([$withval include dir not found])
10 + if test -e "$db_incdir/db4/db.h" ; then
11 + db_incdir="$DBDIR/include/db4"
13 + AC_MSG_ERROR([$withval include dir not found])
18 @@ -78,7 +82,7 @@ dnl make sure the lib is available
19 dnl use true so libdb won't be added to LIBS
20 save_ldflags="$LDFLAGS"
21 LDFLAGS="$db_lib $LDFLAGS"
22 -AC_CHECK_LIB([db-$db_libver], [db_create], [true],
23 +AC_CHECK_LIB([db4-$db_libver], [db_create], [true],
24 [AC_MSG_ERROR([$db_incdir/db.h is version $db_libver but libdb-$db_libver not found])],
26 LDFLAGS="$save_ldflags"