forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New SAPI module for the WebJames server on RISC OS
@- New SAPI module for the WebJames server on RISC OS (Alex Waugh)
- Loading branch information
Alex Waugh
committed
Nov 5, 2001
1 parent
9284378
commit e06c1d7
Showing
7 changed files
with
431 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,11 @@ EXTENSION: thttpd | |
MAINTENANCE: Unknown | ||
STATUS: Unknown | ||
------------------------------------------------------------------------------- | ||
EXTENSION: webjames | ||
PRIMARY MAINTAINER: Alex Waugh <[email protected]> | ||
MAINTENANCE: Maintained | ||
STATUS: Experimental | ||
------------------------------------------------------------------------------- | ||
|
||
|
||
== Database extensions == | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
WebJames | ||
Alex Waugh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
LTLIBRARY_NAME = libsapi.la | ||
LTLIBRARY_SOURCES = webjames.c | ||
|
||
include $(top_srcdir)/build/ltlib.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
README for WebJames SAPI module | ||
by Alex Waugh <[email protected]> | ||
|
||
This is a SAPI module for the WebJames HTTP server, which runs on the | ||
RISC OS operating system. | ||
|
||
|
||
DOWNLOADS | ||
|
||
A recent (September 2001 or later) version of the GCCSDK cross compiler | ||
http://www.hard-mofo.dsvr.net/ | ||
|
||
WebJames 0.31 or later | ||
http://www.webjames.alexwaugh.com/ | ||
|
||
|
||
BUILDING | ||
|
||
$ cd webjames | ||
|
||
Edit Makefile if nessacery | ||
|
||
$ make setup | ||
$ cd ../php4 | ||
$ ./configure \ | ||
--host=arm-riscos-aof \ | ||
--with-webjames=../webjames \ | ||
--with-config-file-path=/Choices: \ | ||
other PHP options | ||
$ make install | ||
$ cd ../webjames | ||
$ make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
+----------------------------------------------------------------------+ | ||
| PHP version 4.0 | | ||
+----------------------------------------------------------------------+ | ||
| Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | | ||
+----------------------------------------------------------------------+ | ||
| This source file is subject to version 2.02 of the PHP license, | | ||
| that is bundled with this package in the file LICENSE, and is | | ||
| available at through the world-wide-web at | | ||
| http://www.php.net/license/2_02.txt. | | ||
| If you did not receive a copy of the PHP license and are unable to | | ||
| obtain it through the world-wide-web, please send a note to | | ||
| [email protected] so we can mail you a copy immediately. | | ||
+----------------------------------------------------------------------+ | ||
| Author: Alex Waugh <[email protected]> | | ||
+----------------------------------------------------------------------+ | ||
*/ | ||
|
||
#ifndef PHP_WEBJAMES_H | ||
#define PHP_WEBJAMES_H | ||
|
||
#include "webjames.h" | ||
|
||
void webjames_php_shutdown(void); | ||
int webjames_php_init(void); | ||
void webjames_php_request(struct connection *conn); | ||
|
||
#endif |
Oops, something went wrong.