cvs: /php4 configure.in /php4/sapi/aolserver config.m4 /php4/sapi/apache config.m4 /php4/sapi/cgi config.m4 /php4/sapi/isapi config.m4

From: Date: Thu, 07 Oct 1999 21:04:57 +0000
Subject: cvs: /php4 configure.in /php4/sapi/aolserver config.m4 /php4/sapi/apache config.m4 /php4/sapi/cgi config.m4 /php4/sapi/isapi config.m4
Groups: php.version4 
Request: Send a blank email to php-version4+get-5346@lists.php.net to get a copy of this message
sas Thu Oct 7 17:04:57 1999 EDT Modified files: /php4 configure.in /php4/sapi/aolserver config.m4 /php4/sapi/apache config.m4 /php4/sapi/cgi config.m4 /php4/sapi/isapi config.m4 Log: Remove SAPI_TARGET and use PHP_SAPI completely. The target filename is now available as SAPI_PROGRAM, SAPI_SHARED, and SAPI_STATIC. Index: php4/configure.in diff -u php4/configure.in:1.17 php4/configure.in:1.18 --- php4/configure.in:1.17 Thu Oct 7 12:47:53 1999 +++ php4/configure.in Thu Oct 7 17:04:20 1999 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.17 1999/10/07 16:47:53 sas Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.18 1999/10/07 21:04:20 sas Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(0) @@ -623,8 +623,11 @@ dnl ## This is the default server API. PHP_SAPI=cgi -SAPI_TARGET=php PHP_BUILD_PROGRAM +dnl paths to the targets relative to the build directory +SAPI_PROGRAM=php +SAPI_SHARED=libs/libphp4.so +SAPI_STATIC=libs/libphp4.a esyscmd(./scripts/config-stubs sapi) @@ -761,7 +764,7 @@ fi # Warn about CGI version with no extra security options. - if test "$SAPI_TARGET" = "php"; then + if test "$PHP_SAPI" = "cgi"; then if test "$REDIRECT" = "0"; then if test "$DISCARD_PATH" = "0"; then echo "+--------------------------------------------------------------------+" Index: php4/sapi/aolserver/config.m4 diff -u php4/sapi/aolserver/config.m4:1.3 php4/sapi/aolserver/config.m4:1.4 --- php4/sapi/aolserver/config.m4:1.3 Thu Oct 7 14:46:40 1999 +++ php4/sapi/aolserver/config.m4 Thu Oct 7 17:04:24 1999 @@ -1,4 +1,4 @@ -dnl ## $Id: config.m4,v 1.3 1999/10/07 18:46:40 sas Exp $ -*- sh -*- +dnl ## $Id: config.m4,v 1.4 1999/10/07 21:04:24 sas Exp $ -*- sh -*- RESULT=no AC_MSG_CHECKING(for AOLserver support) @@ -15,7 +15,7 @@ AC_DEFINE(HAVE_AOLSERVER) PHP_SAPI=aolserver PHP_BUILD_SHARED - INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 libs/libphp4.so $NS_DIR/root/bin/libphp4.so" + INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_SHARED $NS_DIR/root/bin/" RESULT=yes ]) AC_MSG_RESULT($RESULT) Index: php4/sapi/apache/config.m4 diff -u php4/sapi/apache/config.m4:1.7 php4/sapi/apache/config.m4:1.8 --- php4/sapi/apache/config.m4:1.7 Tue Oct 5 09:55:23 1999 +++ php4/sapi/apache/config.m4 Thu Oct 7 17:04:25 1999 @@ -17,8 +17,7 @@ AC_ADD_INCLUDE($APXS_INCLUDEDIR) PHP_EXTENSION(apache) PHP_SAPI=apache - SAPI_TARGET=libphp4.so - APACHE_INSTALL="$APXS -i -a -n php4 libs/libphp4.so" + APACHE_INSTALL="$APXS -i -a -n php4 $SAPI_SHARED" PHP_BUILD_SHARED STRONGHOLD= AC_DEFINE(APACHE) @@ -31,7 +30,7 @@ APACHE_INSTALL_FILES="\$(srcdir)/sapi/apache/mod_php4.* sapi/apache/libphp4.module" -if test "$SAPI_TARGET" != "libphp4.so"; then +if test "$PHP_SAPI" != "apache"; then AC_MSG_CHECKING(for Apache module support) AC_ARG_WITH(apache, [ --with-apache[=DIR] Build Apache module. DIR is the top-level Apache @@ -49,8 +48,7 @@ APACHE_INCLUDE=-I$withval/src APACHE_TARGET=$withval/src PHP_SAPI=apache - SAPI_TARGET=libphp4.a - APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_TARGET $APACHE_INSTALL_FILES $APACHE_TARGET" + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_INSTALL_FILES $APACHE_TARGET" PHP_LIBS="-L. -lphp3" AC_DEFINE(APACHE) AC_MSG_RESULT(yes - Apache 1.2.x) @@ -66,8 +64,7 @@ mkdir $APACHE_TARGET fi PHP_SAPI=apache - SAPI_TARGET=libs/libphp4.a - APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_TARGET $APACHE_TARGET/libmodphp4.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/apMakefile.libdir $APACHE_TARGET/Makefile.libdir" + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp4.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/apMakefile.libdir $APACHE_TARGET/Makefile.libdir" PHP_LIBS="-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4" AC_DEFINE(APACHE) AC_MSG_RESULT(yes - Apache 1.3.x) @@ -96,9 +93,8 @@ mkdir $APACHE_TARGET fi PHP_SAPI=apache - SAPI_TARGET=libs/libphp4.a PHP_LIBS="-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4" - APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_TARGET $APACHE_TARGET/libmodphp4.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/apMakefile.libdir $APACHE_TARGET/Makefile.libdir" + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp4.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET; cp $srcdir/apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp $srcdir/apMakefile.libdir $APACHE_TARGET/Makefile.libdir" AC_DEFINE(APACHE) AC_MSG_RESULT(yes - Apache 1.3.x) STRONGHOLD= @@ -120,9 +116,8 @@ APACHE_INCLUDE=-"I$withval/apache -I$withval/ssl/include" APACHE_TARGET=$withval/apache PHP_SAPI=apache - SAPI_TARGET=libs/libphp4.a PHP_LIBS="-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4" - APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_TARGET $APACHE_TARGET/libmodphp4.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET" + APACHE_INSTALL="mkdir -p $APACHE_TARGET; cp $SAPI_STATIC $APACHE_TARGET/libmodphp4.a; cp $APACHE_INSTALL_FILES $APACHE_TARGET" STRONGHOLD=-DSTRONGHOLD=1 AC_DEFINE(APACHE) AC_MSG_RESULT(yes - StrongHold) Index: php4/sapi/cgi/config.m4 diff -u php4/sapi/cgi/config.m4:1.1 php4/sapi/cgi/config.m4:1.2 --- php4/sapi/cgi/config.m4:1.1 Mon Sep 27 12:34:28 1999 +++ php4/sapi/cgi/config.m4 Thu Oct 7 17:04:26 1999 @@ -1,5 +1,5 @@ -if test "$SAPI_TARGET" = "php"; then +if test "$PHP_SAPI" = "cgi"; then AC_MSG_CHECKING(whether to force Apache CGI redirect) AC_ARG_ENABLE(force-cgi-redirect, [ --enable-force-cgi-redirect @@ -45,8 +45,8 @@ ]) fi -if test "$SAPI_TARGET" = "php" ; then - INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_TARGET \$(bindir)/$SAPI_TARGET" +if test "$PHP_SAPI" = "cgi" ; then + INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $SAPI_PROGRAM \$(bindir)/$SAPI_CGI" fi AC_MSG_CHECKING(for fhttpd module support) @@ -54,28 +54,29 @@ [ --with-fhttpd[=DIR] Build fhttpd module. DIR is the fhttpd sources directory, defaults to /usr/local/src/fhttpd.], [ - if test "$withval" = "yes"; then - # fhttpd source directory - withval=/usr/local/src/fhttpd - fi - if test "$withval" != "no"; then + if test "$withval" = "yes"; then + # fhttpd source directory + withval=/usr/local/src/fhttpd + fi + if test "$withval" != "no"; then # For fhttpd 0.3.x - if test -f $withval/servproc.h; then - FHTTPD_INCLUDE=-I$withval/ - FHTTPD_LIB=$withval/servproc.o - FHTTPD_TARGET=$withval/ - SAPI_TARGET=php - AC_DEFINE(FHTTPD) - AC_MSG_RESULT(yes - fhttpd 0.3.x) - else - AC_MSG_RESULT(no) - AC_MSG_ERROR(Invalid fhttpd directory - unable to find servproc.h under $withval) - fi - else - AC_MSG_RESULT(no) - fi + if test -f $withval/servproc.h; then + FHTTPD_INCLUDE=-I$withval/ + FHTTPD_LIB=$withval/servproc.o + FHTTPD_TARGET=$withval/ + PHP_BUILD_STATIC + PHP_SAPI=cgi + AC_DEFINE(FHTTPD) + AC_MSG_RESULT(yes - fhttpd 0.3.x) + else + AC_MSG_RESULT(no) + AC_MSG_ERROR(Invalid fhttpd directory - unable to find servproc.h under $withval) + fi + else + AC_MSG_RESULT(no) + fi ],[ - AC_MSG_RESULT(no) + AC_MSG_RESULT(no) ]) INCLUDES="$INCLUDES $FHTTPD_INCLUDE" dnl## AC_SUBST(FHTTPD_INCLUDE) Index: php4/sapi/isapi/config.m4 diff -u php4/sapi/isapi/config.m4:1.3 php4/sapi/isapi/config.m4:1.4 --- php4/sapi/isapi/config.m4:1.3 Tue Sep 28 08:55:49 1999 +++ php4/sapi/isapi/config.m4 Thu Oct 7 17:04:26 1999 @@ -1,4 +1,4 @@ -dnl ## $Id: config.m4,v 1.3 1999/09/28 12:55:49 ssb Exp $ -*- sh -*- +dnl ## $Id: config.m4,v 1.4 1999/10/07 21:04:26 sas Exp $ -*- sh -*- dnl AC_MSG_CHECKING(for Zeus ISAPI support) dnl AC_ARG_WITH(zeus, @@ -18,7 +18,7 @@ dnl AC_DEFINE(WITH_ZEUS) dnl AC_ADD_INCLUDE($zeuspath/web/include) dnl PHP_SAPI=isapi -dnl SAPI_TARGET=php4isapi.so +dnl PHP_BUILD_SHARED dnl else dnl AC_MSG_RESULT(no) dnl fi

« previous php.version4 (#5346) next »