2003-12-08 16:54:18 +00:00
|
|
|
dnl ## $Id$ -*- sh -*-
|
|
|
|
|
2007-07-11 23:20:37 +00:00
|
|
|
PHP_ARG_WITH(continuity, for Continuity support,
|
2005-05-29 23:17:16 +00:00
|
|
|
[ --with-continuity=DIR Build PHP as Continuity Server module.
|
2007-07-11 23:20:37 +00:00
|
|
|
DIR is path to the installed Continuity Server root], no, no)
|
2003-12-08 16:54:18 +00:00
|
|
|
|
|
|
|
if test "$PHP_CONTINUITY" != "no"; then
|
|
|
|
if test ! -d $PHP_CONTINUITY; then
|
2007-07-11 23:20:37 +00:00
|
|
|
AC_MSG_ERROR([Please specify the path to the root of your Continuity server using --with-continuity=DIR])
|
2003-12-08 16:54:18 +00:00
|
|
|
fi
|
2007-07-11 23:20:37 +00:00
|
|
|
AC_MSG_CHECKING([for Continuity include files])
|
2003-12-08 16:54:18 +00:00
|
|
|
if test -d $PHP_CONTINUITY/include ; then
|
|
|
|
CAPI_INCLUDE=$PHP_CONTINUITY/include
|
2007-07-11 23:20:37 +00:00
|
|
|
AC_MSG_RESULT([Continuity Binary Distribution])
|
2003-12-08 16:54:18 +00:00
|
|
|
else
|
2007-07-11 23:20:37 +00:00
|
|
|
AC_MSG_ERROR([Cannot find your CAPI include files in either DIR/src or DIR/include])
|
2003-12-08 16:54:18 +00:00
|
|
|
fi
|
|
|
|
|
2007-07-11 23:20:37 +00:00
|
|
|
PHP_SELECT_SAPI(continuity, shared, capi.c)
|
2003-12-08 16:54:18 +00:00
|
|
|
PHP_ADD_INCLUDE($CAPI_INCLUDE)
|
|
|
|
PHP_BUILD_THREAD_SAFE
|
2007-07-11 23:20:37 +00:00
|
|
|
AC_DEFINE(HAVE_CONTINUITY, 1, [Whether you have a Continuity Server])
|
2003-12-08 16:54:18 +00:00
|
|
|
INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PHP_CONTINUITY/lib/"
|
|
|
|
fi
|
|
|
|
|
|
|
|
dnl ## Local Variables:
|
|
|
|
dnl ## tab-width: 4
|
|
|
|
dnl ## End:
|