1// vim:ft=javascript 2 3ARG_WITH("mysqlnd", "Mysql Native Client Driver", "yes"); 4if (PHP_MYSQLND != "no") { 5 6 if (CHECK_LIB("ws2_32.lib", "mysqlnd")) { 7 mysqlnd_source = 8 "mysqlnd_alloc.c " + 9 "mysqlnd_auth.c " + 10 "mysqlnd_block_alloc.c " + 11 "mysqlnd_connection.c " + 12 "mysqlnd_charset.c " + 13 "mysqlnd_commands.c " + 14 "mysqlnd_debug.c " + 15 "mysqlnd_driver.c " + 16 "mysqlnd_ext_plugin.c " + 17 "mysqlnd_loaddata.c " + 18 "mysqlnd_reverse_api.c " + 19 "mysqlnd_plugin.c " + 20 "mysqlnd_protocol_frame_codec.c " + 21 "mysqlnd_ps.c " + 22 "mysqlnd_ps_codec.c " + 23 "mysqlnd_read_buffer.c " + 24 "mysqlnd_result.c " + 25 "mysqlnd_result_meta.c " + 26 "mysqlnd_statistics.c " + 27 "mysqlnd_vio.c " + 28 "mysqlnd_wireprotocol.c " + 29 "php_mysqlnd.c "; 30 EXTENSION("mysqlnd", mysqlnd_source, false, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); 31 if ((((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "mysqlnd", PHP_MYSQLND))) || 32 (PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "mysqlnd", PHP_MYSQLND)) || 33 (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED))) && 34 CHECK_HEADER_ADD_INCLUDE("zlib.h", "CFLAGS", "..\\zlib;" + php_usual_include_suspects) 35 ) 36 { 37 AC_DEFINE("MYSQLND_COMPRESSION_ENABLED", 1, "Compression support"); 38 AC_DEFINE("MYSQLND_SSL_SUPPORTED", 1, "SSL support"); 39 if (CHECK_LIB("crypt32.lib", "mysqlnd")) { 40 AC_DEFINE("MYSQLND_HAVE_SSL", 1, "Extended SSL support"); 41 } 42 } 43 PHP_INSTALL_HEADERS("", "ext/mysqlnd"); 44 } 45} 46