Added Pi3Web support

This commit is contained in:
Holger Zimmermann 2000-06-17 12:06:09 +00:00
parent d3d350e7ce
commit da132274a4
4 changed files with 83 additions and 0 deletions

5
sapi/pi3web/Makefile.in Normal file
View File

@ -0,0 +1,5 @@
LTLIBRARY_NAME = libsapi.la
LTLIBRARY_SOURCES = pi3web_sapi.c
include $(top_srcdir)/build/ltlib.mk

50
sapi/pi3web/README Normal file
View File

@ -0,0 +1,50 @@
PHP4 Module
==========
This module requires PHP4 as thread safe shared library. Have a look
into the INSTALL file which accompanies that distribution.
If you distribute this software bundled with the PHP software in source
or binary form, then you must adhere to the PHP copyright conditions -
the terms are reasonable.
You should have checked out and built the PHP4 source package from the
PHP CVS tree into the Pi3Web source directory called 'PHP4' first. Then
build PHP4 as Pi3Web module and after that build the Pi3Web PHP4 wrapper:
1. Checkout PHP4
================
cvs -d :pserver:cvsread@cvs.php.net:/repository login
The required password is phpfi
cvs -z3 -d :pserver:cvsread@cvs.php.net:/repository co php4
You must also checkout the TSRM and the ZEND module from the ZEND cvs tree
into the PHP4 root directory
cvs -d :pserver:cvsread@cvs.zend.com:/repository login
The required password is zend
cvs -z3 -d :pserver:cvsread@cvs.zend.com:/repository co Zend TSRM
2. Build PHP4
=============
2.1 POSIX
---------
cd ./php4
./buildconf
./configure --with-pi3web
make
2.2 Win32
---------
other required downloads from the php website
- bison 1.25
- bindlib32
- number4.tar.gz
nmake php4dllts.mak
3. Build Pi3Web PHP4 wrapper
============================
Run make in the Pi3Web /Source/PHP4 directory.
For further information refer to http://www.php.net/version4/

28
sapi/pi3web/config.m4 Normal file
View File

@ -0,0 +1,28 @@
RESULT=no
AC_MSG_CHECKING(for Pi3Web Support)
AC_ARG_WITH(pi3web,
[ --with-pi3web=DIR Build PHP as an module for use with Pi3Web.],
[
if test "$withval" = "yes"; then
PI3PATH=../.. # the default
else
PI3PATH=$withval
fi
pwd
test -f "$PI3PATH/PiAPI/PiAPI.h" || AC_MSG_ERROR(Unable to find PiAPI.h in $PI3PATH/PiAPI)
PHP_BUILD_THREAD_SAFE
AC_DEFINE(WITH_PI3WEB,1,[ ])
AC_ADD_INCLUDE($PI3PATH/PiAPI)
AC_ADD_INCLUDE($PI3PATH/Pi2API)
AC_ADD_INCLUDE($PI3PATH/Pi3API)
AC_ADD_INCLUDE($PI3PATH/PHP4)
PHP_SAPI=pi3web
PHP_BUILD_SHARED
INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED $PI3PATH/bin/"
RESULT=yes
])
AC_MSG_RESULT($RESULT)
dnl ## Local Variables:
dnl ## tab-width: 4
dnl ## End:

0
sapi/pi3web/php.sym Normal file
View File