diff options
| author | Ard Biesheuvel <abies@php.net> | 2004-02-01 17:42:26 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <abies@php.net> | 2004-02-01 17:42:26 +0000 |
| commit | 254eb0f05d6843362f91ab38016a5fdd0a33a9bb (patch) | |
| tree | 1a0aa534d9b1ae1ffccce4678d9cc6b17e691d25 /ext | |
| parent | 69d53a767644033f6a26e5b8b4abc6663588aeef (diff) | |
| download | php-git-254eb0f05d6843362f91ab38016a5fdd0a33a9bb.tar.gz | |
Test for Interbase version 6 API in 'configure'
# Always enable in Win32 for the time being
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/interbase/config.m4 | 10 | ||||
| -rw-r--r-- | ext/interbase/config.w32 | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ext/interbase/config.m4 b/ext/interbase/config.m4 index ac4dd1e664..6af08a7a8f 100644 --- a/ext/interbase/config.m4 +++ b/ext/interbase/config.m4 @@ -37,6 +37,16 @@ if test "$PHP_INTERBASE" != "no"; then ], [ -L$IBASE_LIBDIR ]) + + if test " $IBASE_LIBNAME" != " "; then + PHP_CHECK_LIBRARY($IBASE_LIBNAME, isc_service_attach, + [ + AC_DEFINE(HAVE_IBASE6_API,1,[ ]) + AC_MSG_RESULT([Interbase version 6 API has been enabled.]) + ], [ + AC_MSG_RESULT([Interbase version 6 API has NOT been enabled.]) + ], [ ]) + fi PHP_ADD_LIBRARY_WITH_PATH($IBASE_LIBNAME, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD) PHP_ADD_INCLUDE($IBASE_INCDIR) diff --git a/ext/interbase/config.w32 b/ext/interbase/config.w32 index 5fa0e3ccdc..95f9069dff 100644 --- a/ext/interbase/config.w32 +++ b/ext/interbase/config.w32 @@ -10,6 +10,7 @@ if (PHP_INTERBASE != "no") { CHECK_LIB("gds32_ms.lib", "interbase", PHP_PHP_BUILD + "\\interbase\\lib_ms;" + PHP_INTERBASE))) { EXTENSION("interbase", "interbase.c ibase_service.c ibase_events.c ibase_blobs.c"); AC_DEFINE('HAVE_IBASE', 1, 'Have interbase library'); + AC_DEFINE('HAVE_IBASE6_API', 1, 'Have interbase version 6 API library'); } else { WARNING("interbase not enabled; libraries and headers not found"); } |
