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