mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
d6a75e19d1
This partially syncs help texts a bit further for: - ext/ffi - ext/ldap - ext/opcache - ext/pcre - ext/pdo_mysql - ext/readline - ext/standard
27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("pdo-mysql", "MySQL support for PDO", "no");
|
|
|
|
if (PHP_PDO_MYSQL != "no") {
|
|
if (PHP_PDO_MYSQL == "yes" || PHP_PDO_MYSQL == "mysqlnd") {
|
|
AC_DEFINE('PDO_USE_MYSQLND', 1, 'Define to 1 if the pdo_mysql extension uses mysqlnd.');
|
|
STDOUT.WriteLine("INFO: mysqlnd build");
|
|
EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c mysql_sql_parser.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
|
ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
|
|
ADD_EXTENSION_DEP('pdo_mysql', 'mysqlnd');
|
|
ADD_MAKEFILE_FRAGMENT();
|
|
} else {
|
|
if (CHECK_LIB("libmysql.lib", "pdo_mysql", PHP_PDO_MYSQL) &&
|
|
CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_PDO_MYSQL",
|
|
PHP_PDO_MYSQL + "\\include;" +
|
|
PHP_PHP_BUILD + "\\include\\mysql;" +
|
|
PHP_PDO_MYSQL)) {
|
|
EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c mysql_sql_parser.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
|
ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
|
|
ADD_MAKEFILE_FRAGMENT();
|
|
} else {
|
|
WARNING("pdo_mysql not enabled; libraries and headers not found");
|
|
}
|
|
}
|
|
}
|