cvs: php4 / acinclude.m4
| From: | Hartmut Holzgraefe | Date: | Fri, 04 Jan 2002 12:26:28 +0000 |
| Subject: | cvs: php4 / acinclude.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8928@lists.php.net to get a copy of this message | ||
hholzgra Fri Jan 4 07:26:28 2002 EDT
Modified files:
/php4 acinclude.m4
Log:
two new check functions for use in config.m4 file
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.145 php4/acinclude.m4:1.146
--- php4/acinclude.m4:1.145 Thu Jan 3 15:30:07 2002
+++ php4/acinclude.m4 Fri Jan 4 07:26:27 2002
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.145 2002/01/03 20:30:07 hholzgra Exp $
+dnl $Id: acinclude.m4,v 1.146 2002/01/04 12:26:27 hholzgra Exp $
dnl
dnl This file contains local autoconf functions.
@@ -1154,3 +1154,18 @@
])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
+])