summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2005-02-13 07:15:02 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2005-02-13 07:15:02 +0000
commite08745549365b1b6cb3b198a37de0183d8ab1992 (patch)
tree879d8012b97c3505b10c53ce4d33fc78f73b4e01
parent427c5e0e4fd7c65c62bb28c1b88064f3dabb9dfd (diff)
downloadphp-git-e08745549365b1b6cb3b198a37de0183d8ab1992.tar.gz
add function existance check
-rwxr-xr-xext/pdo_mysql/config.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/pdo_mysql/config.m4 b/ext/pdo_mysql/config.m4
index bdc3c78682..054803ad95 100755
--- a/ext/pdo_mysql/config.m4
+++ b/ext/pdo_mysql/config.m4
@@ -54,6 +54,11 @@ Note that the MySQL client library is not bundled anymore.])
PHP_SUBST_OLD(PDO_MYSQL_LIBS)
fi
+ _SAVE_LDFLAGS=$LDFLAGS
+ LDFLAGS="$LDFLAGS $PDO_MYSQL_LIBS"
+ AC_CHECK_FUNCS([mysql_commit mysql_rollback mysql_autocommit])
+ LDFLAGS=$_SAVE_LDFLAGS
+
if test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
pdo_inc_path=$prefix/include/php/ext
elif test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then