1 --- apr-config.in.orig Thu Aug 3 04:05:27 2006
2 +++ apr-config.in Tue Feb 12 02:24:17 2008
4 installbuilddir="@installbuilddir@"
5 includedir="@includedir@"
7 +# Determine the root directory of the Apache installation using the directory
8 +# in which this script resides. Use this directory as the base for all the paths
10 +install_root=`dirname $0`
13 +new_install_root=`echo $install_root | sed -e "s!@bindir@!!"`
14 +if test "$install_root" != "$new_install_root"; then
15 + install_root="$new_install_root"
20 +prefix="${install_root}@prefix@"
21 +exec_prefix="@exec_prefix@"
24 +datadir="${install_root}@datadir@"
25 +installbuilddir="${install_root}@installbuilddir@"
26 +includedir="@includedir@"
33 if test "$location" = "installed"; then
34 ### avoid using -L if libdir is a "standard" location like /usr/lib
35 - flags="$flags -L$libdir -l${APR_LIBNAME}"
36 + if test -n "$install_root"; then
37 + flags="$flags -L$libdir -l${APR_LIBNAME}"
39 + flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}"
41 elif test "$location" = "crosscompile"; then
42 flags="$flags -L$APR_TARGET_DIR/$libdir -l${APR_LIBNAME}"