mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
96840072fc
We * Document the fbclient 3.0+ version requirement * Windows: check existence of Interface.h Since we now require fbclient (3.0), we can drop support for the Interbase gds32_ms.lib right away. * POSIX: check for minimum required libfbclient version with fb_config * POSIX: check for `fb_get_master_interface()` The existence of `isc_detach_database` is implied by this. * POSIX: remove detection of unsupported or even wrong libraries libgds is for old Interbase which is incompatible with pdo_firebird for may years, and libib_util is a utitity library, not a replacement for libfbclient. Co-authored-by: Peter Kokot <peterkokot@gmail.com>
21 lines
866 B
JavaScript
21 lines
866 B
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("pdo-firebird", "Firebird support for PDO", "no");
|
|
|
|
if (PHP_PDO_FIREBIRD != "no") {
|
|
|
|
if (CHECK_LIB("fbclient_ms.lib", "pdo_firebird", PHP_PHP_BUILD + "\\interbase\\lib_ms;" + PHP_PDO_FIREBIRD)
|
|
&& CHECK_HEADER_ADD_INCLUDE("ibase.h", "CFLAGS_PDO_FIREBIRD",
|
|
PHP_PHP_BUILD + "\\include\\interbase;" + PHP_PHP_BUILD + "\\interbase\\include;" + PHP_PDO_FIREBIRD)
|
|
&& CHECK_HEADER_ADD_INCLUDE("firebird\\Interface.h", "CFLAGS_PDO_FIREBIRD",
|
|
PHP_PHP_BUILD + "\\include\\interbase;" + PHP_PHP_BUILD + "\\interbase\\include;" + PHP_PDO_FIREBIRD)
|
|
) {
|
|
|
|
EXTENSION("pdo_firebird", "pdo_firebird.c firebird_driver.c firebird_statement.c pdo_firebird_utils.cpp");
|
|
ADD_FLAG("CFLAGS_PDO_FIREBIRD", "/EHsc");
|
|
} else {
|
|
WARNING("pdo_firebird not enabled; libraries and headers not found");
|
|
}
|
|
ADD_EXTENSION_DEP('pdo_firebird', 'pdo');
|
|
}
|