From: Stig Bakken Date: Fri, 15 Mar 2002 11:26:47 +0000 (+0000) Subject: * fix for db3 from ports on freebsd X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1394 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e597b8dc8a6fff997a0ccc27f206afad3f18b19;p=php * fix for db3 from ports on freebsd --- diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 index b3eece0e30..57e8bdbb9b 100644 --- a/ext/dba/config.m4 +++ b/ext/dba/config.m4 @@ -152,7 +152,10 @@ AC_ARG_WITH(db3, [ --with-db3[=DIR] Include Berkeley DB3 support],[ if test "$withval" != "no"; then for i in /usr/local /usr /usr/local/BerkeleyDB.3.0 $withval; do - if test -f "$i/include/db.h" ; then + if test -f "$i/include/db3/db.h"; then + THIS_PREFIX=$i + DB3_EXTRA=db3/db.h + elif test -f "$i/include/db.h" ; then THIS_PREFIX=$i DB3_EXTRA=db.h fi @@ -162,7 +165,7 @@ AC_ARG_WITH(db3, AC_DEFINE_UNQUOTED(DB3_INCLUDE_FILE, "$DB3_EXTRA", [ ]) fi - for LIB in db db-3 db3; do + for LIB in db-3 db3 db; do PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[ AC_CHECK_LIB($LIB, db_create, [AC_DEFINE(DBA_DB3,1,[ ]) THIS_LIBS=$LIB]) ])