php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #586 configure does not support apache shadow tree
Submitted: 1998-07-27 20:15 UTC Modified: 2001-10-30 23:10 UTC
From: sjg at telstra dot com dot au Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 OS: Solaris
Private report: No CVE-ID: None
 [1998-07-27 20:15 UTC] sjg at telstra dot com dot 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-03 12:14 UTC] sas at cvs dot php dot net
Looks like Apache's shadow source feature doesn't work in Apache 1.3.6. Moving to feature request.
 [2001-02-10 12:24 UTC] jimw@php.net
refiling as real bug against 4.0. (not verified.)
 [2001-02-10 12:57 UTC] jimw@php.net
really refiled.
 [2001-02-24 15:54 UTC] sas@php.net
Changing to feature request.
 [2001-07-22 12:24 UTC] andy@php.net
Isn't it about time this bug is closed?
 [2001-10-30 23:10 UTC] sniper@php.net
afaik, these problems do not exist anymore.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC