xref: /PHP-5.3/ext/mysql/config.w32 (revision 41976c7a)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("mysql", "MySQL support", "no");
5
6if (PHP_MYSQL != "no") {
7	if ((PHP_MYSQL == "yes" || PHP_MYSQL == "mysqlnd")) {
8		AC_DEFINE('MYSQL_USE_MYSQLND', 1, 'Using MySQL native driver');
9		if (!ADD_EXTENSION_DEP('mysql', 'mysqlnd', true)) {
10			PHP_MYSQL = "no";
11			WARNING("mysql not enabled; mysqlnd is not enabled");
12		} else {
13			EXTENSION("mysql", "php_mysql.c");
14			AC_DEFINE('HAVE_MYSQL', 1, 'Have MySQL library');
15			MESSAGE("\tusing mysqlnd build");
16		}
17	} else if (PHP_MYSQL != "") {
18		if (CHECK_LIB("libmysql.lib", "mysql", PHP_MYSQL) &&
19			CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_MYSQL",
20			PHP_MYSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\mysql;" + PHP_MYSQL)) {
21			EXTENSION("mysql", "php_mysql.c");
22			AC_DEFINE('HAVE_MYSQL', 1, 'Have MySQL library');
23			MESSAGE("\tusing libmysql");
24		} else {
25			WARNING("mysql not enabled; libraries and headers not found");
26		}
27	}
28}
29