mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
8b9b553aa2
Patch ext/mysql and ext/mysqli to support mysqlnd
21 lines
623 B
JavaScript
21 lines
623 B
JavaScript
// $Id$
|
|
// vim:ft=javascript
|
|
|
|
ARG_WITH("mysql", "MySQL support", "no");
|
|
|
|
if (PHP_MYSQL != "no") {
|
|
if (PHP_MYSQLI != "mysqlnd") {
|
|
if (CHECK_LIB("libmysql.lib", "mysql", PHP_MYSQL) &&
|
|
CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_MYSQL",
|
|
PHP_MYSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\mysql;" + PHP_MYSQL)) {
|
|
} else {
|
|
WARNING("mysql not enabled; libraries and headers not found");
|
|
}
|
|
} else {
|
|
AC_DEFINE('HAVE_MYSQLND', 1, 'MySQL native driver support enabled');
|
|
ADD_EXTENSION_DEP('mysql', 'mysqlnd', true);
|
|
}
|
|
EXTENSION("mysql", "php_mysql.c");
|
|
AC_DEFINE('HAVE_MYSQL', 1, 'Have MySQL library');
|
|
}
|