From ee1241ab1afeb7ae815107b3ad8127b8e19c1319 Mon Sep 17 00:00:00 2001 From: George Schlossnagle Date: Wed, 19 May 2004 18:51:01 +0000 Subject: [PATCH] builds on stock rh9 now --- ext/pdo_mysql/config.m4 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ext/pdo_mysql/config.m4 b/ext/pdo_mysql/config.m4 index 14fa4ffa6e..38e6ef4d01 100755 --- a/ext/pdo_mysql/config.m4 +++ b/ext/pdo_mysql/config.m4 @@ -18,7 +18,7 @@ PHP_ARG_WITH(pdo_mysql, for MySQL support, if test "$PHP_PDO_MYSQL" != "no"; then AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL]) - for i in $PHP_PDO_MYSQL /usr/local /usr; do + for i in $PHP_PDO_MYSQL /usr/local /usr ; do MYSQL_DIR=$i PDO_MYSQL_CONFIG=$MYSQL_DIR/bin/mysql_config if test -r $i/include/mysql; then @@ -26,8 +26,14 @@ if test "$PHP_PDO_MYSQL" != "no"; then else MYSQL_INC_DIR=$i/include fi - MYSQL_LIBS=$i/lib - break + if test -r $i/lib/mysql; then + MYSQL_LIBS=$i/lib/mysql + else + MYSQL_LIBS=$i/lib + fi + if test -x $PDO_MYSQL_CONFIG; then + break + fi done if test -z "$MYSQL_DIR"; then -- 2.50.1