mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
ce668c0ec6
Even if that header file is available, we better consider it private, and don't include it. The information about whether SSL support is enabled is now missing (`USE_(OPEN)SSL`), and it seems there is no alternative way to get it (`PQinitSSL()` is always defined), so we remove it from the PHP info. Furthermore, the `PG_VERSION` and `PG_VERSION_STR` macros are no longer available, but as of libpq 9.1 there is `PQlibVersion()` which allows us to construct `PG_VERSION` in a most likely backwards compatible manner. The additional information available through `PG_VERSION_STR` is lost, though, so we define `PGSQL_LIBPQ_VERSION_STR` basically as alias of `PGSQL_LIBPQ_VERSION`, and deprecate it right away. Since we are now requiring at least libpq 9.1, we can remove some further compatibility code and additional checks. Regarding the raised requirements: official support for PostGreSQL 9.0 ended on 2015-10-08, and even CentOS 7 already has PostGreSQL 9.2, so this is not supposed to be too much of an issue.
21 lines
676 B
JavaScript
21 lines
676 B
JavaScript
// 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 + "\\include;" + PHP_PHP_BUILD + "\\include\\pgsql;" + PHP_PHP_BUILD + "\\include\\libpq;")) {
|
|
EXTENSION("pdo_pgsql", "pdo_pgsql.c pgsql_driver.c pgsql_statement.c");
|
|
|
|
if (X64) {
|
|
ADD_FLAG('CFLAGS_PDO_PGSQL', "/D HAVE_PG_LO64=1");
|
|
}
|
|
|
|
AC_DEFINE('HAVE_PDO_PGSQL', 1, 'Have PostgreSQL library');
|
|
|
|
ADD_EXTENSION_DEP('pdo_pgsql', 'pdo');
|
|
} else {
|
|
WARNING("pdo_pgsql not enabled; libraries and headers not found");
|
|
}
|
|
}
|