]> git.pld-linux.org Git - packages/php.git/blame - php-db4.patch
- don't use pcre functions in standard/aggregation functions if building pcre extensi...
[packages/php.git] / php-db4.patch
CommitLineData
e2263ce4
JB
1--- php-4.2.3/ext/dba/config.m4.orig Thu Apr 18 14:31:19 2002
2+++ php-4.2.3/ext/dba/config.m4 Tue Dec 24 14:28:32 2002
3@@ -176,6 +176,34 @@
4 AC_MSG_CHECKING(for Berkeley DB3 support)
5 AC_DBA_STD_RESULT
6
7+AC_ARG_WITH(db4,
8+[ --with-db4[=DIR] Include Berkeley DB4 support],[
9+ if test "$withval" != "no"; then
10+ for i in /usr/local /usr /usr/local/BerkeleyDB.4.1 $withval; do
11+ if test -f "$i/include/db.h" ; then
12+ THIS_PREFIX=$i
13+ DB4_EXTRA=db.h
14+ fi
15+ done
16+
17+ if test -n "$DB4_EXTRA"; then
18+ AC_DEFINE_UNQUOTED(DB3_INCLUDE_FILE, "$DB4_EXTRA", [ ])
19+ fi
20+
21+ for LIB in db db-4 db4; do
22+ PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[
23+ AC_CHECK_LIB($LIB, db_create, [AC_DEFINE(DBA_DB3,1,[ ]) THIS_LIBS=$LIB])
24+ ])
25+ done
26+
27+ PHP_DBA_STD_ASSIGN
28+ PHP_DBA_STD_CHECK
29+ PHP_DBA_STD_ATTACH
30+ fi
31+])
32+AC_MSG_CHECKING(for Berkeley DB4 support)
33+AC_DBA_STD_RESULT
34+
35 AC_ARG_WITH(dbm,
36 [ --with-dbm[=DIR] Include DBM support],[
37 if test "$withval" != "no"; then
This page took 0.038517 seconds and 4 git commands to generate.