config.w32 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // vim:ft=javascript
  2. // Note: The extension name is "mysqli", you enable it with "--with-mysqli".
  3. // Passing value "mysqlnd" to it enables the bundled
  4. // client library to connect to the MySQL server, i.e. no external MySQL
  5. // client library is needed to perform the build.
  6. ARG_WITH("mysqli", "MySQLi support", "no");
  7. if (PHP_MYSQLI != "no") {
  8. mysqli_source =
  9. "mysqli.c " +
  10. "mysqli_api.c " +
  11. "mysqli_driver.c " +
  12. "mysqli_embedded.c " +
  13. "mysqli_exception.c " +
  14. "mysqli_fe.c " +
  15. "mysqli_nonapi.c " +
  16. "mysqli_prop.c " +
  17. "mysqli_result_iterator.c " +
  18. "mysqli_report.c " +
  19. "mysqli_warning.c";
  20. if (PHP_MYSQLI == "yes" || PHP_MYSQLI == "mysqlnd") {
  21. EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
  22. AC_DEFINE('MYSQLI_USE_MYSQLND', 1, 'Using MySQL native driver');
  23. AC_DEFINE('HAVE_MYSQLILIB', 1, 'Have MySQLi library');
  24. ADD_EXTENSION_DEP('mysqli', 'mysqlnd', true);
  25. MESSAGE("\tmysqlnd build");
  26. PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
  27. } else {
  28. if (CHECK_LIB("libmysql.lib", "mysqli", PHP_MYSQLI) &&
  29. CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_MYSQLI", PHP_MYSQLI +
  30. "\\include;" + PHP_PHP_BUILD +
  31. "\\include\\mysql;" + PHP_MYSQLI)) {
  32. EXTENSION("mysqli", mysqli_source, PHP_MYSQLI_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
  33. AC_DEFINE('HAVE_MYSQLILIB', 1, 'Have MySQLi library');
  34. MESSAGE("\tlibmysql build");
  35. PHP_INSTALL_HEADERS("ext/mysqli", "php_mysqli_structs.h");
  36. } else {
  37. WARNING("mysqli not enabled; libraries and headers not found");
  38. PHP_MYSQLI = "no"
  39. }
  40. }
  41. }