summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-14 09:46:08 +0000
committerGordon Sim <gsim@apache.org>2007-02-14 09:46:08 +0000
commita5408a0b985a29e34fa5a3c1acab2a1dae21cd1b (patch)
tree052479939033513d004ef7077efec25221482759 /cpp
parent63060eb979f0ce520a0bbcbfccd47abcf6dd2060 (diff)
downloadqpid-python-a5408a0b985a29e34fa5a3c1acab2a1dae21cd1b.tar.gz
Applied patch from Jim Meyering, submitted on dev list:
2007-02-14 Jim Meyering <jim@meyering.net> * configure.ac: Use $enableval, not $enable_APR in the code supporting --disable-apr and --enable-apr. The latter doesn't work. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507455 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac
index a590f9b5e1..2e7ea22607 100644
--- a/cpp/configure.ac
+++ b/cpp/configure.ac
@@ -102,18 +102,18 @@ AC_SUBST(CPPUNIT_CXXFLAGS)
AC_ARG_ENABLE(apr,
[ --enable-apr use the Apache Portable Runtime library (default)
--disable-apr do not use the Apache Portable Runtime library],
-[case $enable_APR in
+[case $enableval in
yes|no) ;;
- *) AC_MSG_ERROR([invalid APR enable/disable value: $enable_APR]) ;;
+ *) AC_MSG_ERROR([invalid APR enable/disable value: $enableval]) ;;
esac],
-[enable_APR=yes])
+[enableval=yes])
APR_MINIMUM_VERSION=1.2.2
AC_SUBST(APR_MINIMUM_VERSION)
AC_SUBST(APR_CXXFLAGS)
AC_SUBST(USE_APR)
-if test "$enable_APR" = yes; then
+if test "$enableval" = yes; then
PKG_CHECK_MODULES([APR], [apr-1 >= $APR_MINIMUM_VERSION])
APR_CXXFLAGS="$APR_CFLAGS -DUSE_APR=1"
USE_APR=1