]> granicus.if.org Git - apache/commitdiff
Allow --with-included-apr to pick up APR trunk/2.x
authorEric Covener <covener@apache.org>
Sun, 18 Jan 2009 22:05:27 +0000 (22:05 +0000)
committerEric Covener <covener@apache.org>
Sun, 18 Jan 2009 22:05:27 +0000 (22:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@735556 13f79535-47bb-0310-9956-ffa450edef68

configure.in

index 6c53154d25f4a10936dc1ca77458048c355d8759..6bf603e06d3c833d679adaf5e76482e5cc6e8a38 100644 (file)
@@ -73,10 +73,14 @@ echo $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
 AC_ARG_WITH(included-apr,
 APACHE_HELP_STRING(--with-included-apr,Use bundled copies of APR/APR-Util))
 
-# Only APR 1.x is supported.
+# Default to APR 1.x
 apr_version=1
 
 if test "x$with_included_apr" = "xyes"; then
+   # accept a bundled APR 2.x
+   if test -f "$srcdir/srclib/apr/apr-2-config"; then
+     apr_version=2
+   fi
    apr_found=reconfig
    apr_config="$srcdir/srclib/apr/apr-${apr_version}-config"
 else 
@@ -110,10 +114,14 @@ APR_CONFIG="$APR_BINDIR/apr-`echo ${APR_VERSION} | sed 's,\..*,,'`-config"
 
 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
 
-# Only APR-util 1.x is supported.
+# Default to APR-util 1.x 
 apu_version=1
 
 if test "x$with_included_apr" = "xyes"; then
+   # accept a bundled APU 2.x
+   if test -f "$srcdir/srclib/apr-util/apu-2-config"; then
+     apu_version=2
+   fi
    apu_found=reconfig
    apu_config="${srcdir}/srclib/apr-util/apu-${apu_version}-config"
 else 
@@ -352,12 +360,12 @@ AC_ISC_POSIX
 # Ensure that satisfactory versions of apr and apr-util are 
 # found if external copies are configured.
 if test "${apr_found}" = "yes"; then
-  # Require APR 1.3.x otherwise fail
+  # Require at least APR 1.3.x otherwise fail
   APACHE_CHECK_APxVER([apr], 1, 3)
 fi
 
 if test "${apu_found}" = "yes"; then
-  # Require APR-util 1.3.x otherwise fail
+  # Require at least APR-util 1.3.x otherwise fail
   APACHE_CHECK_APxVER([apu], 1, 3)
 fi