summaryrefslogtreecommitdiff
path: root/ext/odbc/config.m4
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-04-04 10:50:32 +0000
committerAntony Dovgal <tony2001@php.net>2005-04-04 10:50:32 +0000
commitf2a3b12445a3948e5ee28d86b8ba70c5fa670e4f (patch)
tree23325a93b77928364b0c333c2decb1d529533db3 /ext/odbc/config.m4
parent25dd01d4287fe20ac286ff0f58c954be189cf230 (diff)
downloadphp-git-f2a3b12445a3948e5ee28d86b8ba70c5fa670e4f.tar.gz
fix #32560 (configure looks for incorrect library - libdb2.so instead of libdb2.a,
which is used actually)
Diffstat (limited to 'ext/odbc/config.m4')
-rw-r--r--ext/odbc/config.m418
1 files changed, 12 insertions, 6 deletions
diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4
index 9bb72284f8..7b9f703359 100644
--- a/ext/odbc/config.m4
+++ b/ext/odbc/config.m4
@@ -198,18 +198,24 @@ AC_ARG_WITH(ibm-db2,
if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then
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