File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / config.m4
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:42 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>