summaryrefslogtreecommitdiff
path: root/sapi/pi3web
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-10-12 03:10:04 +0000
committerfoobar <sniper@php.net>2002-10-12 03:10:04 +0000
commit534ad6f38f1e06551bccc407d991fd78b7209a20 (patch)
tree4ec12e32d6df2bba89180e0bfa23cc27eb93b89b /sapi/pi3web
parent4308a399b97d5e060ec099a9636d1f3639b8430e (diff)
downloadphp-git-534ad6f38f1e06551bccc407d991fd78b7209a20.tar.gz
Use AC_ARG_WITH instead of PHP_ARG_WITH.
Diffstat (limited to 'sapi/pi3web')
-rw-r--r--sapi/pi3web/config.m418
1 files changed, 13 insertions, 5 deletions
diff --git a/sapi/pi3web/config.m4 b/sapi/pi3web/config.m4
index 49a25439fa..5b1ec78140 100644
--- a/sapi/pi3web/config.m4
+++ b/sapi/pi3web/config.m4
@@ -2,14 +2,17 @@ dnl
dnl $Id$
dnl
-PHP_ARG_WITH(pi3web,for Pi3Web Support,
-[ --with-pi3web=DIR Build PHP as a module for use with Pi3Web.], no, no)
+RESULT=no
+AC_MSG_CHECKING(for Pi3Web support)
-if test "$PHP_PI3WEB" != "no"; then
- if test "$PHP_PI3WEB" = "yes"; then
+AC_ARG_WITH(pi3web,
+[ --with-pi3web=DIR Build PHP as Pi3Web module],
+[
+if test "$withval" != "no"; then
+ if test "$withval" = "yes"; then
PI3PATH=../.. # the default
else
- PI3PATH=$PHP_PI3WEB
+ PI3PATH=$withval
fi
test -f "$PI3PATH/PiAPI/PiAPI.h" || AC_MSG_ERROR(Unable to find PiAPI.h in $PI3PATH/PiAPI)
PHP_BUILD_THREAD_SAFE
@@ -20,7 +23,12 @@ if test "$PHP_PI3WEB" != "no"; then
PHP_ADD_INCLUDE($PI3PATH/PHP4)
PHP_SELECT_SAPI(pi3web, shared, pi3web_sapi.c)
INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)$PI3PATH/bin/"
+ RESULT=yes
+else
+ RESULT=no
fi
+])
+AC_MSG_RESULT($RESULT)
dnl ## Local Variables:
dnl ## tab-width: 4