cvs: /php4 configure.in.in acinclude.m4 libphp4.module.in
| From: | Sascha Schumann | Date: | Tue, 20 Jul 1999 12:54:05 +0000 |
| Subject: | cvs: /php4 configure.in.in acinclude.m4 libphp4.module.in | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-2304@lists.php.net to get a copy of this message | ||
sas Tue Jul 20 12:54:05 1999 EDT
Modified files:
/php4 configure.in.in acinclude.m4 libphp4.module.in
Log:
get rid of --with-shared-apache
it's currently broken and redundant (use APXS instead)
Index: php4/configure.in.in
diff -u php4/configure.in.in:1.53 php4/configure.in.in:1.54
--- php4/configure.in.in:1.53 Sat Jul 17 12:43:11 1999
+++ php4/configure.in.in Tue Jul 20 12:54:05 1999
@@ -1,4 +1,4 @@
-dnl $Id: configure.in.in,v 1.53 1999/07/17 16:43:11 zeev Exp $ -*- sh -*-
+dnl $Id: configure.in.in,v 1.54 1999/07/20 16:54:05 sas Exp $ -*- sh -*-
dnl Process this file with autoconf to produce a configure script.
@@ -16,6 +16,13 @@
esac
done
+if test "$with_shared_apache" != "no" ; then
+ echo ""
+ echo "ERROR: --with-shared-apache is not supported."
+ echo " Please read INSTALL.DSO for instructions on using APXS."
+ exit 1
+fi
+
if test "$recurse" = "yes"; then
cwd=
pwd
(set -x; test -d libzend || mkdir libzend ; cd libzend; $cwd/$srcdir/libzend/configure
--cache-file=$cwd/config.cache $@)
@@ -365,64 +372,6 @@
APACHE_INSTALL_FILES="$srcdir/mod_php4.* libphp4.module"
-AC_MSG_CHECKING(for Apache module support via DSO through APACI)
-AC_ARG_WITH(shared-apache,
-[ --with-shared-apache[=DIR] Build shared Apache module. DIR is the top-level
- Apache build directory, defaults to /usr/local/etc/httpd.
- (This option needs Perl installed)],
-[
- if test "$withval" = "yes"; then
- # Apache's default directory
- withval=/usr/local/etc/httpd
- fi
- if test "$withval" != "no"; then
- rpath_raw=yes
- if test -f $withval/src/include/httpd.h; then
- AC_EXPAND_PATH($withval, withval)
- APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
- APACHE_TARGET=$withval/src/modules/php4
- if test ! -d $APACHE_TARGET; then
- mkdir $APACHE_TARGET
- fi
- CFLAGS_SHLIB=perl -V:cccdlflags | cut -d\' -f2
- LDFLAGS_SHLIB=perl -V:lddlflags | cut -d\' -f2
- LDFLAGS_SHLIB_EXPORT=perl -V:ccdlflags | cut -d\' -f2
- PHP_LIBS=
- BINNAME=libmodphp4-so.a
- INSTALL_IT="mkdir -p $APACHE_TARGET; cp $BINNAME $APACHE_INSTALL_FILES $APACHE_TARGET; cp
apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp apMakefile.libdir
$APACHE_TARGET/Makefile.libdir"
- AC_DEFINE(APACHE)
- AC_MSG_RESULT(yes - Shared Apache 1.3.x)
- STRONGHOLD=
- if test -f $withval/src/include/ap_config.h; then
- AC_DEFINE(HAVE_AP_CONFIG_H)
- fi
- if test -f $withval/src/include/ap_compat.h; then
- AC_DEFINE(HAVE_AP_COMPAT_H)
- if test ! -f $withval/src/include/ap_config_auto.h; then
- AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and try again)
- fi
- else
- if test -f $withval/src/include/compat.h; then
- AC_DEFINE(HAVE_OLD_COMPAT_H)
- fi
- fi
- else
- AC_MSG_RESULT(no)
- AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under $withval/src/include)
- fi
- fi
- INCLUDES="$INCLUDES $APACHE_INCLUDE"
- AC_SUBST(APACHE_INCLUDE)
- AC_SUBST(APACHE_TARGET)
- AC_SUBST(INSTALL_IT)
- AC_SUBST(BINNAME)
- AC_SUBST(PHP_LIBS)
-],[
- AC_MSG_RESULT(no)
-])
-
-
-
if test "$BINNAME" != "libmodphp4-so.a"; then
if test "$BINNAME" != "libphp4.so"; then
AC_MSG_CHECKING(for Apache module support)
@@ -916,6 +865,7 @@
AC_SUBST(LDFLAGS_SHLIB)
AC_SUBST(LDFLAGS_SHLIB_EXPORT)
AC_SUBST(RPATHS)
+AC_SUBST(RAW_RPATHS)
PHP_BUILD_DATE=date '+%Y-%m-%d'
AC_SUBST(PHP_BUILD_DATE)
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.18 php4/acinclude.m4:1.19
--- php4/acinclude.m4:1.18 Fri Jul 16 14:00:06 1999
+++ php4/acinclude.m4 Tue Jul 20 12:54:05 1999
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.18 1999/07/16 18:00:06 sas Exp $
+dnl $Id: acinclude.m4,v 1.19 1999/07/20 16:54:05 sas Exp $
dnl
dnl This file contains local autoconf functions.
@@ -38,9 +38,8 @@
AC_EXPAND_PATH($1, ai_p)
AC_PHP_ONCE(LIBPATH, $ai_p, [
EXTRA_LIBS="$EXTRA_LIBS -L$ai_p"
- if test -n "$rpath_raw" ; then
- RPATHS="$RPATHS ${raw_runpath_switch}$ai_p"
- elif test -n "$APXS" ; then
+ RAW_RPATHS="$RAW_RPATHS ${raw_runpath_switch}$ai_p"
+ if test -n "$APXS" ; then
RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'"
else
RPATHS="$RPATHS ${ld_runpath_switch}$ai_p"
Index: php4/libphp4.module.in
diff -u php4/libphp4.module.in:1.3 php4/libphp4.module.in:1.4
--- php4/libphp4.module.in:1.3 Sun Jul 11 06:51:41 1999
+++ php4/libphp4.module.in Tue Jul 20 12:54:05 1999
@@ -1,8 +1,8 @@
Name: php4_module
ConfigStart
RULE_WANTHSREGEX=@HSREGEX@
- LDFLAGS_SHLIB="@RPATHS@ $LDFLAGS_SHLIB"
- LIBS="@PHP_LIBS@ @EXTRA_LIBS@ @LIBS@ @RDYNAMIC_LFLAGS@ $LIBS"
+ LDFLAGS_SHLIB="@RAW_RPATHS@ $LDFLAGS_SHLIB"
+ LIBS="@RPATHS@ @PHP_LIBS@ @EXTRA_LIBS@ @LIBS@ @RDYNAMIC_LFLAGS@ $LIBS"
RULE_HIDE=yes
CFLAGS="$CFLAGS -I@abs_srcdir@ -I@abs_srcdir@/libzend -I@abs_builddir@/libzend
-I@abs_builddir@"
ConfigEnd