dnl $Id: config.m4,v 1.7 2006/06/05 00:45:13 pollita Exp $ dnl config.m4 for extension runkit PHP_ARG_ENABLE(runkit, whether to enable runkit support, [ --enable-runkit Enable runkit support]) PHP_ARG_ENABLE(runkit-modify, wheter to enable runtime manipulation of functions/classes/constants, [ --enable-runkit-modify Enable runtime manipulation], inherit) PHP_ARG_ENABLE(runkit-super, whether to enable registration of user-defined autoglobals, [ --enable-runkit-super Enable registration of user-defined autoglobals], inherit) PHP_ARG_ENABLE(runkit-sandbox, whether to enable Sandbox support, [ --enable-runkit-sandbox Enable Runkit_Sandbox (Requires ZTS)], inherit) 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 else PHP_RUNKIT=no 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) fi