summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
authorJustin Erenkrantz <jerenkrantz@apache.org>2003-01-30 16:56:10 +0000
committerJustin Erenkrantz <jerenkrantz@apache.org>2003-01-30 16:56:10 +0000
commit4b7b5cd85e49349b0241d4e24f306396b9c9fd47 (patch)
tree37b93a67242f03c7c0b4bff220d4f6629bbbd80c /apr-config.in
parentac52d60d89747ffbfe11b85dbd5267febf4f9877 (diff)
downloadapr-4b7b5cd85e49349b0241d4e24f306396b9c9fd47.tar.gz
Add --includedir flag to apr-config.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64320 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'apr-config.in')
-rw-r--r--apr-config.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/apr-config.in b/apr-config.in
index d32f191b3..b49e119c2 100644
--- a/apr-config.in
+++ b/apr-config.in
@@ -88,6 +88,7 @@ Usage: apr-config [OPTION]
Known values for OPTION are:
--prefix[=DIR] change prefix to DIR
--bindir print location where binaries are installed
+ --includedir print location where headers are installed
--cflags print C compiler flags
--cppflags print cpp flags
--includes print include information
@@ -167,6 +168,18 @@ while test $# -gt 0; do
echo $bindir
exit 0
;;
+ --includedir)
+ if test "$location" = "installed"; then
+ flags="$includedir"
+ elif test "$location" = "source"; then
+ flags="$APR_SOURCE_DIR/include"
+ else
+ # this is for VPATH builds
+ flags="$thisdir/include $APR_SOURCE_DIR/include"
+ fi
+ echo $flags
+ exit 0
+ ;;
--cflags)
flags="$flags $CFLAGS"
;;