mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Test that libgds actually exists.
This commit is contained in:
parent
1887456484
commit
8e673a3fa0
@ -14,10 +14,18 @@ if test "$PHP_INTERBASE" != "no"; then
|
||||
IBASE_INCDIR=$PHP_INTERBASE/include
|
||||
IBASE_LIBDIR=$PHP_INTERBASE/lib
|
||||
fi
|
||||
PHP_ADD_LIBRARY_WITH_PATH(gds, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
|
||||
|
||||
PHP_CHECK_LIBRARY(gds, isc_detach_database,
|
||||
[
|
||||
PHP_ADD_LIBRARY_WITH_PATH(gds, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
|
||||
], [
|
||||
AC_MSG_ERROR([libgds not found! Check config.log for more information.])
|
||||
], [
|
||||
-L$IBASE_LIBDIR -lgds
|
||||
])
|
||||
|
||||
PHP_ADD_INCLUDE($IBASE_INCDIR)
|
||||
AC_DEFINE(HAVE_IBASE,1,[ ])
|
||||
dnl AC_CHECK_LIB(c, strptime, [AC_DEFINE(HAVE_STRPTIME,1,[])])
|
||||
PHP_NEW_EXTENSION(interbase, interbase.c, $ext_shared)
|
||||
PHP_SUBST(INTERBASE_SHARED_LIBADD)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user