summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2006-05-02 00:59:22 +0000
committerWez Furlong <wez@php.net>2006-05-02 00:59:22 +0000
commitc1555236c9dcc663b7193f9bf4e97421c4b2ff2a (patch)
tree1faf9760007785886b3abd666c50072e9863ed74 /ext/pdo_mysql
parent6f1a0f67ff339f91e8e81cc3dfc2f2fd181a9aea (diff)
downloadphp-git-c1555236c9dcc663b7193f9bf4e97421c4b2ff2a.tar.gz
tweak for better compatibility when building as SCE.
(library order is important)
Diffstat (limited to 'ext/pdo_mysql')
-rwxr-xr-xext/pdo_mysql/config.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/pdo_mysql/config.m4 b/ext/pdo_mysql/config.m4
index 10703f7da3..8424199203 100755
--- a/ext/pdo_mysql/config.m4
+++ b/ext/pdo_mysql/config.m4
@@ -87,6 +87,9 @@ if test "$PHP_PDO_MYSQL" != "no"; then
AC_DEFINE_UNQUOTED(PDO_MYSQL_UNIX_ADDR, "$PDO_MYSQL_SOCKET", [ ])
+
+ _SAVE_LIBS=$LIBS
+ LIBS="$LIBS $PDO_MYSQL_LIBS"
PHP_CHECK_LIBRARY(mysqlclient, mysql_query,
[
PHP_EVAL_LIBLINE($PDO_MYSQL_LIBS, PDO_MYSQL_SHARED_LIBADD)
@@ -95,8 +98,6 @@ if test "$PHP_PDO_MYSQL" != "no"; then
],[
$PDO_MYSQL_LIBS
])
- _SAVE_LIBS=$LIBS
- LIBS="$LIBS $PDO_MYSQL_LIBS"
AC_CHECK_FUNCS([mysql_commit mysql_stmt_prepare mysql_next_result mysql_sqlstate])
LIBS=$_SAVE_LIBS