From: Ralf Wildenhues Date: Sat, 17 Nov 2007 08:36:17 +0000 (+0100) Subject: Avoid error with Tru64 awk and testsuite lines with many words. X-Git-Tag: v2.62~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90661f5cd9fcab958357d099e01c2e21dc6638de;p=thirdparty%2Fautoconf.git Avoid error with Tru64 awk and testsuite lines with many words. * lib/autotest/general.m4 (AT_INIT): In the awk script that reads the testsuite, set the field separator to an unusual value, in order to not run over the limit of 199 fields. Tru64 4.0D awk even splits the input if $i, i>0, was never accessed in the script. --- diff --git a/ChangeLog b/ChangeLog index 3cb8e49b..f6460666 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2007-11-17 Ralf Wildenhues + Avoid error with Tru64 awk and testsuite lines with many words. + * lib/autotest/general.m4 (AT_INIT): In the awk script that + reads the testsuite, set the field separator to an unusual value, + in order to not run over the limit of 199 fields. Tru64 4.0D awk + even splits the input if $i, i>0, was never accessed in the script. + Revert 2007-10-17 change. * TODO: Multiline args in config files and headers mean something different and are not fixed, see diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index e50f0f8d..7a6ccfed 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -870,7 +870,9 @@ fi _AT_NORMALIZE_TEST_GROUP_NUMBER(at_group_normalized) echo " outfile[[\"$at_group\"]] = \"$at_test_source-$at_group_normalized\"" done - AS_ECHO(['} + AS_ECHO([' + FS = "" +} emit == 0 && /^@%:@AT_START_/ { test = substr($ 0, 11); if (outfile[[test]]) {