cvs: php4 /ext/mysql config.m4
| From: | Jani Taskinen | Date: | Sat, 10 Mar 2001 17:33:34 +0000 |
| Subject: | cvs: php4 /ext/mysql config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4470@lists.php.net to get a copy of this message | ||
sniper Sat Mar 10 09:33:34 2001 EDT
Modified files:
/php4/ext/mysql config.m4
Log:
This should fix the problems with not including -lz.
Index: php4/ext/mysql/config.m4
diff -u php4/ext/mysql/config.m4:1.27 php4/ext/mysql/config.m4:1.28
--- php4/ext/mysql/config.m4:1.27 Tue Nov 21 03:07:50 2000
+++ php4/ext/mysql/config.m4 Sat Mar 10 09:33:33 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.27 2000/11/21 11:07:50 sniper Exp $
+dnl $Id: config.m4,v 1.28 2001/03/10 17:33:33 sniper Exp $
sinclude(ext/mysql/libmysql/acinclude.m4)
sinclude(ext/mysql/libmysql/mysql.m4)
@@ -78,6 +78,11 @@
fi
AC_ADD_LIBRARY_WITH_PATH(mysqlclient, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD)
+
+ dnl Check if mysql_config is found. If yes, use the LIBS provided by it..
+ if test -x "$MYSQL_DIR/bin/mysql_config"; then
+ PHP_EVAL_LIBLINE($MYSQL_DIR/bin/mysql_config --libs)
+ fi
AC_ADD_INCLUDE($MYSQL_INC_DIR)
else