]> granicus.if.org Git - php/commitdiff
Patch for Bug #19341 submitted by list@firehawksystems.com
authorDan Kalowsky <kalowsky@php.net>
Wed, 11 Sep 2002 15:05:06 +0000 (15:05 +0000)
committerDan Kalowsky <kalowsky@php.net>
Wed, 11 Sep 2002 15:05:06 +0000 (15:05 +0000)
ext/dba/config.m4

index 16991752f1c4647b6de12375fd383024497fb3fe..d2364428ea7747e6efd272d636bf7e6d605f09ba 100644 (file)
@@ -152,10 +152,19 @@ 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/db3/db.h"; then
+      if test -f "$i/db3/db.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3
+      elif test -f "$i/include/db3/db.h"; then
         THIS_PREFIX=$i
         DB3_EXTRA=db3/db.h
-      elif test -f "$i/include/db.h" ; then
+      elif test -f "$i/include/db/db3.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db/db3.h
+      elif test -f "$i/include/db3.h"; then
+        THIS_PREFIX=$i
+        DB3_EXTRA=db3.h
+      elif test -f "$i/include/db.h" ; 
         THIS_PREFIX=$i
         DB3_EXTRA=db.h
       fi