MFH: fix #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS)

This commit is contained in:
Antony Dovgal 2007-05-21 11:38:53 +00:00
parent 23409a4bbf
commit 007bac315d
2 changed files with 8 additions and 1 deletions

2
NEWS
View File

@ -19,6 +19,8 @@ PHP NEWS
- Fixed altering $this via argument named "this". (Dmitry)
- Fixed PHP CLI to use the php.ini from the binary location. (Hannes)
- Fixed segfault in strripos(). (Tony, Joxean Koret)
- Fixed bug #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS).
(mmarek at suse dot cz, Tony)
- Fixed bug #41430 (Fatal error with negative values of maxlen parameter of
file_get_contents()). (Tony)
- fixed bug #41423 (PHP assumes wrongly that certain ciphers are enabled in

View File

@ -172,6 +172,7 @@ dnl parameters(version, library list, function)
AC_DEFUN([PHP_DBA_DB_CHECK],[
for LIB in $2; do
if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
lib_found="";
PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/$PHP_LIBDIR, -l$LIB,[
AC_TRY_LINK([
#include "$THIS_INCLUDE"
@ -185,10 +186,14 @@ AC_DEFUN([PHP_DBA_DB_CHECK],[
#endif
],[
THIS_LIBS=$LIB
break
lib_found=1
])
])
])
if test -n "$lib_found"; then
lib_found="";
break;
fi
fi
done
if test -z "$THIS_LIBS"; then