Bug #586 Updated: configure does not support apache shadow tree
| From: | andy@php.net | Date: | Sun, 22 Jul 2001 16:24:04 +0000 |
| Subject: | Bug #586 Updated: configure does not support apache shadow tree | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60604@lists.php.net to get a copy of this message | ||
ID: 586
Updated by: andy
Reported By: sjg@telstra.com.au
Status: Open
Bug Type: Feature/Change Request
Operating System: Solaris
PHP Version: 4.0
New Comment:
Isn't it about time this bug is closed?
Previous Comments:
------------------------------------------------------------------------
[2001-02-24 15:54:59] sas@php.net
Changing to feature request.
------------------------------------------------------------------------
[2001-02-10 12:57:34] jimw@php.net
really refiled.
------------------------------------------------------------------------
[2001-02-10 12:24:03] jimw@php.net
refiling as real bug against 4.0. (not verified.)
------------------------------------------------------------------------
[1999-07-03 12:14:44] sas@cvs.php.net
Looks like Apache's shadow source feature doesn't work in Apache 1.3.6. Moving to feature
request.
------------------------------------------------------------------------
[1998-07-27 20:15:31] sjg@telstra.com.au
As item 4.2 in the FAQ states, configure only supports being told the location of the top level
apache dir. But when apache is built using shadow dirs (as in apache/src.sun4u-sun-solaris2.260
configure cannot handle it).
The following patch modifies configure.in (for the APACI case only - sorry) to first check if the
withval was actually a src dir and if so use it.
Oh and I just noticed that php does not handle being built in a separate dir.
--sjg
*** configure.in.~1~ Mon Jul 20 07:55:47 1998
--- configure.in Tue Jul 28 09:56:33 1998
***************
*** 213,221 ****
withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
! if test -f $withval/src/include/httpd.h; then
! APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
! APACHE_TARGET=$withval/src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
--- 213,228 ----
withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
! x=
dirname $withval
! if test -f $x/src/include/httpd.h; then
! withval_src=$withval
! withval=$x
! else
! withval_src=$withval/src
! fi
! if test -f $withval_src/include/httpd.h; then
! APACHE_INCLUDE="-I$withval_src/include -I$withval_src/os/unix"
! APACHE_TARGET=$withval_src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
***************
*** 228,249 ****
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
AC_SUBST(APACHE_INCLUDE)
--- 235,256 ----
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
AC_SUBST(APACHE_INCLUDE)
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=586&edit=1