mirror of
https://github.com/php/php-src.git
synced 2024-12-12 19:33:31 +08:00
29 lines
841 B
JavaScript
29 lines
841 B
JavaScript
// $Id$
|
|
// vim:ft=javascript
|
|
|
|
ARG_WITH("oci8", "OCI8 support", "no");
|
|
|
|
if (PHP_OCI8 != "no") {
|
|
|
|
if (CHECK_HEADER_ADD_INCLUDE("oci.h", "CFLAGS_OCI8", PHP_PHP_BUILD + "\\include\\instantclient;" + PHP_OCI8) &&
|
|
CHECK_LIB("oci.lib", "oci8", PHP_PHP_BUILD + "\\lib\\instantclient;" + PHP_OCI8)
|
|
|
|
) {
|
|
EXTENSION('oci8', 'oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c');
|
|
|
|
AC_DEFINE('HAVE_OCI8', 1);
|
|
AC_DEFINE('HAVE_OCI_INSTANT_CLIENT', 1);
|
|
AC_DEFINE('HAVE_OCI8_ATTR_STATEMENT', 1);
|
|
AC_DEFINE('HAVE_OCI_ENV_NLS_CREATE', 1);
|
|
AC_DEFINE('HAVE_OCI_ENV_CREATE', 1);
|
|
AC_DEFINE('HAVE_OCI_STMT_PREPARE2', 1);
|
|
AC_DEFINE('HAVE_OCI_LOB_READ2', 1);
|
|
AC_DEFINE('HAVE_OCI8_TEMP_LOB', 1);
|
|
AC_DEFINE('PHP_OCI8_HAVE_COLLECTIONS', 1);
|
|
|
|
} else {
|
|
WARNING("oci8 not enabled; libraries and headers not found");
|
|
}
|
|
}
|
|
|