source: trunk/config.m4 @ 1

Last change on this file since 1 was 1, checked in by moo, 8 years ago

initial import to online

File size: 2.0 KB
RevLine 
[1]1dnl
2dnl $Id:$
3dnl vim:ts=2:sw=2:expandtab
4
5AC_DEFUN([XCACHE_OPTION], [
6  PHP_ARG_ENABLE(xcache-$1, for XCACHE $1,
7  [  --enable-xcache-$2    XCACHE: $4], no, no)
8  if test "$PHP_$3" = "yes"; then
9    xcache_sources="$xcache_sources $1.c"
10    AC_DEFINE([HAVE_$3], 1, [Define for XCACHE: $4])
11  fi
12])dnl
13
14PHP_ARG_ENABLE(xcache, for XCACHE support,
15[  --enable-xcache         Include XCACHE support.])
16
17if test "$PHP_XCACHE" != "no"; then
18  xcache_sources="processor.c \
19                  xcache.c \
20                  mmap.c \
21                  mem.c \
22                  const_string.c \
23                  opcode_spec.c \
24                  stack.c \
25                  utils.c \
26                  lock.c \
27                  "
28  XCACHE_OPTION([optimizer],    [optimizer   ], [XCACHE_OPTIMIZER],    [(N/A)])
29  XCACHE_OPTION([coverage],     [coverage    ], [XCACHE_COVERAGE],     [Enable code coverage dumper, NOT for production server])
30  XCACHE_OPTION([assembler],    [assembler   ], [XCACHE_ASSEMBLER],    [(N/A)])
31  XCACHE_OPTION([disassembler], [disassembler], [XCACHE_DISASSEMBLER], [Enable opcode to php variable dumper, NOT for production server])
32  XCACHE_OPTION([encoder],      [encoder     ], [XCACHE_ENCODER],      [(N/A)])
33  XCACHE_OPTION([decoder],      [decoder     ], [XCACHE_DECODER],      [(N/A)])
34
35  PHP_NEW_EXTENSION(xcache, $xcache_sources, $ext_shared)
36  PHP_ADD_MAKEFILE_FRAGMENT()
37
38  PHP_ARG_ENABLE(xcache-test, for XCACHE self test,
39  [  --enable-xcache-test            XCACHE: Enable self test - FOR DEVELOPERS ONLY!!], no, no)
40  if test "$PHP_XCACHE_TEST" = "yes"; then
41    XCACHE_ENABLE_TEST=-DXCACHE_ENABLE_TEST
42    AC_DEFINE([HAVE_XCACHE_TEST], 1, [Define to enable XCACHE self test])
43  else
44    XCACHE_ENABLE_TEST=
45  fi
46  PHP_SUBST([XCACHE_ENABLE_TEST])
47
48  AC_PATH_PROGS(INDENT, [indent cat])
49  case $INDENT in
50  */indent[)]
51    XCACHE_INDENT="$INDENT -kr --use-tabs --tab-size 4 -sob -nce"
52    ;;
53  *[)]
54    XCACHE_INDENT=cat
55    ;;
56  esac
57  PHP_SUBST([XCACHE_INDENT])
58
59  XCACHE_PROC_SOURCES=`ls $ac_srcdir/processor/*.m4`
60  PHP_SUBST([XCACHE_PROC_SOURCES])
61fi
Note: See TracBrowser for help on using the repository browser.