You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by je...@apache.org on 2005/02/24 09:08:40 UTC

svn commit: r155176 - in apr/apr-util/trunk: CHANGES build/find_apu.m4

Author: jerenkrantz
Date: Thu Feb 24 00:08:39 2005
New Revision: 155176

URL: http://svn.apache.org/viewcvs?view=rev&rev=155176
Log:
* build/find_apr.m4: 
  Try installed APR-util before bundled copy if --with-apr-util not passed to
  configure.
* CHANGES: Add apr_dbd addition.  (seems to have been overlooked by everyone)

Modified:
    apr/apr-util/trunk/CHANGES
    apr/apr-util/trunk/build/find_apu.m4

Modified: apr/apr-util/trunk/CHANGES
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/CHANGES?view=diff&r1=155175&r2=155176
==============================================================================
--- apr/apr-util/trunk/CHANGES (original)
+++ apr/apr-util/trunk/CHANGES Thu Feb 24 00:08:39 2005
@@ -1,3 +1,10 @@
+Changes with APR-util 1.2.0
+
+  *) find_apu.m4: Try installed APR-util before bundled copy if --with-apr-util
+     not passed to configure.  [Justin Erenkrantz] 
+
+  *) Introduction of APR DBD layer.  [Nick Kew]
+
 Changes with APR-util 1.1.0
 
   *) LDAP: Move all certificate initialisation, and the creation of SSL

Modified: apr/apr-util/trunk/build/find_apu.m4
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/build/find_apu.m4?view=diff&r1=155175&r2=155176
==============================================================================
--- apr/apr-util/trunk/build/find_apu.m4 (original)
+++ apr/apr-util/trunk/build/find_apu.m4 Thu Feb 24 00:08:39 2005
@@ -113,8 +113,27 @@
       AC_MSG_ERROR([the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file.])
     fi
   ],[
-    dnl if we have a bundled source directory, use it
-    if test -d "$1"; then
+    if test -n "$3" && test "$3" = "1"; then
+      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
+      do
+        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
+          apu_found="yes"
+          apu_config="$apu_temp_apu_config_file"
+          break
+        else
+          dnl look in some standard places (apparently not in builtin/default)
+          for lookdir in /usr /usr/local /usr/local/apr /opt/apr /usr/local/apache2 ; do
+            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
+              apu_found="yes"
+              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
+              break 2
+            fi
+          done
+        fi
+      done
+    fi
+    dnl if we have not found anything yet and have bundled source, use that
+    if test "$apu_found" = "no" && test -d "$1"; then
       apu_temp_abs_srcdir="`cd $1 && pwd`"
       apu_found="reconfig"
       apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"$1/include/apu_version.h\"`"
@@ -134,25 +153,6 @@
       else
         apu_config="$1/$apu_temp_apu_config_file"
       fi
-    fi
-    if test "$apu_found" = "no" && test -n "$3" && test "$3" = "1"; then
-      for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config
-      do
-        if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then
-          apu_found="yes"
-          apu_config="$apu_temp_apu_config_file"
-          break
-        else
-          dnl look in some standard places (apparently not in builtin/default)
-          for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
-            if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then
-              apu_found="yes"
-              apu_config="$lookdir/bin/$apu_temp_apu_config_file"
-              break 2
-            fi
-          done
-        fi
-      done
     fi
   ])