diff options
-rwxr-xr-x | ext/pdo_mysql/config.m4 | 5 |
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 |