summaryrefslogtreecommitdiff
path: root/sapi/webjames/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/webjames/config.m4')
-rw-r--r--sapi/webjames/config.m420
1 files changed, 20 insertions, 0 deletions
diff --git a/sapi/webjames/config.m4 b/sapi/webjames/config.m4
new file mode 100644
index 0000000000..1c8750ad0f
--- /dev/null
+++ b/sapi/webjames/config.m4
@@ -0,0 +1,20 @@
+AC_ARG_WITH(webjames,
+[ --with-webjames=SRCDIR Build PHP as a WebJames module (RISC OS only)],[
+ PHP_EXPAND_PATH($withval, WEBJAMES)
+ INSTALL_IT="\
+ echo '\\#Created by PHP configure' > $WEBJAMES/build/php; \
+ 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) \$(CFLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $WEBJAMES/build/php; \
+ echo 'WIMPSLOT = \$\$(WIMPSLOT_PHP)' >> $WEBJAMES/build/php; \
+ echo 'REMOVE_ATTRIBUTE=Action php-script.*' >> $WEBJAMES/build/php;"
+ PHP_WEBJAMES="yes, using $WEBJAMES"
+ PHP_ADD_INCLUDE($WEBJAMES)
+ PHP_BUILD_STATIC
+ PHP_SAPI=webjames
+],[
+ PHP_WEBJAMES="no"
+])
+
+AC_MSG_CHECKING(for webjames)
+AC_MSG_RESULT($PHP_WEBJAMES)