diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2002-01-04 12:26:27 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2002-01-04 12:26:27 +0000 |
commit | 48cba31e58a8507c275d749af6ade54fbac9cce4 (patch) | |
tree | e0b8c2656ac4802a96b78bfebc63e66e4044108d /acinclude.m4 | |
parent | aaa2d1f2e067e2f342873bd0dcb1a00e5a2251cc (diff) | |
download | php-git-48cba31e58a8507c275d749af6ade54fbac9cce4.tar.gz |
two new check functions for use in config.m4 file
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 7fb579d1b8..014478e5cb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1154,3 +1154,18 @@ AC_DEFUN(PHP_CHECK_LIBRARY, [ ])dnl ]) + + +dnl +AC_DEFUN(PHP_CHECK_INTERACTIVE, [ + if test "$PHP_SAPI" != "cgi"; then + AC_MSG_ERROR([$1 extension can only be used with CGI build!]) + fi +]) + +dnl +AC_DEFUN(PHP_CHECK_STANDALONE, [ + if test "$PHP_SAPI" != "cgi"; then + AC_MSG_ERROR([$1 extension may affect webserver operation internals, so it can only be used with CGI build!]) + fi +]) |