diff options
author | Sascha Schumann <sas@php.net> | 1999-07-20 16:54:05 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-07-20 16:54:05 +0000 |
commit | 07e30106b9c3bfd8d451be5a4403cb7d3fc2fcd8 (patch) | |
tree | 2eddce4f8d108d9e45e99b2a4d7347c6ff454a90 | |
parent | bf8c6dbd993c4d3bd9fbaf36b3ed068b28d25027 (diff) | |
download | php-git-07e30106b9c3bfd8d451be5a4403cb7d3fc2fcd8.tar.gz |
get rid of --with-shared-apache
it's currently broken and redundant (use APXS instead)
-rw-r--r-- | acinclude.m4 | 5 | ||||
-rw-r--r-- | configure.in.in | 66 | ||||
-rw-r--r-- | libphp4.module.in | 4 |
3 files changed, 12 insertions, 63 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 7d728a7cef..ac84188d5f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -38,9 +38,8 @@ AC_DEFUN(AC_ADD_LIBPATH,[ 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" diff --git a/configure.in.in b/configure.in.in index 1369c8783a..a392a45d77 100644 --- a/configure.in.in +++ b/configure.in.in @@ -16,6 +16,13 @@ for arg in $@; do 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 @@ AC_ARG_WITH(apxs, 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(CFLAGS_SHLIB) 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) diff --git a/libphp4.module.in b/libphp4.module.in index cdc3c75677..8735976fbf 100644 --- a/libphp4.module.in +++ b/libphp4.module.in @@ -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 |