2003-12-05 14:09:29 +08:00
|
|
|
// $Id$
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
|
|
|
ARG_WITH("mysql", "MySQL support", "no");
|
|
|
|
|
|
|
|
if (PHP_MYSQL != "no") {
|
2008-06-24 02:40:29 +08:00
|
|
|
if ((PHP_MYSQL == "yes" || PHP_MYSQL == "mysqlnd")) {
|
2008-04-08 15:45:49 +08:00
|
|
|
AC_DEFINE('MYSQL_USE_MYSQLND', 1, 'Using MySQL native driver');
|
2008-06-24 02:40:29 +08:00
|
|
|
if (!ADD_EXTENSION_DEP('mysql', 'mysqlnd', true)) {
|
|
|
|
PHP_MYSQL = "no";
|
|
|
|
WARNING("mysql not enabled; mysqlnd is not enabled");
|
|
|
|
} else {
|
|
|
|
EXTENSION("mysql", "php_mysql.c");
|
|
|
|
AC_DEFINE('HAVE_MYSQL', 1, 'Have MySQL library');
|
|
|
|
MESSAGE("\tusing mysqlnd build");
|
|
|
|
}
|
2008-04-08 15:45:49 +08:00
|
|
|
} else if (PHP_MYSQL != "") {
|
2007-10-06 05:23:56 +08:00
|
|
|
if (CHECK_LIB("libmysql.lib", "mysql", PHP_MYSQL) &&
|
2005-06-06 03:25:01 +08:00
|
|
|
CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_MYSQL",
|
2007-10-06 05:23:56 +08:00
|
|
|
PHP_MYSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\mysql;" + PHP_MYSQL)) {
|
2008-01-29 06:50:06 +08:00
|
|
|
EXTENSION("mysql", "php_mysql.c");
|
|
|
|
AC_DEFINE('HAVE_MYSQL', 1, 'Have MySQL library');
|
2008-06-24 02:40:29 +08:00
|
|
|
MESSAGE("\tusing libmysql");
|
2007-10-06 05:23:56 +08:00
|
|
|
} else {
|
|
|
|
WARNING("mysql not enabled; libraries and headers not found");
|
|
|
|
}
|
2003-12-05 14:09:29 +08:00
|
|
|
}
|
|
|
|
}
|