4 # Licensed to the Apache Software Foundation (ASF) under one or more
5 # contributor license agreements. See the NOTICE file distributed with
6 # this work for additional information regarding copyright ownership.
7 # The ASF licenses this file to You under the Apache License, Version 2.0
8 # (the "License"); you may not use this file except in compliance with
9 # the License. You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 # config_vars.sh is generated by configure, and is run by the "install-build"
20 # target to generate a version of config_vars.mk which is suitable to be
21 # installed. Such a file cannot be generated at configure-time, since it
22 # requires the output of the *installed* ap*-config scripts.
24 # For a DESTDIR=... installation using the bundled copies of
25 # apr/apr-util, the installed ap?-config scripts must be found
26 # in the DESTDIR-relocated install tree. For a DESTDIR=...
27 # installation when using *external* copies of apr/apr-util,
28 # the absolute path must be used, not DESTDIR-relocated.
30 if test -f ${DESTDIR}@APR_CONFIG@; then
31 APR_CONFIG=${DESTDIR}@APR_CONFIG@
32 APU_CONFIG=${DESTDIR}@APU_CONFIG@
34 APR_CONFIG=@APR_CONFIG@
35 APU_CONFIG=@APU_CONFIG@
38 APR_LIBTOOL="`${APR_CONFIG} --apr-libtool`"
39 APR_INCLUDEDIR="`${APR_CONFIG} --includedir`"
40 test -n "@APU_CONFIG@" && APU_INCLUDEDIR="`${APU_CONFIG} --includedir`"
42 installbuilddir="@exp_installbuilddir@"
44 ### this might be better as a whitelist.
51 /^ENABLED_MPM_MODULE/d
53 /^ENABLED_DSO_MODULES/d
64 /^[A-Z]*_SHARED_CMDS/d
71 s, = , = -I\$(includedir) ,
72 s, -I\$(top_srcdir)/[^ ]*,,g
73 s, -I\$(top_builddir)/[^ ]*,,g
75 /^MKINSTALLDIRS/s,\$(abs_srcdir)/build,$installbuilddir,
76 /^INSTALL /s,\$(abs_srcdir)/build,$installbuilddir,
79 /^APR_INCLUDEDIR.*$/s,.*,APR_INCLUDEDIR = ${APR_INCLUDEDIR},
80 /^APU_INCLUDEDIR.*$/s,.*,APU_INCLUDEDIR = ${APU_INCLUDEDIR},
81 /^LIBTOOL.*$/s,/[^ ]*/libtool \(.*\),${APR_LIBTOOL} @LTFLAGS@,