From: Joe Orton Date: Mon, 7 Nov 2005 21:47:01 +0000 (+0000) Subject: Merge r330246, r330257 from trunk: X-Git-Tag: 2.1.10~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=755a535ea21c7a2aee5098768524ea9024cee6da;p=thirdparty%2Fapache%2Fhttpd.git Merge r330246, r330257 from trunk: * build/config_vars.sh.in: Prepend DESTDIR to paths to installed apr/apu-config scripts. * build/config_vars.sh.in: Check for the *-config scripts both at the DESTDIR-relocated path and at the not-relocated path, to cope with both builds with and without the bundled APR. Submitted by: Torsten Foertsch , jorton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@331604 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 2b182e5f136..a2aa04d4801 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.1.10 + *) Fix DESTDIR=... installation when using bundled copy of APR. + [Torsten Foertsch ] + *) mod_dav: Fix handling of unknown state tokens in If: headers. PR: 37288. [Joe Orton] diff --git a/build/config_vars.sh.in b/build/config_vars.sh.in index 9c002f71b44..590803aa0f7 100644 --- a/build/config_vars.sh.in +++ b/build/config_vars.sh.in @@ -21,8 +21,19 @@ # installed. Such a file cannot be generated at configure-time, since it # requires the output of the *installed* ap*-config scripts. -APR_CONFIG=@APR_CONFIG@ -APU_CONFIG=@APU_CONFIG@ +# For a DESTDIR=... installation using the bundled copies of +# apr/apr-util, the installed ap?-config scripts must be found +# in the DESTDIR-relocated install tree. For a DESTDIR=... +# installation when using *external* copies of apr/apr-util, +# the absolute path must be used, not DESTDIR-relocated. + +if test -f ${DESTDIR}@APR_CONFIG@; then + APR_CONFIG=${DESTDIR}@APR_CONFIG@ + APU_CONFIG=${DESTDIR}@APU_CONFIG@ +else + APR_CONFIG=@APR_CONFIG@ + APU_CONFIG=@APU_CONFIG@ +fi APR_LIBTOOL="`${APR_CONFIG} --apr-libtool`" APR_INCLUDEDIR="`${APR_CONFIG} --includedir`"