summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-12-11 10:27:55 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2001-12-11 10:27:55 +0000
commit8114c84cdb8a65fed668f879d51c7731d225af46 (patch)
tree4cd952237c7b4ee2715921b8573ef0e76b481558 /build
parentf957d6349f3035b5199bdd235495f1a141469d44 (diff)
downloadlibapr-8114c84cdb8a65fed668f879d51c7731d225af46.tar.gz
Add preliminary srcdir support - call it with APR_FIND_APR(apr)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62622 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/find_apr.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/build/find_apr.m4 b/build/find_apr.m4
index 73135fab7..cce69c1a7 100644
--- a/build/find_apr.m4
+++ b/build/find_apr.m4
@@ -127,6 +127,23 @@ APR, nor an APR build directory.])
])
])
+ dnl We attempt to guess what the data will be *after* configure is run.
+ dnl Note, if we don't see configure, but do have configure.in, it'd be
+ dnl nice to run buildconf, but that's for another day.
+ if test "$apr_found" = "no" && test -n "$1" && test -x "$1/configure"; then
+ apr_found="reconfig"
+ apr_srcdir="$1"
+ apr_libdir=""
+ apr_la_file="$apr_srcdir/libapr.la"
+ apr_vars="$apr_srcdir/APRVARS"
+ if test -f $apr_srcdir/apr-config.in; then
+ apr_config="$apr_srcdir/apr-config"
+ else
+ apr_config=""
+ fi
+ apr_includes="-I$apr_srcdir/include"
+ fi
+
if test "$apr_found" != "no" && test "$apr_libdir" != ""; then
if test "$apr_vars" = "" && test -f "$apr_libdir/APRVARS"; then
apr_vars="$apr_libdir/APRVARS"