Merge branch 'maint'
[platform/upstream/automake.git] / ChangeLog
1 2011-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
2
3         tests: fix bug in alloca*.test
4         * tests/alloca.test: Make grepping of automake stderr stricter,
5         add a trailing `:' command; also, add AC_PROG_CC to configure.in,
6         and create a dummy alloca.c file, to ensure that we fail for the
7         proper reason.
8         * tests/alloca2.test: Likewise.  Also, look for LT_INIT, not
9         AC_PROG_LIBTOOL, in the error message (bug introduced with commit
10         v1.11-315-gd51e7b7 "libtool: suggest LT_INIT if LTLIBRARIES
11         primary is used").
12         From a report by Patrick Welche.
13
14 2011-03-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
15
16         cosmetics: better use of m4 quoting and m4sugar macros
17         * m4/dmalloc.m4: Better use of m4 quoting.  Bump serial number.
18         * m4/gcj.m4: Likewise.
19         * m4/init.m4: Likewise.
20         * m4/install-sh.m4: Likewise.
21         * m4/lex.m4: Likewise.
22         * m4/multi.m4: Likewise.
23         * m4/option.m4: Likewise.
24         * m4/python.m4: Likewise.
25         * m4/sanity.m4: Likewise.
26         * m4/cond.m4: Likewise.  Also, prefer the m4sugar macro 'm4_if'
27         over the plain m4 macro 'ifelse'.
28         * m4/depend.m4: Likewise.
29
30 2011-03-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
31
32         tests: add test about deprecated use of AC_INIT
33         * tests/deprecated-acinit.test: New test, check that automake
34         and autoconf complain about an old-style AC_INIT call used with
35         a new-style AM_AUTOMAKE_INIT call.
36         * tests/Makefile.am (TESTS): Update.
37
38 2011-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
39
40         tests: fix bug (comments-in-var-defn.test + autoconf 2.62)
41         * tests/comments-in-var-defn.test: The configure.in stub created
42         by default, which has the AC_INIT first argument obtained by the
43         test name, causes autoconf 2.62 to fail with a spurious error
44         message like: "configure.in:1: error: defn: undefined macro:".
45         Thus, to prevent this, the test is renamed to ...
46         * tests/comments-in-var-def.test: ... this.
47         * tests/Makefile.am (TESTS): Updated.
48
49 2011-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
50
51         cosmetics: convert encoding from ISO-8859 to UTF-8
52         * ChangeLog.03: Convert encoding to UTF-8.
53         * ChangeLog.96: Likewise.
54         * ChangeLog.98: Likewise.
55         * NEWS: Likewise.
56         * TODO: Likewise.
57
58 2011-03-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
59
60         tests: extend checks on the 'unindent' shell function
61         * tests/self-check-unindent.test: Also check that multiple
62         instances of 'unindent' can run in parallel (this was not
63         the case when that function used temporary files).
64
65 2011-03-01  Peter Rosin  <peda@lysator.liu.se>
66
67         test defs: unindent without temporary file
68         * tests/defs.in (commented_sed_unindent_prog): Commented Sed program
69         that strips the "proper" amount of leading whitespace.
70         (unindent): Lazily strip comments from the above program and use it
71         to unindent without using a temporary file.
72
73 2011-02-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
74
75         libtool: suggest LT_INIT if LTLIBRARIES primary is used
76         When the LTLIBRARIES primary was used, but $(LIBTOOL) wasn't
77         defined, automake suggested to add a call to AC_PROG_LIBTOOL
78         in configure.ac.  But that macro is deprecated since Libtool
79         version 1.9b (2004-08-29), in favor of the newer LT_INIT.  So
80         suggest the use of this latter macro instead.
81         * lib/Automake/Variable.pm (%_am_macro_for_var): Pair 'LIBTOOL'
82         with 'LT_INIT', not with 'AC_PROG_LIBTOOL'.
83         * libtool4.test: Adjust and extend.  Also, add a call to macro
84         AC_PROG_CC in configure.in, to help ensuring that automake does
85         not fail for the wrong reasons.
86         * ltinit.test: New test, ensure that automake's libtool support
87         works with LT_INIT-based interface.
88         Thanks to Jack Kelly for the suggestion.
89
90 2011-02-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
91
92         tests: add testcases sanity-checking the testsuite
93         Helper subroutines, variables and other pieces of code defined
94         in the `tests/defs' and used by many testcases are non-obvious,
95         and tricky to get to work portably; but until now, they weren't
96         tested at all in a clear and self-contained way.
97         This change should remedy to the situation.
98         * tests/self-check-cleanup.test: New test, check removal of
99         temporary test working directory by `./defs'.
100         * tests/self-check-dir.test: New test, check that tests using
101         `./defs' create a proper temporary directory, and run in it.
102         * tests/self-check-exit.test: New test, check that, in case of
103         failing commands, the correct exit status is passed to the exit
104         trap installed by the `./defs' script.
105         * tests/self-check-is_newest.test: New test, checking the
106         `is_newest' subroutine.
107         * tests/self-check-me.test: New test, checking that $me gets
108         defined automatically by `tests/defs' if not set, and that it
109         can be overridden from either the shell or the environment.
110         * tests/self-check-sanity.test: New test, check that the sanity
111         checks performed by the `tests/defs' script works correctly.
112         * tests/self-check-unindent.test: New test, checking the
113         `unindent' subroutine.
114         * tests/Makefile.am (TESTS): Update.
115
116 2011-02-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
117
118         tests: tempdirs with restrictive permissions are cleaned correctly
119         Before this change, the removal of a temporary test directory
120         containing subdirectories with restrictive permissions (such as
121         'r--r--r--') could fail.
122         * tests/defs: Ensure that all the subdirectories of a temporary
123         test directory have the 'read', 'write' and 'execute' bits set,
124         before trying to remove it with `rm -rf'.
125         * tests/Makefile.am (clean-local-check): Likewise.
126
127 2011-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
128             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
129
130         test defs: add subroutine for input unindenting
131         * tests/defs.in (unindent): New subroutine.
132         * tests/instspc-tests.sh: Use it.
133
134 2011-02-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
135
136         python: report the 'PYTHON' influential environment variable
137         * m4/python.m4 (AM_PATH_PYTHON): Call AC_ARG_VAR on PYTHON.
138         * doc/automake.texi (Python): Update and extend.
139         * tests/help-python.test: New test.
140         * tests/Makefile.am (TESTS): Update.
141         * THANKS (Jack Kelly): Update e-mail address.
142         Suggestion by Jack Kelly.
143
144 2011-02-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
145
146         tests defs: clear TESTS_ENVIRONMENT variable
147         * tests/defs.in (TESTS_ENVIRONMENT): Unset it, so that values
148         from environment won't interfere with the testcases.
149         Suggestion by Ralf Wildenhues.
150
151 2011-02-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
152
153         tests: `instspc-*.test': do not create useless source file
154         * tests/instspc-tests.sh (create_input_data): Do not create
155         unused source file `source2.c'.
156
157 2011-02-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
158
159         tests: optimize `instspc-*.test' for speed
160         After the split of `instspc.test' into various generated tests,
161         the running time of the testsuite has noticeably increased, since
162         all these new generated tests must run aclocal, autoconf and
163         automake, whereas previously they were run only once (at the
164         beginning of `instspc.test').  But luckily, since the new tests
165         share the same input files for the autotools, this situation can
166         be easily worked around (at the expenses of a slight increase of
167         complexity for the testsuite scaffolding).
168         * tests/instspc-data.test: New helper test, properly calling
169         the `instspc-tests.sh' script to generate input data for the
170         others `instspc-*.test' tests.
171         * tests/Makefile.am (TESTS): Add `instspc-data.test'.
172         ($(instspc_tests:.test=.log)): Depend on its log file.
173         (instspc-data.log): Depend on `instspc-tests.sh'.
174         * tests/instspc-tests.sh: Recognize new action `generate-data',
175         and use it to create hand-written and autotools-generated static
176         files shared by all the `instspc-*.test' tests.
177         When sourced by the `instspc-*.test' tests, use those previously
178         created files instead of recreating them from scratch.
179         (unindent, create_input_data): New subroutines.
180         Some other related changes and refactorings.
181         From a suggestion by Ralf Wildenhues.
182
183 2011-02-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
184
185         python: fix spurious failure in tests
186         * tests/python-vars.test: Ignore cached values from config.site
187         by exporting CONFIG_SITE=/dev/null.  Be laxer in matching the
188         expected values of output variables `pythondir' and `pyexecdir',
189         since they can change quite unpredictably among different python
190         installations.  Also, avoid "hyping" debugging output, thus
191         offering smaller trace output and more informative diff.
192         Report and suggestions by Ralf Wildenhues.
193         * tests/python-virtualenv.test: Require python, since we call it
194         even after the virtualenv has been deactivated.  Ignore cached
195         values from config.site by exporting CONFIG_SITE=/dev/null.
196
197 2011-02-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
198
199         tests: tweak few tests on simple and parallel test drivers
200         * tests/check-exported-srcdir.test: Improve heading comments.
201         * tests/check-tests-in-builddir.test: Likewise.  Also, unset the
202         `FOO_EXIT_STATUS' variable, so that any pre-existing value in the
203         environment won't risk to interfere with the test.
204         Suggestions by Ralf Wildenhues.
205
206 2011-02-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
207
208         python: extend and improve tests, fix minor glitches
209         * m4/python.m4 (AM_PATH_PYTHON): Ensure the "checking ..." messages
210         from configure are always complete, even in case of failure.  Tiny
211         cosmetic improvement in info/error messages.
212         * tests/python.test: Also check that automake complains if the
213         PYTHON primary is used but the `py-compile' script is not present.
214         Make grepping of generated Makefile.in laxer w.r.t. whitespace.
215         Add trailing `:' command.
216         * tests/python2.test: Remove repeated calls aclocal: they are
217         useless because configure.in is never modified.  Make grepping
218         of automake stderr more comprehensive.  Remove the pre-existing
219         `py-compile' file before trying to install it with `--add-missing'.
220         Add trailing `:' command.
221         * tests/python3.test: Add trailing `:' command.
222         * tests/python11.test: Likewise.
223         * tests/python4.test: Likewise.  Also, try to pass PYTHON config
224         variable to configure from the environment, rather than only from
225         the command line.
226         * tests/python5.test: Ensure that the "checking ..." messages from
227         configure are always complete.  Use proper m4 quoting.  Add a
228         trailing `:' command.
229         * tests/python6.test: Simplify test logic, by checking for files
230         created by configure rather then grepping its output.
231         * tests/python7.test: Likewise.
232         * tests/python8.test: Also check that `$PYTHON' is meaningfully
233         set in the ACTION-IF-TRUE argument of AM_PATH_PYTHON.
234         * tests/python9.test: Likewise.
235         * tests/python10.test: Add trailing `:' command.
236         (Makefile.am): Declare `disttest' target as `.PHONY', and add
237         an `ls -l' to its recipe, for debugging.
238         * tests/nobase-python.test: In testing "make uninstall" and
239         "make install" results, prefer idioms that make verbose logs
240         more helpful.  Remove a couple of lines of dead code.  Add a
241         trailing `:' command.
242         * tests/python5b.test: New test, checking that configure performs
243         the check on the python version even when the choice of the python
244         interpreter is forced by the user.
245         * tests/python-dist.test: New test, checking the distribution of
246         *_PYTHON files.
247         * tests/python-vars.test: New test, checking that AM_PATH_PYTHON
248         correctly set all the output variables advertised in the manual.
249         * tests/python-virtualenv.test: New test, checking that python
250         support offered by automake works well with "virtual python
251         environments" created by the `virtualenv' program.
252         * tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
253         checks made slightly stricter.
254         * tests/instdir-prog.test: Also check `$(pyexecdir)'.  Existing
255         * tests/instdir-ltlib.test: Likewise.
256         * tests/Makefile.am (TESTS): Update.
257
258 2011-02-01  Stefano Lattarini  <stefano.lattarini@gmail.com>
259
260         coverage: more tests on simple and parallel test drivers
261         * tests/parallel-tests-subdir.test: New test.
262         * tests/check-exported-srcdir.test: Likewise.
263         * tests/check-tests-in-builddir.test: Likewise.
264         * tests/check-tests_environment.test: Likewise.
265         * tests/Makefile.am (TESTS): Update.
266
267 2011-01-29  Stefano Lattarini  <stefano.lattarini@gmail.com>
268
269         tests: fix spurious failures in lflags*.test
270         * tests/lflags.test: Remove 'LEX' from the environment, so
271         that it won't be erroneously picked up by `make -e'.
272         * tests/lflags2.test: Likewise.
273
274 2011-01-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
275
276         docs: color-tests issues with parallel make
277         * doc/automake.texi (Simple Tests): Document that automatic
278         recognition of a capable terminal attached to stdout can fail
279         with some make implementation when running in parallel mode,
280         thus causing colored test output not to be automatically
281         activated when it should.
282
283 2011-01-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
284
285         coverage: test semantics of "dummy" per-target flags
286         * tests/specflg-dummy.test: New test, ensuring that even "dummy"
287         per-target flags triggers the use of renamed objects.
288         * tests/Makefile.am (TESTS): Update.
289         Suggestion by Ralf Wildenhues.
290
291 2011-01-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
292
293         tests defs: sanitize IFS
294         * tests/defs ($IFS): Define to <space>, <tab>, <newline>.
295         ($sp): New variable, holding a single whitespace character.
296         ($tab): New variable, holding a tabulation character.
297         ($nl): New variable, holding a newline character.
298
299 2011-01-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
300
301         tests: avoid instspc* failures due to make's whitespace trimming
302         * tests/instspc-tests.sh: Prepend './' when passing the test
303         characters, to avoid leading whitespace characters to be trimmed
304         from macros set from environment variables.  Fixes testsuite
305         failures with HP-UX and Tru64/OSF make.
306
307 2011-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
308
309         tests: fix VPATH auto-expansion workarounds.
310         * tests/suffix10.test, tests/suffix11.test, tests/suffix12.test,
311         tests/suffix3.test, tests/suffix5.test, tests/suffix8.test:
312         Ensure $< is not surrounded by white space, to prevent Solaris
313         make from applying automatic VPATH text expansion.
314
315         tests: fix VPATH auto-expansion workarounds.
316         * tests/parallel-tests8.test, tests/suffix13.test:
317         Ensure $< is not surrounded by white space, to prevent Solaris
318         make from applying automatic VPATH text expansion.
319
320 2011-01-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
321
322         tests: fix spurious failures in yflags*.test
323         * tests/yflags.test: Remove 'YACC' from the environment, so
324         that it won't be erroneously picked up by `make -e'.
325         * tests/yflags2.test: Likewise.
326
327 2011-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
328
329         tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R.
330         * tests/fn99.test, tests/fn99subdir.test: Skip if an initial
331         `cp -R' of the subdir tree already fails; AIX 5.3 cp messes
332         up its internal memory when copying this tree.
333
334 2011-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
335             Stefano Lattarini  <stefano.lattarini@gmail.com>
336
337         Add comment to check-TESTS rule working around make 3.80 bug.
338         * lib/am/check.am (check-TESTS): Update comment.
339
340 2011-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
341
342         tests: less strict double-colon spy.test again.
343         * tests/spy.test: We know BSD make doesn't invoke more than one
344         double-colon rule, so no need to expose that failure.
345
346 2011-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
347
348         install-sh: avoid Tru64 sh `test' operator precedence issues.
349         * lib/install-sh: Protect file names and directory components
350         that consist of `=', `(', `)', or `!'.  Move protection as early
351         as possible, to avoid errors such as with Tru64 sh `test -z ='.
352         * tests/instsh2.test: Extend test to cover more possibilities.
353         Fixes 1.12 instspc-equal-install.test failure on Tru64/OSF 5.1.
354
355 2011-01-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
356             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
357
358         docs: automake testsuite doesn't use TESTS_ENVIRONMENT anymore
359         * doc/automake.texi (Simple Tests): Do not claim Automake uses
360         TESTS_ENVIRONMENT for the perl driver.  Instead, point to the
361         parallel-tests driver.
362
363 2011-01-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
364
365         tests: check for presence of cscope with redirected input.
366         * tests/defs: Add required test for cscope.
367         Fixes cscope3.test hang with Sun C 5.9 cscope.
368
369         tests: avoid false failure in cygnus-dependency-tracking.test.
370         * tests/cygnus-dependency-tracking.test: Be less restrictive
371         when grepping the compiler error message, GCC 3.4.6 on FreeBSD
372         does not mention an undefined symbol.
373
374 2011-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
375
376         tests: revert not turning off errexit in instspc-test.sh
377         * tests/instspc-tests.sh: Turn off errexit while sourcing defs,
378         the scripts might still not be clean.
379
380 2011-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
381
382         tests: work around Tru64 sh -e issues for instspc*.test.
383         Apparently, Tru64 sh does not like turning off errexit mode,
384         and gets confused.
385         * tests/defs: Document 'errexit' cleanliness requirement.
386         * tests/defs-static.in: Likewise.  Avoid error from command
387         substitution to abort instspc*.test with Tru64/OSF 5.1 sh.
388         * tests/instspc-tests.sh: Drop now-unneeded temporary errexit
389         dropping.  Add strategic '|| Exit' to let tests work on Tru64.
390
391 2011-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
392
393         Allow _AM_DEPENDENCIES to be used later in configure.
394         * m4/depend.m4 (_AM_DEPENDENCIES): Remove a previously existing
395         conftest.dir before recreating it.
396         Fixes bug#7864.
397         Report by Eric Blake, from report by Scott McCreary against M4.
398
399 2011-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
400
401         tests: avoid failure on w32 file systems.
402         * tests/parallel-tests-unreadable-log.test: SKIP if file cannot
403         be turned unreadable.
404
405 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
406
407         tests: allow double-colon spy.test to work with HP-UX make.
408         * tests/spy.test: Fix comment typos.  Ensure prerequisites we
409         do not want to depend on are strictly older than the target.
410         Also test with a target out of date wrt. more than one rule.
411
412 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
413
414         Avoid local $_ perl variable, for Perl before 5.9.1.
415         * lib/Automake/Options.pm (_process_option_list): Do not
416         lexically localize $_.  Fixes bootstrap on AIX 5.1.
417         Bug introduced in commit `v1.11-622-gf90a06c'.
418
419 2011-01-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
420
421         tests: remove useless requirements from cond36.test
422         * tests/cond36.test ($required): Remove.
423         Since we are at it, add a trailing `:' command.
424
425 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
426
427         tests: avoid failing command substitution in errexit mode.
428         * tests/vartypo2.test, tests/vartypos.test: Rewrite to not use
429         a command substitution with a nonzero exit status, that causes
430         IRIX and Tru64/OSF sh to fail the whole test.
431
432 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
433             Stefano Lattarini  <stefano.lattarini@gmail.com>
434
435         parallel-tests: work around Tru64/OSF 5.1 sh read bugs.
436         * lib/am/check.am ($(TEST_SUITE_LOG), recheck, recheck-html):
437         Test file readability before redirecting input from it, to avoid
438         exiting Tru64/OSF 5.1 sh which treats read as special builtin.
439         * tests/parallel-tests-unreadable-log.test: New test.
440         * tests/Makefile.am (TESTS): Update.
441         * NEWS: Update.
442
443 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
444
445         * NEWS, README: Update copyright years.
446
447 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
448
449         tests: hard error in case of internal failures or signal caught
450         * tests/defs: Exit with status 99 (hard error) rather than
451         1 (failure) on unexpected/internal errors, or when a signal
452         is caught by the client script.
453
454         Tests defs: don't let useless variables leak in test scripts.
455         * tests/defs ($priv_check_temp, $overwrite_status, $ro_dir_temp,
456         $create_status, $r2h, $libtool_found, $gettext_found, $aclocaldir,
457         $extra_includes): Unset once they've served their purpose.
458
459 2011-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
460
461         Fix parallel-tests.test failure with HP-UX make.
462         * tests/parallel-tests.test: Sleep inside inner tests, so logs
463         are newer than logs of tests they depend on, for HP-UX make.
464
465 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
466
467         docs: ensure example are separated with empty lines in the input
468         * doc/automake.texi (Extending aclocal, Emacs Lisp, Rebuilding)
469         (API Versioning, Renamed Objects, Multiple Outputs): Add empty
470         lines before `@example' and after `@end example' lines, so info
471         output is rendered correctly, and a following @noindent honored.
472         Report by Stefano Lattarini.
473
474 2011-01-15  Jim Meyering <meyering@redhat.com>
475
476         tests: fix comment typo
477         * tests/substref.test: Fix grammar in a comment.
478
479 2011-01-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
480
481         tests: fix spurious failures in two texinfo tests
482         * tests/txinfo.test ($required): Add 'makeinfo'.
483         * tests/txinfo8.test: Create a dummy 'textutils.info' file, so
484         that make won't try to run makeinfo (which could be unavailable)
485         to build it.
486         Found by NixOS Hydra, reported by Ralf Wildenhues.
487
488 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
489
490         Update docs w.r.t. warning and strictness options.
491         * doc/automake.texi (Strictness): Document that some warnings are
492         turned off by default in `foreign' strictness.
493         (Options): Divide into new sections "Options generalities" and
494         "List of Automake options".  Fix typo (colon instead of full
495         stop).  Document option precedence (AUTOMAKE_OPTIONS wins over
496         AM_INIT_AUTOMAKE which wins over command line).  Also document
497         interactions between options specifying strictness and those
498         specifying warnings.
499
500         More tests on warnings/strictness precedence.
501         * tests/warning-groups-win-over-strictness.test: New test, similar
502         to `warnings-win-over-strictness.test', but checking the explicit
503         catch-all warning flags (like `-Wall' and `-Wnone').
504         * tests/Makefile.am (TESTS): Update.
505
506         Update NEWS about the warnings-over-strictness precedence.
507         * NEWS: Automake explicit warning levels always take precedence
508         over the implicit warning levels implied by Automake strictness.
509
510         For PR automake/547:
511         Warnings win over strictness in AUTOMAKE_OPTIONS.
512         Ensure that, for what concerns the options specified in
513         AUTOMAKE_OPTIONS, explicitly-defined warnings always take
514         precedence over implicit strictness-implied warnings.
515         This finally fixes Automake bug#7669 a.k.a. PR/547.
516         * automake.in (handle_options): Call 'process_option_list'
517         only once per set of options.
518         * lib/Automake/Options.pm (process_global_option_list,
519         process_option_list): Add sanity checks.
520         ($_options_processed, $_global_options_processed): New
521         internal variables, used by the sanity checks above.
522         * tests/warnings-win-over-strictness.test: Extend.
523
524         For PR automake/547:
525         Change signature of 'Automake::Options::_process_option_list()'.
526         This only modifies internal details in the automake implementation,
527         bearing no externally visible effect, but preparing the way for the
528         final fix of Automake bug#7669 a.k.a. PR/547.
529         * lib/Automake/Options.pm (_process_option_list): Accept as
530         arguments a list of hash references with keys 'option' and 'where',
531         where 'option' is an option as might occur in AUTOMAKE_OPTIONS or
532         AM_INIT_AUTOMAKE, and 'where' is the location where it occurred.
533         (process_option_list, process_global_option_list): Updated.
534         * automake.in (handle_options, scan_autoconf_traces): Update.
535
536         Add more tests about AUTOMAKE_OPTIONS.
537         In view of soon-to-follow refactorings (still in the pursuit of a
538         fix for Automake bug#7669 a.k.a. PR/547), add some more tests on
539         AUTOMAKE_OPTIONS support, to prevent obvious regressions.
540         * tests/amopts-variable-expansion.test: New test.
541         * tests/amopts-location.test: Likewise.
542         * tests/Makefile.am (TESTS): Update.
543
544         For PR automake/547:
545         Warnings win over strictness in AM_INIT_AUTOMAKE.
546         This change ensures that, for what concerns the options specified
547         in AM_INIT_AUTOMAKE,  explicitly-defined warnings always take
548         precedence over implicit strictness-implied warnings.  Related to
549         Automake bug#7669 a.k.a. PR/547.
550         * lib/Automake/Options.pm (_process_option_list): Parse explicit
551         warnings only after the strictness level has been set.  Fix POD
552         documentation.
553         * tests/warnings-win-over-strictness.test: Extend.
554
555         For PR automake/547:
556         Warnings win over strictness on command line.
557         Ensure that, on the command line at least, explicitly defined
558         warnings always take precedence over implicit strictness-implied
559         warnings.  Related to Automake bug#7669 a.k.a. PR/547.
560         * automake.in (parse_arguments): Parse warnings only after the
561         strictness level has been processed.
562         * tests/gnuwarn.test: Update, plus miscellaneous improvements.
563         * tests/warnings-win-over-strictness.test: New test.
564         * tests/Makefile.am (TESTS): Update.
565
566         More tests on warnings and strictness.
567         * tests/warnings-strictness-interactions.test: New test.
568         * tests/warnings-unknown.test: Likewise.
569         * tests/Makefile.am (TESTS): Update.
570
571         New test on silent-rules mode and portability warnings.
572         * tests/silent-nowarn.test: New test.
573         * tests/Makefile.am (TESTS): Update.
574
575         Add new tests on strictness and warnings precedence and overriding.
576         * tests/strictness-override.test: New test.
577         * tests/strictness-precedence.test: New test.
578         * tests/warnings-override.test: New test.
579         * tests/warnings-precedence.test: New test.
580         * tests/Makefile.am (TESTS): Update.
581
582 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
583
584         Fix remake rule-induced test failures with HP-UX make.
585         * tests/remake1a.test: Require GNU make.
586
587 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
588
589         Fix remake rule-induced test failures with HP-UX make.
590         * tests/colon6.test: Update timestamp of subdir Makefile, so we
591         do not spuriously invoke the nonexistent toplevel am--refresh
592         rule.
593
594         tests: fix typos in colon6.test
595         * tests/colon6.test: Fix typos.
596
597 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
598             Stefano Lattarini  <stefano.lattarini@gmail.com>
599
600         tests: explain MSYS setup failure issue, improve test.
601         * tests/defs: Add comment and failure message, improve fail
602         logic.
603
604 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
605
606         Fix libobj2.test failure with non-GNU make: define $(AR).
607         * tests/libobj2.test: Ensure $(AR) is suitably defined.
608
609 2011-01-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
610
611         tests: avoid spurious failures due to fork failure in test setup
612         * tests/defs: Ensure $me is always nonempty, to avoid spurious
613         failures on MinGW/MSYS in case the preceding sed command could
614         not be spawned.
615
616         Avoid configure warnings from wait about reused PIDs.
617         * m4/sanity.m4 (AM_SANITY_CHECK): Hide wait stderr output.
618         Fixes spurious failure of depcomp2.test.
619
620 2011-01-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
621
622         Avoid testsuite failures due to Autoconf Fortran change.
623         Autoconf v2.68-21-g727ce95 causes AC_F77_LIBRARY_LDFLAGS to
624         require computing the canonical host name.  Ensure config.guess
625         and config.sub files are present for respective checks.
626         * tests/compile_f_c_cxx.test: Add stub files.
627         * tests/flibs.test: Likewise.
628         * tests/fort4.test: Use $AUTOMAKE -a for installing files.
629
630 2011-01-12   Stefano Lattarini  <stefano.lattarini@gmail.com>
631
632         docs: clustered '-d' not recognized in YFLAGS
633         This change fixes automake bug#7828.
634         * doc/automake.texi (Yacc and Lex): Document that automake
635         recognizes '-d' in AM_YFLAGS only if it's not clustered with
636         other options.
637         From a report by Юрий Пухальский.
638
639 2011-01-10   Stefano Lattarini  <stefano.lattarini@gmail.com>
640
641         tests: add checks on automatically-distributed files
642         Related to automake bug#7819.
643         * tests/autodist.test: New test.
644         * tests/autodist-subdir.test: Likewise.
645         * tests/autodist-acconfig.test: Likewise.
646         * tests/autodist-acconfig-no-subdir.test: Likewise.
647         * tests/autodist-aclocal-m4.test: Likewise.
648         * tests/autodist-config-headers.test: Likewise.
649         * tests/autodist-configure-no-subdir.test: Likewise.
650         * tests/autodist-stamp-vti.test: Likewise.
651         * tests/Makefile.am (TESTS): Update.
652
653 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
654
655         tests: do not force yacc-requiring tests to use bison
656         * tests/defs.in: New required entry 'yacc'.  Remove old
657         required entry 'bison'.
658         * tests/cond35.test ($required): Require yacc, not bison.
659         * tests/cond36.test: Likewise.
660         * tests/pr204.test: Likewise.
661         * tests/silent-many-gcc.test: Likewise.
662         * tests/silent-many-generic.test: Likewise.
663         * tests/silent-yacc-gcc.test: Likewise.
664         * tests/silent-yacc-generic.test: Likewise.
665         * tests/subpkg.test: Likewise.
666         * tests/suffix10.test: Likewise.
667         * tests/yacc-basic.test: Likewise.
668         * tests/yacc-clean.test: Likewise.
669         * tests/yacc-d-basic.test: Likewise.
670         * tests/yacc-d-vpath.test: Likewise.
671         * tests/yacc-dist-nobuild.test: Likewise.
672         * tests/yacc-nodist.test: Likewise.
673         * tests/yacc4.test: Likewise.
674         * tests/yacc6.test: Likewise.
675         * tests/yacc7.test: Likewise.
676         * tests/yacc8.test: Likewise.
677         * tests/yaccdry.test: Likewise.
678         * tests/yaccvpath.test: Likewise.
679
680 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
681
682         tests: more consistent checks about invalid options
683         * tests/aclocal.test: Grepping of automake stderr for messages
684         reporting invalid options made stricter.
685         * tests/no-outdir-option.test: Likewise.  Also, create a dummy
686         `Makefile.am', to ensure that the automake failures are really
687         caused only by unrecognized options.
688         * tests/automake.test: Added trailing `:' command.  Removed
689         redundant checks on `--help' and `--version' option (already
690         performed in the test `help*.test').
691
692 2011-01-11   Stefano Lattarini  <stefano.lattarini@gmail.com>
693
694         tests: enable 'errexit' shell flag by default.
695         * tests/defs: Enable `errexit' shell flag (near the end).
696         Removed redundant comment about the enabling of shell traces.
697         * tests/README (Writing test cases): Update, and use nicer
698         formatting in a couple of places.
699         * All tests: Adjusted by removing now-redundant calls to
700         'set -e'.
701
702 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
703
704         tests: work around a texi+cygnus bug causing a spurious XFAIL
705         * tests/txinfo5b.test: New test, like txinfo5.test but calling
706         automake with the `-Wno-override' option to work around a bug
707         in the texinfo + cygnus interaction.
708         * tests/txinfo5.test: Update heading comments.
709         * tests/Makefile.am (TEST): Updated.
710
711 2011-01-09  Dave Hart  <davehart@gmail.com>  (tiny change)
712
713         Fix another typo in Rule.pm comment.
714         * lib/Automake/Rule.pm: Fix typo.
715
716 2011-01-09  Peter Rosin  <peda@lysator.liu.se>
717
718         Fix another typo in Rule.pm comment.
719         * lib/Automake/Rule.pm: Fix typo.
720
721 2011-01-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
722
723         tests: texinfo unrecognized extensions
724         * tests/txinfo-unrecognized-extension.test: New test.
725         * tests/Makefile.am (TESTS): Update.
726
727         Improve, extend and tweak tests on Texinfo support.
728         * tests/instdir-texi.test: Add a call to `ls -l' after that to
729         `make', for debugging.  When looking for required tools, do not
730         redirect the output of "$tool --help" to /dev/null, and do not
731         uselessly run it in a subshell.
732         * tests/txinfo.test: Rewritten to run autoconf, ./configure and
733         make.  All checks moved into Makefile.am.
734         * tests/txinfo8.test: Likewise, and modernize the generated
735         configure.in.
736         * tests/txinfo2.test: Moved checks into Makefile.am, and other
737         minor improvements.
738         * tests/txinfo5.test: Enable `errexit' shell flag, and related
739         changes.  Add trailing `:' command.
740         * tests/txinfo6.test: Likewise, and make grepping of generated
741         Makefile.in stricter.
742         * tests/txinfo7.test: Enable `errexit' shell flag, and related
743         changes.  Add trailing `:' command.  Do not add unnecessary stuff
744         to Makefile.am.
745         * tests/txinfo9.test: Verify that more targets which are expected
746         to be generated only once really are.  Make grepping less strict,
747         to avoid exposing too much internal details.  More minor changes.
748         * tests/txinfo16.test: Add trailing `:'.  Prefer cat over echo
749         for appending to configure.in.  Updated/fixed heading comments.
750         * tests/txinfo23.test: Likewise, and extended a little by making
751         it check that no info file is created in the $(srcdir).
752         * tests/txinfo24.test: Likewise.
753         * tests/txinfo25.test: Likewise.
754         * tests/txinfo18.test: Add trailing `:'.  Prefer cat over echo
755         for appending to configure.in.  Also, check that index files are
756         cleaned also by "make clean", not only by "make distclean".
757         * tests/txinfo22.test: Prefer `$me' over hard-coded test name,
758         and added trailing `:' command.  This testcase also used to check
759         that automake ignores in-line comments when using variables, but
760         preserves them in the output; these checks (added in commit
761         "Release-1-7f-4-g9177ef8") do not really pertain to this test,
762         so they have been moved ...
763         * tests/comments-in-var-defn.test: ... into this new test.
764         * tests/txinfo4.test: Escape literal dots in grep regexps.  Add
765         trailing `:' command.
766         * tests/txinfo29.test: Likewise.  Relax grepping of generated
767         Makefile.in w.r.t. whitespaces.  Prefer `cat' over `echo' to
768         append to configure.in.
769         * tests/txinfo3.test: Likewise.
770         * tests/vtexi.test: Improve grepping of Makefile.in (sometimes
771         make it stricter, sometimes laxer).  Move `set -e' setting just
772         after the inclusion of ./defs.  De-uglify a sed command.  Other
773         minor cosmetic improvements.
774         * tests/vtexi2.test: Make grepping of Makefile.in stricter.  Add
775         trailing `:' command.
776         * tests/vtexi3.test: New test on version.texi support.
777         * tests/vtexi4.test: Likewise.
778         * tests/Makefile.am (TESTS): Updated.
779
780 2011-01-11   Stefano Lattarini  <stefano.lattarini@gmail.com>
781
782         tests: fix spurious failure in 'tests/yflags-conditional.test'
783         * tests/yflags-conditional.test: Filter out message "warnings are
784         treated as errors" from automake stderr, to avoid a false positive
785         when grepping for extraneous warning messages.
786
787 2011-01-10   Stefano Lattarini  <stefano.lattarini@gmail.com>
788
789         yacc: warn about conditional content in *YFLAGS variables
790         This change fixes automake bug#7804.
791         * automake.in (lang_yacc_target_hook): Warn if any of the relevant
792         *YFLAGS variables has conditional contents (not only a conditional
793         definition).  Related refactoring.
794         * NEWS: Updated.
795         * tests/yflags-conditional.test: Updated and extended.
796         * tests/yflags-conditional-force.test: New test.
797         * tests/Makefile.am (TESTS): Updated.
798
799 2011-01-08   Stefano Lattarini  <stefano.lattarini@gmail.com>
800
801         yacc: support variable expansions in *YFLAGS definition.
802         This change fixes automake bug#7800.
803         * automake.in (lang_yacc_target_hook): Use 'value_as_list_recursive'
804         instead of 'variable_value' to get the value of *YFLAGS variables.
805         Related changes.
806         ($DASH_D_PATTERN): Removed.
807         * tests/Makefile.am (XFAIL_TESTS): Remove yflags-var-expand.test.
808         * tests/yacc-clean.test: Remove workaround for now-fixed bug.
809         * NEWS: Update.
810
811 2011-01-08   Stefano Lattarini  <stefano.lattarini@gmail.com>
812
813         yacc: more tests on *YFLAGS support
814         * tests/yflags-var-expand.test: New test, still xfailing.  It
815         exposes automake bug#7800 -- "automake fails to honor `-d' in
816         AM_YFLAGS when variable expansions are involved".
817         * tests/yflags-d-false-positive.test: New test, checking that
818         automake do not spuriously see `-d' in *YFLAGS when that isn't
819         really there.
820         * tests/yflags-force-override.test: New test, checking that
821         automake can cope with definition of the YFLAGS variable in
822         Makefile.am (even if that is an extremely bad practice, as that
823         variable is user-reserved).
824         * tests/yflags-cmdline-override.test: New test, checking that
825         automake can cope with user-redefinition of YFLAGS at configure
826         time and/or at make time.
827         * tests/yflags-conditional.test: New test, checks that automake
828         warns on conditionally-defined *YFLAGS variables.
829         * tests/Makefile.am (TESTS, XFAIL_TESTS): Update.
830
831 2011-01-08   Stefano Lattarini  <stefano.lattarini@gmail.com>
832
833         yacc: extend and improve tests
834         * tests/yacc-basic.test: Also check that the intermediate C file
835         is mentioned in the generated Makefile.in, and that it is created
836         by the first make invocation.
837         * tests/yacc3.test: Test removed, superseded by ...
838         * tests/yacc-d-basic.test: ... this new test.
839         * tests/yacc2.test: Add reference to that new test in the heading
840         comments.
841         * tests/yacc-d-vpath.test: New test.
842         * tests/yaccvpath.test: Updated heading comments.  Do not require
843         gcc anymore, as any working C compiler should be enough.  Remove
844         redundant comments.
845         * tests/yacc-nodist.test: New test.
846         * tests/yacc-dist-nobuild.test: New test.
847         * tests/Makefile.am (TESTS): Update.
848
849 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
850
851         Extend, fix and improve tests on Lex and Yacc support.
852         * tests/lexcpp.test: New test script, on support for Lex + C++.
853         * tests/lexvpath.test: New test script, test build and rebuild
854         rules for lexers in VPATH setup.
855         * tests/yacc-basic.test: New test script, run simple "semantic"
856         checks on basic Yacc support (similarly to what lex3.test does
857         for Lex support).
858         * tests/lex.test: Don't create useless dummy source file joe.l.
859         Remove extra blank lines.
860         * tests/lex4.test: Add trailing `:' command.  Do not create dummy
861         useless lex source file.
862         * tests/lex2.test: Likewise.  Call automake with the `-a' option,
863         so that it doesn't fail for the absence of `ylwrap' script.  Make
864         grepping of automake stderr stricter.
865         * tests/yacc7.test: Add trailing `:' command.  Enable `errexit'
866         shell flag earlier (just after having sourced ./defs).
867         * tests/yacc4.test: Likewise.  Also ...
868         (configure.in): Use pre-populated skeleton set up by ./defs,
869         instead of writing one from scratch.
870         Other minor cosmetic changes.
871         * tests/yacc5.test: Likewise.
872         * tests/yaccvpath.test: Likewise. Also ...
873         ($distdir): New variable.
874         Use it throughout.
875         * tests/lex5.test: Likewise.
876         * tests/lex3.test: Likewise.  Check the distdir, rather than
877         grepping the distribution tarball.  Extend the test on the
878         created binary, and be sure to avoid hangs.  Add some comments.
879         * tests/yacc.test: Use stricter grepping.  Add trailing `:'.
880         * tests/yacc6.test: Likewise.
881         * tests/yacc3.test: Likewise.  Do not create the unused file
882         `Makefile.sed'.  Remove useless rules from Makefile.am.  Other
883         minor cosmetic changes.
884         * tests/yacc2.test: Make grepping of generated `Makefile.in' and
885         of automake error messages stricter.  Do not redirect output of
886         grep to /dev/null.  Move call to aclocal earlier.  Reduce the
887         number of empty blank lines.  Fix a typo in comments.
888         * tests/yacc8.test: Fixed bugs that reduced the completeness of
889         the tests.  Added trailing `:' command.
890         (configure.in): Use pre-populated skeleton set up by ./defs,
891         instead of writing one from scratch.
892         * tests/yaccpp.test: Test also extensions `.y++', `.ypp', and
893         `.yxx', rather than only `.yy'.
894         * tests/Makefile.am (TESTS): Update.
895
896 2011-01-09   Stefano Lattarini  <stefano.lattarini@gmail.com>
897
898         cosmetics: remove trailing whitespaces
899         * doc/automake.texi: Remove trailing whitespaces.
900         * tests/cond13.test: Likewise.
901         * tests/cond14.test: Likewise.
902         * tests/fort4.test: Likewise.
903         * tests/fort5.test: Likewise.
904         * tests/libobj17.test: Likewise.
905         * tests/suffix7.test: Likewise.
906         * tests/vtexi2.test: Likewise.
907
908         automake: minor fixes in comments
909         * automake.in: Some minor fixes and enhancements in comments.
910
911 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
912
913         Add test coverage for deleted header files.
914         * tests/depcomp6.test, tests/depcomp7.test: Update tests to
915         also check for the deleted header bug.  If no dependency
916         tracking mechanism could be found, SKIP rather than exit
917         successfully.  Use GNU style spacing and ANSI C prototypes.
918
919         Fix typos in Rule.pm comments.
920         * lib/Automake/Rule.pm: Fix typos in comments.
921
922         docs: split 'amhello Explained' node.
923         * doc/automake.texi (amhello Explained): Split node ...
924         (amhello's configure.ac Setup Explained)
925         (amhello's Makefile.am Setup Explained) : ... into these two.
926         (Top, Hello World): Adjust, and add @anchor for stable URL links.
927         Suggestion by Karl Berry in automake bug#7766.
928
929 2011-01-08  Karl Berry  <karl@freefriends.org>
930             Eric Blake  <eblake@redhat.com>
931
932         docs: reference defining directories in amhello node.
933         * doc/automake.texi (amhello Explained): Point to Autoconf
934         manual for how to convert directory values into macros.
935         (Optional): Fix grammar nit.
936
937 2011-01-07   Stefano Lattarini  <stefano.lattarini@gmail.com>
938
939         yacc: "make clean" removes .c and .h files from non-distributed .y
940         Previously, while automake did *not* distribute C source and header
941         files derived from non-distributed Yacc sources, it still caused
942         them to be removed only by "make maintainer-clean" only, and not by
943         simply "make clean" or "make distclean".
944         This caused "make distcheck" to fail, unless the developer put
945         those generated .c and .h files in CLEANFILES or in DISTCLEANFILES
946         by hand.
947         This change fixes this issue, by making non-distributed `.c' and
948         `.h' files generated by non-distributed Yacc sources cleaned by
949         "make clean".
950         * tests/automake.in (lang_yacc_target_hook): Make C source and
951         header files derived from non-distributed Yacc files cleaned by
952         "make clean", not only by "make maintainer-clean".
953         * tests/yacc-clean.test: New test.
954         * tests/Makefile.am (TESTS): Update.
955         * NEWS: Update.
956
957 2011-01-02   Stefano Lattarini  <stefano.lattarini@gmail.com>
958
959         * NEWS: Fix typo (forgotten word).
960
961 2011-01-02   Stefano Lattarini  <stefano.lattarini@gmail.com>
962              Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
963
964         docs: how to work around checks on invalid primary/directory couples
965         * doc/automake.texi (Uniform): Document the blessed idiom which can
966         be used to work around automake checks on invalid primary/directory
967         couples (such as `lib_PROGRAMS' or `doc_LIBRARIES').
968
969 2010-01-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
970
971         Tests: normalize use of the 'errexit' shell flag.
972         * tests/maken3.test (check_targets): Remove redundant call to
973         'set -e'.
974         * tests/maken4.test: Likewise.
975         * tests/ansi5.test: Call 'set -e' just after './defs' has been
976         sourced.
977         * tests/ansi6.test: Likewise.
978         * tests/ansi7.test: Likewise.
979         * tests/cond16.test: Likewise.
980         * tests/cond17.test: Likewise.
981         * tests/cond18.test: Likewise.
982         * tests/cond19.test: Likewise.
983         * tests/cond20.test: Likewise.
984         * tests/cond21.test: Likewise.
985         * tests/instdat2.test: Likewise.
986         * tests/instdir-texi.test: Likewise.
987         * tests/parallel-tests3.test: Likewise.
988         * tests/remake1a.test: Likewise.
989         * tests/ccnoco.test: Likewise, and add trailing `:' command.
990         * tests/comment4.test: Likewise.
991         * tests/gcj4.test: Likewise.
992         * tests/nodist2.test: Likewise.
993         * tests/nodist3.test: Enable 'errexit' shell flag (this should
994         have been done in commit v1.11-248-g317e17b, but the relevant
995         hunk has been forgotten somehow).
996         * tests/output.test: Likewise.
997         * tests/gnits2.test: Likewise, and display captured stderr to
998         script's stderr, not to script's stdout.
999         * tests/gnits3.test: Likewise.  Also, prefer 'cat' over 'echo'
1000         to append to Makefile.am, and really check that the exit status
1001         of "make installcheck" indicates failure.
1002
1003 2011-01-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1004
1005         Sync auxiliary files from upstream.
1006         * lib/config.guess, lib/config.sub, lib/texinfo.tex:
1007         Sync from upstream.
1008
1009         Avoid caching bug in cygnus mode test.
1010         * tests/cygnus-requires-maintainer-mode.test: Remove
1011         autom4te.cache directory before rerunning aclocal, to
1012         remove trace caches.
1013
1014         Fix maintainer-check regression.
1015         * tests/subobj11a.test: Pass DISTCHECK_CONFIGURE_FLAGS in the
1016         environment.
1017
1018         Bump copyright years.
1019         * aclocal.in (write_aclocal, version): Bump copyright years.
1020         * automake.in (gen_copyright, version): Likewise.
1021         * doc/automake.texi: Likewise.
1022
1023 2010-12-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1024
1025         * NEWS: Add missing blank line between two entries.
1026
1027 2010-12-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1028
1029         Improve and extend tests `suffix*.test'.
1030         * tests/suffix.test: Check that suffix rules for C compilation are
1031         only included once.  Try also with a static library.
1032         * tests/suffix2.test: Add a new grep to help potential debugging.
1033         Do not run automake with the `--add-missing' options, since we
1034         already create all the needed auxiliary files.  Try also *without*
1035         the `no-dependencies' automake option.
1036         * tests/suffix4.test: Make grepping of Makefile.in stricter.
1037         * tests/suffix3.test: Rewritten to run also autoconf, ./configure
1038         and make.
1039         * tests/suffix5.test: Likewise.
1040         * tests/suffix6.test: Fix botched recipe indentation (eight spaces
1041         were used instead of a tabulation character).  Extend to check
1042         that `.obj' is handled like `.$(OBJEXT)' (as is done for `.o').
1043         Improved parsing & grepping of generated Makefile.in.  Other minor
1044         fixes and improvements.
1045         * tests/suffix10.test: Move some checks in Makefile.am.  Also run
1046         "make all".
1047         * tests/suffix12.test: Likewise, and account for VPATH issues in
1048         weaker make implementations.
1049         * tests/suffix11.test: Likewise.  Also, run "make distcheck", for
1050         completeness, and related changes.
1051         * tests/suffix8.test: Likewise.  Also, do not put `gcc' anymore
1052         in $required.
1053         * tests/suffix13.test: Do not use the `--force-missing' automake
1054         option unnecessarily.
1055         * tests/suffix6b.test: New test, semantic sister of `suffix6.test'.
1056         * tests/suffix6c.test: Likewise.
1057         * tests/Makefile.am (TESTS): Updated.
1058
1059 2010-12-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1060             Stefano Lattarini  <stefano.lattarini@gmail.com>
1061
1062         Work around a bug in file-inclusion mechanism of Solaris make.
1063         * automake.in (handle_single_transform): In the name of the
1064         dependency file: collapse multiple slash characters into a single
1065         one.
1066         * tests/subobj11a.test: New test.
1067         * tests/subobj11b.test: Likewise.
1068         * tests/subobj11c.test: Likewise.
1069         * tests/depcomp8a.test: Likewise.
1070         * tests/depcomp8b.test: Likewise.
1071         * tests/Makefile.am (TESTS): Updated.
1072         * NEWS: Updated.
1073         Report by Stefano Lattarini, quick fix by Ralf Wildenhues, final
1074         patch and tests by Stefano Lattarini.
1075
1076 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1077
1078         Fix two spurious testsuite failures on IRIX 6.5.
1079         * tests/suffix13.test (Makefile.am): Account for VPATH issues on
1080         weaker make implementations (e.g. IRIX 6.5).
1081         * tests/parallel-tests8.test: Likewise, plus a required related
1082         change.
1083         Reported by Ralf Wildenhues.  The bugs have been there from the
1084         first versions of the affected test scripts.
1085
1086 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1087
1088         docs: cygnus mode doesn't require AM_CYGWIN32 macro.
1089         * doc/automake.texi (Cygnus): Mode 'cygnus' does not require
1090         the AM_CYGWIN32 macro (and indeed hasn't required it since at
1091         least commit Release-1-2-31-g3038064 "merged changes from
1092         Cygnus" of 1997-08-25).
1093
1094 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1095
1096         Add some tests on 'cygnus' mode.
1097         * tests/clean2.test: Extend.
1098         * tests/cygnus-check-without-all.test: New test.
1099         * tests/cygnus-dependency-tracking.test: Likewise.
1100         * tests/cygnus-distclean.test: Likewise.
1101         * tests/cygnus-imply-foreign.test: Likewise.
1102         * tests/cygnus-no-dist.test: Likewise.
1103         * tests/cygnus-no-installinfo.test: Likewise.
1104         * tests/cygnus-requires-maintainer-mode.test: Likewise.
1105         * tests/Makefile.am (TESTS): Update.
1106
1107 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1108
1109         Fix parallel testsuite run with Zsh.
1110         This change deals with a Zsh incompatibility in the handling
1111         of the special shell variable `$0' in sourced files; this
1112         incompatibility used to cause utter breakage when the
1113         Automake testsuite was run in parallel mode with Zsh as
1114         the $(TEST_LOG_COMPILER).
1115         For more information, please refer to the thread "Fix parallel
1116         testsuite run with zsh" on automake-patches, dated 2010-12-22:
1117          <http://lists.gnu.org/archive/html/automake-patches/2010-12/msg00135.html>
1118         This change works around the problems described above for Zsh 4.3
1119         or later, and offers better error messages (instead of random
1120         failures) for earlier Zsh version.
1121         * tests/README (Supported shells): When describing the manual
1122         workaround about the Zsh incompatibility in the handling of `$0',
1123         tell that it is now needed only with Zsh versions preceding 4.3.
1124         Done also some minor rewordings.
1125         * tests/defs-static.in ($argv0): New variable, offers a workaround
1126         for the Zsh incompatibility in the handling of `$0'.
1127         Abort if that variable cannot be correctly set (can happen only
1128         in older Zsh version).
1129         * tests/defs ($me): Define using `$argv0', not `$0'.
1130
1131 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1132
1133         Tests defs: keep track of original $AUTOMAKE and $ACLOCAL values.
1134         This is especially useful for tests which might want to run
1135         automake and aclocal without additional flags and warnings.
1136         * tests/defs-static.in ($original_ACLOCAL): New variable.
1137         ($original_AUTOMAKE): Likewise.
1138         * tests/help.test: Use them.
1139         * tests/help2.test: Likewise.
1140         * tests/help3.test: Likewise.
1141         * tests/help4.test: Likewise.
1142         From a suggestion by Ralf Wildenhues.
1143
1144 2010-12-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
1145
1146         distlinksbrk.test: Work around botched "make -k".
1147         * tests/distlinksbrk.test: Run "make" multiple times and grep
1148         its output each time for a single error message, rather than
1149         running "make -k" one single time and grepping its output for
1150         all the expected error messages.  This should work around make
1151         implementations with limited (broken?) `-k' support; for more
1152         information, see these subthreads on the automake-patches list:
1153           - 2010-11-15, "Testsuite failures on HP-UX 11.23",
1154             <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00162.html>
1155           - 2010-11-15, "Testsuite failures on IRIX 6.5",
1156             <http://lists.gnu.org/archive/html/automake-patches/2010-11/msg00166.html>
1157
1158 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1159
1160         Minor improvements to test 'amopts.test'.
1161         * tests/amopts.test: Remove botched comment.  Make grepping of
1162         automake stderr slighty stricter.  Add trailing `:' command.
1163
1164 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1165
1166         backcompat6.test: avoid comments inside recipe commands.
1167         * tests/backcompat6.test: Remove shell comments from makefile rule
1168         commands, as they are not portable to (at least) Tru64 make.
1169
1170 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1171
1172         man8.test: avoid comments inside recipe commands.
1173         * tests/man8.test: Remove shell comments from makefile rule
1174         commands, as they are not portable to (at least) Tru64 make.
1175
1176 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1177
1178         Fix sed-related buglet in test "subdir5.test"
1179         * tests/subdir5.test: Always terminate text passed to the
1180         `i' sed command with a newline, to work around limitations
1181         in e.g. older OpenBSD sed.
1182
1183 2010-12-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1184
1185         Fix spurious failures in tests on AC_CONFIG_AUX_DIR.
1186         * tests/auxdir7.test: Do not try to needlessly overwrite the files
1187         `install-sh' and `missing'.  This avoid spurious failures in "make
1188         distcheck", when those files might be copied as read-only from the
1189         `lib' directory.
1190         * tests/auxdir8.test: Likewise.
1191
1192 2010-12-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
1193
1194         Make test 'posixsubst-script' portable to MinGW/MSYS.
1195         * tests/posixsubst-script.test: Ensure that the generated dummy
1196         scripts really start with a shebang line, to work around a
1197         limitation of 'test -x' on MinGW/MSYS.
1198         Reported by Ralf Wildenhues.
1199
1200         Improve comments in tests `posixsubst*.test'.
1201         * tests/posixsubst-data.test: Improve comment explaining why we
1202         try also empty match suffix.
1203         * tests/posixsubst-extradist.test: Likewise.
1204         * tests/posixsubst-ldadd.test: Likewise.
1205         * tests/posixsubst-libraries.test: Likewise.
1206         * tests/posixsubst-ltlibraries.test: Likewise.
1207         * tests/posixsubst-programs.test: Likewise.
1208         * tests/posixsubst-scripts.test: Likewise.
1209         * tests/posixsubst-sources.test: Likewise.
1210         * tests/posixsubst-tests.test: Likewise.
1211         Suggested by Ralf Wildenhues.
1212
1213 2010-12-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
1214
1215         docs: fix blunder in example about python extension modules
1216         * doc/automake.texi (Python): Use `quaternion_la_SOURCES',
1217         not `quaternion_SOURCES', to declare the sources of python
1218         extension module `quaternion.la'.
1219
1220 2010-12-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1221
1222         docs: list LTLIBRARIES among Automake primaries
1223         * doc/automake.texi (Uniform): List `LTLIBRARIES' among
1224         the Automake primaries.
1225
1226 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1227             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1228
1229         Tests defs: requirement 'xsi-shell' must be synced with libtool.
1230         * tests/defs (xsi-shell): Add comment telling to keep the
1231         XSI-conformance checks in sync with libtool.
1232
1233 2010-12-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1234
1235         Minor cleanups in canon7.test.
1236         * tests/canon7.test (_foo_bar_SOURCES): Remove libs.c.
1237         (configure.in): Remove AC_PROG_CXX.
1238
1239 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1240
1241         Avoid false positive in sc_tests_plain_make maintainer-check.
1242         * Makefile.am (sc_tests_plain_make): Ensure to only match full
1243         `make' words.  Avoid false positive with remake11.test.
1244
1245 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1246
1247         Fix canon7.test failure.
1248         * tests/canon7.test (_foo_bar_SOURCES): Add foobar.c.
1249         (lib.h, libd.c, libs.c): Use const for constant strings.
1250
1251 2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1252
1253         Fix typos in test comments.
1254         * tests/posixsubst-data.test, tests/posixsubst-extradist.test,
1255         tests/posixsubst-ldadd.test, tests/posixsubst-libraries.test,
1256         tests/posixsubst-ltlibraries.test, tests/posixsubst-programs.test,
1257         tests/posixsubst-scripts.test, tests/posixsubst-sources.test,
1258         tests/posixsubst-tests.test: Fix typos.
1259
1260 2010-12-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
1261
1262         More uses of AS_HELP_STRING in automake macros.
1263         * m4/depend.m4 (AM_DEP_TRACK): Use `AS_HELP_STRING' to format
1264         the help message added to the generated configure.
1265         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Likewise.
1266         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
1267         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
1268         * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
1269         Also, bumped all serial numbers of the modified m4 files.
1270
1271 2010-12-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
1272
1273         Improve tests on generated portions of configure help screen.
1274         * tests/help-depend.test: Grepping of configure help screen
1275         relaxed to cater for possible line wrapping, and tightened in
1276         other respects.
1277         * tests/help-depend2.test: Likewise.
1278         * tests/help-dmalloc.test: Likewise.
1279         * tests/help-lispdir.test: Likewise.
1280         * tests/help-maintainer.test: Likewise.
1281         * tests/help-multilib.test: Likewise.
1282         * tests/help-silent.test: Likewise.
1283         * tests/help-upc.test: Likewise.
1284         * tests/help-init.test: Grepping of configure help screen
1285         tightened.
1286
1287 2010-12-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1288
1289         Extended tests on AC_CONFIG_AUX_DIR.
1290         * tests/auxdir.test: Enable `errexit' shell flag.  Prefer `$me'
1291         over hard-coded test name.  Use proper m4 quoting.  Add trailing
1292         `:' command.
1293         * tests/auxdir2.test: Likewise.  Try to call automake also with
1294         the `-a' option, so that it will not fail for spurious reasons.
1295         * tests/auxdir3.test: Add an explanatory comment and a trailing
1296         `:' command.
1297         * tests/auxdir4.test: Prefer `$me' over hard-coded test name.
1298         Make grepping of automake stderr slightly stricter.  Also, now
1299         this test just checks about Automake's reaction to unportable
1300         auxiliary directory names (and it has been extended in this
1301         respect).  Moved the checks about non-existent auxiliary
1302         directories to ...
1303         * tests/auxdir5.test: ... this new test.
1304         * tests/auxdir6.test: New test.
1305         * tests/auxdir7.test: Likewise.
1306         * tests/auxdir8.test: Likewise.
1307         * tests/auxdir9.test: Likewise.
1308         * tests/Makefile.am (TESTS): Updated.
1309
1310 2010-12-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
1311
1312         Tests: extend checks on remake rules.
1313         This adds proper semantical tests (i.e. run make to check the
1314         rebuild rules are correctly triggered) in addition to tentative
1315         grepping of the generated Makefile.in(s).
1316         * tests/remake.test: Enable `errexit' shell flag, and related
1317         changes.  Modernize `configure.in'.  Add trailing `:' command.
1318         Improve heading comments, and add a reference to new sister test
1319         remake1a.test.
1320         * tests/remake3.test: Likewise (but with sister test being
1321         remake3a.test).
1322         * tests/remake2.test: Improve heading comments.  Enable `errexit'
1323         shell flag, and related changes.  Modernize `configure.in'.  Make
1324         grepping of `Makefile.in' slightly stricter.  Add trailing `:'
1325         command.
1326         * tests/remake5.test: Also run the `distcheck' target.  Add
1327         trailing `:' command.  Use proper m4 quoting in configure.in.
1328         * tests/remake4.test: Prefer `$me' over hard-coded test name.
1329         * tests/remake7.test: Use the `configure.in' stub created by
1330         ./defs, rather than writing it from scratch.
1331         * tests/remake6.test: Likewise.  Also, add trailing `:' command,
1332         and ensure verbose printing of captured make output.
1333         * tests/remake1a.test: New test, sister of remake.test.
1334         * tests/remake3a.test: New test, sister of remake3.test.
1335         * tests/remake8a.test: New test.
1336         * tests/remake8b.test: Likewise.
1337         * tests/remake9a.test: Likewise.
1338         * tests/remake9b.test: Likewise.
1339         * tests/remake9c.test: Likewise.
1340         * tests/remake9d.test: Likewise.
1341         * tests/remake10a.test: Likewise.
1342         * tests/remake10b.test: Likewise.
1343         * tests/remake10c.test: Likewise.
1344         * tests/remake11.test: Likewise.
1345         * tests/remake12.test: Likewise.
1346         * tests/Makefile.am (TESTS): Updated.
1347
1348 2010-12-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
1349
1350         Improve and extend tests on canonicalization.
1351         * tests/canon-name.test: Add trailing `:' command.  When writing
1352         configure.in, prefer to use $me instead of hard-coding the test
1353         name.
1354         * tests/canon3.test: Prefer trailing `:' over trailing `Exit 0'.
1355         * tests/canon4.test: Likewise.  Make grepping of Makefile.in
1356         stricter.  Improve heading comment, and add reference to ...
1357         * tests/canon6.test: ... this new test (sister test of the
1358         previous one).
1359         * tests/canon.test: Prefer cat + here-doc over echo to append
1360         text to configure.in.  Extend grepping of Automake stderr.  Add
1361         trailing `:' command.
1362         * tests/canon5.test: Likewise.
1363         * tests/canon7.test: New file, stress test on canonicalization.
1364         * tests/canon8.test: New test, for better coverage (check that
1365         the `@' character is not transliterated in canonicalizations).
1366         * tests/Makefile.am: Updated.
1367
1368 2010-12-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1369
1370         Libobj tests: refer to automake bug tracker for limitations.
1371         * tests/libobj15b.test (configure.in): In the comment explaining
1372         why an apparently redundant AC_OUTPUT is indeed needed, refer
1373         to the relevant entry in the Automake bug tracker rather than
1374         describing the bug in detail with a FIXME-style comment.
1375         * tests/libobj15c.test: Likewise.
1376         * tests/libobj20b.test: Likewise.
1377
1378         Libobj tests: do not use `##' automake comments in-line.
1379         * tests/libobj19.test (Makefile.am): Do not use inline `##'
1380         comments in the definition of AUTOMAKE_OPTIONS.
1381         * tests/libobj20c.test: Likewise.
1382         Report by Ralf Wildenhues.
1383
1384 2010-12-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1385
1386         Fix testsuite failure of check12.test without DejaGNU.
1387         * tests/check12.test: Require runtest.
1388
1389 2010-12-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
1390
1391         Tests defs: more uses of $top_testsrcdir.
1392         * tests/compile6.test: Use `$top_testsrcdir' instead of
1393         `$testsrcdir/..'.
1394
1395 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
1396
1397         Tests required tools: also try `-v' option for GNU compilers.
1398         * tests/defs.in: In the loop on "$required" tools, for gcc
1399         and g++, also run "gcc -v" (resp. "g++ -v"), to get more
1400         information, and for consistency with gcj.
1401
1402 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
1403             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1404
1405         Tests defs: avoid some useless subshells.
1406         * tests/defs: In the loop on "$required" tools: avoid subshells
1407         where not needed.
1408
1409 2010-12-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
1410
1411         Extend tests on AC_LIBOBJ and friends.
1412         * tests/aclibobj.test: Removed, superseded by ...
1413         * tests/libobj-basic.test: ... this new test, which runs autoconf,
1414         ./configure and make, to ensure everything really works.
1415         * tests/libobj3.test: Add trailing `:' command.  Escape literal
1416         dot in grep regexp.
1417         * tests/libobj4.test: Enable `errexit' shell flag, and related
1418         changes.  Add trailing `:' command.  Use proper m4 quoting.
1419         * tests/ltlibobjs.test: Likewise.
1420         * tests/libobj5.test: Enable `errexit' shell flag, and related
1421         changes.  Add trailing `:' command.  Make more robust by using
1422         longer filenames to be grepped.
1423         * tests/libobj8.test: Enable `errexit' shell flag, and related
1424         changes.  Add trailing `:' command.  Use the configure.in
1425         stub provided by ./defs, rather than writing it from scratch.
1426         * tests/libobj2.test: Likewise.  Also, add calls to autoconf,
1427         ./configure and make, to ensure everything really works.
1428         * tests/libobj7.test: Likewise, and ensure that at least one
1429         function listed in AC_REPLACE_FUNCTIONS is truly replaced.
1430         * tests/libobj13.test: Make grepping of Automake stderr slightly
1431         stricter.  Add trailing `:' command.
1432         * tests/libobj12.test: Likewise.  Also, prefer "cat + here-doc"
1433         over "echo" to append to Makefile.am, and some cosmetic changes
1434         in spacing.
1435         * tests/libobj14.test: Call `Exit 1' if sourcing of ./defs fails.
1436         Slighty improve m4 quoting.  Add trailing `:' command.
1437         * tests/libobj10.test: Add calls to autoconf, ./configure and
1438         make, to ensure everything really works.  Also, remove tests that
1439         nonexistent source for AC_LIBOBJ cause an Automake failure: this
1440         is already checked by ...
1441         * tests/libobj15a.test: ... this new test.
1442         * tests/libobj15b.test: New test, sister test of libobj15a.test,
1443         checks AC_LIBSOURCE instead of AC_LIBOBJ.
1444         * tests/libobj15c.test: New test, sister test of libobj15a.test,
1445         checks AC_LIBSOURCES instead of AC_LIBOBJ.
1446         * tests/libobj11.test: Removed, superseded by ...
1447         * tests/libobj16a.test: ... this new test.
1448         * tests/libobj16b.test: New test, sister test of libobj16a.test,
1449         but using oldish/deprecated idioms.
1450         * tests/libobj17.test: New test.
1451         * tests/libobj18.test: Likewise.
1452         * tests/libobj19.test: Likewise.
1453         * tests/libobj20a.test: Likewise.
1454         * tests/libobj20b.test: Likewise.
1455         * tests/libobj20c.test: Likewise.
1456         * tests/Makefile.am (TESTS): Updated.
1457
1458 2010-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1459
1460         Test `$(var:suf=rpl)' expansion in special automake variables.
1461         * tests/posixsubst-data.test: New test.
1462         * tests/posixsubst-extradist.test: Likewise.
1463         * tests/posixsubst-ldadd.test: Likewise.
1464         * tests/posixsubst-libraries.test: Likewise.
1465         * tests/posixsubst-ltlibraries.test: Likewise.
1466         * tests/posixsubst-programs.test: Likewise.
1467         * tests/posixsubst-scripts.test: Likewise.
1468         * tests/posixsubst-sources.test: Likewise.
1469         * tests/posixsubst-tests.test: Likewise.
1470         * tests/Makefile.am (TESTS): Update.
1471
1472 2010-12-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
1473
1474         Make tests `colon*.test' more "semantic".
1475         Prefer running configure and make over grepping the generated
1476         files; this is both more correct and less fragile.
1477         * tests/colon.test: Made more "semantic", as described above.
1478         * tests/colon5.test: Likewise.
1479         * tests/colon6.test: Likewise.
1480         * tests/colon7.test: Likewise.
1481         * tests/colon2.test: Likewise, and improve syncing with sister
1482         test `colon3.test'.
1483         * tests/colon3.test: Likewise (but with the sister test being
1484         `colon2.test' here).
1485
1486 2010-12-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1487
1488         Extend and improve tests on DejaGnu support.
1489         * tests/dejagnu.test: Do not create useless dummy test script.
1490         Add trailing `:' command.  In heading comments, add reference
1491         to ...
1492         * tests/check12.test: ... this new "semantic" test, covering
1493         concurrent use of dejagnu tests, simple tests and `check-local'
1494         target.
1495         * tests/dejagnu2.test: Make test more reliable, by avoid weak
1496         grepping of make output.  Prefer `cat' over `echo' to append
1497         to configure.in.  Quote literal dots in grep regexps.  Prefer
1498         `grep -c ...' over `grep ... | wc -l'.  Make grepping of
1499         automake stderr slightly stricter.  Add trailing `:' command.
1500         * tests/dejagnu3.test: Prefer `cat' over `echo' to append to
1501         configure.in.  Check stderr of expected-to-fail "make" call.
1502         Remove extra blank lines from Makefile.am.
1503         * tests/dejagnu4.test: Prefer `cat' over `echo' to append to
1504         configure.in.  Prefer `mv -f' over plain `mv' when the target
1505         file already exists.  Avoid extra mkdir calls by creating more
1506         directories at once.  Better use of blank lines.  Check that
1507         the `*.log' and `*.sum' files are created by runtest also when
1508         "make check" fails.
1509         * tests/dejagnu7.test: Prefer `cat' over `echo' to append to
1510         configure.in.  Better use of blank lines.  Add a trailing `:'
1511         command.
1512         * tests/dejagnu6.test: Likewise, and give the dejagnu test a
1513         more descriptive name.
1514         * tests/dejagnu5.test: Likewise.  Also, simply define package
1515         name to `$me' rather than using a non-obvious sed script to
1516         extract it from `AC_INIT', and write the Makefile.am with only
1517         one command.
1518         * tests/Makefile.am (TESTS): Updated.
1519
1520 2010-12-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1521
1522         Avoid running installed automake from 'libtool --help'.
1523         * tests/subobj9.test: Export AUTOCONF and AUTOMAKE.
1524         Together with fixed Libtool, this fixes check-coverage to not
1525         invoke installed automake.
1526
1527 2010-12-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
1528
1529         Separate checks on target overriding into multiple test scripts.
1530         * tests/overrid.test: Deleted, its contents separated into ...
1531         * tests/override-suggest-local.test: ... this new test ...
1532         * tests/override-html.test: ... and this new test ...
1533         * tests/override-conditional-1.test: ... and this new test ...
1534         * tests/override-conditional-2.test: ... and this new test (still
1535         xfailing).
1536         * tests/Makefile.am (TESTS, XFAIL_TESTS): Updated.
1537
1538         Enable `set -e' in more tests (plus some tweakings).
1539         * tests/implicit.test: Enable `errexit' shell flag, and related
1540         changes.  Add trailing `:' command.
1541         * tests/insh2.test: Likewise.
1542         * tests/instman2.test: Likewise.
1543         * tests/interp.test: Likewise.
1544         * tests/interp2.test: Likewise.
1545         * tests/library.test: Likewise.
1546         * tests/mclean.test: Likewise.
1547         * tests/info.test: Enable `errexit' shell flag, and related
1548         changes.  Add trailing `:' command.  Remove useless chaff from
1549         generated Makefile.am.  Add a "FIXME" comment.
1550         * tests/include.test: Enable `errexit' shell flag, and related
1551         changes.  Add trailing `:' command.  Prefer cat + here-doc over
1552         echo to append to configure.in.  Make tests more robust by using
1553         longer and less common names to grep.  Remove an useless call to
1554         echo.  Remove an useless subshell.
1555         * tests/header.test: Enable `errexit' shell flag, and related
1556         changes.  Use proper m4 quoting.  Add excerpts from the original
1557         report of the bug tested for by this script.
1558         * tests/gcj.test: Enable `errexit' shell flag, and related
1559         changes.  Use proper m4 quoting.  Add trailing `:' command.
1560         * tests/gcj3.test: Likewise.
1561         * tests/ldflags.test: Likewise.
1562         * tests/libtool.test: Likewise.
1563         * tests/listval.test: Likewise.
1564         * tests/javaprim.test: Likewise, and prefer cat + here-doc over
1565         echo to append to configure.in.
1566         * tests/javasubst.test: Likewise.
1567         * tests/discorver.test: Enable `errexit' shell flag.  Prefer
1568         trailing `:' over trailing `Exit 0'.
1569         * tests/instdat.test: Enable `errexit' shell flag, and related
1570         changes.  Use proper m4 quoting.  Avoid usless subshell.  Prefer
1571         cat + here-doc over echo to append to configure.in.
1572         * tests/libtool2.test: Enable `errexit' shell flag, and related
1573         changes.  Add trailing `:' command.  Use the configure.in
1574         stub provided by ./defs, rather than writing it from scratch.
1575
1576         Modernize, improve and/or tweak some test scripts.
1577         * tests/maintclean.test: Use proper m4 quoting.  Add trailing `:'
1578         command.
1579         * tests/sinclude.test: Likewise, and add a couple of blank lines,
1580         for clarity.
1581         * tests/make.test: Move setting of `errexit' shell flag earlier in
1582         the script (just after inclusion of ./defs).  Use the configure.in
1583         stub created by ./defs, rather than writing it from scratch.  Some
1584         cosmetic changes in spacing.  Ensure we wait enough time before
1585         touching configure.in to trigger the rebuild rules.
1586         * tests/makej.test: Use `$me' instead of hard-coding the test
1587         name.  Add trailing `:' command.
1588         * tests/version7.test: Likewise.
1589         * tests/space.test: Enable `errexit' shell flag, and related
1590         changes.
1591         * tests/makevars.test: Likewise.  Also, prefer trailing `:' over
1592         trailing `Exit 0', and be more tolerant of white spaces when
1593         grepping Makefile.in.
1594
1595 2010-12-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1596
1597         * tests/silent8.test: Use "|| Exit 1" after ". ./defs".
1598
1599         Enable `set -e' in more tests (plus some tweakings).
1600         * tests/mkinstall.test: Enable `errexit' shell flag, and related
1601         changes.  Add a trailing `:' command, if needed.
1602         * tests/mdate2.test: Likewise.
1603         * tests/objc.test: Likewise.
1604         * tests/noinst.test: Likewise.
1605         * tests/outdir.test: Likewise.
1606         * tests/number.test: Likewise.
1607         * tests/pluseq.test: Likewise.
1608         * tests/req.test: Likewise.
1609         * tests/rulepat.test: Likewise.
1610         * tests/specflg6.test: Likewise.
1611         * tests/spell3.test: Likewise.
1612         * tests/parse.test: Likewise, and ...
1613         (configure.in): Use the stub created by ./defs, rather than
1614         writing it from scratch.  Remove useless calls to AC_PROG_RANLIB
1615         and AC_OUTPUT.
1616         * tests/mdate4.test: Likewise.
1617         * tests/mkinstall.test: Likewise, and ...
1618         (configure.in): ... drop useless call to `AC_OUTPUT'.
1619         * tests/output.test: Enable `errexit' shell flag, and related
1620         changes.  Add a trailing `:' command.
1621         (configure.in): Modernize.
1622         * tests/output2.test: Likewise.
1623         * tests/output3.test: Likewise.
1624         * tests/output4.test: Likewise.
1625         * tests/mdate3.test: Enable `errexit' shell flag, and related
1626         changes.  Prefer `$me' over hard-coded test name.  Do not move
1627         non-existent or useless files in the build auxiliary directory.
1628         * tests/nodistdir.test: Enable `errexit' shell flag, and related
1629         changes.  Prefer trailing `:' over trailing `Exit 0'.
1630         * tests/nodist.test: Likewise.  Also, prefer cat + here-doc over
1631         echo to create input test files, and do not create useless dummy
1632         C source files.
1633         * tests/nodist2.test: Likewise.
1634         * tests/ppf77.test: Enable `errexit' shell flag, with related
1635         changes.  Add a trailing `:' command.  Do not create useless
1636         dummy source files.
1637         * tests/spelling.test: Enable `errexit' shell flag, with related
1638         changes.  Add a trailing `:' command.  Also, grep Automake error
1639         message.
1640         * tests/specflg3.test: Enable `errexit' shell flag, with related
1641         changes.  Avoid unportable use of `-e' option of fgrep.  Prefer
1642         trailing `:' over trailing `Exit 0'.  Remove extra empty lines,
1643         and cosmetic changes to whitespaces.
1644         * tests/obsolete.test: Enable `errexit' shell flag, with related
1645         changes.  Improve verbosity.  Other miscellanous changes.
1646
1647 2010-11-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
1648
1649         Improve and extend tests on `:=' variable assignments.
1650         * tests/colneq.test: Avoid redundant use of variable assignments
1651         in Makefile.am.  Use command-line automake options instead of
1652         editing AUTOMAKE_OPTIONS in Makefile.am.  Make grepping of the
1653         generated Makefile.in slightly stricter.  Add a trailing `:'
1654         command.
1655         * tests/colneq2.test: Do not create unneeded dummy files.  Run
1656         also autoconf, ./configure and make.  Add trailing `:' command.
1657         * tests/colneq3.test: New test, similar to colneq.test, but
1658         running also autoconf, ./configure and make.
1659         * tests/Makefile.am (TESTS): Update.
1660
1661 2010-11-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1662
1663         Remove long-deprecated options --Werror and --Wno-error.
1664         These options has been deprecated at least since commit
1665         "Release-1-6-1b-35-gc037f20", dated 2002-07-06.
1666         * automake.in (parse_arguments): Do not recognize anymore options
1667         `--Werror' and `--Wno-error' as synonyms of respectively `-Werror'
1668         and `-Wno-error'.
1669         * tests/werror.test: Update: use `-Werror' instead of `--Werror'.
1670         * NEWS: Update.
1671
1672 2010-11-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
1673
1674         Fix spurious failures in `silent*.test' for $CC != gcc
1675         In some tests on automake-produced silent rules, we forced the
1676         use of gcc depmode to improve testsuite coverage; but this has
1677         unsurprisingly led to spurious failures when some non-GNU C
1678         compilers were used.  So we are now careful to require GCC in
1679         tests that force gcc depmode.
1680         From reports by Ralf Wildenhues.
1681         * silent5.test: Test removed, its content split into ...
1682         * silent-many-generic.test, silent-many-gcc.test: ... these new
1683         sister tests, the latter of which forces gcc depmode and lists
1684         "gcc" in $required.
1685         * silentlex.test: Test removed, its content split into ...
1686         * silent-lex-generic.test, silent-lex-gcc.test: ... these new
1687         sister tests, the latter of which forces gcc depmode and lists
1688         "gcc" in $required.
1689         * silentyacc.test: Test removed, its content split into ...
1690         * silent-yacc-generic.test, silent-yacc-gcc.test: ... these new
1691         sister tests, the latter of which forces gcc depmode and lists
1692         "gcc" in $required.
1693         * tests/Makefile.am (TESTS): Updated.
1694
1695 2010-11-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
1696
1697         Tests: consistently use "|| Exit 1" after ". ./defs".
1698         * tests/autohdr.test: Use `. ./defs || Exit 1', not bare
1699         `. ./defs', for consistency with other tests.
1700         * tests/autohdr2.test: Likewise.
1701         * tests/autohdr3.test: Likewise.
1702         * tests/autohdr4.test: Likewise.
1703         * tests/cond23.test: Likewise.
1704         * tests/cond24.test: Likewise.
1705         * tests/cond25.test: Likewise.
1706         * tests/cond26.test: Likewise.
1707         * tests/cond27.test: Likewise.
1708         * tests/cond28.test: Likewise.
1709         * tests/cond29.test: Likewise.
1710         * tests/cond30.test: Likewise.
1711         * tests/cond31.test: Likewise.
1712         * tests/cond32.test: Likewise.
1713         * tests/cond33.test: Likewise.
1714         * tests/cond34.test: Likewise.
1715         * tests/cond35.test: Likewise.
1716         * tests/cond36.test: Likewise.
1717         * tests/cond37.test: Likewise.
1718         * tests/cond38.test: Likewise.
1719         * tests/cond39.test: Likewise.
1720         * tests/cond40.test: Likewise.
1721         * tests/cond41.test: Likewise.
1722         * tests/cond42.test: Likewise.
1723         * tests/cond43.test: Likewise.
1724         * tests/cond44.test: Likewise.
1725         * tests/cond45.test: Likewise.
1726         * tests/dollarvar.test: Likewise.
1727         * tests/dollarvar2.test: Likewise.
1728         * tests/hfs.test: Likewise.
1729         * tests/libobj14.test: Likewise.
1730         * tests/percent.test: Likewise.
1731         * tests/percent2.test: Likewise.
1732         * tests/phony.test: Likewise.
1733         * tests/silent.test: Likewise.
1734         * tests/silent2.test: Likewise.
1735         * tests/silent3.test: Likewise.
1736         * tests/silent4.test: Likewise.
1737         * tests/silent5.test: Likewise.
1738         * tests/silent6.test: Likewise.
1739         * tests/silent7.test: Likewise.
1740         * tests/silent9.test: Likewise.
1741         * tests/silentcxx.test: Likewise.
1742         * tests/silentf77.test: Likewise.
1743         * tests/silentf90.test: Likewise.
1744         * tests/silentlex.test: Likewise.
1745         * tests/silentyacc.test: Likewise.
1746
1747         Avoid useless cleaning in some `silent*.test' tests.
1748         * tests/silentf77.test: Removed useless calls to "make clean"
1749         and "make maintainer-clean".
1750         * tests/silentf90.test: Likewise.
1751         * tests/silent3.test: Removed useless call to "make distclean".
1752         * tests/silent4.test: Likewise.
1753         * tests/silent9.test: Likewise.
1754
1755 2010-11-19  Ian Lance Taylor  <iant@google.com>
1756
1757         Sync config-ml.in from GCC.
1758         * config-ml.in: Add Go support: treat GOC and GOCFLAGS like other
1759         compiler/flag environment variables.
1760
1761 2010-11-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1762
1763         release-stats: account for more generated tests.
1764         * Makefile.am (release-stats): Be sure to take into account all
1765         the generated tests, by grepping the test scripts to decide which
1766         ones of them are automatically generated.
1767
1768 2010-11-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
1769
1770         Code cleanup after removal of option `--output-directory'.
1771         * automake.in ($output_directory): Remove, it's unconditionally
1772         defined to `.' and used only ...
1773         (generate_makefile): ... in this subroutine, which now has been
1774         edited and simplified accordingly.
1775
1776         Remove obsolete automake option `--output-directory'.
1777         This option has been deprecated since version 1.7 (2002/2003).
1778         * automake.in ($output_directory): Define to `.' unconditionally.
1779         (parse_arguments): Remove handling of equivalent options `-o' and
1780         `--output-directory'.
1781         * tests/outdir.test: Removed.
1782         * tests/no-outdir-option.test: New test.
1783         * tests/Makefile.am (TESTS): Updated.
1784         * NEWS: Updated.
1785
1786 2010-11-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1787
1788         Automake::Config: remove extra trailing semicolon.
1789         * lib/Automake/Config.in: Remove extra trailing semicolon.
1790
1791         help4.test: fix botched heading comment.
1792         * tests/help4.test: Fixed the heading comment, since it
1793         didn't correctly describe what checks the testcase was
1794         supposed to perform.
1795
1796         help2.test: add checks on aclocal too.
1797         * tests/help2.test: Check that also `aclocal --version' and
1798         `aclocal --help' work with configure.in and acinclude.m4 both
1799         broken.
1800
1801 2010-11-19  Stefano Lattarini  <stefano.lattarini@gmail.com>
1802
1803         New test on repeated automake options.
1804         * tests/repeated-options.test: New test, check that automake
1805         does not complain on repeated options, nor generate broken or
1806         incorrect makefiles.
1807         * tests/Makefile.am (TESTS): Updated.
1808
1809 2010-11-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1810
1811         Fix spurious failures of silent-rules tests with Sun Fortran.
1812         * tests/silentf77.test: Strip from the make output some verbose
1813         messages possibly printed by the SunStudio fortran compilers, to
1814         avoid spurious failures.  Add a trailing `:' command.
1815         * tests/silentf90.test: Likewise.
1816
1817 2010-11-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
1818
1819         Fix spurious failures of silent5.test with Sun Fortran.
1820         * tests/silent5.test: Strip from the make output some verbose
1821         messages possibly printed by the SunStudio fortran compilers,
1822         to avoid spurious failures.  This bug has been there from the
1823         very first version of this test script.
1824
1825 2010-11-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1826
1827         Fix regression in colon{5,6}.test (failures on AIX 5.3).
1828         * tests/colon5.test: Also substitute `@SHELL@' with `$SHELL' when
1829         post-processing the generated Makefile.in, to work around a bug
1830         of AIX 5.3 make which doesn't allow setting the `$(SHELL)' macro
1831         on the commend line.  Calls to `$MAKE' adjusted accordingly.
1832         * tests/colon6.test: Likewise.
1833         Regression introduced in commit v1.11-175-gf9fe878 "Modernize,
1834         improve and/or extend tests `colon*.test", and reported by Ralf
1835         Wildenhues.
1836
1837 2010-11-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
1838
1839         Fix regression in ansi.test (failure on AIX 5.3).
1840         * tests/ansi.test: Remove redundant hackish check done using a
1841         hand-postprocessed Makefile.in.  This check worked by setting
1842         the `$(SHELL)' macro on the command line of make, but this is
1843         not supported by the AIX 5.3 make implementation.
1844         This bug has been lurking for a long time, and was activated by
1845         commit v1.11-125-gc1f6cdb "Enable `errexit' shell flag in various
1846         tests".  Report by Ralf Wildenhues.
1847
1848 2010-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1849
1850         backcompat5.test: avoid '##'-style comments inside recipe commands.
1851         * tests/backcompat5.test: Remove double-hash comments
1852         from makefile rule commands, they are not part of the
1853         Automake API.  Fixes testsuite failure with Tru64 make.
1854
1855         tests: avoid '##'-style comments inside recipe commands.
1856         * tests/confh.test, tests/confh8.test: Remove
1857         double-hash comments from makefile rule commands, they
1858         are not part of the Automake API.
1859
1860 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1861
1862         tests: work around dash quoting issue in case statements.
1863         * tests/color.test, tests/color2.test: Quote variable in case
1864         pattern, to avoid skipping tests with dash 0.5.5.1.
1865
1866 2010-11-16  Peter Rosin  <peda@lysator.liu.se>
1867
1868         Skip MSVC oriented tests if the shell is not capable.
1869         * tests/defs: New required entry 'xsi-shell'.
1870         * tests/ar-lib.test, tests/compile3.test, tests/compile6.test:
1871         Require a XSI capable shell.
1872         Reported by Ralf Wildenhues.
1873
1874 2010-11-15  Peter Rosin  <peda@lysator.liu.se>
1875
1876         compile: clear the `eat' variable earlier.
1877         * lib/compile: Clear the `eat' variable earlier.
1878         ($scriptversion): Update.
1879         * tests/compile3.test: Prevent regressions.
1880
1881 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1882
1883         More stable configure output from sanity check.
1884         * m4/sanity.m4 (AM_SANITY_CHECK): Always print check line
1885         about ensuring newer files, even if we don't actually need
1886         to wait any more.
1887
1888 2010-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1889
1890         Rebuild menus in the manual.
1891         * doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
1892         Thanks to Ian Lance Taylor for the suggestion.
1893
1894         Fix install-strip when $(STRIP) contains several words.
1895         * lib/am/install.am (install-strip): Update comment.  Use
1896         separate sub-make invocations for empty and nonempty $(STRIP),
1897         to fix quoting issues.
1898         * tests/strip2.test, tests/strip3.test: New tests.
1899         * tests/Makefile.am (TESTS): Adjust.
1900
1901 2010-11-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1902
1903         Fix yaccdry.test failure: require bison.
1904         * tests/yaccdry.test: Require bison.
1905         Found by NixOS Hydra.
1906
1907 2010-11-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
1908
1909         Fix bug in test `backcompat6.test' (MSYS portability).
1910         * tests/backcompat6.test (Makefile.am): Grep the output from the
1911         test program, rather than diffing it, to avoid spurious failures
1912         on MinGW/MSYS due to LF vs. CRLF line endings.
1913         Reported by Ralf Wildenhues.
1914
1915 2010-11-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1916
1917         Deprecate obsolete macro AM_WITH_REGEX.
1918         * m4/regex.m4: Document the `AM_WITH_REGEX' macro as obsolete,
1919         and state that it should be removed two years from now.
1920         (AM_WITH_REGEX): Raise an m4-time warning of the "obsolete"
1921         category when this macro is used.
1922         * doc/automake.texi (Public Macros): Move description of
1923         `AM_WITH_REGEX' from here ...
1924         (Obsolete Macros): ... to here, and declare it as obsolete
1925         and "to be removed in a future version".
1926         * tests/regex-obsolete.test: New test.
1927         * tests/Makefile.am (TESTS): Update.
1928
1929 2010-11-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1930
1931         Improve and extend tests on man pages support.
1932         * tests/man.test: Enable `errexit' shell flag, and related changes.
1933         Make grepping of generated Makefile.in slightly stricter.
1934         * tests/man3.test:  Add trailing `:' command.
1935         * tests/man5.test: Prefer cat + here-doc over echo to append to
1936         configure.in.
1937         * tests/man2.test: Likewise, and add trailing `:' command.
1938         * tests/man4.test: More thorough and consistent checking of make
1939         error messages.  Place fake `help2man' program in a new `bin'
1940         directory rather than in `.'.  Move the checks using the real
1941         `help2man' program to ...
1942         * tests/man6.test: ... this new test, and extend them.  This test
1943         passes with GNU make and Solaris make, still fails with BSD make.
1944         * tests/man7.test: New test, extracted from old man4.test, which
1945         checks for a bug in maintainer-clean w.r.t. generated manpages.
1946         * tests/man8.test: New test, extracted from old man4.test, which
1947         checks for a bug in distcheck w.r.t. generated manpages.  Passes
1948         with GNU make and Solaris make, still fails with BSD make.
1949
1950 2010-11-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1951
1952         Minor improvements and extensions to various tests.
1953         * tests/defun.test: Also run autoconf and grep the generated
1954         configure to make sure that aclocal truly picks up all the
1955         required macros.
1956         * tests/compile_f_c_cxx.test: Prefer trailing `:' over trailing
1957         `Exit 0'.  Do not create useless dummy source files.  Do not set
1958         useless `$(foo_LDADD)' variable in `Makefile.am'.  Do not call
1959         useless macro `AC_F77_LIBRARY_LDFLAGS' in `configure.in'.
1960         * tests/compile_f90_c_cxx.test: Likewise.
1961         * tests/suffix10.test: Slightly stricter grepping of make output.
1962         * tests/compile.test: Add trailing `:' command.
1963         * tests/defun2.test: Likewise.
1964         * tests/vars3.test: Likewise.
1965         * tests/vartar.test: Likewise.
1966         * tests/vars.test: Likewise.  Also, extend test by checking
1967         that the definition of `MY_FLAGS*' variables is preserved in
1968         the generated `Makefile.in'.
1969         * tests/stamph2.test: Prefer trailing `:' over trailing `Exit 0'.
1970         Use proper m4 quoting in `configure.in'.
1971
1972 2010-11-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
1973
1974         Tests defs: improve messages for skipped tests.
1975         * tests/defs: Give meaningful messages about the reasons of a
1976         test skip; this is especially useful as this file is run without
1977         verbose xtraces on.  Related reorderings in the code and new
1978         comments.
1979
1980 2010-11-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1981
1982         Tests defs: move static definitions in a new file `defs-static'.
1983         The new file is meant to be idempotent w.r.t. multiple inclusions.
1984         * tests/defs.in: Removed, its contents split among ...
1985         * tests/defs-static.in: ... this new file ...
1986         * tests/defs: ... and this new file, including the former.
1987         * configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
1988         `tests/defs-static'.
1989         (AC_CONFIG_LINKS): Add `tests/defs'.
1990         * tests/Makefile.am ($(parallel_tests)): Update.
1991         ($(instspc_tests)): Likewise.
1992         * tests/.gitignore: Update.
1993
1994         Tests defs: $testsbuilddir is now AC_SUBST'ed.
1995         * tests/defs.in ($testsbuilddir): Substitute from @abs_builddir@.
1996         Add sanity check on $testsbuilddir, similar to those on
1997         $testsrcdir and $top_testsrcdir.
1998
1999         Tests defs: do not print message "Running test $0" anymore.
2000         * tests/defs.in: Printing the message "=== Running test $0" at
2001         the beginning of each tests made sense when Automake used the old
2002         test-driver, which sent all the output directly to stdout/stderr.
2003         Now that the parallel test-driver is used, which saves output of
2004         each test in its corresponding log file, that old message is just
2005         useless noise.
2006
2007         Tests defs: rename $curdir -> $testbuilddir
2008         * tests/defs.in: Rename $curdir to $testbuildir, for clarity and
2009         consistency with $testsrcdir and $top_testsrcdir.
2010
2011         Tests defs: prefer "$curdir" over "`pwd`".
2012         * tests/defs.in: We already save the value of `pwd` in $curdir
2013         early in the file, so there no need to recalculate it later, when
2014         the current working directory is not changed.
2015
2016         Tests defs: use `$me' in more error messages.
2017         * tests/defs.in: Also use `$me' in error messages referring to
2018         missing `defs' or `defs.in', since that variable is now defined
2019         before those checks.
2020
2021         Tests defs: do not use `Exit' where plain `exit' suffices.
2022         * tests/defs.in: Use "exit 77" rather than "Exit 77" to skip the
2023         test when required libtool/gettext macros are not found, since
2024         such skips would take place before the exit trap is installed.
2025
2026         Tests defs: improve and extends comments.
2027         * tests/defs.in: Improve and extends some comments, especially in
2028         relation with the changes introduced by the previous reordering.
2029
2030         Tests defs: various reorderings.
2031         * tests/defs.in: Reordered various snippets of code in a
2032         clearer way.
2033
2034 2010-11-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
2035
2036         Fix bug in test `backcompat4.test' (stale autom4te cache).
2037         * tests/backcompat4.test: Remove stale autom4te cache directory
2038         before re-running aclocal and automake.  Also, since we are at
2039         it, be more verbose in displaying contents of generated files,
2040         to ease debuggability.
2041         Reported by Ralf Wildenhues.
2042
2043 2010-11-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2044
2045         Fix a bug in variable concatenation with `+='.
2046         * lib/Automake/VarDef.pm (append): Since the content of the
2047         "appended-to" variable is going to be unconditionally normalized
2048         later, simply separate the appended value with a single whitespace
2049         character, instead of trying to be uselessly smarter by using
2050         escaped newlines.  This fixes a bug in which extra backslashes
2051         where erroneously inserted in the variable's final value.
2052         * tests/pluseq11.test: New test, exposing the bug.
2053         * tests/Makefile.am (TESTS): Update.
2054         Reported by Andy Wingo.
2055
2056 2010-11-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2057
2058         Modernize, improve and/or tweak various test scripts.
2059         * tests/stamph2.test: Improve m4 quoting in `configure.in', and
2060         prefer trailing `:' over trailing `Exit 0'.
2061         * tests/syntax.test: Escape literal dots in grep regexps.
2062         * tests/copy.test: Enable `errexit' shell flag.  Extend test by
2063         checking with `test' utility that the script `install-sh' is
2064         copied, but not symlinked.
2065         * tests/depdist.test: Move setting of `errexit' shell flag earlier
2066         in the script (just after inclusion of ./defs).  Avoid obsoleted
2067         constructs in generated `configure.in'.  Prefer to do our checks
2068         by running configure and make over grepping Makefile.in.
2069         * tests/target-cflags: Move setting of `errexit' shell flag
2070         earlier in the script (just after inclusion of ./defs). Use the
2071         `configure.in' stub created by `./defs', rather than writing it
2072         from scratch.
2073         * tests/target-clash: Do not uselessly run autoconf.
2074         * tests/ctarget1.test: Renamed ...
2075         * tests/cond-basic.test: ... to this.  Use the `configure.in' stub
2076         created by `./defs', rather than writing it from scratch.
2077         Move setting of `errexit' shell flag earlier in the script (just
2078         after inclusion of ./defs).  Other minor cosmetic changes.
2079         * tests/Makefile.am (TESTS): Updated.
2080
2081 2010-11-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2082
2083         New tests on obsoleted usages of automake/autoconf macros (such
2084         as AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).
2085         * tests/backcompat.test: New test script.
2086         * tests/backcompat2.test: Likewise.
2087         * tests/backcompat3.test: Likewise.
2088         * tests/backcompat4.test: Likewise.
2089         * tests/backcompat5.test: Likewise.
2090         * tests/backcompat6.test: Likewise.
2091         * tests/init.test: Extended and improved, esp. by trying more
2092         combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
2093         arguments.
2094         * tests/Makefile.am (TESTS): Updated.
2095
2096 2010-11-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2097
2098         Fix bug in rules for creating vala vapi/header files.
2099         * automake.in (lang_vala_finish_target): Add forgotten "fi" in an
2100         if control structure in a generated make rules.  Bug introduced
2101         by previous commit `v1.11-221-gd7c1679', and revealed by failure
2102         of test `vala2.test'.
2103
2104 2010-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2105
2106         Fix and document rules to not touch the tree with `make -n'.
2107         * doc/automake.texi (Multiple Outputs): Document the problem of
2108         modifications during dry-run execution, propose solution.
2109         * NEWS: Update.
2110         * automake.in (lang_vala_finish_target): Split recipe so the
2111         stamp file is not removed with GNU `make -n'.
2112         (lang_yacc_target_hook): Separate removal of parser output file
2113         and header remaking.
2114         * lib/am/lisp.am ($(am__ELCFILES)): Determine whether -n was
2115         passed to make, take care not to remove any files in that case.
2116         * lib/am/remake-hdr.am (%CONFIG_H%): Separate removal of
2117         %STAMP% file from induced remaking of config header.
2118         * tests/autohdrdry.test, tests/lispdry.test, tests/yaccdry.test:
2119         New tests.
2120         * tests/Makefile.am (TESTS): Update.
2121
2122 2010-11-05  Stefano Lattarini  <stefano.lattarini@gmail.com>
2123
2124         Fix potential bug in generated tests `instpc-*.test'.
2125         This bug is due to the changes introduced by the recently-merged
2126         "tests-init" branch.  In that branch, `tests/defs' didn't define
2127         anymore `$srcdir', instead defining directly `$testsrcdir'; but
2128         the generated tests were using `$srcdir', hence the bug.
2129         Luckily, since the Automake parallel test driver automatically
2130         exports `srcdir' to a proper value, that prevented the bug from
2131         manifesting itself.
2132         * tests/Makefile.am ($(instspc_tests)): In the generated test
2133         scripts, use `$testsrcdir', not `$srcdir'.
2134
2135 2010-11-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
2136
2137         Overhauled and modularized tests in `instspc.test'.
2138         The test `instspc.test' was way too big and fragile.  Its running
2139         time was very long.  It also produced a log that was nearly
2140         unreadable due to its length, making it very difficult to find
2141         out the reason for failures.
2142         Also, it was too much monolithic, with a single (maybe spurious)
2143         failure in a corner case causing the whole test to fail (even if
2144         everything worked as expected in the other 99% of cases).
2145         The present change should solve these problems, by separating
2146         `instspc.test' into many smaller, self-contained, auto-generated
2147         tests.
2148         * tests/instspc.test: Removed.
2149         * tests/instspc-tests.sh: New script, fulfilling a double role:
2150         1. it generates a Makefile.am snippet `tests/instspc-tests.am',
2151         containing the definition of a list of new tests which will take
2152         over the older `instspc.test', and
2153         2. it is sourced by said generated tests with proper parameters
2154         pre-set, to run the "meat" of the checks.
2155         This apparent abuse is indeed required because the test generation
2156         code and test execution code are inevitably intertwined.
2157         * tests/Makefile.am ($(srcdir)/instspc-tests.am): Include this
2158         snippet, which (among the other things) defines ...
2159         (instspc_tests): ... this new macro, containing the list of the
2160         newly generated `instspc*.test' tests, and ...
2161         (instspc_xfail_tests): ... this new macro, containing the list
2162         of the `instspc*.test' tests expected to fail.
2163         ($(instspc_tests)): New rule, generates the `instspc*.test' tests.
2164         ($(instspc_tests:.test=.log)): New rule, registers the dependency
2165         of all `instspc*.test' tests on the `instspc-tests.sh' script.
2166         (TESTS): Add `$(instspc_tests)', remove `instspc.test'.
2167         (XFAIL_TESTS): Add `$(xfail_instspc_tests)'.
2168         (EXTRA_DIST): Distribute instspc-tests.sh.
2169         (MAINTAINERCLEANFILES): Added $(instspc_tests).
2170         Other minor cosmetic changes.
2171         * bootstrap: Generate instspc-tests.am.
2172         * tests/.gitignore: Updated.
2173
2174 2010-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2175
2176         Add FAQ entry for bug reporting instructions.
2177         * doc/automake.texi (Reporting Bugs): New section.
2178         (Introduction): Refer to it.
2179
2180 2010-10-07  Peter Rosin  <peda@lysator.liu.se>
2181
2182         depcomp: add new one-pass depmode for MSVC 7 and later.
2183         * lib/depcomp: Add new depmodes 'msvc7' and 'msvc7msys' which
2184         make use of the -showIncludes option added in MSVC 7.
2185         * m4/depend.m4 (_AM_DEPENDENCIES): Handle the new depmodes
2186         similarly to 'msvisualcpp' and 'msvcmsys' as MSVC does not
2187         support the -o option.
2188
2189 2010-10-05  Jim Meyering  <meyering@redhat.com>
2190
2191         dist-xz, dist-bzip2: don't hard-code -9: honor envvar settings
2192         * lib/am/distdir.am (dist-xz): Do not hard-code xz's -9: that
2193         made it impossible to override.  Instead, use its XZ_OPT envvar,
2194         defaulting to -9 if not defined.  Thus no change in behavior
2195         when XZ_OPT is not set, and now, this rule honors the setting
2196         of that envvar when it is set.  Suggested by Lasse Collin.
2197         (dist-bzip2): Likewise for it's corresponding envvar: BZIP2.
2198         * NEWS (Miscellaneous changes): Mention it.
2199         * doc/automake.texi (The Types of Distributions): Describe the
2200         newly enabled environment variables.
2201
2202 2010-10-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
2203
2204         Add support for newer python versions.
2205         * m4/python.m4 (AM_PATH_PYTHON): Add python2.7 and python3.2 to
2206         _AM_PYTHON_INTERPRETER_LIST.  Since we are at it, break a long
2207         line and fix indentation.
2208         * THANKS: Updated.
2209         From a report by Thomas Klausner.
2210
2211         Add test for `AM_WITH_DMALLOC' macro.
2212         * tests/dmalloc.test: New test.
2213         * tests/Makefile.am (TESTS): Update.
2214
2215         Fix nits and bugs in tests `help*.test'.
2216         * tests/help4.test: Fix broken sed commands used to strip `-W...'
2217         flags away from "$AUTOMAKE" and "$ACLOCAL".
2218         * tests/help3.test: Likewise, and fix a botched comment.
2219         * tests/help.test: Likewise.  Also, use "AUTOMAKE_fails ..."
2220         instead of "$AUTOMAKE ... && Exit 1", for consistency and to
2221         please maintainer-check.
2222         * tests/help2.test: Likewise.
2223
2224 2010-10-03  Stefano Lattarini  <stefano.lattarini@gmail.com>
2225             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2226
2227         Improve tests `help*.test' (also fixes maintcheck failures).
2228         * tests/help.test: To run automake, use `$AUTOMAKE' with all `-W'
2229         flags stripped away rather than hard-coded `automake-$APIVERSION',
2230         to better honour user-overrides.  Similarly for aclocal.
2231         * tests/help2.test: Likewise.
2232         * tests/help3.test: Likewise.
2233         * tests/help4.test: Likewise.
2234
2235 2010-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2236
2237         tests: fix ar-lib.test for echo that interprets backslashes.
2238         * tests/ar-lib.test: Use printf instead of echo.  Avoid test -a.
2239         More robust quoting.
2240
2241 2010-10-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2242
2243         maintainer-check coverage for variables before rules.
2244         * Makefile.am (sc_ensure_testsuite_has_run): Suggest keeping
2245         around the test directories.
2246         (sc_tests_makefile_variable_order): New rule with a heuristic to
2247         catch ordering violations.
2248
2249         Document and fix expansion of variables before rules.
2250         * doc/automake.texi (General Operation): Document that variables
2251         are expanded before rules.
2252         * lib/am/check.am (am__check_post): Reword a bit so it does not
2253         get matched as a rule.
2254         Suggestion by Ben Pfaff.
2255
2256 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2257
2258         Coverage and minor fixes for variable typo detection.
2259         * automake.in (check_typos): Remove `EXTRA_' prefix when
2260         computing canonical name.
2261         * tests/vartypo2.test, tests/vartypos.test: New tests.
2262         * tests/Makefile.am (TESTS): Update.
2263
2264         Implement EXTRA_maude_DEPENDENCIES for programs and libraries.
2265         * automake.in (handle_programs, handle_libraries)
2266         (handle_ltlibraries): Mark EXTRA_*_DEPENDENCIES as recognized.
2267         * doc/automake.texi (Linking, Program and Library Variables)
2268         (LIBOBJS): Document EXTRA_*_DEPENDENCIES.
2269         * lib/am/library.am (%LIBRARY%): Also depend on
2270         $(EXTRA_%XLIBRARY%_DEPENDENCIES).
2271         * lib/am/ltlibrary.am (%LTLIBRARY%): Also depend on
2272         (%XLTLIBRARY%_DEPENDENCIES).
2273         * lib/am/program.am (%PROGRAM%%EXEEXT%): Also depend on
2274         $(EXTRA_%XPROGRAM%_DEPENDENCIES).
2275         * tests/extradep.test, tests/extradep2.test: New tests.
2276         * tests/Makefile.am (TESTS): Update.
2277         * NEWS: Update.
2278         Suggested by Eric Blake.
2279
2280         tests: avoid running into timing issues due to sanity change.
2281         * tests/acloca10.test, tests/acloca18.test, tests/aclocal9.test:
2282         Insert strategic sleep before aclocal reruns, to ensure files
2283         are newer.
2284         * tests/python11.test: Use --force for repeated autotools runs.
2285         Reports from the NixOS Hydra build daemon via Ludovic Courtès.
2286
2287         Fix timestamp issues by ensuring configure takes at least a second.
2288         * m4/sanity.m4 (AM_SANITY_CHECK): If we didn't sleep here,
2289         start a sleep in the background and wait for it to finish
2290         before creating config.status, hopefully fixing all spurious
2291         testsuite failures involving botched time stamps.
2292         * NEWS: Update.
2293         Reports by Ludovic Courtès, Peter Breitenlohner, and others.
2294
2295 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2296
2297         Revert "parallel-tests: avoid command-line length limit issue."
2298         This reverts commit 24e3b4ee2f8cb9f72dd94a05a893f3d4e88b7835,
2299         because it re-opened the bug fixed by v1.11-10-g218e678.
2300
2301         2010-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2302
2303         parallel-tests: avoid command-line length limit issue.
2304         * automake.in (handle_tests): New argument $makefile, new
2305         substitution %MAKEFILE%.
2306         (generate_makefile): Adjust.
2307         * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
2308         sanitized TEST_LOGS value as makefile snippet on standard
2309         input to $(MAKE), to avoid exceeding the command line limit on
2310         w32 (MSYS).
2311         * NEWS: Update.
2312         Report by Bob Friesenhahn.
2313
2314 2010-09-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2315
2316         Extend tests on `--help' and `--version' options.
2317         * tests/help.test: Create a new empty directory and chdir into
2318         it, rather than removing already present files.  Run the aclocal
2319         and automake wrapper scripts directly, instead of relying on
2320         $AUTOMAKE and $ACLOCAL.  Be sure to correctly match literal dots
2321         in aclocal's and automake's stderr.  Add a trailing `:' command.
2322         * tests/help2.test: New test, checking that options `--help' and
2323         `--version' works in directories with broken `configure.in'.
2324         * tests/help3.test: New test, checking that options `--help' and
2325         `--version' take precedence on the other options.
2326         * tests/help4.test: New test, checking that the first among the
2327         `--help' and `--version' options to be specified on the command
2328         line wins.
2329         * tests/Makefile.am (TESTS): Updated.
2330
2331 2010-09-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
2332
2333         Testsuite: Use `$PATH_SEPARATOR', not `:', when extending PATH.
2334         * tests/compile2.test: Do no uselessly (implicitly) repeat the
2335         computation of PATH_SEPARATOR again.
2336         * tests/instmany-mans.test: Use `$PATH_SEPARATOR', not `:', when
2337         extending/redefining PATH.
2338         * tests/instmany-python.test: Likewise.
2339         * tests/instmany.test: Likewise.
2340         * tests/man4.test: Likewise.
2341         * tests/mkinst3.test: Likewise.
2342         * tests/mmodely.test: Likewise.
2343         * tests/multlib.test: Likewise.
2344         * tests/txinfo30.test: Likewise.
2345         * tests/README (Section "Writing test cases" subsection "Do"):
2346         Updated.
2347         * Makefile.am (sc_tests_PATH_SEPARATOR): New maintainer check.
2348         (syntax_check_rules): Updated.
2349
2350         Testsuite: new variables `$PATH_SEPARATOR' and `$APIVERSION'.
2351         * tests/defs.in ($APIVERSION):  New AC_SUBST'd variable.
2352         ($ACLOCAL, $AUTOMAKE): Use it.
2353         ($PATH_SEPARATOR):  New AC_SUBST'd variables.
2354         ($PATH): Use it.
2355
2356 2010-09-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
2357
2358         Manual: be more agnostic w.r.t. version control system used.
2359         * doc/automake.texi (Basics of Distribution): Also refer to `.svn'
2360         directories as a type of probably-unwanted files that are copied
2361         regardless when adding directories to EXTRA_DIST.
2362         (The dist Hook): Show a dist-hook example which removes Subversion
2363         `.svn' private directories from distdir, rather than CVS private
2364         directories.
2365         (missing and AM_MAINTAINER_MODE): Try to be more agnostic w.r.t.
2366         the version control system used.
2367
2368         Manual: index refer to target "git-dist", not "cvs-dist".
2369         * doc/automake.texi (General Operation): Index the non-standard
2370         example about "git-dist" under the "git-dist" label, not under
2371         the "cvs-dist" one.
2372
2373         Perl modules: remove references to "Automake CVS repository".
2374         * lib/Automake/Channels.pm: Update comments to refer to "Automke's
2375         git repository" rather than to "Automake's CVS repository".
2376         * lib/Automake/Configure_ac.pm: Likewise.
2377         * lib/Automake/FileUtils.pm: Likewise.
2378         * lib/Automake/Struct.pm: Likewise.
2379         * lib/Automake/XFile.pm: Likewise.
2380         * lib/Automake/Version.pm (=head1 DESCRIPTION): Refer to "git
2381         branches" rather than "CVS branches".
2382
2383         Remove obsolete .cvsignore files.
2384         * .cvsignore, doc/.cvsignore, lib/.cvsignore, lib/am/.cvsignore,
2385         lib/Automake/.cvsignore, lib/Automake/tests/.cvsignore,
2386         m4/.cvsignore, tests/.cvsignore: Files deleted.  Even when using
2387         savannah's CVS readonly mirror there's no way to commit back to
2388         the real repository, so this files are not worth maintaining or
2389         keeping around.
2390
2391 2010-09-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
2392
2393         * m4/dmalloc.m4: Bump serial number and copyright years.
2394
2395 2010-09-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
2396
2397         Fix broken link in `AM_WITH_DMALLOC' help screen.
2398         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Refer only to the dmalloc site
2399         `http://www.dmalloc.com', not to the dmalloc tarball there (which
2400         seems to have been removed, substituted by multiple release
2401         tarballs now).
2402
2403 2010-09-21  Peter Rosin  <peda@lysator.liu.se>
2404
2405         compile: implement library search to support MSVC static linking
2406         * lib/compile (func_cl_wrapper): Implement library search and
2407         -static option so that the user can select whether to prefer
2408         dll import libraries or static libraries.  This enables MSVC to
2409         link against dlls generated by libtool without requiring libtool
2410         or workarounds such as -lfoo.dll etc.  Makes the tests/static.at
2411         test case in libtool pass.
2412         * tests/compile3.test: Don't trip up if there happens to exist
2413         a "foo" library in the library search path.
2414         * tests/compile6.test: New test, verifying the library search.
2415         * tests/Makefile.am (TESTS): Update.
2416
2417 2010-09-17  Eric Blake  <eblake@redhat.com>
2418
2419         Avoid triple-space after period.
2420         * automake.in (handle_single_transform): Avoid 3 spaces at
2421         sentence end.
2422         * ChangeLog.03: Likewise.
2423         * lib/Automake/ChannelDefs.pm: Likewise.
2424         * lib/Automake/Channels.pm (_print_message): Likewise.
2425         * lib/Automake/Rule.pm (rule): Likewise.
2426         * lib/Automake/Variable.pm (var): Likewise.
2427         * lib/am/distdir.am: Likewise.
2428         * tests/insthook.test: Likewise.
2429
2430 2010-09-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2431
2432         Test automake-generated portions of configure help screen.
2433         * tests/help-depend.test: New test.
2434         * tests/help-depend2.test: Likewise.
2435         * tests/help-dmalloc.test: Likewise.
2436         * tests/help-init.test: Likewise.
2437         * tests/help-lispdir.test: Likewise.
2438         * tests/help-maintainer.test: Likewise.
2439         * tests/help-multilib.test: Likewise.
2440         * tests/help-regex.test: Likewise.
2441         * tests/help-silent.test: Likewise.
2442         * tests/help-upc.test: Likewise.
2443         * tests/mmode.test: Remove tests on `configure --help' output,
2444         they are superseded by tests in `help-maintainer.test'.
2445         * tests/Makefile.am (TESTS): Update.
2446
2447 2010-09-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
2448
2449         * tests/README: Don't put GCS mandated tools in $required.
2450
2451 2010-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2452
2453         * HACKING: Hint at old commits with `git describe' output.
2454
2455 2010-09-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
2456
2457         Prefer `$(am__cd)' to plain `cd' in our Makefiles.
2458         * Makefile.am (recheck, dist-hook, git-dist, path-check, fetch)
2459         (release-stats): Use `$(am__cd)' rather than plain `cd'.
2460         * tests/Makefile.am ($(srcdir)/parallel-tests.am): Likewise.
2461
2462 2010-09-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
2463
2464         Fix regression in test `colon4.test'.
2465         * tests/colon4.test: Fix botched editing to `configure.in'
2466         that made the test useless.  Since we are at it, improve
2467         comments and make grepping of generated Makefile.in slightly
2468         stricter.
2469         Regression introduced by change "Modernize, improve and/or
2470         extend tests `colon*.test" (Stefano Lattarini, 2010-08-08).
2471
2472 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2473
2474         Do not require "gzip" explicitly in tests.
2475         The gzip utility is simply expected to be present on any decent
2476         target system for Automake.  So it's pointless to put it in
2477         $required.
2478         * tests/install2.test ($required): Do not require "gzip".
2479         * tests/lex3.test: Likewise.
2480         * tests/pr9.test: Likewise.
2481         From a suggestion by Ralf Wildenhues.
2482
2483 2010-09-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
2484
2485         Use AS_HELP_STRING in AM_SILENT_RULES.
2486         * m4/silent.m4 (AM_SILENT_RULES): Use `AS_HELP_STRING' to format
2487         help message regarding configure options `--enable-silent-rules'
2488         and `--disable-silent-rules'.  Also throw in a couple of cosmetic
2489         changes in the related `case' statement (indentation, balancing
2490         of parentheses).
2491         * THANKS: Update.
2492         From a report by Jeff A. Daily.
2493
2494 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2495
2496         Make some `confh*.test' tests more "semantic" (plus tweakings).
2497         * tests/confh.test: Run "autoconf", "configure" and "make check",
2498         instead of munging/grepping the generated `Makefile.in'.
2499         * tests/confh4.test: Relax the grepping of Makefile.in w.r.t.
2500         white spaces.  Do not create useless dummy source file `foo.c'
2501         and useless dummy header file `acconfig.h'.
2502         (configure.in): Remove superfluous call to `AC_OUTPUT'.
2503         * tests/confh6.test: Add trailing `:' command.
2504         * tests/confh7.test: In comments, add reference to ...
2505         * tests/confh8.test: ... this new test, "semantic" sister
2506         of `confh7.test'.
2507         * tests/Makefile.am (TESTS): Updated.
2508         Prompted by a report from Ralf Wildenhues.
2509
2510 2010-09-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2511
2512         Remove useless whitespace padding in XFAIL_TESTS definition.
2513         * tests/Makefile.am (XFAIL_TESTS): Remove whitespace padding.
2514
2515 2010-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2516
2517         parallel-tests: avoid command-line length limit issue.
2518         * automake.in (handle_tests): New argument $makefile, new
2519         substitution %MAKEFILE%.
2520         (generate_makefile): Adjust.
2521         * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
2522         sanitized TEST_LOGS value as makefile snippet on standard
2523         input to $(MAKE), to avoid exceeding the command line limit on
2524         w32 (MSYS).
2525         * NEWS: Update.
2526         Report by Bob Friesenhahn.
2527
2528         Posix 2008 requires make to set errexit.
2529         * lib/am/check.am: Update comment.
2530
2531 2010-09-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2532
2533         Tests defs: remove variable $testaclocaldir.
2534         * tests/defs.in ($testaclocaldir): Removed.
2535         * tests/aclocal.test: Use `$top_testsrcdir/m4' directly, not
2536         `$testaclocaldir'.
2537
2538         Tests defs: $srcdir and $top_srcdir renaming.
2539         * tests/defs.in ($srcdir): Remove, define $testsrcdir directly.
2540         * tests/Makefile.am ($(parallel_tests)): Generation of derived
2541         tests updated.
2542
2543         Tests defs: new variable $top_testsrcdir.
2544         * tests/defs.in ($top_testsrcdir): Define unconditionally
2545         to @abs_top_srcdir@.  Use it throughout.
2546         * tests/ar-lib.test: Use `$top_testsrcdir' instead of
2547         `$testsrcdir/..'.
2548         * tests/auxdir.test: Likewise.
2549         * tests/compile.test: Likewise.
2550         * tests/compile2.test: Likewise.
2551         * tests/compile3.test: Likewise.
2552         * tests/compile5.test: Likewise.
2553         * tests/mdate6.test: Likewise.
2554         * tests/mkinst3.test: Likewise.
2555         * tests/multlib.test: Likewise.
2556         * tests/txinfo22.test: Likewise.
2557
2558         Tests defs: $srcdir is unconditionally substituted.
2559         * tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@.
2560         Remove code for $srcdir normalization, which is now useless.
2561
2562 2010-09-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2563
2564         Tests defs: make spacing more consistent.
2565         * tests/defs.in: Make spacing more consistent in indentation.
2566         Especially, indent using only spaces, not tabs.  Also, move
2567         a comment to a better position.
2568
2569         Improve code for requiring libtool and gettext in tests.
2570         * tests/defs.in: Stricter (and more correct) detection of wheter
2571         libtool, libtoolize and/or gettext are in $required.
2572
2573
2574 2010-08-27  Stefano Lattarini  <stefano.lattarini@gmail.com>
2575
2576         Fix bug in test missing6.test.
2577         * tests/missing6.test: Fix the hack used to edit `configure.in',
2578         to avoid producing a configure script that breaks with shells
2579         that do not support $LINENO.  Also throw in a couple of cosmetic
2580         changes.
2581
2582 2010-09-02  Peter Rosin  <peda@lysator.liu.se>
2583
2584         Make ar-lib support backslashed files in archives.
2585         * lib/ar-lib: If an archive member contains a backslash, make sure
2586         it is escaped when the archive member is extracted.
2587         * tests/ar-lib.test: Test the above.
2588
2589 2010-08-31  Peter Rosin  <peda@lysator.liu.se>
2590
2591         Do file name conversion for object files in the compile wrapper.
2592         * lib/compile (func_cl_wrapper): Do file name conversion for object
2593         files (i.e. extensions .obj, .OBJ, .o and .O) if needed.
2594         * tests/compile4.test: Test the above.
2595
2596 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2597
2598         Speed up removal of auxiliary linker output files for ltlibraries.
2599         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Rewrite using just
2600         one `rm' invocation.
2601         Report by Bob Friesenhahn.
2602
2603         Improve robustness of mdate-sh script.
2604         * lib/mdate-sh: Sanitize zsh behavior on startup, to ensure
2605         $ls_command is word-split properly upon invocation.
2606         (error): New function.
2607         (main): Use it.  Improve error checking to avoid endless loop
2608         in case $ls_command gave bogus output.  Fix eval quotation.
2609         * tests/mdate6.test: New test, to expose eval quotation error.
2610         * tests/Makefile.am: Update.
2611
2612 2010-08-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
2613
2614         Fix potential regressions in depcomp{3,5}.test.
2615         * tests/depcomp3.test: Do not uselessly escape the character `$'
2616         in makefile rules, when it's used to expand a make macro.
2617         * tests/depcomp5.test: Likewise.
2618
2619 2010-08-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
2620             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2621
2622         Docs: clarify how to avoid automatic dependencies tracking.
2623         * doc/automake.texi (Automatic dependency tracking): Mention that
2624         automatic dependencies tracking is enabled by default, but that
2625         the package developer can disable it altogether.  Add a reference
2626         to the proper section for a more in-depth explanation.
2627
2628         Fix typo in manual (`Makefile.in' instead of `Makefile.am').
2629         * doc/automake.texi (Automatic dependency tracking): Fix typo.
2630
2631 2010-08-16  Bruno Haible  <bruno@clisp.org>
2632
2633         Don't hide the table of contents.
2634         * doc/automake.texi: Move the table of contents to the beginning.
2635
2636 2010-08-16  Peter Rosin  <peda@lysator.liu.se>
2637
2638         Optimize compile script on MSYS.
2639         * lib/compile (func_file_conv): Add new argument 'lazy' which
2640         takes an optional list of conversion types where the requested
2641         conversion isn't needed.
2642         (func_cl_wrapper): Take advantage of the above for cases where
2643         MSYS is doing the conversion for us.
2644         Suggested by Ralf Wildenhues.
2645
2646 2010-08-16  Peter Rosin  <peda@lysator.liu.se>
2647
2648         Support more C++ file extensions for MSVC in the compile script.
2649         * lib/compile (func_cl_wrapper): MSVC only recognizes the .cpp
2650         file extension as C++, unless it's given a hint. So hint about
2651         .cc, .CC, .cxx, .CXX, c++ and C++. Also do path conversion on
2652         .c, .cpp, .CPP, .lib, .LIB and .Lib files.
2653         * tests/compile3.test: Test the C++ hinting.
2654
2655 2010-08-12  Peter Rosin  <peda@lysator.liu.se>
2656
2657         Enable the use of "link -lib" as the wrapped archiver.
2658         * lib/ar-lib: Enable the use of "link -lib" as the wrapped
2659         archiver, as well as allowing some other options to be passed
2660         through to the wrapped archiver.
2661         * tests/ar-lib.test: Test the above.
2662
2663 2010-08-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
2664
2665         Tweak and/or extend some `acloca*.test' tests.
2666         * tests/aclocal8.test:  Ensure verbose printing of captured
2667         output.
2668         * tests/aclocal.test: Likewise.  Also, add trailing `:'
2669         command.
2670         * tests/acloca19.test: Likewise.
2671         * tests/aclocal5.test: Add trailing `:' command, and prefer
2672         `$me' over hard-coded test name.
2673         * tests/aclocal6.test: Likewise.
2674         * tests/aclocal18.test: Add trailing `:' command, and make
2675         some grepping slightly stricter.
2676         * tests/acloca14.test: Likewise.  Also, prefer `diff' over
2677         `cmp', and add some "cosmetic" blank lines.
2678
2679 2010-08-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
2680
2681         Tweak and extend tests `pr[!0-9]*.test'.
2682         * tests/primary3.test: Add trailing `:' command.
2683         * tests/primary.test: Make grepping of Automake's stderr stricter.
2684         Also, add trailing `:' command, and cosmetic changes in spacing.
2685         * tests/primary2.test: Likewise.
2686         * tests/prefix.test: Enable `errexit' shell flags, and related
2687         changes.  Add a trailing `:' command.
2688         * tests/proginst.test: Likewise.
2689
2690         Modernize, improve and extend tests for PR (`pr[0-9]*.test').
2691         * tests/pr2.test: Add trailing `:' command.
2692         * tests/pr229.test: Likewise.
2693         * tests/pr401.test: Likewise.
2694         * tests/pr401b.test: Likewise.
2695         * tests/pr401c.test: Likewise.
2696         * tests/pr300-prog.test: Likewise, plus cosmetic changes in
2697         spacing.
2698         * tests/pr300-lib.test: Likewise.
2699         * tests/pr300-ltlib.test: Likewise, and ensure verbose printing
2700         of captured make stdout.
2701         * tests/pr211.test: Add trailing `:' command.  Also, use the
2702         `configure.in' stub created by ./defs, rather than writing it
2703         from scratch.
2704         * tests/pr204.test: Likewise, plus cosmetic spacing changes.
2705         * tests/pr287.test: Likewise, and move setting of `errexit' shell
2706         flag earlier in the script (just after inclusion of ./defs).
2707         * tests/pr220.test: Make grepping of Automake's stderr stricter.
2708         Also, add trailing `:' command, and cosmetic changes in spacing.
2709         * tests/pr224.test: Move setting of `errexit' shell flag earlier
2710         in the script (just after inclusion of ./defs).  Do not export
2711         `CC=gcc' to configure explicitly (it's already exported globally
2712         in ./defs, since we have "gcc" in $required).  Use the stub for
2713         `configure.in' created by ./defs, rather than writing it from
2714         scratch.  Do not create dummy files required by "gnu" mode (e.g.
2715         README, NEWS), since we run automake in foreign mode anyway.
2716         * tests/pr72.test: Enable `errexit' shell flags, and related
2717         changes.  Extend existing checks a bit.
2718         * tests/pr9.test: Likewise.  Also, avoid obsolescent constructs in
2719         the generated `configure.in', and extend existing checks over the
2720         generated tarball a bit.
2721         * tests/pr87.test: Enable `errexit' shell flags, and related
2722         changes.  Add a trailing `:' command.  Also, do not create dummy
2723         files required by "gnu" mode (e.g. README, NEWS), since we run
2724         automake in foreign mode anyway.
2725         * tests/pr243.test: Avoid obsolescent constructs in the generated
2726         `configure.in'.  Enable the `errexit' shell flag, and related
2727         changes.  Cosmetic changes to spacing, add trailing `:' command,
2728         and add a "FIXME" comment.
2729         * tests/pr266.test: Likewise, and add explicit command line switch
2730         `--enable-dependecy-tracking' to the ./configure call.
2731         * tests/pr279.test: Avoid obsolescent constructs in the generated
2732         `configure.in'; also, use the `configure.in' stub created by
2733         ./defs, rather than writing it from scratch.  Enable `errexit'
2734         shell flag, and related changes.  Add trailing `:' command.
2735         * tests/pr279-2.test: Likewise, and make grepping of Makefile.in
2736         stricter.
2737         * tests/pr307.test: Move setting of `errexit' shell flag earlier
2738         in the script (just after inclusion of ./defs).  Escape literal
2739         dots in grep regular expressions.  Also, add a trailing `:'
2740         command, and cosmetic changes to spacing.
2741
2742         Tests for PR: add excerpts from original bug report, for clarity.
2743         * tests/pr2.test: Ditto.
2744         * tests/pr9.test: Likewise.
2745         * tests/pr72.test: Likewise.
2746         * tests/pr87.test: Likewise.
2747         * tests/pr211.test: Likewise.
2748         * tests/pr220.test: Likewise.
2749         * tests/pr224.test: Likewise.
2750         * tests/pr229.test: Likewise.
2751         * tests/pr243.test: Likewise.
2752         * tests/pr266.test: Likewise.
2753         * tests/pr279.test: Likewise, and tell to keep it in sync
2754         with its sister test.
2755         * tests/pr279-2.test: Likewise.
2756
2757 2010-08-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2758
2759         Tweak, extend and improve tests `cond[a-z]*.test'.
2760         * tests/condd.test: Add trailing `:' command.  Typofix in
2761         comment.
2762         * tests/condhook.test: Make sure target `install-data-hook' is
2763         not called by `make install', but that data files are installed.
2764         Use proper m4 quoting in configure.in. Add trailing `:' command.
2765         * tests/condhook2.test: New test, sister test of condhook, with
2766         inverted semantic.
2767         * tests/condinc2.test: Use proper m4 quoting in configure.in.
2768         Prefer trailing `:' command over trailing `Exit 0'.
2769         * tests/condman2.test: Enable errexit shell flag, and related
2770         changes.  Add trailing `:' command.
2771         * tests/condman.test: Likewise.  Also, do not create useless
2772         dummy manpages, and use proper m4 quoting in configure.in.
2773         * tests/condman3.test: New test, similar to condman.test, but
2774         it also runs ./configure and "make install", and check the
2775         installed files.
2776         * tests/Makefile.am (TESTS): Updated.
2777
2778         Modernize, improve and/or extend tests `colon*.test.
2779         * tests/colon.test: Rely on the `configure.in' stub created by
2780         `./defs', rather than writing one from scratch.  Do not create
2781         a useless dummy file.  Add trailing `:' command.
2782         * tests/colon4.test: Enable the `errexit' shell flag, and
2783         related changes.  Rely on the `configure.in' stub created by
2784         `./defs', rather than writing one from scratch.
2785         * tests/colon7.test: Enable `errexit' shell flag, and related
2786         changes.  Improve the generated `configure.in' file.  Add
2787         trailing `:' command.
2788         * tests/colon2.test: Likewise.  Also, add some new checks.
2789         * tests/colon5.test: Improve the generated `configure.in' file.
2790         Add new, much deeper checks.  Add trailing `:' command.
2791         * tests/colon6.test: Likewise.
2792         * tests/colon3.test: Add trailing `:' command.  Remove useless
2793         comments and echos.  Improve the generated `configure.in' file.
2794         make some grepping tests stricter.  Add a "FIXME" comments about
2795         planned improvements.
2796
2797         Improve and extend tests `asm*.test'.
2798         * tests/asm.test: Use configure.in stub generated by ./defs,
2799         and avoid obsoleted autoconf constructs.  Make grepping of
2800         Automake stderr stricter.  Do not create useless source file.
2801         Improve verbose messages.  Minor cosmetic changes.  Tell to
2802         keep it in sync with other sister tests asm*.test.
2803         * tests/asm2.test: Likewise.
2804         * tests/asm3.test: Likewise.
2805
2806         Modernize, improve and/or extend test scripts `conf*.test'.
2807         * tests/confh5.test: Cosmetic changes.
2808         * tests/conff.test: Likewise.
2809         * tests/confdeps.test: Likewise.
2810         * tests/conflnk.test: Likewise.
2811         * tests/conflnk2.test: Likewise.
2812         * tests/confsub.test: Likewise.
2813         * tests/confvar.test: Likewise, and make grepping of Makefile.in
2814         stricter.
2815         * tests/confvar2.test: Likewise.
2816         * tests/conflnk3.test: Cosmetic changes.  Re-enable a temporarily
2817         disabled test (which didn't work with autoconf <= 2.59, but now we
2818         are requiring autoconf 2.62, so...)
2819         * tests/conflnk4.test: Cosmetic changes, and extend existing tests
2820         accordingly to "TODO" comments.
2821         * tests/conff2.test: Make grepping of Automake's stderr stricter.
2822         Add some comments explaining why we don't use the `configure.in'
2823         stub preset be ./defs.
2824         * tests/confh.test: Use the `configure.in' stub created by ./defs,
2825         rather than writing one from scratch, and do not call AC_OUTPUT.
2826         Enable `errexit' shell flag, and related changes.  Prefer diff over
2827         cmp to compare text files. Prefer perl over sed to fetch the value
2828         of $(DIST_COMMON) from Makefile.in.  Make grepping of the contents
2829         of $(DIST_COMMON) stricter.
2830         * tests/confh4.test: Use the `configure.in' stub created by ./defs,
2831         rather than writing one from scratch.  Make grepping of Makefile.in
2832         stricter.
2833         * tests/confh5.test: Make grepping of `config.h' stricter.  Add a
2834         comment.
2835         * tests/configure.test: Avoid obsolescent constructs in generated
2836         `configure.ac'.  Do not write `configure.in' two times.  Escape
2837         literal dots in grep regular expressions.
2838         * tests/confincl.test:  Enable `errexit' shell flag, and related
2839         changes.  Prefer fgrep over grep.  Other cosmetic changes.
2840         * tests/config.test: Renamed to ...
2841         * tests/confh6.test: ... this.  Fix m4 quoting in `configure.in',
2842         and make grepping of `config.h' and `config.h.in' stricter.
2843         * tests/conf2.test: Renamed ...
2844         * tests/confh7.test: ... to this.  Use the `configure.in' stub
2845         created by ./defs, rather than writing one from scratch.  Try to
2846         run the checks both with and without AC_PROG_CC and AC_OUTPUT in
2847         `configure.in'.
2848         * tests/Makefile.am (TESTS): Updated.
2849
2850         Minor improvements and fixes in tests `depcomp*.test'.
2851         * tests/depcomp.test: Do not create useless dummy source files.
2852         Add a trailing `:' command.
2853         * tests/depcomp2.test: Use `unset' on the CFLAG variable to ensure
2854         it's not in in the environment, rather than exporting it with an
2855         empty value.  Do not pass CC=gcc to configure, as that's already
2856         done in ./defs since we have gcc in $required.  Ensure verbose
2857         printing of captured stderr, and normalize its checking.  Add a
2858         trailing `:' command.
2859         * tests/depcomp3.test: Quote literal dots and dollar characters in
2860         grep regexps.  Always use `: >' rather than `touch' to create empty
2861         files.  Explicitly declare phony targets as such in the created
2862         Makefile.am.  Add a trailing `:' command.
2863         * tests/depcomp4.test: Quote literal dots and dollar characters in
2864         grep regexp.  Explicitly declare phony targets as such in the
2865         created Makefile.am.  Ensure verbose printing of captured makes'
2866         stoud/stderr.  Add a trailing `:' command.
2867         * tests/depcomp5.test: Move setting of `errexit' shell flag earlier
2868         in the script (just after inclusion of ./defs).  Quote literal dots
2869         and dollar characters in grep regexps.  Explicitly declare phony
2870         targets as such in the created Makefile.am.  Add a trailing `:'
2871         command.
2872         * tests/depcomp6.test: Consistently use m4 quoting in the generated
2873         configure.in.  Cosmetic fixes to spacing.  Make the "dummy" `if'
2874         statement required by OpenBSD's sh `set -e' more robust, and add
2875         explanatory comments to it.
2876         * tests/depcomp7.test: Likewise, and add  a trailing `:' command.
2877
2878         Separate failing part of test `all.test'.
2879         * tests/all.test: Keep only (x)failing part of the test.  Working
2880         checks moved out to ...
2881         * tests/all2.test: ... this new test.
2882         * tests/Makefile.am (TESTS): Updated.
2883
2884         Modernize, improve and extend tests `subobj*.test'.
2885         * tests/subobjname.test:  Add trailing `:' command.
2886         * tests/subobj.test: Make grepping of `Makefile.in' stricter.
2887         Escape literal dots in grep regexps.
2888         * tests/subobj2.test:  Add trailing `:' command.  Do not use the
2889         unportable fgrep option `-e'.
2890         * tests/subobj3.test: Add trailing `:' command.
2891         (configure.in): Use proper m4 quoting, and avoid obsolescent
2892         constructs.
2893         * tests/subobj8.test: Likewise.  Also, enable `errexit' shell
2894         flag, with related changes
2895         * tests/subobj4.test: Likewise.  Also, make grepping of
2896         `Makefile.in' stricter.
2897         * tests/subobj5.test: Add trailing `:' command.  Move setting of
2898         `errexit' shell flag earlier in the script (just after inclusion
2899         of ./defs).
2900         (configure.in): Use the stub created by `./defs', rather than
2901         writing it from scratch, and avoid obsolescent constructs.
2902         * tests/subobj6.test: Add trailing `:' command.  Move setting of
2903         `errexit' shell flag earlier in the script (just after inclusion
2904         of ./defs).  Do not create useless dummy ac-init file `f'.
2905         * tests/subobj7.test: Do not create useless dummy ac-init file
2906         `f'.
2907         (configure.in): Use the stub created by `./defs', rather than
2908         writing it from scratch, and avoid obsolescent constructs.
2909         * tests/subobj9.test: Move setting of `errexit' shell flag earlier
2910         in the script (just after inclusion of ./defs).  Fail the test if
2911         `make distcheck' fails.  Ensure verbose printing of captured make
2912         stdout.  Avoid useless fork by doing simple grep instead of using
2913         test -n "`COMMAND | grep ...`".
2914         (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
2915         (Makefile.am): Explicitly mark target "print" as phony.
2916         * tests/subobj10.test: Removed duplicated call to `set -e'.  Add
2917         trailing `:' command.
2918         (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
2919
2920         Remove a couple of obsoleted tests.
2921         * tests/fpinstall.test: Removed.
2922         * tests/fpinst2.test: Likewise.
2923         * tests/Makefile.am (TESTS): Updated.
2924
2925         Bootstrap: updated HACKING entry.
2926         * HACKING ("Working with git"): Explain how to override the
2927         autoconf and autom4te programs used by the bootstrap process.
2928
2929         Bootstrap: fixlet.
2930         * bootstrap: Do not remove `lib/Automake/Config.pm' anymore,
2931         since we don't generate it.  Correctly quote arguments of
2932         `eval' builtin.  Fixed a botched error message.  Removed an
2933         extra blank line.
2934
2935         Bootstrap: don't search perl in $PATH.
2936         * bootstrap: Do not explicitly search perl in $PATH anymore.
2937         ($PATH_SEPARATOR): Removed, it's no more needed.
2938
2939         Bootstrap: let the user choose which autoconf to use.
2940         * bootstrap ($AUTOCONF): New variable, from the environment.
2941         ($AUTOM4TE): Likewise, for clarity.
2942         Use "$AUTOCONF" instead of calling "autoconf" directly.
2943
2944         Minor improvements to tests ar*.test.
2945         * tests/ar.test: Add trailing `:' command.
2946         * tests/ar2.test: Likewise, and make grepping of generated
2947         Makefile.in stricter.
2948
2949 2010-08-06  Peter Rosin  <peda@lysator.liu.se>
2950
2951         Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
2952         * lib/ar-lib: New auxiliary script.
2953         * lib/Makefile.am: Add above.
2954         * tests/ar-lib.test: New test.
2955         * tests/Makefile.am: Add above.
2956         * automake.in (@common_files): Distribute the 'ar-lib' script.
2957         * doc/automake.texi (Auxiliary Programs): Mention the new
2958         'ar-lib' script.
2959         (Optional): Mention 'ar-lib' in AC_CONFIG_AUX_DIR.
2960         * NEWS: Update.
2961
2962 2010-08-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2963
2964         Fix shell pattern negation in compile script.
2965         * lib/compile (func_file_conv): Use `!' not `^' for pattern
2966         negation.
2967
2968 2010-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2969
2970         Fix maintainer-check failure.
2971         * tests/cond5.test: Quote sleep argument, this isn't about
2972         time stamp differences.
2973
2974         Sync auxiliary files from upstream.
2975         * lib/config.guess, lib/config.sub, lib/texinfo.tex:
2976         Sync from upstream.
2977
2978 2010-08-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
2979
2980         Work around a nasty bug (segfault) of Solaris make.
2981         * lib/am/check.am (recheck, recheck-html): Trim trailing spaces
2982         from $list, to avoid triggering a nasty bug (potential segfault)
2983         on Solaris make.
2984
2985 2010-08-06  Peter Rosin  <peda@lysator.liu.se>
2986
2987         Make cond5.test more robust on MSYS.
2988         * tests/cond5.test: Add delay before the first kill attempt to
2989         cater for problems with MSYS bash.
2990
2991 2010-08-01  Peter Rosin  <peda@lysator.liu.se>
2992
2993         Wrap some MSVC options in the compile script.
2994         * lib/compile: MSVC supports naming the output file, the option
2995         is just not called -o, so transform -o into the appropriate form
2996         for MSVC. Also wrap some other options while at it (-L, -l, -Wl,
2997         -Xlinker and -I) and convert file names to windows form where
2998         needed for those options to make MSVC more usable in an
2999         autotooled environment.
3000         * doc/automake.texi (Auxiliary Programs): Document the above
3001         extension of the compile script.
3002         * NEWS: Updated.
3003         * tests/defs.in: New required entry 'cl'.
3004         * tests/compile3.test: New test.
3005         * tests/compile4.test: New test.
3006         * tests/compile5.test: New test.
3007         * tests/Makefile.am: Update.
3008
3009 2010-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3010
3011         Add example git work flow; discuss merge --log in HACKING.
3012         * HACKING: Update.
3013         Suggestion by Stefano Lattarini.
3014
3015         Add more hints for debugging make rules.
3016         * doc/automake.texi (Debugging Make Rules): Show command to find
3017         out expanded values of variables; point to makefile debugger.
3018         * THANKS: Update.
3019         Prompted by suggestion from Ludovic Courtès and Andy Wingo.
3020
3021 2010-07-27  Patrick Welche  <prlw1@cam.ac.uk>  (tiny change)
3022
3023         Fix typo in the manual.
3024         * doc/automake.texi (Scripts): Fix typo.
3025
3026 2010-07-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3027
3028         Document current policy for development with git.
3029         * HACKING (Working with git): Overhaul.
3030         Prompted by suggestion from Stefano Lattarini.
3031
3032         Fix AM_COND_IF for gone-invalid condition shell expression.
3033         * m4/cond-if.m4 (AM_COND_IF): test contents of $COND_TRUE
3034         variable, rather than re-evaluating the shell expression for
3035         the condition.
3036         * tests/cond40.test: Extend test.
3037         * NEWS: Update.
3038
3039         Avoid syntax error if IF-TRUE part of AM_COND_IF expands empty.
3040         * m4/cond-if.m4 (AM_COND_IF): Ensure IF-TRUE part is never empty
3041         to avoid shell syntax error if the m4 expansion is empty.
3042         * tests/cond40.test: Enhance test.
3043
3044         Coverage: bogus option to AM_INIT_AUTOMAKE.
3045         * tests/init2.test: New test.
3046         * tests/Makefile.am: Update.
3047
3048 2010-07-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3049
3050         Modernize and improve test scripts `subdir*.test'.
3051         * tests/subdir.test: Enable `errexit' shell flag, and related
3052         changes.  Use the `configure.in' stub created by `./defs',
3053         rather than writing one from scratch.
3054         * tests/subdir2.test: Likewise.
3055         * tests/subdir4.test: Likewise.
3056         * tests/subdir3.test: Enable `errexit' shell flag, and related
3057         changes.  Do not create useless dummy source files.
3058         * tests/subdir5.test: Make grepping of Makefile.in (in topdir
3059         and in subdirs) stricter.  Some minor changes to keep it more
3060         in sync with the related test `subdir8.test'.
3061         * tests/subdir8.test: Likewise (but with the related test being
3062         `subdir5.test' here).
3063         * tests/subdir6.test: Cosmetic change in spacing.
3064         * tests/subdir9.test: Define and use new variable `$distdir'.  Add
3065         trailing `:' command.
3066         * tests/subdir10.test: Cosmetic consistency-related change.
3067         * tests/subdirbuiltsources.test: Cosmetic changes in spacings.
3068         (configure.in): Use stub created by `./defs', rather than writing
3069         it from scratch.  Do not use obsoleted and/or deprecated forms of
3070         autoconf/automake macros.
3071
3072         Modernize and improve test scripts `dist*.test'.
3073         * tests/distcleancheck.test: Do not add useless `-e' option to
3074         a $MAKE call.  Extend test by grepping stderr of make.
3075         * tests/distcom2.test: Do not run the same test script on the
3076         Makefile.in twice, but save its output in an intermediate file
3077         instead.  Make grepping of DIST_COMMON definition stricter.
3078         Display the content of more files, to ease debugging.  Add a
3079         trailing `:' command.  Improved heading comments w.r.t. sister
3080         test(s).
3081         * tests/distcom6.test: Likewise, and avoid to uselessly run
3082         autoconf.
3083         * tests/distcom3.test: Ensure verbose printing of captured stdout
3084         and stderr.  Make grepping of captured stderr stricter.  Also,
3085         add trailing `:' command.
3086         * tests/distcom4.test: Declare the target `test' in the generated
3087         Makefile.am as `.PHONY'.  Display content of more files, to ease
3088         debugging.  Add trailing `:' command.
3089         * tests/distcom5.test: Likewise.  Also, factor out common sed
3090         script in subroutine `extract_distcommon'.
3091         * tests/distcom7.test: Prefer cat + here-doc over echo to write
3092         test Makefile.am files.  Add a trailing `:' command.
3093         * tests/distname.test: Prefer `gzip -d' over `gunzip'.  Move the
3094         call to `set -e' earlier.  Be stricter and more verbose in the
3095         checking of the generated tarball.
3096         (configure.in): Use the stub provided by ./defs, instead of
3097         writing it from scratch.  Avoid obsoleted constructs.  Remove
3098         useless call to `AM_PROG_CC_C_O'.
3099         * tests/distdir.test: Various minor improvements/normalizations.
3100         * tests/distlinks.test: Likewise.
3101
3102 2010-07-18  Stefano Lattarini  <stefano.lattarini@gmail.com>
3103
3104         Improve and extend test cond5.test.
3105         * tests/cond5.test: Do not blindly sleep 60 seconds before polling
3106         the background automake process, but poll it every 10 seconds for
3107         at most 30 times (this makes the test both faster on good machines,
3108         and more resilient to spurious timeout-due failures when in low
3109         priority or on heavily-loaded systems).
3110         Check also that automake writes the expected error messages on the
3111         standard error.
3112         Enable `errexit' flag, and related changes.
3113         Rely on the `configure.in' stub created by `./defs', rather than
3114         writing one from scratch.
3115
3116 2010-06-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3117
3118         Update program --help output to match current GCS.
3119         * configure.ac: Set and substitute PACKAGE_URL if AC_PACKAGE_URL
3120         is not defined, for compatibility to Autoconf < 2.64.
3121         * Makefile.am (do_subst): Substitute PACKAGE_BUGREPORT and
3122         PACKAGE_URL.
3123         (sc_diff_automake_in_automake): Update number of diff lines for
3124         additional substitutions.
3125         * aclocal.in (usage): Use PACKAGE_BUGREPORT.  Point to Automake
3126         home page and GNU general help page.
3127         * automake.in (usage): Likewise.
3128         * doc/automake.texi: New flag PACKAGE_BUGREPORT, to factor email
3129         address.
3130         (Introduction, Creating amhello, amhello Explained, Options):
3131         Use it throughout.
3132         * lib/Automake/Makefile.am (do_subst): Substitute
3133         PACKAGE_BUGREPORT.
3134         * lib/Automake/Config.in ($PACKAGE_BUGREPORT): New global.
3135         * lib/Automake/ChannelDefs.pm: Use it for footer of fatal
3136         messages.
3137
3138         Clean up @var handling in the manual.
3139         * doc/automake.texi: Throughout the manual, lower-case @var
3140         names, replace a few one-character names.
3141
3142 2010-06-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3143
3144         Fix typo-related bug in test script silent5.test.
3145         * tests/silent5.test: Use $EGREP, not $GREP (which is not even
3146         defined).
3147
3148         Tests: remove useless repetitions of `foreign' automake option.
3149         * tests/multlib.test (configure.in): Remove useless use of
3150         `foreign' option in AM_INIT_AUTOMAKE (the `--foreign' option is
3151         already in $AUTOMAKE by default, so no point in repeating it).
3152         * tests/subobj10.test: Likewise.
3153         * tests/subobj9.test: Likewise.
3154         * tests/lex3.test (Makefile.am): Similarly, remove useless use
3155         of `foreign' option in AUTOMAKE_OPTIONS.
3156         * tests/lex5.test: Likewise.
3157         * tests/pr279.test: Likewise.
3158         * tests/pr279-2.test: Likewise.
3159         * tests/specflg3.test: Likewise.
3160         * tests/target-cflags.test: Likewise.
3161
3162         Drop useless requirement "gzip" in lex5.test.
3163         * tests/lex5.test ($required): Do not list "gzip", as it's
3164         never used.
3165
3166 2010-06-24  Stefano Lattarini  <stefano.lattarini@gmail.com>
3167
3168         Fix bugs in test script silent5.test.
3169         * tests/silent5.test: Fixed a nasty bug (due to the use of grep
3170         instead of egrep) that could have led to false negatives.
3171
3172 2010-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3173
3174         Add a test checking that distributed broken symlinks cause
3175         `make dist' to fail.
3176         * tests/distlinksbrk.test: New test.
3177         * tests/Makefile.am (TESTS): Updated.
3178
3179 2010-06-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3180
3181         Fix minor testsuite issues, update docs, for Yacc/Lex changes.
3182         * doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
3183         and AM_LFLAGS, LFLAGS in the order in which they now appear in
3184         the rules.
3185         * NEWS: Update.
3186         * tests/lflags.test, tests/lflags2.test, tests/yflags.test,
3187         tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
3188         please maintainer-check.  Ensure generated C files contain a
3189         declaration, to please compilers.
3190
3191 2010-06-21  Stefano Lattarini  <stefano.lattarini@gmail.com>
3192
3193         Fix bugs in Automake Yacc/Lex support w.r.t. $(AM_FLAGS) and
3194         $(FLAGS) precedence.
3195         * automake.in: Fix registration of languages "Lex", "Lex (C++)",
3196         "Yacc" and "Yacc (C++)", so that $(LFLAGS) has precedence over
3197         $(AM_LFLAGS) and $(YFLAGS) has precedence over $(AM_YFLAGS).
3198         * tests/Makefile.am (XFAIL_TESTS): Updated accordingly.
3199         * NEWS: Updated.
3200
3201         New tests, exposing bugs in Automake Yacc/Lex support w.r.t.
3202         $(AM_FLAGS) and $(FLAGS) precedence.
3203         * tests/lflags.test: New test, check that user $(LFLAGS) takes
3204         precedence over automake (AM_LFLAGS) and (foo_LFLAGS).  Still
3205         xfailing.
3206         * tests/lflags2.test: Likewise.
3207         * tests/yflags.test: New test, check that user $(YFLAGS) takes
3208         precedence over automake (AM_YFLAGS) and (foo_YFLAGS).  Still
3209         xfailing.
3210         * tests/yflags2.test: Likewise.
3211         * tests/Makefile.am (TESTS, XFAIL_TESTS): Extended accordingly.
3212
3213 2010-06-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3214
3215         Modernize, improve and extend tests `suffix*.test'.
3216         * tests/suffix3.test: Enable `errexit' shell flag, and related
3217         changes.
3218         * tests/suffix4.test: Likewise.
3219         * tests/suffix6.test: Likewise, and do not create a useless dummy
3220         source file.
3221         * tests/suffix7.test: Likewise.
3222         * tests/suffix5.test: Enable `errexit' shell flag, and related
3223         changes.  Make grepping of Makefile.in slightly stricter.
3224         * tests/suffix.test: Enable `errexit' shell flag, and related
3225         changes.  Also, do not redirect grep output to /dev/null, as this
3226         might unmotivatedly hide useful information.
3227         * tests/suffix2.test: Move setting of `errexit' shell flag earlier
3228         in the script (just after inclusion of ./defs).  Use a more
3229         idiomatic way to count text occurrences in Makefile.in with
3230         grep.  Do not create useless dummy source files.
3231         * tests/suffix10.test: Ensure verbose printing of captured make
3232         stdout.  Minor cosmetic changes.
3233         * tests/suffix8.test: Likewise.  Also, drop useless call to the
3234         env(1) utility, and make grepping of make output stricter by using
3235         $FGREP rather than plain grep.
3236         * tests/suffix11.test: Likewise.
3237         * tests/suffix12.test: Likewise.
3238         * tests/suffix9.test: Prefer cat + here-doc over echo to append to
3239         the `configure.in' stub.  Cosmetic changes.
3240         * tests/suffix13.test: Cosmetic spacing change.
3241
3242 2010-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3243
3244         Add useful comment in test script ext.test.
3245         * tests/ext.test: Add a comment explaining why an apparently
3246         useless `if' statement is indeed required.
3247
3248 2010-06-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3249
3250         Add useful comment in test script obsolete.test.
3251         * tests/obsolete.test: Add a comment explaining why we need
3252         an indirection in adding $AUTOUPDATE to $required.
3253
3254         Normalize whitespaces in 'tests/Makefile.am'.
3255         * tests/Makefile.am (TESTS): Use only spaces, not tabs, in the
3256         definition of this variable.
3257
3258         Parallel tests generation: improve comments (tiny change).
3259         * tests/Makefile.am ($(parallel_tests)): Added useful comment to
3260         generated tests.
3261
3262         Tests defs: truly get rid of `$am_defs_included' (unused variable)
3263          * tests/defs.in ($am_defs_included): Remove, its now unused.  It
3264         should have been removed in a previous changeset, but the removal
3265         was done only partially (oversight).
3266
3267 2010-06-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3268
3269         Remove a couple of unneeded conditionals from tests.
3270         * tests/pr243.test, tests/pr266.test, tests/strip.test: No need
3271         for the FOOTEST conditional.
3272
3273 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3274
3275         Modernize, improve and/or fix various test scripts.
3276         * tests/symlink3.test: Deleted, separated into two new, more
3277         complete tests ...
3278         * tests/forcemiss.test: ... this one ...
3279         * tests/forcemiss2.test: ... and this one.
3280         * tests/symlink2.test: Enable `errexit' shell flag, make test
3281         stricter, and skip it if symlink creation is not supported.
3282         * tests/postproc.test: Enable `errexit' shell flag, related
3283         changes, and a couple of unrelated cosmetic changes.
3284         * tests/recurs.test: Use the `configure.in' stub created by
3285         `./defs', rather than writing one from scratch.  Make grepping
3286         of Automake stderr slightly stricter.
3287         * tests/substtarg.test: Likewise.
3288         * tests/strip.test: Likewise, and move the call to `set -e'
3289         earlier (just after the inclusion of `./defs'). Also, make sure
3290         that the script installed by `make install-script' is equal to
3291         the original one.
3292         * tests/substref.test: Use the `configure.in' stub created by
3293         `./defs', rather than writing one from scratch.  Move the call
3294         to `set -e' earlier (just after the inclusion of `./defs').
3295         Avoid to explicitly export CC for configure (that's already done
3296         in ./defs).  Avoid potential problems with unpredictable make
3297         output.  Finally, make grepping of Makefile.in stricter.
3298         * tests/substre2.test: Ensure verbose printing of the captured
3299         make's output, and make its grepping slightly stricter.
3300         * tests/cygwin32.test: Enable `errexit' shell flag, and related
3301         changes.  Also, do not create useless dummy source/data files.
3302         * tests/scripts.test: Likewise.
3303         * tests/recurs2.test: Likewise.  Also, use the `configure.in'
3304         stub created by `./defs'.
3305         * tests/Makefile.am (TESTS): Updated.
3306
3307         Modernize, improve and/or fix tests `pluseq*.test.
3308         * tests/pluseq5.test: Append to configure.in using cat with an
3309         here-doc, not using echo.
3310         * tests/pluseq10.test: Make sure that the captured output of
3311         `make' command is always displayed. Where possible, use $FGREP
3312         instead of grep (this change makes some checks slightly stricter).
3313         * tests/pluseq8.test: Enable `errexit' shell flag, with related
3314         changes.
3315         * tests/pluseq.test: Likewise.  Also, do not create useless dummy
3316         data files, and use better m4 quoting in generated configure.in.
3317         * tests/pluseq2.test: Likewise.  Also, append to configure.in
3318         using cat with an here-doc, not using echo.
3319         * tests/pluseq3.test: Likewise.
3320         * tests/pluseq4.test: Likewise.
3321         * tests/pluseq6.test: Likewise.
3322         * tests/pluseq7.test: Do not create useless dummy source file.
3323         * tests/pluseq9.test: Slightly extended w.r.t. the grepping of
3324         Automake stderr.  Some unrelated cosmetic changes.
3325
3326 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3327
3328         cscope.test: ensure verbose printing of captured stderr.
3329         * tests/cscope.test: Print captured stderr before failing.
3330
3331 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3332
3333         Testsuite: ensure verbose printing of captured stderr.
3334         * tests/acloca18.test: Print captured stderr before either failing
3335         or grepping it.  Be sure to send captured stderr to stderr, not to
3336         stdout.
3337         * tests/ansi3b.test: Likewise.
3338         * tests/cond39.test: Likewise.
3339         * tests/configure.test: Likewise.
3340         * tests/missing3.test: Likewise.
3341         * tests/missing6.test: Likewise.
3342         * tests/output-order.test: Likewise.
3343         * tests/pr300-ltlib.test: Likewise.
3344         * tests/python6.test: Likewise.
3345         * tests/python7.test: Likewise.
3346         * tests/python8.test: Likewise.
3347         * tests/python9.test: Likewise.
3348         * tests/subobj.test: Likewise.
3349         * tests/vars3.test: Likewise.
3350         * tests/missing4.test: Likewise, and fix a call to grep not to use
3351         the `-c' flag.
3352         * tests/ansi3.test: Likewise, and rely on the `configure.in' stub
3353         created by `./defs', rather than writing one from scratch.
3354
3355         Enable `errexit' shell flag in various tests.
3356         * tests/backsl.test: Enable the `errexit' shell flag, and
3357         related changes.
3358         * tests/backsl2.test: Likewise.
3359         * tests/block.test: Likewise.
3360         * tests/canon2.test: Likewise.
3361         * tests/canon4.test: Likewise.
3362         * tests/comment2.test: Likewise.
3363         * tests/condlib.test: Likewise.
3364         * tests/cond15.test: Likewise, and prefer $FGREP over grep.
3365         * tests/canon3.test: Likewise.  Also, avoid to create an useless
3366         dummy source file.
3367         * tests/acoutpt2.test: Enable the `errexit' shell flag, and some
3368         related changes.  Do some cosmetic improvements in the generated
3369         `configure.in' file.
3370         * tests/cond4.test: Likewise.
3371         * tests/cond14.test: Likewise.
3372         * tests/condinc.test: Likewise.
3373         * tests/cond7.test: Likewise.  Also, remove useless setting of
3374         AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am.
3375         * tests/ansi.test: Enable the `errexit' shell flag, and related
3376         changes.  Extended, esp. by running autoconf, ./configure and
3377         make, and by looking into the distdir.
3378
3379 2010-06-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3380             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3381
3382         Extend tests/README w.r.t. trailing `:' in test scripts.
3383         * tests/README (section "Writing test cases" subsection "Do"):
3384         Explain why apparently redundant trailing `:' and `Exit 0' in
3385         test scripts can indeed be useful.
3386
3387 2010-06-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
3388
3389         Improve determination of PATH separator in bootstrap script.
3390         * bootstrap: Determine what the PATH separator is the same way
3391         autoconf does.
3392
3393         Minor improvements in bootstrap script.
3394         * bootstrap: Consistently use two-spaces indentation.  Cosmetic
3395         improvement to comments.
3396         ($me): New variable, containing program basename.
3397         Prepend it to all error messages.
3398
3399         Testsuite now works with BSD make in parallel mode.
3400         * tests/defs.in: Unset variables __MKLVL__ and MAKE_JOBS_FIFO,
3401         which are exported by BSD make when run in parallel mode, and
3402         which can confuse make processes spawned by our testsuite.
3403         This change fixes a lot of spurious failure when the testsuite
3404         is run with BSD make in parallel mode.
3405
3406 2010-06-09  Stefano Lattarini  <stefano.lattarini@gmail.com>
3407
3408         Modernize, improve and/or fix various test scripts.
3409         * tests/sanity.test: Rely on the `configure.in' stub created by
3410         `./defs', rather than writing one from scratch.
3411         * tests/depend2.test: Likewise.  Also, call `set -e' just after
3412         the inclusion of `./defs', instead that later in the script.
3413         * tests/canon5.test: Avoid a useless `|| Exit 1' after a call to
3414         $AUTOMAKE, and improve the positioning of an $ACLOCAL call.
3415         * tests/exeext4.test: Use $FGREP instead of grep, where possible.
3416         Make auxiliary rules in the generated Makefile more silent.
3417         These changes make some checks slightly stricter.
3418         * tests/ext2.test: Call `Exit 1' if inclusion of `./defs' fails.
3419         * tests/gettext2.test: Place final `:' at the end of the script,
3420         rather than in the middle.
3421         * tests/exeext.test: Call `set -e' just after the inclusion of
3422         `./defs', instead that later in the script.
3423         * tests/extra5.test: Likewise.
3424         * tests/confdeps.test: Likewise.  Also, prefer `mv -f' over
3425         plain `mv', just to be sure.
3426         * tests/depcomp.test: Enable `errexit' shell flag, with related
3427         changes.  Also, modernize the generated configure.in.
3428         * tests/cond9.test: Likewise.  Also, rely on the `configure.in'
3429         stub created by `./defs', rather than writing one from scratch.
3430         * tests/cond10.test: Likewise.
3431         * tests/depcomp2.test: Likewise.
3432         * tests/depend3.test: Likewise.
3433         * tests/distcom7.test: Likewise.
3434         * tests/fortdep.test: Likewise.  Also, remove definition of
3435         AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am,
3436         since that flag is already provided by $AUTOMAKE.
3437         * tests/mdate.test: Made stricter, by checking that Automake
3438         actually failed, and by making a stricter grep on the error
3439         message.  Also, set shell `errexit flag'.
3440         * tests/python2.test: Improved verbose messages.
3441
3442         Make test `ammissing.test' stricter.
3443         * tests/ammissing.test: Fail if $ACLOCAL succeeds unexpectedly.
3444         Enable `errexit' shell flag.
3445
3446 2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
3447             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3448
3449         Fix error in generation of parallel tests.
3450         * tests/defs.in ($am_skip_defs): New variable, to be used when
3451         ./defs must be sourced multiple times.  If set, unset it and
3452         only define $srcdir; otherwise, also go through the rest of
3453         the script.
3454         ($am_defs_included): Remove, no more needed.
3455         * tests/Makefile.am ($(parallel_tests)): Update accordingly,
3456         using only $srcdir from defs.
3457         Fixes potential test failures of tests that use $required.
3458
3459 2010-06-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
3460
3461         Enable `errexit' shell flag in some test scripts.
3462         * tests/subcond.test: Enabled `errexit' shell flag, and related
3463         minor changes.
3464         * tests/subst.test: Likewise.
3465         * tests/vars.test: Likewise.
3466         * tests/version4.test: Likewise.
3467         * tests/vpath.test: Likewise.
3468         * tests/vtexi2.test: Likewise.
3469         * tests/werror.test: Likewise.
3470         * tests/whoami.test: Likewise.
3471         * tests/tags.test: Likewise, and avoid to crate an useless dummy
3472         header file.
3473         * tests/acsilent.test: Likewise, and don't use an easily-avoided
3474         command substitution.
3475         * tests/unused.test: Likewise, and don't use an easily-avoided
3476         command substitution.
3477         * tests/version.test: Likewise, and avoid deprecated constructs
3478         in the generated `configure.in'.
3479         * tests/version2.test: Likewise, and avoid deprecated constructs
3480         in the generated `configure.in'.
3481
3482 2010-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3483             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3484
3485         Improve declaration of dependencies in the testsuite.
3486         * tests/Makefile.am (check_SCRIPTS): Remove.  Instead, let ...
3487         ($(TEST_LOGS)): ... all test logs depend on the scripts.
3488         * test/gen-parallel-tests: For each parallel test foo-p.test,
3489         let `foo-p.log' also depend on `foo.test', since it is sourced.
3490
3491 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3492
3493         Coverage for TAGS_DEPENDENCIES warning.
3494         * tests/tags2.test: New test.
3495         * tests/Makefile.am: Update.
3496
3497         Coverage for use of anachronistic variables.
3498         * tests/oldvars.test: New test.
3499         * tests/Makefile.am: Update.
3500
3501         Testsuite coverage for bogus macro file serial numbers.
3502         * tests/acloca18.test: Also test ill-formed serial numbers
3503         and serial numbers after macro definitions.
3504
3505         Coverage for aclocal diagnosing underquoted macros.
3506         * tests/acloca23.test: New test.
3507         * tests/Makefile.am: Update.
3508
3509 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3510
3511         Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
3512         * tests/ldadd.test: Enable errexit.  Use AUTOMAKE_fails so
3513         the verbose log contains all output.
3514         * tests/mdate.test: Likewise.
3515         Prompted by Stefano Lattarini's change to discover.test.
3516
3517 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3518
3519         More minor message fixes.
3520         * aclocal.in (scan_file): Fix recommended info command line.
3521         * automake.in (handle_lib_objects): No need to prepend function
3522         name to prog_error message.
3523         (handle_tags): Add missing word and missing space in error
3524         message.
3525         (handle_dist): Add missing closing single quote in message.
3526         Line-wrap one long message for readability.
3527
3528 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3529             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3530
3531         Fix distcheck failure with distributed generated parallel tests.
3532         * tests/Makefile.am ($(parallel_tests)): Cope with $(srcdir)
3533         being different from the value at developer `make dist' time.
3534         * tests/defs.in: Protect against mutiple inclusion, by using ...
3535         ($am_defs_included): ... this new variable.
3536         ($srcdir): Do not compute, but simply define to `@abs_srcdir@'
3537         as substituted by configure.
3538         Report, suggestions and first fix by Ralf Wildenhues, final
3539         patch by Stefano Lattarini.
3540
3541 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3542
3543         Improve tests link*.test (enable `errexit' shell flag).
3544         * tests/link_c_cxx.test: Enable `errexit shell flag, and related
3545         changes.  Also, do not create useless source files.
3546         * tests/link_dist.test: Likewise.
3547         * tests/link_f90_only.test: Likewise.
3548         * tests/link_f_only.test: Likewise.
3549         * tests/link_fc.test: Likewise.
3550         * tests/link_fccxx.test: Likewise.
3551         * tests/link_fcxx.test: Likewise.
3552
3553 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3554
3555         Improve ext.test semantics, avoid OpenBSD sh errexit issue.
3556         * tests/ext.test: Inside shell compound command, use
3557         `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to
3558         fix failure with OpenBSD sh introduced with last patch.
3559         Actually ensure that a rule for .EXT.o is created for each
3560         known extension EXT.
3561
3562 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3563
3564         Enable `errexit' shell flag in some test scripts.
3565         * tests/dash.test: Enable `errexit' shell flag, and related
3566         changes.
3567         * tests/defun.test: Likewise.
3568         * tests/defun2.test: Likewise.
3569         * tests/dejagnu.test: Likewise.
3570         * tests/double.test: Likewise.
3571         * tests/distcom2.test: Likewise.
3572         * tests/empty2.test: Likewise.
3573         * tests/empty3.test: Likewise.
3574         * tests/empty4.test: Likewise.
3575         * tests/exdir.test: Likewise.
3576         * tests/ext.test: Likewise.
3577         * tests/extra.test: Likewise.
3578         * tests/extra2.test: Likewise.
3579         * tests/extra3.test: Likewise.
3580         * tests/extra4.test: Likewise.
3581         * tests/flibs.test: Likewise.
3582         * tests/fnoc.test: Likewise.
3583         * tests/fo.test: Likewise.
3584         * tests/instexec.test: Likewise.
3585         * tests/ltdeps.test: Likewise.
3586         * tests/nodep.test: Likewise.
3587         * tests/nodepcomp.test: Likewise.
3588         * tests/f90only.test: Likewise, and remove botched/obsoleted
3589         comments and unnecessary commands.
3590         * tests/fonly.test: Likewise, and remove botched/obsoleted
3591         comments and unnecessary commands.
3592         * tests/discover.test: Likewise, and made stricter.
3593
3594         Enable `errexit' shell flag in all tests cxx*.test.
3595         * tests/cxx.test: Enabled `errexit' shell flag, and related
3596         minor changes.
3597         * tests/cxxansi.test: Likewise.
3598         * tests/cxxcpp.test: Likewise.
3599         * tests/cxxlibobj.test: Likewise.
3600         * tests/cxxlink.test: Likewise.
3601         * tests/cxxo.test: Likewise.
3602
3603         Enable `errexit' shell flag in various tests.
3604         * tests/acoutnoq.test: Enabled `errexit' shell flag, and related
3605         minor changes.
3606         * tests/acoutpt.test: Likewise.
3607         * tests/acoutqnl.test: Likewise.
3608         * tests/amassign.test: Likewise.
3609         * tests/ansi2.test: Likewise.
3610         * tests/ansi4.test: Likewise.
3611         * tests/badprog.test: Likewise.
3612         * tests/checkall.test: Likewise.
3613         * tests/clean.test: Likewise.
3614         * tests/colneq2.test: Likewise.
3615         * tests/colon.test: Likewise.
3616         * tests/colon5.test: Likewise.
3617         * tests/colon6.test: Likewise.
3618         * tests/comment.test: Likewise.
3619         * tests/compile_f90_c_cxx.test: Likewise.
3620         * tests/compile_f_c_cxx.test: Likewise.
3621         * tests/cond3.test: Likewise.
3622         * tests/cond6.test: Likewise.
3623         * tests/cond13.test: Likewise.
3624         * tests/conf2.test: Likewise.
3625         * tests/confvar.test: Likewise.
3626         * tests/confvar2.test: Likewise.
3627         * tests/cond8.test: Likewise, plus a cosmetic change.
3628         * tests/confh4.test: Likewise.  Also, add in the heading comments
3629         an excerpt from the original bug report which motivated the
3630         creation of this test, to make its purpose clearer.
3631
3632 2010-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3633
3634         Rewrite manual to be gender-neutral.
3635         * doc/automake.texi (GNU Build System)
3636         (Standard Directory Variables, General Operation, CVS)
3637         (Hard-Coded Install Paths, Dependencies As Side Effects):
3638         Rewrite text to not contain gender-specific pronouns when
3639         speaking about developers or users, either by avoiding pronouns
3640         or by addressing them as `you' instead.
3641         * THANKS: Update.
3642         Report by Christina Gratorp.
3643
3644         * AUTHORS: Update.
3645
3646 2010-06-06  Stefano Lattarini  <stefano.lattarini@gmail.com>
3647
3648         Tiny fix in silent8.test (display output of `make' command).
3649         * tests/silent8.test: Make sure that the captured output of `make'
3650         command is always displayed.
3651
3652         Make tests on user extensibility of silent-rules mode stricter.
3653         * tests/silent6.test: Made stricter w.r.t. the grepping of the
3654         output produced by `make'.
3655         * tests/silent7.test: Likewise.
3656
3657         Tests on silent-mode for C/Libtool made stricter.
3658         * tests/silent.test: Made stricter w.r.t. the grepping of the
3659         output produced by `make'.
3660         * tests/silent2.test: Likewise.
3661         * tests/silent4.test: Likewise.
3662         * tests/silent9.test: Likewise.
3663         * tests/silent3.test: Likewise, and add a final `make distclean'
3664         command to keep it better in sync with tests/silent{4,9}.test.
3665
3666         Improved test silent5.test.
3667         * tests/silent5.test: Remove by hand all generated C files after
3668         non-verbose builds, to ensure the following builds are clean.
3669         Try to clean and rebuild with the same verbosity and without
3670         removing generated sources in between, to check that this does
3671         not trigger a different set of rules.  Make grepping of make's
3672         output stricter.  Improved/added some comments.
3673
3674         New tests for Automake silent-mode with Fortran.
3675         * tests/silentf77.test: New test.
3676         * tests/silentf90.test: Likewise.
3677         * tests/Makefile.am (TESTS): Updated accordingly.
3678
3679         New test `silentcxx.test' (Automake silent-mode with C++).
3680         * tests/silentcxx.test: New test.
3681         * tests/Makefile.am (TESTS): Updated accordingly.
3682
3683         New test `silentyacc.test' (Automake silent-mode with Yacc).
3684         * tests/silentyacc.test: New test.
3685         * tests/Makefile.am (TESTS): Updated accordingly.
3686
3687         New test `silentlex.test' (Automake silent-mode with Lex).
3688         * tests/silentlex.test: New test.
3689         * tests/Makefile.am (TESTS): Updated accordingly.
3690
3691         Relax tests on silent-rules to cater to overly verbose makes.
3692         * tests/silent.test: When testing silent builds, don't fail if
3693         make's output simply contains the `mv' substring, but only if
3694         it contains the `mv ' substring (note the trailing space).
3695         * tests/silent2.test: Likewise.
3696         * tests/silent3.test: Likewise.
3697         * tests/silent4.test: Likewise.
3698         * tests/silent5.test: Likewise.
3699         * tests/silent9.test: Likewise.
3700
3701 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3702
3703         Extend test on `nostdinc' automake option.
3704         * tests/nostdinc.test: Enable `errexit' shell flag.  Related and
3705         unrelated minor changes.  Make the grepping of the generated
3706         Makefile.in slightly stricter.  Generate and run configure, so that
3707         the generated Makefile can be grepped too.
3708
3709 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3710
3711         Make gnupload portable to EBCDIC hosts.
3712         * lib/gnupload: Use literal newline as argument for 'tr' rather
3713         than \015, for EBCDIC hosts.  Also, avoid unportable nested
3714         double-quotes and backquotes.
3715         * THANKS: Update.
3716         Report from Eric Blake and Steve Goetze via gnulib.
3717
3718 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3719
3720         Fix Autoconf version required by Automake's configure.
3721         Automake configure script used to tell that automake required
3722         autoconf 2.60 or later, but then it checked for autoconf >= 2.62,
3723         and if that was not found, it gave an error saying that Automake
3724         required configure 2.61a-341 or later.  This change should
3725         eliminate such inconsistencies.
3726         * configure.ac ($required_autoconf_version): New variable.
3727         Use it throughout.
3728
3729 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3730
3731         Fix truncated comment in Makefile.am.
3732         * Makefile.am (sc_tests_logs_duplicate_prefixes): Fix unfinished
3733         sentence in comment.
3734         Report by Stefano Lattarini.
3735
3736         Relax silent8.test for NetBSD make.
3737         * tests/silent8.test: Accept ./foo.info in output as well.
3738
3739         Fix unportable sed script in maintainer-check test.
3740         * Makefile.am (sc_tests_Exit_not_exit): Rewrite sed script to
3741         not contain semicolon after 'b' or brace commands, for NetBSD.
3742
3743         Wildcards are not portable to NetBSD make.
3744         * doc/automake.texi (Wildcards): Document portability issue.
3745         * tests/extra10.test, tests/extra11.test, tests/extra12.test:
3746         Require GNU make.
3747
3748 2010-05-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3749
3750         Make test for configure.in vs. configure.ac stricter.
3751         * tests/configure.test: Use a configure.in file that provokes
3752         an automake error, to ensure configure.ac is preferred.
3753
3754         Avoid possible false negatives in dejagnu7.test.
3755         * tests/dejagnu7.test: Enable shell `errexit' flag.  Also, avoid
3756         unportable use of fgrep option `-e'.
3757
3758         Fix conflnk3.test to work with Solaris/Heirloom Sh.
3759         * tests/conflnk3.test: Use `test -r FILE' and `test ! -r FILE'
3760         instead of respectively `test -e FILE' and `test ! -e FILE',
3761         since Solaris Sh doesn't grok the latter.  Do not SKIP the test
3762         if the shell doesn't support `test -e'.
3763
3764 2010-04-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3765
3766         Warning and error message formatting cleanups.
3767         * aclocal.in (parse_arguments, main): Remove trailing period or
3768         newline in error or warning messages, avoid capitalization of
3769         the first word of a message.
3770         * automake.in (check_user_variables, handle_languages)
3771         (handle_ltlibraries, scan_aclocal_m4, scan_autoconf_config_files)
3772         (scan_autoconf_files, cond_stack_if, require_file_internal)
3773         (usage, generate_makefile, parse_arguments): Likewise.
3774         * lib/Automake/ChannelDefs.pm (set_strictness): Likewise.
3775         * lib/Automake/Configure_ac.pm (find_configure_ac): Likewise.
3776         * lib/Automake/Options.pm (set_strictness): Likewise.
3777         * lib/Automake/Rule.pm (define): Likewise.
3778         * lib/Automake/Variable.pm (define, variables_dump): Likewise.
3779         * tests/ltinstloc.test, tests/suffix11.test: Adjust expected
3780         error message.
3781         * lib/Automake/Channels.pm (setup_channel): Reword error message
3782         to be the same as in msg.
3783
3784         Fix placing of ellipses in English text and synopses.
3785         * Makefile.am: Be sure to add a space before `...' in natural
3786         language text.
3787         * automake.in (scan_autoconf_traces): Likewise.
3788         * lib/Automake/Rule.pm (define): Likewise.
3789         * lib/Automake/Variable.pm (define): Likewise.
3790         * lib/am/dejagnu.am: Likewise.
3791         * lib/am/progs.am: Likewise.
3792         * lib/gnupload (dprint, upload): Likewise.
3793         * tests/confdeps.test: Likewise.
3794         * tests/location.test: Adjust expected output.
3795         * automake.in (usage): In synopsis, use singular for OPTION,
3796         * remove space before ellipsis.
3797         * aclocal.in (usage): Likewise.  Also, fix indentation.
3798
3799         Fix more duplicate message prefixes.
3800         * lib/Automake/XFile.pm (seek): Do not prepend $me.
3801         ($me): Remove now-unused package-global.
3802         * aclocal.in (check_acinclude): Remove duplicate 'warning: '
3803         prefix.
3804
3805         Fix typo in manual.
3806         * doc/automake.texi (Simple Tests using parallel-tests): Add
3807         missing closing parenthesis.
3808
3809         Fix leftover call to removed function macros_dump.
3810         * automake.in (read_main_am_file): Call variables_dump, not
3811         macros_dump.  Print actual error before list of variables.
3812
3813 2010-04-22  Stefano Lattarini  <stefano.lattarini@gmail.com>
3814
3815         Minor improvements in comments of test `silent3.test'.
3816         * tests/silent3.test: Tell to keep it in sync with `silent9.test'
3817         too.
3818
3819 2010-04-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3820
3821         testsuite: ensure verbose printing of captured output.
3822         * tests/acloca14.test, tests/acloca18.test, tests/aclocal.test,
3823         tests/fort2.test, tests/help.test, tests/missing3.test,
3824         tests/missing6.test: Print captured stdout or stderr before
3825         grepping it.
3826
3827 2010-04-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3828
3829         Make test badopt.test stricter (by enabling `set -e').
3830         * tests/badopt.test: Add call to `set -e'.  Due to this change,
3831         an unexpected failure in the call to `$ACLOCAL' (whose outcome
3832         was previously unchecked) would cause the whole test to fail.
3833         Also, bumped the copyright years.
3834
3835         Make test for configure.in vs. configure.ac stricter.
3836         * tests/configure.test: Use a configure.in file that provokes
3837         an automake error, to ensure configure.ac is preferred.
3838
3839         Use `set -e' in confsub.test (avoids possible false negatives).
3840         * tests/confsub.test: Enable shell `errexit' flag, and related
3841         changes (this helps avoiding some possible minor false negatives).
3842         Also, bumped copyright years.
3843
3844 2010-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3845
3846         Fix -Werror handling for presence of configure.in and configure.ac.
3847         * lib/Automake/Variable.pm (Automake::Variable): Do not initialize
3848         $configure_ac at the global level, before command-line arguments
3849         have been parsed.
3850         (require_variables): Initialize it here.
3851         * tests/configure.test: New test.
3852         * tests/Makefile.am: Update.
3853         Report by Stefano Lattarini.
3854
3855 2010-04-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
3856
3857         Avoid possible false negatives in confh5.test.
3858         * tests/confh5.test: Enable shell `errexit' flag, and bumped
3859         copyright years.  Due to this change, any unexpected failure
3860         in calls to $ACLOCAL, $AUTOMAKE, $AUTOCONF or $AUTOHEADER, or
3861         a failure in grepping expected text in output files should now
3862         cause the whole test to fail.
3863
3864 2010-04-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
3865
3866         Fixed typo in POD documentation of Automake::Channels.
3867         * lib/Automake/Channels.pm: Fixed typo in POD documentation:
3868         @<...> was used instead of C<...>.
3869
3870 2010-04-14  Stefano Lattarini  <stefano.lattarini@gmail.com>
3871
3872         Refactor tests on Automake TESTS color output.
3873         * tests/color.test: Tests using the expect program moved out to...
3874         * tests/color2.test: ... this new file.
3875         * tests/Makefile.am (TESTS): Extended accordingly.
3876
3877 2010-04-12  Stefano Lattarini  <stefano.lattarini@gmail.com>
3878
3879         Fix typos in comments in test confh5.test
3880         * tests/confh5.test: Fix a couple of typos in comments.
3881
3882         Avoid possible false negatives in canon-name.test.
3883         * tests/canon-name.test: Enable shell `errexit' flag.  Improve
3884         test description.
3885
3886 2010-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3887
3888         Print 'warnings are treated as errors' note if needed.
3889         * lib/Automake/Channels.pm: Fix typo in comment.
3890         (_print_message): If -Werror is enabled, print a 'warnings are
3891         treated as errors' note before the first such warning.
3892         * tests/warnopts.test: Adjust comment to mention expected warning.
3893         Adjust code to ignore 'warnings are treated as errors' note.
3894         * tests/location.test: Adjust expected output with -Werror.
3895         * tests/werror4.test: New test.
3896         * tests/Makefile.am: Update.
3897         * NEWS: Update.
3898
3899         Ensure we don't print 'warning:' or 'error:' twice.
3900         * Makefile.am (sc_ensure_testsuite_has_run): New helper rule.
3901         (sc_tests_logs_duplicate_prefixes): New rule, to check for
3902         wrong-looking warning and error messages in the test suite logs.
3903         * aclocal.in (scan_configure_dep, scan_file): Remove duplicate
3904         `warning: ' prefix.
3905         * tests/vars3.test: Rename variable to avoid false positive.
3906
3907         Prepend type to warning, error, and fatal messages.
3908         For the first part of messages of types `error' or `fatal',
3909         prepend `error: ' to the message.  Prepend `warning: ' to
3910         warning messages, whatever the setting of -Werror.
3911         * lib/Automake/Channels.pm (partial): Move up definition.
3912         (_format_message): Emit `header' and `footer' strings only with
3913         the first resp. last part of a set of partial messages.
3914         * lib/Automake/ChannelDefs.pm: Add missing '1;' statement at the
3915         end of the module.
3916         (Automake::ChannelDefs): Setup warning channels with header
3917         `warning: ', error and fatal messages with header `error: '.
3918         * tests/condinc2.test, tests/ltinstloc.test: Adjust expected
3919         error messages.
3920         * tests/comment5.test: Likewise.  Also, include stack notes
3921         should not start with `error:'.
3922         * tests/location.test: Likewise.  Also, try both -Werror and
3923         -Wno-error.
3924         * NEWS: Update.
3925         Report by Bruno Haible.
3926
3927         Fix capitalization of error messages, reword one message.
3928         * lib/Automake/Variable.pm (define): Do not capitalize the first
3929         word in the error message.
3930         * automake.in (require_file_internal): Likewise.  Also, reword
3931         and line-wrap for better readability.
3932         * tests/distcom7.test, tests/pluseq5.test, tests/pluseq9.test:
3933         Adjust tests.
3934
3935         Fix connected warnings about obsolete exeext override.
3936         * lib/Automake/Rule.pm (define): Merge two warnings that belong
3937         together, by setting the 'partial' flag for the first one.
3938
3939         Fix per-Makefile.am setting of -Werror.
3940         Before this patch, 'AUTOMAKE_OPTIONS = -Werror' in one
3941         Makefile.am would carry over to other Makefile.am files
3942         treated afterwards by the same thread, causing inconsistent
3943         and unstable exit status values.
3944         * lib/Automake/Channels.pm (dup_channel_setup)
3945         (drop_channel_setup): Save and restore the setting of
3946         $warnings_are_errors.
3947         * tests/werror3.test: New test.
3948         * tests/Makefile.am: Adjust.
3949         * NEWS: Update.
3950
3951 2010-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
3952
3953         Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
3954         * tests/confh5.test: In the generated Makefile.am: do not use
3955         `test ! -e FILE' to check for the non-existence of a file, since
3956         that is not supported by Solaris/Heirloom Sh.
3957
3958         Make test `aclocal3.test' stricter.
3959         * tests/aclocal3.test: Add call to `set -e'.  Fail if $ACLOCAL
3960         succeds unexpectedly.
3961
3962         Add tests checking that symlinks are resolved by `make dist'.
3963         * tests/distlinks.test: New test.
3964         * tests/Makefile.am (TESTS): Updated accordingly.
3965         Suggested by observations from Ralf Wildenhues.
3966
3967 2010-04-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3968
3969         Use -9 for maximum xz compression with dist-xz.
3970         * lib/am/distdir.am (dist-xz, dist, dist-all): Pass -9 to xz.
3971         * NEWS, THANKS: Update.
3972         Report by Pavel Sanda.
3973
3974 2010-04-11  Stefano Lattarini  <stefano.lattarini@gmail.com>
3975
3976         Avoid possible false negatives in cond46.test.
3977         * tests/cond46.test: Enable shell `errexit' flag (and bumped
3978         copyright years).  Due to this change, the testcase should now
3979         fail on unexpected failures in calls to $ACLOCAL/$AUTOMAKE (whose
3980         outcomes were previously unchecked), and on failures in grepping
3981         the expected diagnostic in Automake stderr.
3982
3983 2010-04-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
3984
3985         Generated tests are now just a thin layer around other tests.
3986         * tests/Makefile.am: Rewrite the rule to generate the `*-p.test'
3987         test scripts so that any of them simply includes the corresponding
3988         `*.test' script (after setting `$parallel_tests' to `yes').
3989         * tests/.gitignore: Add wildcard for temporary files used in the
3990         generation of `*-p.test' tests.
3991
3992 2010-03-30  Stefano Lattarini  <stefano.lattarini@gmail.com>
3993
3994         Avoid an unportable use of `$status' shell variable.
3995         * Makefile.am (path-check): Don't use the `$status' shell variable
3996         in the target's rules, as it's special in Zsh (equivalent to `$?',
3997         and readonly).
3998
3999         Avoid another use of `chmod -R'.
4000         * Makefile.am (path-check): To be safe, do not use `chmod -R' on
4001         $(distdir) before removing it (as Solaris `chmod -R' touches
4002         symlink targets).  Instead, use the cleanup strategy used in
4003         distdir.am.
4004
4005 2010-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4006
4007         Remove uses of @acronym and @sc.
4008         * doc/automake.texi (Public Macros, Limitations on File Names):
4009         Remove all usage of @acronym and @sc in the manual.
4010         Suggested by Karl Berry.
4011
4012 2010-03-13  Karl Berry  <karl@freefriends.org>
4013
4014         GNU hello uses fdl.texi, not gpl.texi.
4015         * doc/automake.texi (Texinfo): Adjust example to upstream
4016         change.
4017
4018 2010-03-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4019
4020         Formatting cleanups in macro comments.
4021         * automake.in, lib/Automake/Channels.pm,
4022         lib/Automake/FileUtils.pm, lib/Automake/Options.pm,
4023         lib/Automake/Variable.pm, lib/Automake/XFile.pm,
4024         m4/options.m4, m4/substnot.m4: Fix macro comment format.
4025
4026 2010-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
4027             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4028
4029         Avoid generation of `tests/defs-p' file.
4030         * tests/defs.in: In the generated `configure.in' snippet: call
4031         `AM_INIT_AUTOMAKE' with the `parallel-tests' option if the shell
4032         variable `parallel_tests' is set to `yes'.
4033         * tests/Makefile.am (defs-p): Target removed.
4034         (check_SCRIPTS): Removed `defs-p'.
4035         (clean-local-check): Do not unlink `defs-p' anymore.
4036         ($(parallel_tests)): Transformation rules for the test scripts
4037         adjusted.
4038         * tests/gen-parallel-tests: Selection rules for the test
4039         scripts adjusted.
4040         * tests/parallel-tests.test: Set `$parallel_tests' to `yes'
4041         then include `./defs' (rather than simply including `./defs-p').
4042         * tests/parallel-tests2.test: Likewise.
4043         * tests/parallel-tests3.test: Likewise.
4044         * tests/parallel-tests4.test: Likewise.
4045         * tests/parallel-tests5.test: Likewise.
4046         * tests/parallel-tests6.test: Likewise.
4047         * tests/parallel-tests7.test: Likewise.
4048         * tests/parallel-tests8.test: Likewise.
4049         * tests/parallel-tests9.test: Likewise.
4050         * tests/parallel-tests10.test: Likewise.
4051         * tests/README (Section "Writing Test Cases" subsection "Do"):
4052         Adjusted the parts referring to tests checking `parallel-tests'
4053         behaviour.  Some other minor related improvements.
4054         * tests/.gitignore (defs-p): Removed.
4055
4056 2010-03-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
4057
4058         Remove redundant unset of variable TESTS from some test scripts.
4059         * tests/color.test: Do not unset the `TESTS' variable, as it's
4060         already unset in the `defs' file.
4061         * tests/check5.test: Likewise.
4062         * tests/check8.test: Likewise.
4063         * tests/check9.test: Likewise.
4064         * tests/check10.test: Likewise.
4065         * tests/check11.test: Likewise.
4066         * tests/parallel-tests.test: Likewise.
4067         * tests/parallel-tests3.test: Likewise.
4068         * tests/parallel-tests4.test: Likewise.
4069         * tests/parallel-tests5.test: Likewise.
4070         * tests/parallel-tests6.test: Likewise.
4071         * tests/parallel-tests7.test: Likewise.
4072
4073 2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4074
4075         Fix cscope test on systems without working Fortran compiler.
4076         * tests/cscope.test: Skip remainder of test if `$MAKE all' fails.
4077         * THANKS: Update.
4078         Report by Peter Johansson.
4079
4080 2010-02-24  Antonio Diaz Diaz  <ant_diaz@teleline.es>  (tiny change)
4081             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4082
4083         Add lzip compression support.
4084         * automake.in (handle_dist): Recognize dist-lzip.
4085         (make_paragraphs): Map LZIP to dist-lzip.
4086         * doc/automake.texi (Dist): Add dist-lzip.
4087         (Options): Likewise.
4088         * lib/Automake/Options.pm (_process_option_list): Add dist-lzip.
4089         * lib/am/distdir.am
4090         (dist dist-all): Add command to create an lzip-compressed tarball.
4091         (distcheck): Handle lzip-compressed tarballs just like the others.
4092         * tests/defs.in: Test for lzip, too.
4093         * tests/lzip.test: New file, based on nogzip.test.
4094         * tests/Makefile.am (TESTS): Add lzip.test.
4095         * NEWS: Update.
4096
4097 2010-02-22  Karl Berry  <karl@gnu.org>
4098
4099         Improve help message of mdate-sh.
4100         * mdate-sh: mention actual output format in help message.
4101
4102 2010-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4103
4104         Deprecate dist-lzma in favor of dist-xz.
4105         * doc/automake.texi (The Types of Distributions, Options):
4106         Adjust text to reflect renaming of lzma to xz.
4107         * NEWS: Update.
4108         Missing deprecation noted by Antonio Diaz Diaz.
4109
4110 2010-02-20  Stefano Lattarini  <stefano.lattarini@gmail.com>
4111
4112         Add tests about support of wildcards in EXTRA_DIST.
4113         * tests/extra10.test: New test, check basic support of wildcards
4114         in EXTRA_DIST.
4115         * tests/extra11.test: New test, check more complex usage of
4116         wildcards in EXTRA_DIST.
4117         * tests/extra12.test: New test, check usage of wildcards in
4118         EXTRA_DIST when $builddir != $srcdir.
4119         * tests/Makefile.am (TESTS): Updated accordingly.
4120         Necessity of these new tests suggested by Braden McDaniel
4121         and Ralf Wildenhues.
4122
4123 2010-02-08  Simon Josefsson  <simon@josefsson.org>
4124
4125         Fix copyright statement in gnupload script.
4126         * lib/gnupload: Fix copyright statement.
4127
4128 2010-02-06  Dmitry V. Levin  <ldv@altlinux.org>  (tiny change)
4129             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4130
4131         Fix exit status of signal handlers in shell scripts.
4132         The value of `$?' on entrance to signal handlers in shell scripts
4133         cannot be relied upon, so set the exit code explicitly to
4134         128 + SIG<SIGNAL>.
4135         * lib/am/check.am (am__check_pre): Use `exit 143' in signal handler.
4136         * lib/elisp-comp: Likewise.
4137         * lib/install-sh: Likewise.
4138         * lib/ylwrap: Likewise.  Also, fix script to trap signal 13, not 3.
4139         * NEWS, THANKS: Update.
4140         Bug report, analysis, and initial patch by Dmitry V. Levin.
4141
4142 2010-02-06  Karl Berry  <karl@gnu.org>
4143
4144         Improve gnupload usage text.
4145         * gnupload (usage): Shorten to make more likely to fit on a tty
4146         line.  Mention CMD in the synopsis.  With ..., plural is implied.
4147
4148 2010-01-28  Christos Kontas  <xakon@yahoo.com>  (tiny change)
4149
4150         Fix some typos in the manual
4151         * doc/automake.texi (Nested Packages, Rebuilding): Fix typos.
4152
4153 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4154
4155         Fix silent-rules output for disabled dependency tracking.
4156         * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
4157         expansion code to also work in the case where %AMDEP% expands
4158         to FALSE at config.status time, using new substitution string
4159         %VERBOSE-NODEP%.
4160         * automake.in (verbose_nodep_flag): New function, appending
4161         `@am__nodep@' to the verbose-variable name.
4162         (handle_languages): If dependencies are not disabled, use it to
4163         set %VERBOSE-NODEP%.
4164         * m4/depend.m4: Substitute am__nodep as '_no', so the second
4165         verbose-variable will always expand to an empty string, if
4166         dependencies are enabled.
4167         * tests/silent5.test: Also test --disable-dependency-tracking;
4168         also test per-target flags for non-C language files.
4169         * tests/silent9.test: New test, like silent4.test but disable
4170         dependency tracking.
4171         * tests/Makefile.am: Adjust.
4172         * NEWS, THANKS: Update.
4173         Report by Dmitry V. Levin <ldv@altlinux.org>.
4174
4175 2010-01-17  Stefano Lattarini  <stefano.lattarini@gmail.com>
4176
4177         Slighty improve tests acoutbs.test and acoutbs2.test.
4178         * tests/acoutbs2.test: Enable `errexit' shell flag.  Check that
4179         autoconf and configure work, that the file `zot' is created by
4180         configure, and that no file containing a backslash in its name is
4181         created.
4182         * tests/acoutbs.test: Likewise, plus updated copyright years.
4183
4184         Fix test acoutbs2.test.
4185         * tests/acoutbs2: In the generated configure.in: add proper calls
4186         to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of
4187         PACKAGE and VERSION. Add a call to aclocal before calling automake.
4188         Updated copyright years.
4189         * tests/Makefile.am (XFAIL_TESTS): Removed acoutbs2.test.
4190
4191         Add forgotten test scripts to $(TESTS).
4192         * tests/Makefile.am (TESTS): Added test scripts present on the
4193         filesystem, which were erroneously left out from $(TESTS):
4194         acoutbs2.test, badopt.test, extra2.test.
4195         (XFAIL_TESTS): Added acoutbs2.test.
4196
4197 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4198
4199         Sync auxiliary files from upstream.
4200         * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub:
4201         Sync from upstream.
4202
4203         Bump copyright years.
4204         * aclocal.in (write_aclocal, version): Bump copyright years.
4205         * automake.in (gen_copyright, version): Likewise.
4206         * doc/automake.texi: Likewise.
4207
4208         Rotate ChangeLog.
4209         * ChangeLog.09: New file, rotated from ...
4210         * ChangeLog: ... here.
4211         * Makefile.am (EXTRA_DIST): Distribute ChangeLog.09.
4212
4213 -----
4214
4215 Copyright (C) 2010  Free Software Foundation, Inc.
4216
4217 Copying and distribution of this file, with or without modification, are
4218 permitted provided the copyright notice and this notice are preserved.
4219
4220 ;; Variables:
4221 ;; coding: utf-8
4222 ;; End: