Changeset 982 for trunk/config.m4
- Timestamp:
- 2012-07-17T10:35:45+02:00 (10 months ago)
- File:
-
- 1 edited
-
trunk/config.m4 (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config.m4
r842 r982 1 1 dnl vim:ts=2:sw=2:expandtab 2 2 3 AC_DEFUN([XCACHE_ OPTION], [3 AC_DEFUN([XCACHE_MODULE], [ 4 4 PHP_ARG_ENABLE(xcache-$1, for XCache $1, 5 5 [ --enable-xcache-$2 XCache: $4], no, no) 6 6 if test "$PHP_$3" != "no"; then 7 xcache_sources="$xcache_sources $1.c"7 xcache_sources="$xcache_sources submodules/xc_$1.c" 8 8 XCACHE_MODULES="$XCACHE_MODULES $1" 9 9 HAVE_$3=1 … … 18 18 19 19 if test "$PHP_XCACHE" != "no"; then 20 PHP_ARG_ENABLE(xcache-constant, for XCache handle of compile time constant,20 PHP_ARG_ENABLE(xcache-constant, for XCache handle of compile time constant, 21 21 [ --enable-xcache-constant XCache: Handle new constants made by php compiler (e.g.: for __halt_compiler)], yes, no) 22 if test "$PHP_XCACHE_CONSTANT" != "no"; then23 AC_DEFINE([HAVE_XCACHE_CONSTANT], 1, [Define to enable XCache handling of compile time constants])24 fi22 if test "$PHP_XCACHE_CONSTANT" != "no"; then 23 AC_DEFINE([HAVE_XCACHE_CONSTANT], 1, [Define to enable XCache handling of compile time constants]) 24 fi 25 25 26 xcache_sources="processor.c \ 26 xcache_sources=" 27 main/xc_const_string.c \ 28 main/xc_lock.c \ 29 main/xc_mem.c \ 30 main/xc_opcode_spec.c \ 31 main/xc_processor.c \ 32 main/xc_shm.c \ 33 main/xc_shm_mmap.c \ 34 main/xc_utils.c \ 35 util/xc_stack.c \ 27 36 xcache.c \ 28 mmap.c \29 mem.c \30 xc_shm.c \31 const_string.c \32 opcode_spec.c \33 stack.c \34 utils.c \35 lock.c \36 37 " 37 38 XCACHE_MODULES="cacher" 38 XCACHE_ OPTION([optimizer], [optimizer ], [XCACHE_OPTIMIZER], [(N/A)])39 XCACHE_ OPTION([coverager], [coverager ], [XCACHE_COVERAGER], [Enable code coverage dumper, useful for testing php scripts])40 XCACHE_ OPTION([assembler], [assembler ], [XCACHE_ASSEMBLER], [(N/A)])41 XCACHE_ OPTION([disassembler], [disassembler], [XCACHE_DISASSEMBLER], [Enable opcode to php variable dumper, NOT for production server])42 XCACHE_ OPTION([encoder], [encoder ], [XCACHE_ENCODER], [(N/A)])43 XCACHE_ OPTION([decoder], [decoder ], [XCACHE_DECODER], [(N/A)])39 XCACHE_MODULE([optimizer], [optimizer ], [XCACHE_OPTIMIZER], [(N/A)]) 40 XCACHE_MODULE([coverager], [coverager ], [XCACHE_COVERAGER], [Enable code coverage dumper, useful for testing php scripts]) 41 XCACHE_MODULE([assembler], [assembler ], [XCACHE_ASSEMBLER], [(N/A)]) 42 XCACHE_MODULE([disassembler], [disassembler], [XCACHE_DISASSEMBLER], [Enable opcode to php variable dumper, NOT for production server]) 43 XCACHE_MODULE([encoder], [encoder ], [XCACHE_ENCODER], [(N/A)]) 44 XCACHE_MODULE([decoder], [decoder ], [XCACHE_DECODER], [(N/A)]) 44 45 AC_DEFINE_UNQUOTED([XCACHE_MODULES], "$XCACHE_MODULES", [Define what modules is built with XCache]) 45 46 … … 48 49 if test "$PHP_XCACHE_TEST" != "no"; then 49 50 XCACHE_ENABLE_TEST=-DXCACHE_ENABLE_TEST 50 xcache_sources="$xcache_sources xc_malloc.c"51 xcache_sources="$xcache_sources main/xc_malloc.c" 51 52 AC_DEFINE([HAVE_XCACHE_TEST], 1, [Define to enable XCache self test]) 52 53 else … … 116 117 XCACHE_PROC_SOURCES=`ls $ac_srcdir/processor/*.m4` 117 118 PHP_SUBST([XCACHE_PROC_SOURCES]) 118 119 AC_MSG_CHECKING(if you have opcode_spec_def.h for XCache)120 if test -e "$ac_srcdir/opcode_spec_def.h" ; then121 AC_DEFINE([HAVE_XCACHE_OPCODE_SPEC_DEF], 1, [Define if you have opcode_spec_def.h for XCache])122 AC_MSG_RESULT(yes)123 else124 dnl check for features depend on opcode_spec_def.h125 AC_MSG_RESULT(no)126 define([ERROR], [127 AC_MSG_ERROR([cannot build with $1, $ac_srcdir/opcode_spec_def.h required])128 ])129 if test "$PHP_XCACHE_DISASSEMBLER" != "no" ; then130 ERROR(disassembler)131 fi132 undefine([ERROR])133 fi134 119 fi
Note: See TracChangeset
for help on using the changeset viewer.

