diff options
author | Marcus Boerger <helly@php.net> | 2003-01-30 18:28:42 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-01-30 18:28:42 +0000 |
commit | f2ff4678cdf2fc7dd276d2731f0d8daedd604953 (patch) | |
tree | 111205c1b48cc461ddfba34101736cef2b7fd47e /ext/dba/config.m4 | |
parent | 37ff98978b1f930e3fdac1e4b04a337a0c1a2ad2 (diff) | |
download | php-git-f2ff4678cdf2fc7dd276d2731f0d8daedd604953.tar.gz |
Allow to link against chosen modules correctly
Diffstat (limited to 'ext/dba/config.m4')
-rw-r--r-- | ext/dba/config.m4 | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ext/dba/config.m4 b/ext/dba/config.m4 index 62f4cee512..a7a7e9f38f 100644 --- a/ext/dba/config.m4 +++ b/ext/dba/config.m4 @@ -10,7 +10,8 @@ AC_DEFUN(PHP_DBA_STD_BEGIN,[ AC_DEFUN(PHP_TEMP_LDFLAGS,[ old_LDFLAGS=$LDFLAGS - LDFLAGS="$1 $LDFLAGS" +dnl LDFLAGS="$1 $LDFLAGS" + LDFLAGS="$1" $2 LDFLAGS=$old_LDFLAGS ]) @@ -139,18 +140,20 @@ dnl Berkeley specific (library and version test) dnl parameters(version, library list, function) AC_DEFUN(PHP_DBA_DB_CHECK,[ for LIB in $2; do - PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[ - AC_CHECK_LIB($LIB, $3, [ - AC_EGREP_CPP(yes,[ + if test -f $THIS_PREFIX/lib/lib$LIB.a -o -f $THIS_PREFIX/lib/lib$LIB.$SHLIB_SUFFIX_NAME; then + PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[ + AC_CHECK_LIB($LIB, $3, [ + AC_EGREP_CPP(yes,[ #include "$THIS_INCLUDE" yes #endif - ],[ - THIS_LIBS=$LIB - break + ],[ + THIS_LIBS=$LIB + break + ]) ]) ]) - ]) + fi done if test "$1" = "4"; then AC_MSG_CHECKING(for db4 minor version and patch level) |