2004-05-19 03:03:27 +08:00
|
|
|
// $Id$
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
|
|
|
ARG_WITH("pdo-mysql", "MySQL support for PDO", "no");
|
|
|
|
|
|
|
|
if (PHP_PDO_MYSQL != "no") {
|
2008-07-21 21:09:28 +08:00
|
|
|
if (PHP_PDO_MYSQL == "yes" || PHP_PDO_MYSQL == "mysqlnd") {
|
|
|
|
AC_DEFINE('PDO_USE_MYSQLND', 1, 'Using MySQL native driver');
|
|
|
|
STDOUT.WriteLine("INFO: mysqlnd build");
|
2004-05-19 03:03:27 +08:00
|
|
|
EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c");
|
2008-07-21 21:09:28 +08:00
|
|
|
ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
|
2004-05-19 03:03:27 +08:00
|
|
|
} else {
|
2008-07-21 21:09:28 +08:00
|
|
|
if (CHECK_LIB("libmysql.lib", "pdo_mysql", PHP_PDO_MYSQL) &&
|
|
|
|
CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_PDO_MYSQL", PHP_PHP_BUILD + "\\include\\mysql;" + PHP_PDO_MYSQL)) {
|
|
|
|
EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c");
|
|
|
|
} else {
|
|
|
|
WARNING("pdo_mysql not enabled; libraries and headers not found");
|
|
|
|
}
|
2004-05-19 03:03:27 +08:00
|
|
|
}
|
|
|
|
}
|