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
APU_INCLUDEDIR="`${APU_CONFIG} --includedir`"
42
installbuilddir="@exp_installbuilddir@"
57
/^[A-Z]*_SHARED_CMDS/d
64
s, = , = -I\$(includedir) ,
65
s, -I\$(top_srcdir)/[^ ]*,,g
66
s, -I\$(top_builddir)/[^ ]*,,g
68
/^MKINSTALLDIRS/s,\$(abs_srcdir)/build,$installbuilddir,
69
/^INSTALL /s,\$(abs_srcdir)/build,$installbuilddir,
72
/^APR_INCLUDEDIR.*$/s,.*,APR_INCLUDEDIR = ${APR_INCLUDEDIR},
73
/^APU_INCLUDEDIR.*$/s,.*,APU_INCLUDEDIR = ${APU_INCLUDEDIR},
74
/^LIBTOOL.*$/s,/[^ ]*/libtool \(.*\),${APR_LIBTOOL} @LTFLAGS@,