2019-03-03 15:44:16 +00:00
|
|
|
PHP_ARG_ENABLE([session],
|
|
|
|
[whether to enable PHP sessions],
|
|
|
|
[AS_HELP_STRING([--disable-session],
|
|
|
|
[Disable session support])],
|
|
|
|
[yes])
|
2002-05-04 16:48:48 +00:00
|
|
|
|
2019-03-03 15:44:16 +00:00
|
|
|
PHP_ARG_WITH([mm],
|
|
|
|
[for mm support],
|
|
|
|
[AS_HELP_STRING([[--with-mm[=DIR]]],
|
|
|
|
[SESSION: Include mm support for session storage])],
|
|
|
|
[no],
|
|
|
|
[no])
|
2002-09-04 18:47:28 +00:00
|
|
|
|
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
|
2014-10-17 14:03:40 +00:00
|
|
|
PHP_NEW_EXTENSION(session, mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
2009-07-28 08:59:08 +00:00
|
|
|
PHP_ADD_EXTENSION_DEP(session, hash, true)
|
2010-11-02 20:51:02 +00:00
|
|
|
PHP_ADD_EXTENSION_DEP(session, spl)
|
2002-06-28 02:27:02 +00:00
|
|
|
PHP_SUBST(SESSION_SHARED_LIBADD)
|
2005-05-07 02:51:53 +00:00
|
|
|
PHP_INSTALL_HEADERS(ext/session, [php_session.h mod_files.h mod_user.h])
|
2002-06-28 02:27:02 +00:00
|
|
|
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
|
2018-01-19 23:53:22 +00:00
|
|
|
|
2020-11-24 14:52:41 +00:00
|
|
|
if test "$PHP_THREAD_SAFETY" = "yes"; then
|
2018-01-19 23:53:22 +00:00
|
|
|
dnl The mm library is not thread-safe, and mod_mm.c refuses to compile.
|
2019-03-22 09:10:01 +00:00
|
|
|
AC_MSG_ERROR(--with-mm cannot be combined with --enable-zts)
|
2018-01-19 23:53:22 +00:00
|
|
|
fi
|
|
|
|
|
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)
|
2005-05-07 02:51:53 +00:00
|
|
|
PHP_INSTALL_HEADERS([ext/session/mod_mm.h])
|
2000-03-26 02:47:00 +00:00
|
|
|
AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm])
|
|
|
|
fi
|