[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
5-gary-FEATURE_TEST_LENGTH-max.patch
From: |
Gary V. Vaughan |
Subject: |
5-gary-FEATURE_TEST_LENGTH-max.patch |
Date: |
Tue, 20 Apr 2004 18:21:44 +0100 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040208) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Okay to commit?
- --
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
__________________________________________________________
This patch notification generated by cvsapply version 0.13
http://savannah.gnu.org/projects/cvs-utils
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAhVwoFRMICSmD1gYRAoPeAKCwOctyxXontCPBGOWtkZJYhTedwgCfbGQ1
ZclT1G4DrNif1wYNrspFr+Y=
=ZafJ
-----END PGP SIGNATURE-----
Index: ChangeLog
from Gary V. Vaughan <address@hidden>
* lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Make the
best tool so far counter rely on the tool path variable name to
avoid checks for one tool being affected by the results of running
the length check on a previous tool.
Index: lib/autoconf/programs.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/programs.m4,v
retrieving revision 1.23
diff -u -p -u -r1.23 programs.m4
--- lib/autoconf/programs.m4 20 Apr 2004 16:54:35 -0000 1.23
+++ lib/autoconf/programs.m4 20 Apr 2004 17:21:17 -0000
@@ -467,12 +467,15 @@ m4_define([_AC_FEATURE_CHECK_LENGTH],
cp "$tmp/conftest.in" "$tmp/conftest.nl"
echo '$4' >> "$tmp/conftest.nl"
$3 < "$tmp/conftest.nl" >"$tmp/conftest.out" || break
- diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
+ diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev/null 2>&1 || break
ac_count=`expr $ac_count + 1`
- if test $ac_count -gt ${ac_max-0}; then
+ if test $ac_count -gt ${$1_max-0}; then
# Best one so far, save it but keep looking for a better one
$2="$$1"
- ac_max=$ac_count
+ dnl Using $1_max so that each tool feature checked gets its
+ dnl own variable. Don't reset it otherwise the implied search
+ dnl for best performing tool in a list breaks down.
+ $1_max=$ac_count
fi
# 10*(2^10) chars as input seems more than enough
test $ac_count -gt 10 && break
- 5-gary-FEATURE_TEST_LENGTH-max.patch,
Gary V. Vaughan <=