1// vim:ft=javascript 2 3ARG_WITH("pgsql", "PostgreSQL support", "no"); 4 5if (PHP_PGSQL != "no") { 6 if (CHECK_LIB("libpq.lib", "pgsql", PHP_PGSQL) && 7 CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PGSQL", PHP_PGSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;" + PHP_PGSQL)) { 8 EXTENSION("pgsql", "pgsql.c", PHP_PGSQL_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); 9 AC_DEFINE('HAVE_PGSQL', 1, "Define to 1 if the PHP extension 'pgsql' is available."); 10 ADD_FLAG("CFLAGS_PGSQL", "/D PGSQL_EXPORTS"); 11 ADD_EXTENSION_DEP('pgsql', 'pcre'); 12 } else { 13 WARNING("pgsql not enabled; libraries and headers not found"); 14 } 15} 16