]> granicus.if.org Git - php/commitdiff
fix #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS)
authorAntony Dovgal <tony2001@php.net>
Mon, 21 May 2007 11:37:43 +0000 (11:37 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 21 May 2007 11:37:43 +0000 (11:37 +0000)
ext/dba/config.m4

index 8ac827bf8f692f48efbbcf14e71b22fe170b31b4..0b5e62f8580faae022be1dfec7fddcda1013fde5 100644 (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 -o -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