2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
|
|
|
dnl $Id$
|
|
|
|
dnl
|
2001-09-19 13:14:24 +00:00
|
|
|
|
|
|
|
PHP_ARG_WITH(msession, for msession support,
|
2001-09-30 16:13:52 +00:00
|
|
|
[ --with-msession[=DIR] Include msession support])
|
2001-09-19 13:14:24 +00:00
|
|
|
|
|
|
|
if test "$PHP_MSESSION" != "no"; then
|
2001-09-30 16:13:52 +00:00
|
|
|
if test -r $PHP_MSESSION/lib/libphoenix.a; then
|
|
|
|
PHOENIX_DIR=$PHP_MSESSION
|
|
|
|
else
|
|
|
|
AC_MSG_CHECKING(for msession in default path)
|
|
|
|
for i in /usr/local/phoenix /usr/local /usr; do
|
|
|
|
if test -r $i/lib/libphoenix.a; then
|
|
|
|
PHOENIX_DIR=$i
|
|
|
|
AC_MSG_RESULT(found in $i)
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$PHOENIX_DIR"; then
|
|
|
|
AC_MSG_RESULT(not found)
|
|
|
|
AC_MSG_ERROR(Please reinstall the Phoenix / msession distribution)
|
|
|
|
fi
|
|
|
|
|
2001-09-19 13:14:24 +00:00
|
|
|
|
2001-09-30 16:13:52 +00:00
|
|
|
AC_DEFINE(HAVE_MSESSION, 1, [ ])
|
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(phoenix, "$PHOENIX_DIR/lib", PHOENIX_LIB)
|
|
|
|
PHOENIX_INCLUDE="-I$PHOENIX_DIR"
|
2001-09-19 13:14:24 +00:00
|
|
|
PHP_SUBST(PHOENIX_LIB)
|
2001-09-30 16:13:52 +00:00
|
|
|
|
2003-02-12 18:34:21 +00:00
|
|
|
PHP_REQUIRE_CXX
|
2002-03-12 16:44:00 +00:00
|
|
|
PHP_NEW_EXTENSION(msession, msession.c, $ext_shared)
|
2003-02-12 18:34:21 +00:00
|
|
|
PHP_ADD_LIBRARY(stdc++)
|
2001-09-19 13:14:24 +00:00
|
|
|
fi
|
|
|
|
|