From: Hartmut Holzgraefe Date: Fri, 4 Jan 2002 12:26:27 +0000 (+0000) Subject: two new check functions for use in config.m4 file X-Git-Tag: PRE_ISSET_PATCH~309 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48cba31e58a8507c275d749af6ade54fbac9cce4;p=php two new check functions for use in config.m4 file --- 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 +])