2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
1999-06-05 19:52:58 +00:00
|
|
|
dnl $Id$
|
2001-11-30 19:00:13 +00:00
|
|
|
dnl
|
|
|
|
|
2002-05-04 16:48:48 +00:00
|
|
|
PHP_ARG_ENABLE(session, whether to enable PHP sessions,
|
|
|
|
[ --disable-session Disable session support], yes)
|
|
|
|
|
2002-09-04 18:47:28 +00:00
|
|
|
PHP_ARG_WITH(mm,for mm support,
|
|
|
|
[ --with-mm[=DIR] Include mm support for session storage], no, no)
|
|
|
|
|
2002-06-28 02:27:02 +00:00
|
|
|
if test "$PHP_SESSION" != "no"; then
|
2002-09-06 10:27:26 +00:00
|
|
|
PHP_PWRITE_TEST
|
|
|
|
PHP_PREAD_TEST
|
2002-06-28 02:27:02 +00:00
|
|
|
PHP_NEW_EXTENSION(session, session.c mod_files.c mod_mm.c mod_user.c, $ext_shared)
|
|
|
|
PHP_SUBST(SESSION_SHARED_LIBADD)
|
|
|
|
AC_DEFINE(HAVE_PHP_SESSION,1,[ ])
|
|
|
|
fi
|
|
|
|
|
2000-03-26 02:47:00 +00:00
|
|
|
if test "$PHP_MM" != "no"; then
|
2003-09-30 22:36:43 +00:00
|
|
|
for i in $PHP_MM /usr/local /usr; do
|
2003-10-01 02:53:23 +00:00
|
|
|
test -f "$i/include/mm.h" && MM_DIR=$i && break
|
2000-03-26 02:47:00 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
if test -z "$MM_DIR" ; then
|
|
|
|
AC_MSG_ERROR(cannot find mm library)
|
|
|
|
fi
|
2000-05-01 02:42:55 +00:00
|
|
|
|
2004-11-03 14:32:52 +00:00
|
|
|
PHP_ADD_LIBRARY_WITH_PATH(mm, $MM_DIR/$PHP_LIBDIR, SESSION_SHARED_LIBADD)
|
2001-03-27 20:35:04 +00:00
|
|
|
PHP_ADD_INCLUDE($MM_DIR/include)
|
2000-03-26 02:47:00 +00:00
|
|
|
AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm])
|
|
|
|
fi
|