summaryrefslogtreecommitdiff
path: root/sapi/webjames
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/webjames
parentfd2e66bd05022b023379de86577e3498fded0e96 (diff)
downloadphp-git-7bd41e0715c46bf63aae27a23d3fe3e7439a899a.tar.gz
MFH:- Fixed bug #41576 (misbehaviour when using --without-apxs)
Diffstat (limited to 'sapi/webjames')
-rw-r--r--sapi/webjames/config.m424
1 files changed, 14 insertions, 10 deletions
diff --git a/sapi/webjames/config.m4 b/sapi/webjames/config.m4
index 10e0001680..9e406fc057 100644
--- a/sapi/webjames/config.m4
+++ b/sapi/webjames/config.m4
@@ -4,17 +4,21 @@ dnl
AC_ARG_WITH(webjames,
[ --with-webjames=SRCDIR Build PHP as a WebJames module (RISC OS only)],[
- PHP_EXPAND_PATH($withval, WEBJAMES)
- INSTALL_IT="\
- echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $WEBJAMES/build/php; \
- echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $WEBJAMES/build/php; \
- echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $WEBJAMES/build/php;"
- PHP_WEBJAMES="yes, using $WEBJAMES"
- PHP_ADD_INCLUDE($WEBJAMES)
- PHP_SELECT_SAPI(webjames, static, webjames.c)
+ PHP_WEBJAMES=$withval
],[
- PHP_WEBJAMES="no"
+ PHP_WEBJAMES=no
])
AC_MSG_CHECKING(for webjames)
-AC_MSG_RESULT($PHP_WEBJAMES)
+if test "$PHP_WEBJAMES" != "no"; then
+ PHP_EXPAND_PATH($PHP_WEBJAMES, PHP_WEBJAMES)
+ INSTALL_IT="\
+ echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $PHP_WEBJAMES/build/php; \
+ echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $PHP_WEBJAMES/build/php; \
+ echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $PHP_WEBJAMES/build/php;"
+ PHP_ADD_INCLUDE($PHP_WEBJAMES)
+ PHP_SELECT_SAPI(webjames, static, webjames.c)
+ AC_MSG_RESULT([yes, using $PHP_WEBJAMES])
+else
+ AC_MSG_RESULT(no)
+fi