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:13:11 UTC
svn commit: r155177 - in apr/apr-util/branches/1.1.x: CHANGES
build/find_apu.m4
Author: jerenkrantz
Date: Thu Feb 24 00:13:08 2005
New Revision: 155177
URL: http://svn.apache.org/viewcvs?view=rev&rev=155177
Log:
* build/find_apu.m4:
Try installed APR-util before bundled copy if --with-apr-util not passed to
configure.
MFC: r155176
Modified:
apr/apr-util/branches/1.1.x/CHANGES
apr/apr-util/branches/1.1.x/build/find_apu.m4
Modified: apr/apr-util/branches/1.1.x/CHANGES
URL: http://svn.apache.org/viewcvs/apr/apr-util/branches/1.1.x/CHANGES?view=diff&r1=155176&r2=155177
==============================================================================
--- apr/apr-util/branches/1.1.x/CHANGES (original)
+++ apr/apr-util/branches/1.1.x/CHANGES Thu Feb 24 00:13:08 2005
@@ -1,3 +1,8 @@
+Changes with APR-util 1.1.1
+
+ *) find_apu.m4: Try installed APR-util before bundled copy if --with-apr-util
+ not passed to configure. [Justin Erenkrantz]
+
Changes with APR-util 1.1.0
*) LDAP: Move all certificate initialisation, and the creation of SSL
Modified: apr/apr-util/branches/1.1.x/build/find_apu.m4
URL: http://svn.apache.org/viewcvs/apr/apr-util/branches/1.1.x/build/find_apu.m4?view=diff&r1=155176&r2=155177
==============================================================================
--- apr/apr-util/branches/1.1.x/build/find_apu.m4 (original)
+++ apr/apr-util/branches/1.1.x/build/find_apu.m4 Thu Feb 24 00:13:08 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
])