version 1.1, 2012/02/21 23:47:58
|
version 1.1.1.2, 2012/05/29 12:34:41
|
Line 41 AC_DEFUN([PHP_MYSQL_SOCKET_SEARCH], [
|
Line 41 AC_DEFUN([PHP_MYSQL_SOCKET_SEARCH], [
|
|
|
PHP_ARG_WITH(mysql, for MySQL support, |
PHP_ARG_WITH(mysql, for MySQL support, |
[ --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base |
[ --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base |
directory. If mysqlnd is passed as DIR, | directory, if no DIR is passed or the value is |
the MySQL native driver will be used [/usr/local]]) | mysqlnd the MySQL native driver will be used]) |
|
|
PHP_ARG_WITH(mysql-sock, for specified location of the MySQL UNIX socket, |
PHP_ARG_WITH(mysql-sock, for specified location of the MySQL UNIX socket, |
[ --with-mysql-sock[=DIR] MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. |
[ --with-mysql-sock[=DIR] MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. |
Line 53 if test -z "$PHP_ZLIB_DIR"; then
|
Line 53 if test -z "$PHP_ZLIB_DIR"; then
|
[ --with-zlib-dir[=DIR] MySQL: Set the path to libz install prefix], no, no) |
[ --with-zlib-dir[=DIR] MySQL: Set the path to libz install prefix], no, no) |
fi |
fi |
|
|
if test "$PHP_MYSQL" = "mysqlnd"; then | if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then |
dnl enables build of mysqnd library |
dnl enables build of mysqnd library |
PHP_MYSQLND_ENABLED=yes |
PHP_MYSQLND_ENABLED=yes |
|
|
Line 61 elif test "$PHP_MYSQL" != "no"; then
|
Line 61 elif test "$PHP_MYSQL" != "no"; then
|
MYSQL_DIR= |
MYSQL_DIR= |
MYSQL_INC_DIR= |
MYSQL_INC_DIR= |
|
|
for i in $PHP_MYSQL /usr/local /usr; do | if test -r $PHP_MYSQL/include/mysql/mysql.h; then |
if test -r $i/include/mysql/mysql.h; then | MYSQL_DIR=$PHP_MYSQL |
MYSQL_DIR=$i | MYSQL_INC_DIR=$PHP_MYSQL/include/mysql |
MYSQL_INC_DIR=$i/include/mysql | break |
break | elif test -r $PHP_MYSQL/include/mysql.h; then |
elif test -r $i/include/mysql.h; then | MYSQL_DIR=$PHP_MYSQL |
MYSQL_DIR=$i | MYSQL_INC_DIR=$PHP_MYSQL/include |
MYSQL_INC_DIR=$i/include | break |
break | fi |
fi | |
done | |
|
|
if test -z "$MYSQL_DIR"; then |
if test -z "$MYSQL_DIR"; then |
AC_MSG_ERROR([Cannot find MySQL header files under $PHP_MYSQL. |
AC_MSG_ERROR([Cannot find MySQL header files under $PHP_MYSQL. |
Line 155 if test "$PHP_MYSQL" != "no"; then
|
Line 153 if test "$PHP_MYSQL" != "no"; then
|
PHP_NEW_EXTENSION(mysql, php_mysql.c, $ext_shared) |
PHP_NEW_EXTENSION(mysql, php_mysql.c, $ext_shared) |
PHP_SUBST(MYSQL_SHARED_LIBADD) |
PHP_SUBST(MYSQL_SHARED_LIBADD) |
|
|
if test "$PHP_MYSQL" = "mysqlnd"; then | if test "$PHP_MYSQL" = "yes" || test "$PHP_MYSQL" = "mysqlnd"; then |
PHP_ADD_EXTENSION_DEP(mysql, mysqlnd) |
PHP_ADD_EXTENSION_DEP(mysql, mysqlnd) |
AC_DEFINE([MYSQL_USE_MYSQLND], 1, [Whether mysqlnd is enabled]) |
AC_DEFINE([MYSQL_USE_MYSQLND], 1, [Whether mysqlnd is enabled]) |
fi |
fi |