]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Rename all occurences
authorPavel Roskin <proski@gnu.org>
Fri, 2 Feb 2001 22:57:56 +0000 (22:57 +0000)
committerPavel Roskin <proski@gnu.org>
Fri, 2 Feb 2001 22:57:56 +0000 (22:57 +0000)
of ac_try to ac_mid to avoid a name clash.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 40e5c4fa1a78ddc87db8344caa14543c3f566e41..5d834d4923b625d98f33e0146629f194d0a1376c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-02  Pavel Roskin  <proski@gnu.org>
+
+       * acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Rename all occurences
+       of ac_try to ac_mid to avoid a name clash.
+
 2001-02-02  Pavel Roskin  <proski@gnu.org>
 
        * autoscan.pl (scan_c_file): When in verbose mode, don't print
index 938564b4d0548bbe6f53328edb862939e5c8b04e..4efc4fc8a20998132ab7f161dcc0b75726ac59bf 100644 (file)
@@ -3025,23 +3025,23 @@ m4_define([AC_LIBOBJ],
 m4_define([_AC_COMPUTE_INT_COMPILE],
 [# Depending upon the size, compute the lo and hi bounds.
 AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= 0])],
- [ac_lo=0 ac_try=0
+ [ac_lo=0 ac_mid=0
   while :; do
-    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_try])],
-                   [ac_hi=$ac_try; break],
-                   [ac_lo=`expr $ac_try + 1`; ac_try=`expr 2 '*' $ac_try + 1`])
+    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])],
+                   [ac_hi=$ac_mid; break],
+                   [ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`])
   done],
- [ac_hi=-1 ac_try=-1
+ [ac_hi=-1 ac_mid=-1
   while :; do
-    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= $ac_try])],
-                      [ac_lo=$ac_try; break],
-                      [ac_hi=`expr $ac_try - 1`; ac_try=`expr 2 '*' $ac_try`])
+    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= $ac_mid])],
+                      [ac_lo=$ac_mid; break],
+                      [ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`])
   done])
 # Binary search between lo and hi bounds.
 while test "x$ac_lo" != "x$ac_hi"; do
-  ac_try=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
-  AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_try])],
-                     [ac_hi=$ac_try], [ac_lo=`expr $ac_try + 1`])
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])],
+                     [ac_hi=$ac_mid], [ac_lo=`expr $ac_mid + 1`])
 done
 $2=$ac_lo[]dnl
 ])# _AC_COMPUTE_INT_COMPILE
index 938564b4d0548bbe6f53328edb862939e5c8b04e..4efc4fc8a20998132ab7f161dcc0b75726ac59bf 100644 (file)
@@ -3025,23 +3025,23 @@ m4_define([AC_LIBOBJ],
 m4_define([_AC_COMPUTE_INT_COMPILE],
 [# Depending upon the size, compute the lo and hi bounds.
 AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= 0])],
- [ac_lo=0 ac_try=0
+ [ac_lo=0 ac_mid=0
   while :; do
-    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_try])],
-                   [ac_hi=$ac_try; break],
-                   [ac_lo=`expr $ac_try + 1`; ac_try=`expr 2 '*' $ac_try + 1`])
+    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])],
+                   [ac_hi=$ac_mid; break],
+                   [ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`])
   done],
- [ac_hi=-1 ac_try=-1
+ [ac_hi=-1 ac_mid=-1
   while :; do
-    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= $ac_try])],
-                      [ac_lo=$ac_try; break],
-                      [ac_hi=`expr $ac_try - 1`; ac_try=`expr 2 '*' $ac_try`])
+    AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) >= $ac_mid])],
+                      [ac_lo=$ac_mid; break],
+                      [ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`])
   done])
 # Binary search between lo and hi bounds.
 while test "x$ac_lo" != "x$ac_hi"; do
-  ac_try=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
-  AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_try])],
-                     [ac_hi=$ac_try], [ac_lo=`expr $ac_try + 1`])
+  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+  AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([$3], [($1) <= $ac_mid])],
+                     [ac_hi=$ac_mid], [ac_lo=`expr $ac_mid + 1`])
 done
 $2=$ac_lo[]dnl
 ])# _AC_COMPUTE_INT_COMPILE