2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
2000-07-17 21:29:30 +00:00
|
|
|
dnl $Id$
|
2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
2000-07-17 21:29:30 +00:00
|
|
|
|
2000-08-31 15:10:16 +00:00
|
|
|
PHP_ARG_WITH(ingres, for Ingres II support,
|
2000-08-29 18:21:07 +00:00
|
|
|
[ --with-ingres[=DIR] Include Ingres II support. DIR is the Ingres
|
2003-01-23 05:33:11 +00:00
|
|
|
base directory (default $II_SYSTEM/ingres)])
|
2000-07-17 21:29:30 +00:00
|
|
|
|
2000-08-31 15:10:16 +00:00
|
|
|
if test "$PHP_INGRES" != "no"; then
|
2000-07-17 21:29:30 +00:00
|
|
|
AC_DEFINE(HAVE_II, 1, [Whether you have Ingres II])
|
2002-03-12 16:44:00 +00:00
|
|
|
PHP_NEW_EXTENSION(ingres_ii, ii.c, $ext_shared)
|
2001-05-27 23:55:44 +00:00
|
|
|
PHP_SUBST(II_SHARED_LIBADD)
|
2000-07-17 21:29:30 +00:00
|
|
|
|
2000-08-31 15:10:16 +00:00
|
|
|
if test "$PHP_INGRES" = "yes"; then
|
2000-07-17 21:29:30 +00:00
|
|
|
II_DIR=$II_SYSTEM/ingres
|
|
|
|
else
|
2000-08-31 15:10:16 +00:00
|
|
|
II_DIR=$PHP_INGRES
|
2000-07-17 21:29:30 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -r $II_DIR/files/iiapi.h; then
|
|
|
|
II_INC_DIR=$II_DIR/files
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(Cannot find iiapi.h under $II_DIR/files)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -r $II_DIR/lib/libiiapi.a; then
|
|
|
|
II_LIB_DIR=$II_DIR/lib
|
|
|
|
else
|
|
|
|
AC_MSG_ERROR(Cannot find libiiapi.a under $II_DIR/lib)
|
|
|
|
fi
|
|
|
|
|
2001-03-27 20:35:04 +00:00
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(iiapi, $II_LIB_DIR, II_SHARED_LIBADD)
|
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(ingres, $II_LIB_DIR, II_SHARED_LIBADD)
|
|
|
|
PHP_ADD_INCLUDE($II_INC_DIR)
|
2000-07-17 21:29:30 +00:00
|
|
|
fi
|