-
Notifications
You must be signed in to change notification settings - Fork 136
/
config.m4
63 lines (56 loc) · 2.23 KB
/
config.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
dnl $Id$
dnl config.m4 for extension runkit
PHP_ARG_ENABLE(runkit, whether to enable runkit support,
[ --enable-runkit Enable runkit support], no, yes)
PHP_ARG_ENABLE(runkit-modify, wheter to enable runtime manipulation of functions/classes/constants,
[ --enable-runkit-modify Enable runtime manipulation], inherit, no)
PHP_ARG_ENABLE(runkit-super, whether to enable registration of user-defined autoglobals,
[ --enable-runkit-super Enable registration of user-defined autoglobals], inherit, no)
PHP_ARG_ENABLE(runkit-sandbox, whether to enable Sandbox support,
[ --enable-runkit-sandbox Enable Runkit_Sandbox (Requires ZTS)], inherit, no)
if test "$PHP_RUNKIT" != "no"; then
if test "$PHP_RUNKIT_MODIFY" = "inherit"; then
PHP_RUNKIT_MODIFY=yes
fi
if test "$PHP_RUNKIT_SUPER" = "inherit"; then
PHP_RUNKIT_SUPER=yes
fi
if test "$PHP_RUNKIT_SANDBOX" = "inherit"; then
PHP_RUNKIT_SANDBOX=yes
fi
else
if test "$PHP_RUNKIT_MODIFY" = "inherit"; then
PHP_RUNKIT_MODIFY=no
fi
if test "$PHP_RUNKIT_SUPER" = "inherit"; then
PHP_RUNKIT_SUPER=no
fi
if test "$PHP_RUNKIT_SANDBOX" = "inherit"; then
PHP_RUNKIT_SANDBOX=no
fi
fi
if test "$PHP_RUNKIT_MODIFY" = "yes" ||
test "$PHP_RUNKIT_SUPER" = "yes" ||
test "$PHP_RUNKIT_SANDBOX" = "yes"; then
if test "$PHP_RUNKIT" != "classkit"; then
PHP_RUNKIT=yes
fi
fi
if test "$PHP_RUNKIT" != "no"; then
if test "$PHP_RUNKIT" = "classkit"; then
AC_DEFINE(PHP_RUNKIT_CLASSKIT_COMPAT, 1, [Whether to export classkit compatable function aliases])
fi
if test "$PHP_RUNKIT_MODIFY" != "no"; then
AC_DEFINE(PHP_RUNKIT_FEATURE_MODIFY, 1, [Whether to export runtime modification features])
fi
if test "$PHP_RUNKIT_SUPER" != "no"; then
AC_DEFINE(PHP_RUNKIT_FEATURE_SUPER, 1, [Whether to export custom autoglobal registration feature])
fi
if test "$PHP_RUNKIT_SANDBOX" != "no"; then
AC_DEFINE(PHP_RUNKIT_FEATURE_SANDBOX, 1, [Whether to export Sandbox feature])
fi
PHP_NEW_EXTENSION(runkit, runkit.c runkit_functions.c runkit_methods.c \
runkit_constants.c runkit_import.c runkit_classes.c \
runkit_sandbox.c runkit_sandbox_parent.c runkit_props.c \
, $ext_shared,, -Wdeclaration-after-statement -Werror -Wall -Wno-deprecated-declarations)
fi