mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Merge branch 'PHP-7.1'
* PHP-7.1: Fixed bug #73512 Fails to find firebird headers
This commit is contained in:
commit
548cbcc929
2 changed files with 72 additions and 44 deletions
|
@ -3,6 +3,19 @@ PHP_ARG_WITH(interbase,for Firebird support,
|
|||
install directory [/opt/firebird]])
|
||||
|
||||
if test "$PHP_INTERBASE" != "no"; then
|
||||
|
||||
AC_PATH_PROG(FB_CONFIG, fb_config, no)
|
||||
|
||||
if test -x "$FB_CONFIG" && test "$PHP_INTERBASE" = "yes"; then
|
||||
AC_MSG_CHECKING(for libfbconfig)
|
||||
FB_CFLAGS=`$FB_CONFIG --cflags`
|
||||
FB_LIBDIR=`$FB_CONFIG --libs`
|
||||
FB_VERSION=`$FB_CONFIG --version`
|
||||
AC_MSG_RESULT(version $FB_VERSION)
|
||||
PHP_EVAL_LIBLINE($FB_LIBDIR, INTERBASE_SHARED_LIBADD)
|
||||
PHP_EVAL_INCLINE($FB_CFLAGS)
|
||||
|
||||
else
|
||||
if test "$PHP_INTERBASE" = "yes"; then
|
||||
IBASE_INCDIR=/opt/firebird/include
|
||||
IBASE_LIBDIR=/opt/firebird/lib
|
||||
|
@ -36,6 +49,8 @@ if test "$PHP_INTERBASE" != "no"; then
|
|||
|
||||
PHP_ADD_LIBRARY_WITH_PATH($IBASE_LIBNAME, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
|
||||
PHP_ADD_INCLUDE($IBASE_INCDIR)
|
||||
fi
|
||||
|
||||
AC_DEFINE(HAVE_IBASE,1,[ ])
|
||||
PHP_NEW_EXTENSION(interbase, interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
||||
PHP_SUBST(INTERBASE_SHARED_LIBADD)
|
||||
|
|
|
@ -8,6 +8,18 @@ if test "$PHP_PDO_FIREBIRD" != "no"; then
|
|||
AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.])
|
||||
fi
|
||||
|
||||
AC_PATH_PROG(FB_CONFIG, fb_config, no)
|
||||
|
||||
if test -x "$FB_CONFIG" && test "$PHP_PDO_FIREBIRD" = "yes"; then
|
||||
AC_MSG_CHECKING(for libfbconfig)
|
||||
FB_CFLAGS=`$FB_CONFIG --cflags`
|
||||
FB_LIBDIR=`$FB_CONFIG --libs`
|
||||
FB_VERSION=`$FB_CONFIG --version`
|
||||
AC_MSG_RESULT(version $FB_VERSION)
|
||||
PHP_EVAL_LIBLINE($FB_LIBDIR, PDO_FIREBIRD_SHARED_LIBADD)
|
||||
PHP_EVAL_INCLINE($FB_CFLAGS)
|
||||
|
||||
else
|
||||
if test "$PHP_PDO_FIREBIRD" = "yes"; then
|
||||
FIREBIRD_INCDIR=
|
||||
FIREBIRD_LIBDIR=
|
||||
|
@ -40,11 +52,12 @@ if test "$PHP_PDO_FIREBIRD" != "no"; then
|
|||
], [
|
||||
$FIREBIRD_LIBDIR_FLAG
|
||||
])
|
||||
PHP_ADD_LIBRARY_WITH_PATH($FIREBIRD_LIBNAME, $FIREBIRD_LIBDIR, PDO_FIREBIRD_SHARED_LIBADD)
|
||||
PHP_ADD_INCLUDE($FIREBIRD_INCDIR)
|
||||
fi
|
||||
|
||||
PHP_CHECK_PDO_INCLUDES
|
||||
|
||||
PHP_ADD_LIBRARY_WITH_PATH($FIREBIRD_LIBNAME, $FIREBIRD_LIBDIR, PDO_FIREBIRD_SHARED_LIBADD)
|
||||
PHP_ADD_INCLUDE($FIREBIRD_INCDIR)
|
||||
AC_DEFINE(HAVE_PDO_FIREBIRD,1,[ ])
|
||||
PHP_NEW_EXTENSION(pdo_firebird, pdo_firebird.c firebird_driver.c firebird_statement.c, $ext_shared,,-I$pdo_cv_inc_path)
|
||||
PHP_SUBST(PDO_FIREBIRD_SHARED_LIBADD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue