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