summaryrefslogtreecommitdiff
path: root/sapi/pi3web
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2007-06-03 20:27:16 +0000
committerfoobar <sniper@php.net>2007-06-03 20:27:16 +0000
commit7bd41e0715c46bf63aae27a23d3fe3e7439a899a (patch)
tree733f9dbf1611de156c6b24a9bef15dff19e95fab /sapi/pi3web
parentfd2e66bd05022b023379de86577e3498fded0e96 (diff)
downloadphp-git-7bd41e0715c46bf63aae27a23d3fe3e7439a899a.tar.gz
MFH:- Fixed bug #41576 (misbehaviour when using --without-apxs)
Diffstat (limited to 'sapi/pi3web')
-rw-r--r--sapi/pi3web/config.m416
1 files changed, 9 insertions, 7 deletions
diff --git a/sapi/pi3web/config.m4 b/sapi/pi3web/config.m4
index ba6a166c16..83c212af46 100644
--- a/sapi/pi3web/config.m4
+++ b/sapi/pi3web/config.m4
@@ -4,15 +4,18 @@ dnl
RESULT=no
AC_MSG_CHECKING(for Pi3Web support)
-
AC_ARG_WITH(pi3web,
-[ --with-pi3web[=DIR] Build PHP as Pi3Web module],
-[
-if test "$withval" != "no"; then
- if test "$withval" = "yes"; then
+[ --with-pi3web[=DIR] Build PHP as Pi3Web module],[
+ PHP_PI3WEB=$withval
+], [
+ PHP_PI3WEB=no
+])
+
+if test "$PHP_PI3WEB" != "no"; then
+ if test "$PHP_PI3WEB" = "yes"; then
PI3PATH=../.. # the default
else
- PI3PATH=$withval
+ PI3PATH=$PHP_PI3WEB
fi
test -f "$PI3PATH/PiAPI/PiAPI.h" || AC_MSG_ERROR(Unable to find PiAPI.h in $PI3PATH/PiAPI)
PHP_BUILD_THREAD_SAFE
@@ -27,7 +30,6 @@ if test "$withval" != "no"; then
else
RESULT=no
fi
-])
AC_MSG_RESULT($RESULT)
dnl ## Local Variables: