sniper Fri Oct 11 23:10:04 2002 EDT
Modified files:
/php4/sapi/pi3web config.m4
Log:
Use AC_ARG_WITH instead of PHP_ARG_WITH.
Index: php4/sapi/pi3web/config.m4
diff -u php4/sapi/pi3web/config.m4:1.7 php4/sapi/pi3web/config.m4:1.8
--- php4/sapi/pi3web/config.m4:1.7 Wed Sep 4 14:47:26 2002
+++ php4/sapi/pi3web/config.m4 Fri Oct 11 23:10:04 2002
@@ -1,15 +1,18 @@
dnl
-dnl $Id: config.m4,v 1.7 2002/09/04 18:47:26 sniper Exp $
+dnl $Id: config.m4,v 1.8 2002/10/12 03:10:04 sniper Exp $
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 @@
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
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php