1dnl 2dnl $Id$ 3dnl 4 5PHP_ARG_WITH(pdo-firebird,for Firebird support for PDO, 6[ --with-pdo-firebird[=DIR] PDO: Firebird support. DIR is the Firebird base 7 install directory [/opt/firebird]]) 8 9if test "$PHP_PDO_FIREBIRD" != "no"; then 10 11 if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then 12 AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.]) 13 fi 14 15 if test "$PHP_PDO_FIREBIRD" = "yes"; then 16 FIREBIRD_INCDIR= 17 FIREBIRD_LIBDIR= 18 FIREBIRD_LIBDIR_FLAG= 19 else 20 FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include 21 FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR 22 FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR 23 fi 24 25 PHP_CHECK_LIBRARY(fbclient, isc_detach_database, 26 [ 27 FIREBIRD_LIBNAME=fbclient 28 ], [ 29 PHP_CHECK_LIBRARY(gds, isc_detach_database, 30 [ 31 FIREBIRD_LIBNAME=gds 32 ], [ 33 PHP_CHECK_LIBRARY(ib_util, isc_detach_database, 34 [ 35 FIREBIRD_LIBNAME=ib_util 36 ], [ 37 AC_MSG_ERROR([libfbclient, libgds or libib_util not found! Check config.log for more information.]) 38 ], [ 39 $FIREBIRD_LIBDIR_FLAG 40 ]) 41 ], [ 42 $FIREBIRD_LIBDIR_FLAG 43 ]) 44 ], [ 45 $FIREBIRD_LIBDIR_FLAG 46 ]) 47 48 PHP_CHECK_PDO_INCLUDES 49 50 PHP_ADD_LIBRARY_WITH_PATH($FIREBIRD_LIBNAME, $FIREBIRD_LIBDIR, PDO_FIREBIRD_SHARED_LIBADD) 51 PHP_ADD_INCLUDE($FIREBIRD_INCDIR) 52 AC_DEFINE(HAVE_PDO_FIREBIRD,1,[ ]) 53 PHP_NEW_EXTENSION(pdo_firebird, pdo_firebird.c firebird_driver.c firebird_statement.c, $ext_shared,,-I$pdo_inc_path) 54 PHP_SUBST(PDO_FIREBIRD_SHARED_LIBADD) 55 PHP_ADD_EXTENSION_DEP(pdo_firebird, pdo) 56fi 57