]> granicus.if.org Git - php/commitdiff
get rid of --with-shared-apache
authorSascha Schumann <sas@php.net>
Tue, 20 Jul 1999 16:54:05 +0000 (16:54 +0000)
committerSascha Schumann <sas@php.net>
Tue, 20 Jul 1999 16:54:05 +0000 (16:54 +0000)
it's currently broken and redundant (use APXS instead)

acinclude.m4
configure.in.in
libphp4.module.in

index 7d728a7cef65bcf770a69a31e5d325ba6c89d5cd..ac84188d5f833014f707f75c7e944764071955c7 100644 (file)
@@ -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"
index 1369c8783a090b1eaee5e1392f695b128ea163e7..a392a45d77f51ff3e3e9b4ae6ee2fede20844b5c 100644 (file)
@@ -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)
index cdc3c7567752b1f14e0bcfa4716bfd21c70ed13b..8735976fbf1b481774d30dbc6105591aa20da9ff 100644 (file)
@@ -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