Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 61465 | Differences between
and this patch

Collapse All | Expand All

(-)ext/dba/config.m4.old (-4 / +9 lines)
Lines 166-175 Link Here
166
166
167
dnl Berkeley specific (library and version test)
167
dnl Berkeley specific (library and version test)
168
dnl parameters(version, library list, function)
168
dnl parameters(version, library list, function)
169
LIB_PREFIX=/usr
169
AC_DEFUN(PHP_DBA_DB_CHECK,[
170
AC_DEFUN(PHP_DBA_DB_CHECK,[
170
  for LIB in $2; do
171
  for LIB in $2; do
171
    if test -f $THIS_PREFIX/lib/lib$LIB.a -o -f $THIS_PREFIX/lib/lib$LIB.$SHLIB_SUFFIX_NAME; then
172
    if test -f $LIB_PREFIX/lib/lib$LIB.a -o -f $LIB_PREFIX/lib/lib$LIB.$SHLIB_SUFFIX_NAME; then
172
      PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib -l$LIB,[
173
      PHP_TEMP_LDFLAGS(-L$LIB_PREFIX/lib -l$LIB,[
173
        AC_TRY_LINK([
174
        AC_TRY_LINK([
174
#include "$THIS_INCLUDE"
175
#include "$THIS_INCLUDE"
175
        ],[
176
        ],[
Lines 233-240 Link Here
233
[  --with-db4[=DIR]          DBA: Include Berkeley DB4 support],[
234
[  --with-db4[=DIR]          DBA: Include Berkeley DB4 support],[
234
  if test "$withval" != "no"; then
235
  if test "$withval" != "no"; then
235
    PHP_DBA_STD_BEGIN
236
    PHP_DBA_STD_BEGIN
236
    for i in $withval /usr/local/BerkeleyDB.4.2 /usr/local/BerkeleyDB.4.1 /usr/local/BerkeleyDB.4.0 /usr/local /usr; do
237
     for i in $withval /usr/include/db4.2 /usr/include/db4.1 /usr/include/db3 /usr/local/BerkeleyDB.4.2 /usr/local/BerkeleyDB.4.1 /usr/local/BerkeleyDB.4.0 /usr/local /usr; do
237
      if test -f "$i/db4/db.h"; then
238
      if test -f "$i/db.h"; then
239
        THIS_PREFIX=$i
240
        THIS_INCLUDE=$i/db.h
241
        break
242
      elif test -f "$i/db4/db.h"; then
238
        THIS_PREFIX=$i
243
        THIS_PREFIX=$i
239
        THIS_INCLUDE=$i/db4/db.h
244
        THIS_INCLUDE=$i/db4/db.h
240
        break
245
        break

Return to bug 61465