mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
get rid of --with-shared-apache
it's currently broken and redundant (use APXS instead)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user