xref: /PHP-8.1/ext/pdo_mysql/config.w32 (revision da011a31)
1// vim:ft=javascript
2
3ARG_WITH("pdo-mysql", "MySQL support for PDO", "no");
4
5if (PHP_PDO_MYSQL != "no") {
6	if (PHP_PDO_MYSQL == "yes" || PHP_PDO_MYSQL == "mysqlnd") {
7		AC_DEFINE('PDO_USE_MYSQLND', 1, 'Using MySQL native driver');
8		STDOUT.WriteLine("INFO: mysqlnd build");
9		EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c");
10		ADD_EXTENSION_DEP('pdo_mysql', 'pdo');
11	} else {
12		if (CHECK_LIB("libmysql.lib", "pdo_mysql", PHP_PDO_MYSQL) &&
13				CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_PDO_MYSQL",
14					PHP_PDO_MYSQL + "\\include;" +
15					PHP_PHP_BUILD + "\\include\\mysql;" +
16					PHP_PDO_MYSQL)) {
17			EXTENSION("pdo_mysql", "pdo_mysql.c mysql_driver.c mysql_statement.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
18		} else {
19			WARNING("pdo_mysql not enabled; libraries and headers not found");
20		}
21	}
22}
23