2004-05-20 02:27:49 +00:00
|
|
|
// $Id$
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
|
|
|
ARG_WITH("pdo-pgsql", "PostgreSQL support for PDO", "no");
|
|
|
|
|
|
|
|
if (PHP_PDO_PGSQL != "no") {
|
|
|
|
if (CHECK_LIB("libpq.lib", "pdo_pgsql", PHP_PDO_PGSQL) &&
|
2004-05-20 10:24:17 +00:00
|
|
|
CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + ";" + PHP_PHP_BUILD + "\\include\\pgsql")) {
|
2004-05-20 02:27:49 +00:00
|
|
|
EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c");
|
|
|
|
ADD_FLAG('CFLAGS_PDO_PGSQL', "/I ..\\pecl");
|
2004-05-20 03:02:58 +00:00
|
|
|
AC_DEFINE('HAVE_PDO_PGSQL', 1, 'Have PostgreSQL library');
|
2004-05-20 02:27:49 +00:00
|
|
|
} else {
|
|
|
|
WARNING("pdo_pgsql not enabled; libraries and headers not found");
|
|
|
|
}
|
|
|
|
ADD_EXTENSION_DEP('pdo_pgsql', 'pdo');
|
|
|
|
}
|