config.m4 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. dnl
  2. dnl $Id$
  3. dnl
  4. PHP_ARG_ENABLE(session, whether to enable PHP sessions,
  5. [ --disable-session Disable session support], yes)
  6. PHP_ARG_WITH(mm,for mm support,
  7. [ --with-mm[=DIR] SESSION: Include mm support for session storage], no, no)
  8. if test "$PHP_SESSION" != "no"; then
  9. PHP_PWRITE_TEST
  10. PHP_PREAD_TEST
  11. PHP_NEW_EXTENSION(session, mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c, $ext_shared)
  12. PHP_ADD_EXTENSION_DEP(session, hash, true)
  13. PHP_ADD_EXTENSION_DEP(session, spl)
  14. PHP_SUBST(SESSION_SHARED_LIBADD)
  15. PHP_INSTALL_HEADERS(ext/session, [php_session.h mod_files.h mod_user.h])
  16. AC_DEFINE(HAVE_PHP_SESSION,1,[ ])
  17. fi
  18. if test "$PHP_MM" != "no"; then
  19. for i in $PHP_MM /usr/local /usr; do
  20. test -f "$i/include/mm.h" && MM_DIR=$i && break
  21. done
  22. if test -z "$MM_DIR" ; then
  23. AC_MSG_ERROR(cannot find mm library)
  24. fi
  25. PHP_ADD_LIBRARY_WITH_PATH(mm, $MM_DIR/$PHP_LIBDIR, SESSION_SHARED_LIBADD)
  26. PHP_ADD_INCLUDE($MM_DIR/include)
  27. PHP_INSTALL_HEADERS([ext/session/mod_mm.h])
  28. AC_DEFINE(HAVE_LIBMM, 1, [Whether you have libmm])
  29. fi