summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-03-27 22:40:27 +0000
committerSascha Schumann <sas@php.net>2000-03-27 22:40:27 +0000
commit2cb0e69b51ccc4a9c28193100caee6dedd0bd34c (patch)
tree5fcda3dd23bf7d14fd71661589bf60018e6ca9ed /ext
parenta3ac1e5e59f0324b322c0241ab47986fbcd3e77d (diff)
downloadphp-git-2cb0e69b51ccc4a9c28193100caee6dedd0bd34c.tar.gz
* Check the default location of Berkeley DB 3.0
* Check additionally for libdb-3
Diffstat (limited to 'ext')
-rw-r--r--ext/dba/config.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dba/config.m4 b/ext/dba/config.m4
index 1e0f645b23..d054d04ddf 100644
--- a/ext/dba/config.m4
+++ b/ext/dba/config.m4
@@ -155,18 +155,18 @@ AC_DBA_STD_RESULT
AC_ARG_WITH(db3,
[ --with-db3[=DIR] Include Berkeley DB3 support],[
if test "$withval" != "no"; then
- for i in /usr/local /usr $withval; do
+ for i in /usr/local /usr /usr/local/BerkeleyDB.3.0 $withval; do
if test -f "$i/include/db.h" ; then
THIS_PREFIX="$i"
DB3_EXTRA="db.h"
fi
- done
+ done
if test -n "$DB3_EXTRA"; then
AC_DEFINE_UNQUOTED(DB3_INCLUDE_FILE, "$DB3_EXTRA", [ ])
fi
- for LIB in db; do
+ for LIB in db db-3; do
AC_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[
AC_CHECK_LIB($LIB, db_create, [AC_DEFINE(DBA_DB3,1,[ ]) THIS_LIBS="$LIB"])
])