2005-06-04 Stepan Kasal * doc/autoconf.texi (Limitations of Usual Tools): AIX awk cannot swallow literals longer than 399. Reported by Ralf Wildenhues. * lib/autotest/general.m4 (AT_INIT): Pass $at_groups though stdin, to workaround this limitation. Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.903 diff -u -r1.903 autoconf.texi --- doc/autoconf.texi 1 Jun 2005 07:20:26 -0000 1.903 +++ doc/autoconf.texi 4 Jun 2005 07:26:07 -0000 @@ -11513,6 +11513,9 @@ Either do not depend on such patterns (i.e., use @samp{/^(.*foo|bar)/}, or use a simple test to reject such address@hidden address@hidden version 5.2 limits on the maximal length of regular +expressions and literal strings in the program to 399. + @item @command{cat} @c ---------------- Index: lib/autotest/general.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autotest/general.m4,v retrieving revision 1.180 diff -u -r1.180 general.m4 --- lib/autotest/general.m4 2 Jun 2005 23:30:13 -0000 1.180 +++ lib/autotest/general.m4 4 Jun 2005 07:26:07 -0000 @@ -442,10 +442,11 @@ _ATEOF # " 1 42 45 " => "^(1|42|45);". - echo "$at_help_all" | - awk 'BEGIN { - for (n = split("'"$at_groups"'", a); n; n--) selected[[a[n]]] = 1 + echo "$at_groups$as_nl$at_help_all" | + awk 'NR == 1 { + for (n = NF; n; n--) selected[[$n]] = 1 FS = ";" + next } { if (selected[[$ 1]]) {