diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/pdo_pgsql/config.w32 | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/pdo_pgsql/config.w32')
-rw-r--r-- | ext/pdo_pgsql/config.w32 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/pdo_pgsql/config.w32 b/ext/pdo_pgsql/config.w32 new file mode 100644 index 0000000..223780e --- /dev/null +++ b/ext/pdo_pgsql/config.w32 @@ -0,0 +1,24 @@ +// $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) && + CHECK_HEADER_ADD_INCLUDE("libpq-fe.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + ";" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) { + EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c"); + + if (CHECK_HEADER_ADD_INCLUDE("pg_config.h", "CFLAGS_PDO_PGSQL", PHP_PDO_PGSQL + ";" + PHP_PHP_BUILD + "\\include\\pgsql")) { + ADD_FLAG('CFLAGS_PDO_PGSQL', "/D HAVE_PG_CONFIG_H"); + } + + AC_DEFINE('HAVE_PDO_PGSQL', 1, 'Have PostgreSQL library'); + AC_DEFINE('HAVE_PQESCAPE_BYTEA_CONN', 1, 'Have PQescapeByteaConn'); + AC_DEFINE('HAVE_PQESCAPE_CONN', 1, 'Have PQescapeConn'); + AC_DEFINE('HAVE_PQPREPARE', 1, 'Have PQprepare'); + ADD_FLAG('CFLAGS_PDO_PGSQL', "/D HAVE_PQPARAMETERSTATUS=1 /D HAVE_PQPROTOCOLVERSION=1 /D HAVE_PGTRANSACTIONSTATUS=1 /D HAVE_PQUNESCAPEBYTEA=1 /D HAVE_PQRESULTERRORFIELD=1 /D HAVE_PQESCAPE_CONN=1 /D HAVE_PQESCAPE_BYTEA_CONN=1"); + ADD_EXTENSION_DEP('pdo_pgsql', 'pdo'); + } else { + WARNING("pdo_pgsql not enabled; libraries and headers not found"); + } +} |