|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-07-03 12:14 UTC] sas at cvs dot php dot net
[2001-02-10 12:24 UTC] jimw@php.net
[2001-02-10 12:57 UTC] jimw@php.net
[2001-02-24 15:54 UTC] sas@php.net
[2001-07-22 12:24 UTC] andy@php.net
[2001-10-30 23:10 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
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)