]> granicus.if.org Git - php/commitdiff
MFH: configure looks for incorrect db2 library
authorAntony Dovgal <tony2001@php.net>
Mon, 4 Apr 2005 10:52:19 +0000 (10:52 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 4 Apr 2005 10:52:19 +0000 (10:52 +0000)
NEWS
ext/odbc/config.m4

diff --git a/NEWS b/NEWS
index 362fc474ad5b1126e432ba205b9496584b377e55..32685ef96ccca7207e64646fdb32b0ac8c91119a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,11 +1,13 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2005, PHP 5.0.5
+- Fixed bug #32560 (configure looks for incorrect db2 library). (Tony)
 - Fixed bug #32530 (chunk_split() does not append endstr if chunklen is  
   longer then the original string). (Ilia)
 - Fixed bug #28839 (SIGSEGV in interactive mode (php -a)).
   (kameshj at fastmail dot fm)
 
+
 31 Mar 2005, PHP 5.0.4
 - Added SNMPv2 support. (harrie)
 - Added Oracle Instant Client support. (cjbj at hotmail dot com, Tony)
index e3ad2b107f4a1532a0f262a3c7b7e716cebdd642..630f533ea13fcefb2fd4337ba82a68848d927b97 100644 (file)
@@ -199,17 +199,23 @@ AC_ARG_WITH(ibm-db2,
       AC_MSG_ERROR([IBM DB2 header files not found])
     fi
 
-    if ! test -f "$ODBC_LIBDIR/libdb2.so"; then
-      AC_MSG_ERROR([IBM DB2 required libraries not found])
-    fi
-       
     ODBC_INCLUDE=-I$ODBC_INCDIR
     ODBC_LFLAGS=-L$ODBC_LIBDIR
     ODBC_TYPE=db2
     ODBC_LIBS=-ldb2
-    AC_DEFINE(HAVE_IBMDB2,1,[ ])
 
-    AC_MSG_RESULT(yes)
+    PHP_TEST_BUILD(SQLExecute, [
+      AC_DEFINE(HAVE_IBMDB2,1,[ ])
+      AC_MSG_RESULT(yes)
+    ],
+    [
+      AC_MSG_RESULT(no)
+      AC_MSG_ERROR([build test failed. Please check the config.log for details.])
+    ],
+    [
+      $ODBC_LFLAGS $ODBC_LIBS
+    ])
+
   else
     AC_MSG_RESULT(no)
   fi