From 35f63f4cd947a61cc104e6eca03ce60adf3e9677 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 6 Mar 2003 00:14:41 +0000 Subject: Add --installbuilddir option to apr-config git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64398 13f79535-47bb-0310-9956-ffa450edef68 --- apr-config.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apr-config.in b/apr-config.in index 643d0d79d..ed7bbfabb 100644 --- a/apr-config.in +++ b/apr-config.in @@ -95,6 +95,7 @@ Known values for OPTION are: --ldflags print linker flags --libs print additional libraries to link against --srcdir print APR source directory + --installbuilddir print APR build helper directory --link-ld print link switch(es) for linking to APR --link-libtool print the libtool inputs for linking to APR --shlib-path-var print the name of the shared library path env var @@ -207,6 +208,17 @@ while test $# -gt 0; do echo $APR_SOURCE_DIR exit 0 ;; + --installbuilddir) + if test "$location" = "installed"; then + echo "${installbuilddir}" + elif test "$location" = "source"; then + echo "$APR_SOURCE_DIR/build" + else + # this is for VPATH builds + echo "$thisdir/build" + fi + exit 0 + ;; --version) echo $APR_DOTTED_VERSION exit 0 -- cgit v1.2.1