* doc/automake.texi (Per-Object Flags): New node.
[platform/upstream/automake.git] / ChangeLog
1 2004-12-11  Alexandre Duret-Lutz  <adl@gnu.org>
2
3         * doc/automake.texi (Per-Object Flags): New node.
4
5 2004-12-09  Alexandre Duret-Lutz  <adl@gnu.org>
6
7         Fix PR automake/441:
8         * lib/am/java.am (install-%DIR%JAVA, uninstall-%DIR%JAVA): Do
9         not install *.class if "$(%DIR%_JAVA)" is empty.
10         * tests/java3.test: New file.
11         * tests/Makefile.am (TESTS): Add it.
12         Report from Johannes Nicolai.
13
14         * doc/automake.texi (Java): Mention dist_ and add an example.
15         * tests/java.test: Do actually compile java files and run distcheck.
16
17 2004-12-08  Peter O'Gorman  <peter@pogma.com>
18             Alexandre Duret-Lutz  <adl@gnu.org>
19
20         * lib/Automake/FileUtils.pm (dir_has_case_matching_file,
21         reset_dir_cache): New functions.
22         * automake.in (handle_dist, require_file_internal): Use them, so
23         that CHANGELOG is not confused with ChangeLog on case-insensitive
24         case-preserving file systems.
25         * tests/hfs.test: New file.
26         * tests/Makefile.am (TESTS): Add hfs.test.
27
28 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
29
30         * lib/mdate-sh: Don't use "set - x`$ls_command /`", as zsh mishandles
31         the spaces inside $ls_command.  Problem reported by Loulou Pouchet in
32         <http://lists.gnu.org/archive/html/autoconf/2004-12/msg00074.html>.
33         Don't use "set - x"; plain "set x" is enough, and simplifies debugging.
34
35 2004-12-05  Toshio Kuratomi  <toshio@tiki-lounge.com>
36
37         * lib/py-compile: Add --destdir switch to py-compile that takes a
38         path argument that is not compiled into the file when byte compiling.
39         * lib/am/python.am: Use the new py-compile arguments to not include
40         DESTDIR in the byte compiled files.
41         * tests/python12.test: Test that DESTDIR won't be byte compiled into
42         python files.
43
44 2004-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
45
46         * doc/automake.texi (Clean): Typo.
47
48         * doc/automake.texi: Use @acindex for Autoconf macros, and @vindex
49         for variables (@cvindex was previously used for both).  Separate
50         these two indices in the output.  Use @code, @file, and @command
51         in @cindex lines wherever appropriate so they render nicely.
52
53 2004-12-05  Stepan Kasal  <kasal@ucw.cz>
54
55         * doc/automake.texi (renamed objects, CVS): Typos.
56
57 2004-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
58
59         * doc/automake.texi (Flag Variables Ordering): New section.
60         (User Variables, Program and Library Variables): @xref it.
61
62 2004-11-24  Alexandre Duret-Lutz  <adl@gnu.org>
63
64         * doc/automake.texi (Conditional Subdirectories): More comments
65         about non-distributed subdirectories.
66
67         * Makefile.am (maintainer-clean): Check for unescaped @ in manual.
68
69 2004-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70
71         * doc/automake.texi (Built sources example): Fix typo.
72
73 2004-11-22  Alexandre Duret-Lutz  <adl@gnu.org>
74
75         * aclocal.in (parse_arguments): Diagnose abbreviation ambiguous with
76         --help or --version.
77         * automake.in (parse_arguments): Likewise.
78         * tests/aclocal.test, tests/automake.test: Check this.
79         Report from Eric Blake.
80
81 2004-11-21  Alexandre Duret-Lutz  <adl@gnu.org>
82
83         * automake.in (parse_arguments): Diagnose empty arguments, options
84         with missing argument, and support `--'.
85         * aclocal.in (parse_arguments): Diagnose options with missing
86         argument.
87         * tests/aclocal.test: More checks.
88         * tests/automake.test: New file.
89         * tests/postprog.test: Use `--' for fun.
90         * tests/Makefile.am (TESTS): Add automake.test.
91         Report from Eric Blake.
92
93         * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Run programs with
94         /dev/null as input, so we do not hang on programs that read their
95         input without supporting --help and --version.
96         * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise for scripts.
97         * tests/gnits2.test: Change scriptnok.sh to cat its input.
98         Report and fix from James Youngman.
99
100 2004-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
101
102         * aclocal.in (%file_seen): Rename as ...
103         (%file_added): ... this, and move it close to add_file(), the only
104         function that uses it.
105
106         * aclocal.in (version): Remove initial blank line and reproduce
107         the layout of automake --version.  From Art Haas.
108
109         * aclocal.in (%file_type, FT_USER, FT_AUTOMAKE_SYSTEM): New variables.
110         (scan_m4_dirs): New function, extracted from ...
111         (scan_m4_files): ... here.  Call scan_m4_files three times, for each
112         FT_ constant.
113         (scan_file): Take a file type argument to update %file_type.
114         (write_aclocal): Do not m4_include files that are not of type FT_USER.
115         * tests/dirlist.test: Make sure m4_include is not used for --acdir
116         files.
117
118         * tests/defs.in (testaclocaldir): New variable.
119         * tests/aclocal.test: Use it to fix the test.  Report from
120         Patrick Welche.
121
122 2004-11-10  Alexandre Duret-Lutz  <adl@gnu.org>
123
124         * m4/python.m4 (AM_PATH_PYTHON): Fix the invocation of
125         AC_PATH_PROGS to correctly define PYTHON as `:' when no interpreter
126         is found (this worked correctly only when a minimal version was
127         passed to AM_PATH_PYTHON).  Report from Stepan Kasal.
128         (_AM_PYTHON_INTERPRETER_LIST): Define using m4_define_default,
129         so we can easily override the list from the test suite.
130         * tests/python11.test: New file.
131         * tests/Makefile.am (TESTS): Add python11.test.
132
133         * doc/automake.texi (Libtool Modules): Make clearer that -module
134         should appear explicitly in _LDFLAGS.
135
136 2004-11-09  Alexandre Duret-Lutz  <adl@gnu.org>
137
138         * aclocal.in (parse_arguments): Correctly recognize --print-ac-dir.
139         * tests/aclocal.test: Check --print-ac-dir and a unknown option.
140
141         * aclocal.in (parse_arguments): Fix detection of unexisting default
142         $(datadir)/aclocal.  Report from Akim.
143
144 2004-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
145
146         * aclocal.in ($acdir): Rename as ...
147         (@system_includes): ... this.
148         (@user_includes, @automake_includes): New variables.
149         ($default_acdir, $default_dirlist): Remove.
150         (parse_arguments): Populate @user_includes, @automake_includes, and
151         @system_includes instead of filling a unique @dirlist array.
152         ("MAIN"): Adjust to scan m4 files in @user_includes,
153         @automake_includes, and @system_includes.
154
155 2004-11-06  Alexandre Duret-Lutz  <adl@gnu.org>
156
157         * aclocal.in (parse_arguments): Correct comment.  From Akim.
158
159 2004-11-04  Alexandre Duret-Lutz  <adl@gnu.org>
160
161         * aclocal.in: Use Automake::ChannelDefs, and adjust all output
162         to be done via `fatal', `msg', `verb', or `prog_error'.
163         (version): New function.
164         (parse_arguments): Rewrite using Getopt::Long, call &version, and
165         honor -W and --warning.
166         ($verbose): Remove.
167         (trace_used_macros): Do not trace the first arguments of macros
168         for which we do not need it.  This caused failures because of
169         unexpected newlines in the output.
170         * doc/automake.texi (aclocal options): Document -W and --warning.
171         * tests/defs.in (ACLOCAL): Always use -Werror, to catch Perl
172         warnings about uninitialized variables.
173
174 2004-11-03  Alexandre Duret-Lutz  <adl@gnu.org>
175
176         * tests/defs.in: Do not distinguish VERBOSE=x from
177         VERBOSE=anything_but_x, always turn on shell traces.
178
179         * aclocal.in (write_aclocal): Make sure $map_traced_defs{$m} exists
180         before using it.  Suppress a warning observable in test/acloca16.test.
181         Report from Ralf Wildenhues.
182
183 2004-11-01  Alexandre Duret-Lutz  <adl@gnu.org>
184
185         * lib/Automake/XFile.pm (lock): Make sure $ENV{'MAKEFLAGS'} exists
186         before inspecting it; this fixes "uninitialized value in
187         concatenation" diagnostics when flock fails.
188         Report from Gary V. Vaughan.
189
190         * aclocal.in: Use strict and -w.  Declare local variables with `my',
191         and get rid of `local'.
192         (scan_m4_files, add_macro): Reindent these functions while we are
193         at it.
194
195         * lib/config.guess, lib/texinfo.tex: New upstream versions.
196
197         * doc/automake.texi (LIBOBJS): Spelling and grammar corrections
198         from Ralf Wildenhues.
199
200 2004-10-31  Alexandre Duret-Lutz  <adl@gnu.org>
201
202         * doc/automake.texi (LIBOBJS): Augment with an example setup.
203         (LTLIBOBJ): Rename as ...
204         (LTLIBOBJS): ... this.  Link to LIBOBJS, and mention LTALLOCA.
205
206 2004-10-25  Alexandre Duret-Lutz  <adl@gnu.org>
207
208         * doc/automake.texi: Untabify, tabs in the examples are poorly
209         rendered.
210         * Makefile.am (maintainer-check): Grep tabs in the manual.
211
212         * tests/comment8.test: Use $MAKE, not make.
213
214 2004-10-24  Alexandre Duret-Lutz  <adl@gnu.org>
215
216         * tests/distcom3.test: Typo.
217
218 2004-10-22  Alexandre Duret-Lutz  <adl@gnu.org>
219
220         * doc/automake.texi (Libtool Convenience Libraries): Explain how
221         to force the linker selection.
222
223         * lib/install-sh: Fix the dirname emulation to ignore trailing
224         slashes, i.e., the direname of `a/b/' is `a', not `a/b/'.  This
225         caused `install-sh a/b/' to fail.
226         * tests/instsh2.test: Augment.
227         Report from Пухальский Юрий Андреевич.
228
229 2004-10-21  Alexandre Duret-Lutz  <adl@gnu.org>
230
231         * automake.in (get_object_extension): The extension to use is know
232         by the caller, and cannot be selected by looking only at the
233         target name.  Simplify this function to simply conditionally
234         prepend $U to the given extension.
235         (handle_programs, handle_libraries, handle_ltlibraries): Hard-code
236         the extension to use.  This way Automake won't mistake a program
237         named `foo.la' as a libtool library.
238         * tests/primary3.test: New file.
239         * tests/Makefile.am (TESTS): Add primary3.test.
240
241 2004-10-12  Alexandre Duret-Lutz  <adl@gnu.org>
242
243         * doc/automake.texi (Install): Link to node Extending for examples.
244         (Extending): More comments about install-data-hook vs
245         install-exec-hook, and link to Install.
246
247         * configure.ac: Export @am_AUTOCONF@.
248         * tests/defs.in (AUTOCONF): Define as @am_AUTOCONF@, not @AUTOCONF@,
249         so the test suite runs `autoconf' and not `missing --run autoconf'.
250         * tests/missing.test, tests/missing2.test: Arrange for missing
251         to be used in front of autoconf even if the user has exported
252         AUTOCONF.  This fixes two spurious failures reported by
253         Mark D. Baushke.
254
255         * lib/compile: Handle output.obj in addition to output.o.
256         * tests/compile.test: Check for this.
257
258 2004-10-11  Alexandre Duret-Lutz  <adl@gnu.org>
259
260         * doc/automake.texi (Sources): Typo, reported by Karl Berry.
261
262 2004-10-10  Kelley Cook  <kcook@gcc.gnu.org>  (tiny change)
263             Alexandre Duret-Lutz  <adl@gnu.org>
264
265         * aclocal.in ($ac_defun_rx): Match AC_DEFUN_ONCE.
266         (trace_used_macros): Trace AC_DEFUN_ONCE.
267         * tests/aclocal5.test: Use AC_DEFUN_ONCE.
268
269 2004-10-10  Stepan Kasal  <kasal@ucw.cz>  (tiny change)
270
271         * doc/automake.texi (Extending): Typo.
272
273 2004-10-10  Martin Waitz  <tali@admingilde.org>  (tiny change)
274
275         * m4/as.m4 (AM_PROG_AS): Check dependency tracking mode for CCAS.
276         * automake.in (cppasm): Use the dependency tracking more for CCAS.
277         * doc/automake.texi (Assembly Support): Note that *.S are
278         preprocessed with CPPFLAGS.
279
280 2004-10-10  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
281
282         * automake.in (Languages): Split .s (asm) and .S (cppasm) into
283         separate languages.  Make cppasm (Preprocessed Assembler) aware
284         of CPPFLAGS, AM_CPPFLAGS.
285         (handle_languages): Fix typo.
286         (lang_cppasm_rewrite): New function.
287
288 2004-09-29  Alexandre Duret-Lutz  <adl@gnu.org>
289
290         * tests/subobj9.test: Adjust regexes after previous patch.
291
292 2004-09-28  Alexandre Duret-Lutz  <adl@gnu.org>
293
294         * automake.in (handle_languages, define_compiler_variable): Output
295         Libtool's --tag= option before --mode=compile, because depcomp use
296         --mode=compile as end marker for libtool arguments.
297         (define_linker_variable): Likewise before --mode=link, for
298         uniformity.
299         * tests/pr307.test: Make sure dependency files are updated.  That
300         was not the case because depcomp thought `--tag=CC' was the
301         compiler to get dependencies from.
302         Report from Пухальский Юрий Андреевич.
303
304 2004-09-26  Alexandre Duret-Lutz  <adl@gnu.org>
305
306         * configure.ac: Require Perl 5.6.
307         * lib/Automake/Config.in: Require Perl 5.6 (not done in
308         lib/Automake/General.pm because it is shared with Autoconf),
309         and use `our' instead of `use vars'.
310         * aclocal.in (rel2abs): Remove.
311         (scan_configure_dep): Use File::Spec->rel2abs instead.
312
313         * tests/compile.test, tests/instsh2.test, tests/instspc.test: Use
314         two consecutive spaces in filename instead of one, to catch mistake
315         like `echo $val | ...`.
316         * tests/README: Suggest this.
317         Suggested by Ralf Wildenhues.
318
319 2004-09-25  Alexandre Duret-Lutz  <adl@gnu.org>
320
321         * doc/automake.texi (Clean): Document -local targets.
322
323 2004-09-25  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
324
325         * doc/automake.texi: Typos.
326
327 2004-09-21  Alexandre Duret-Lutz  <adl@gnu.org>
328
329         * doc/automake.texi (Timeline): Typos and other English mistakes
330         reported by Jim and Gary.
331
332         * lib/Automake/VarDef.pm (append): Strip comments from augmented
333         variables.
334         * tests/comment8.test: New file.
335         * tests/Makefile.am (TESTS): Add comment8.test.
336         Report from Stepan Kasal.
337
338 2004-09-19  Alexandre Duret-Lutz  <adl@gnu.org>
339
340         * tests/compile.test: Fix rm usage.
341
342         * INSTALL, lib/INSTALL, lib/config.sub, lib/config.guess,
343         lib/texinfo.tex: New upstream versions.
344
345         * doc/automake.texi (Timeline): New node.  Thanks to Karl and Tom
346         for their comments on a preliminary version of this, Akim for
347         digging out some old mails, and Jason Molenda for sending the note
348         about Automake in Alias to Tom.
349         (Releases): Rename `ac' to `acl', suggested by Akim.
350
351 2004-09-19  Akim Demaille  <akim@epita.fr>
352
353         * AUTHORS, automake.in, aclocal.in: Add Alexandre Duret-Lutz as
354         author.
355
356 2004-09-15  Alexandre Duret-Lutz  <adl@gnu.org>
357
358         * doc/automake.texi (Releases): New node.
359
360         * doc/automake.texi (Dependencies): Link to Dependency Tracking
361         Evolution.
362         (Dependency Tracking Evolution): Link to GNU make, Sources (for
363         BUILT_SOURCES), and update the paragraph about the "plan" to
364         inline dependency tracking with gcc3.
365
366         * doc/automake.texi (History): New node.
367         (Dependency Tracking Evolution): New node, filled with a Texinfo
368         version of Tom Tromey's ``Dependency Tracking in Automake''
369         document, initially published on the Automake homepage on
370         2001-06-29.
371
372 2004-09-10  Alexandre Duret-Lutz  <adl@gnu.org>
373
374         * m4/minuso.m4 (AM_PROG_CC_C_O): Make sure AC_PROG_CC is never
375         called after this macro.
376         * tests/distname.test, tests/subdir5.test, tests/subdir8.test,
377         tests/subobj.test, tests/subobj4.test, tests/subobj5.test,
378         tests/subobj6.test: Adjust.
379         Report from Ralf Wildenhues.
380
381         * lib/Automake/Channels.pm (_print_message): Handle uniq_part with
382         arbitrary string.
383         * automake.in (lang_c_rewrite): Set uniq_part so that the
384         AM_PROG_CC_C_O diagnostic is output only once for subdir objects
385         and only once for objects with per-target flags.
386
387         * automake.in (lang_c_rewrite): Print files and locations
388         for AM_PROG_CC_C_O errors.
389         (handle_single_transform): Pass $var to &$subr so it can
390         print locations.
391
392         * lib/compile, lib/elisp-comp, lib/install-sh, lib/ylwrap: Use $ret
393         instead of $status which is read-only in Zsh.
394
395 2004-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
396             Alexandre Duret-Lutz  <adl@gnu.org>
397
398         * lib/compile: Preserve spaces in arguments (for example
399         -DPACKAGE_STRING="foo 0.1").
400         * tests/compile.test: New file.
401         * tests/Makefile.am (TESTS): Add compile.test.
402
403 2004-09-07  Alexandre Duret-Lutz  <adl@gnu.org>
404
405         * automake.in (handle_clean): Sort rm commands output for
406         mostlyclean-generic, clean-generic, distclean-generic, and
407         maintainer-clean-generic.
408         Report from Bob Friesenhahn.
409
410         * automake.in (lang_c_rewrite): Do not require AM_PROG_CC_C_O for
411         libtool objects.
412         (handle_single_transform): Pass nonansi_obj to &$subr so
413         lang_c_rewrite can distinguish libtool objects.
414         * tests/libtool7.test: Use subdir-objects without using AM_PROG_CC_C_O.
415         Report from Gary V. Vaughan and Patrick Welche.
416
417 2004-09-07  Andreas Schwab  <schwab@suse.de>
418
419         * automake.in ($PATH_PATTERN): Add `+'.
420
421 2004-09-07  Alexandre Duret-Lutz  <adl@gnu.org>
422
423         * tests/missing3.test: New file (check for Paolo's change below).
424         * tests/Makefile.am (TESTS): Add missing3.test.
425
426 2004-09-07  Paolo Bonzini  <bonzini@gnu.org>
427
428         * missing: Handle all command line options together.  Add a
429         separate case statement to detect failed runs, and fail
430         silently there if --help or --version is passed to the program.
431
432 2004-08-11  Alexandre Duret-Lutz  <adl@gnu.org>
433
434         * lib/config.guess, lib/texinfo.tex: New upstream versions.
435
436         For PR automake/433:
437         * configure.ac (pkgvdatadir): Define using "$PACKAGE", not "automake".
438
439         Fix PR automake/432:
440         * lib/am/yacc.am [!%?MORE-THAN-ONE%]: Replace `#line's in y.tab.h too.
441         * tests/yacc7.test: Check this.
442
443 2004-08-08  Alexandre Duret-Lutz  <adl@gnu.org>
444
445         * lib/Automake/DisjConditions.pm (new): Precompute 'string' and 'conds'
446         in place instead of as a side-effect of calling ->string and ->conds.
447         This saves method-lookup time, simplify ->string and ->conds, and
448         allows to create the object only when necessary.
449         (string, conds): Simplify, now that the result is precomputed.
450
451         * automake.in (%am_file_cache): New hash.
452         (make_paragraphs): Cache .am files with comments stripped to save
453         some useless input and substitutions.
454
455         * lib/Automake/Variable.pm (%_primary_dict): New hash.
456         (_new, variable_delete): Update %_primary_dict.
457         (variables): Accept an optional $suffix argument.
458         * automake.in (check_typos, am_primary_prefixes): Use that
459         optional argument to restrict the loops over the variables we are
460         interested in.
461
462 2004-08-06  Alexandre Duret-Lutz  <adl@gnu.org>
463
464         * lib/Automake/Item.pm (def): Rewrite more concisely, it's faster
465         this way.
466
467 2004-08-05  Alexandre Duret-Lutz  <adl@gnu.org>
468
469         Speed up make_paragraphs.
470         * automake.in (handle_languages): Always define SUBDIROBJ,
471         DERIVED-EXT, and DIST_SOURCE, because the new transform() will
472         abort on unknown tokens.
473         (transform): Rewrite with different semantics.
474         (make_paragraphs): Make a single pass over the paragraph to
475         transform all template tokens instead of doing as much passes as
476         possible token.
477
478         * automake.in ($libtool_new_api): New variable.
479         (handle_libtool): Do not libtool's aux files if $libtool_new_api.
480         (scan_autoconf_traces) <LT_SUPPORTED_TAG>: Set $libtool_new_api.
481         (scan_autoconf_traces) <AC_REQUIRE_AUX_FILE>: Remember only the
482         first location for required files.
483
484 2004-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
485
486         Support AC_REQUIRE_AUX_FILE, and fix requirement of AM_PROG_CC_C_O.
487         * automake.in (%required_aux_file): New hash.
488         (handle_single_transform, lang_c_rewrite): Do not explicitly
489         require 'compile', this is now an internal detail of
490         AM_PROG_CC_C_O.
491         (scan_autoconf_traces): Trace AC_REQUIRE_AUX_FILE and fill
492         %required_aux_file.
493         (scan_autoconf_files): Require all %required_aux_file instead
494         of explicitly requiring install-sh and missing.
495         (generate_makefile): Do not require config.sub and config.guess.
496         (handle_single_transform): Pass $have_per_exec_flags to
497         &lang_c_rewrite.
498         * configure.ac, m4/init.m4: Require Autoconf 2.59a.
499         * doc/automake.texi (Optional): Document AC_REQUIRE_AUX_FILE.
500         (Program and Library Variables, Options, Public macros):
501         AM_PROG_CC_C_O is required when per-target flags or subdir-objects
502         are used with C sources.
503         * m4/minuso.m4: Require `compile' using AC_REQUIRE_AUX_FILE.
504         * m4/missing.m4: Require `missing' similarly.
505         * tests/acsubst2.test, tests/distcom2.test, tests/distcom6.test,
506         tests/specflg.test, tests/specflg2.test, tests/specflg3.test,
507         tests/specflg6.test, tests/specflg7.test, tests/specflg8.test,
508         tests/specflg9.test, tests/subobj7.test, tests/target-cflags.test,
509         tests/yacc6.test: Fix to use AM_PROG_CC_C_O.
510
511 2004-08-03  Alexandre Duret-Lutz  <adl@gnu.org>
512
513         * automake.in (yacc_lex_finish_helper): Fix definition of YLWRAP
514         when ylwrap is installed in a default aux dir found in a parent
515         package.
516         * tests/subpkg.test: Augment to check that YLWRAP is installed
517         properly.
518         * doc/automake.texi (Yacc and Lex): ylwrap is not sought is the
519         current directory.
520         Report from Norman Gray.
521
522 2004-08-02  Alexandre Duret-Lutz  <adl@gnu.org>
523
524         * doc/automake.texi (Optional): Update documentation for
525         AC_CANONICAL_BUILD, AC_CANONICAL_HOST, and AC_CANONICAL_TARGET.
526
527         * automake.in (AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM): Replace by ...
528         (AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET): ... these.
529         (scan_autoconf_traces): Scan for the latter three macros instead of
530         the former two.
531         (make_paragraphs): Adjust definitions of %BUILD%, %HOST%, and %TARGET%.
532         * tests/hosts.test: New file.
533         * tests/Makefile.am (TESTS): Add hosts.test.
534         Report and test case from Norman Gray.
535
536 2004-08-01  Alexandre Duret-Lutz  <adl@gnu.org>
537
538         * aclocal.in (scan_file): Update "#Extending%20aclocal" URL, makeinfo
539         4.7 now outputs "#Extending-aclocal".
540
541 2004-08-01  Alexandre Duret-Lutz  <adl@gnu.org>
542             Derek R. Price  <derek@ximbiot.com>
543
544         Disable Lex and Yacc rules whenever possible if AM_MAINTAINER_MODE
545         is used and maintainer-mode disabled.
546         * automake.in (Automake::struct): Define nodist_specific.
547         Set it in languages yacc, yaccxx, lex, and lexxx.
548         (register_language): Default nodist_specific to 0.
549         (handle_single_transform): Honor nodist_specific.
550         * lib/am/yacc.am (am__skipyacc): Define this in maintainer mode.
551         (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skipyacc) to disable these
552         rules when needed.
553         * lib/am/lex.am (am__skiplex): Define this in maintainer mode.
554         (%EXT%%DERIVED-EXT%, %OBJ%): Use $(am__skiplex) to disable these
555         rules when needed.
556         * tests/mmodely.test: New file.
557         * tests/pr204.test: Augment to check AM_MAINTAINER_MODE and nodist_
558         parsers.
559         * tests/Makefile.am (TESTS): ADd mmodely.test.
560         * doc/automake.texi (Yacc and Lex): Note dependence on maintainer mode.
561
562 2004-07-28  Alexandre Duret-Lutz  <adl@gnu.org>
563
564         * configure.ac, NEWS: Bump version to 1.9a.
565
566         * configure.ac, NEWS: Bump version to 1.9.
567
568         * automake.in (generate_makefile): Update misleading comment about
569         libtool scripts.
570
571         * lib/texinfo.tex: New upstream version.
572
573 2004-07-25  Alexandre Duret-Lutz  <adl@gnu.org>
574
575         * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Remove `.' from the mkdir_p
576         definition, it causes `make install' to fails for user with no
577         right to write in the source-tree.
578         * automake.in (handle_configure): Do not use mkdir_p in the
579         definition for $(mkdir_p).
580         Report from Harlan Stenn.
581
582         * lib/am/texi-vers.am (%STAMPVTI%): Typo in comment.
583
584 2004-07-22  Alexandre Duret-Lutz  <adl@gnu.org>
585
586         * doc/automake.texi (Libtool Modules): Typo in example.
587         Report from Ulrich Eckhardt.
588
589 2004-07-21  Andreas Schwab  <schwab@suse.de>  (tiny change)
590
591         * automake.in (check_directory): Quote $dir in regexp.
592
593 2004-07-17  Alexandre Duret-Lutz  <adl@gnu.org>
594
595         * configure.ac, NEWS: Bump version to 1.8e.
596
597         * configure.ac, NEWS: Bump version to 1.8d.
598
599         * lib/config-ml.in, lib/config.sub, lib/config.guess, lib/texinfo.tex:
600         New upstream versions.
601
602         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
603         ?!GENERIC?%DEST_PREFIX%.html): Use $(X), not ${X}.
604
605         * tests/installdir.test: installdirs-local should appear three times,
606         since the change from 2004-07-11 will make it PHONY.
607
608         * lib/am/distdir.am (distdir): Always use $(DIST_SUBDIRS) now
609         that it is always defined.  This is less confusing for users
610         reading the generated Makefiles.
611         * automake.in (handle_dist): Do not substitute DIST_SUBDIR_NAME.
612
613         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.html,
614         ?!GENERIC?%DEST_PREFIX%.html): Output .htp, and then rename to .html
615         on success.  In case the target is a directory, this ensures its
616         time stamp is updated and the no files are left over inside.
617         * tests/txinfo21.test: Augment to test missing timestamp update
618         reported by Akim Demaille.
619
620         * doc/automake.texi (Top level): Rename as ...
621         (Directories): ... this, and split into ...
622         (Subdirectories, Conditional Subdirectories): ... these.
623         (Subdirectories): Illustrate the use of `.'.
624         (Conditional Subdirectories): Describe SUBDIRS and DIST_SUBDIRS
625         before the example.  Append a discussion about non-configured
626         conditional directories.
627         (Alternative): Move as a child of Directories.
628         (Subpackages): New section.
629         (Dist): Adjust links to Subdirectories, a Subpackages.
630         (Third-Party Makefiles): Link to Conditional Subdirectories.
631
632 2004-07-14  Alexandre Duret-Lutz  <adl@gnu.org>
633
634         * automake.in (target_hook): Accept %transform as last argument.
635         (handle_single_transform): Pass %transform to target_hook.
636         (handle_source_transform): Define DIST_SOURCE to tell whether
637         a the source of a file is distributed or not.
638         (lang_yacc_target_hook): Check DIST_SOURCE, and do not distribute
639         the generated header if the .y source is not distributed.
640         * tests/pr204.test: Use AM_YFLAGS = -d and make sure generated
641         headers are not distributed.
642
643 2004-07-12  Simon Josefsson  <jas@extundo.com>  (tiny change)
644
645         * doc/automake.texi (Options): Improve ustar file name length
646         discussion.  Reference tar manual.
647
648 2004-07-12  Ray Simard  <rhs.techlists@sylvan-glade.com>  (tiny change)
649
650         * lib/Automake/Variable.pm (define): Fix precondition check.
651
652 2004-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
653
654         For PR automake/428:
655         Support for conditionally defined -hook and -local rules.
656         * automake.in (user_phony_rule): New function.
657         (handle_dist, handle_install, handle_all, do_check_merge_target,
658         handle_factored_dependencies): Use user_phony_rule before
659         adding a user -hook or -local rule as a dependency to ensure
660         it is always defined an phony.
661         * tests/cond37.test, tests/condhook.test: New files.
662         * tests/Makefile.am (TESTS): Add them.
663         Report from Simon Josefsson and Nik A. Melchior.
664
665 2004-07-05  Paul Eggert  <eggert@cs.ucla.edu>
666
667         * doc/automake.texi (Install): Warn that you should create
668         /tmp/staging before installing into it, to avoid security problems.
669         * lib/install-sh: Remove support for -b= and -t= options; this
670         has been moribund for a decade.
671         Add support for -t and -T options (new in coreutils install).
672         -c option now does nothing (the default is to copy), for
673         compatibility with BSD and coreutils 'install'.
674         Fix usage message; it referred to nonexistent variables.
675         Don't assume 'lasterr' is unset in environment.
676         * tests/instsh2.test: Don't assume that install-sh without -c
677         moves (it now copies).  Add tests for new -t and -T options.
678
679 2004-06-16  Alexandre Duret-Lutz  <adl@gnu.org>
680
681         For Debian Bug#254372:
682         * doc/automake.texi (Invoking aclocal): Rewrite the paragraph
683         explaining m4_include is used for relative files.
684
685 2004-06-10  Alexandre Duret-Lutz  <adl@gnu.org>
686
687         For Debian Bug #251820:
688         * aclocal.in (scan_file): Keep track of the location where each
689         file is included, and display it when reporting a missing file.
690         Pass this location to scan_file as a second argument.
691         (scan_m4_files): Adjust calls to scan_file.
692         * tests/acloca14.test: Add a test for this diagnostic.
693
694 2004-06-07  Alexandre Duret-Lutz  <adl@gnu.org>
695
696         * m4/tar.m4 (_AM_PROG_TAR): Split the definition of $_am_tools
697         so it works with Solaris and Tru64 /bin/sh.
698         Report from Nicolas Joly.
699
700 2004-06-06  Alexandre Duret-Lutz  <adl@gnu.org>
701
702         * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a
703         bug in NetBSD /bin/sh.
704         Report from Nicolas Joly.
705
706 2004-06-03  Alexandre Duret-Lutz  <adl@gnu.org>
707
708         * tests/defs.in (required=icc): Use `-V -help' instead of
709         `-V -dryrun'.  icc 8.0 fails on the latter.
710         * tests/depcomp5.test: Require depmode=icc for icc 7.x, and
711         depmod=gcc otherwise.
712         Report from Ralf Wildenhues.
713
714         * lib/am/clean.am (distclean-generic): Do no
715         `rm -f $(CONFIG_CLEAN_FILES)' if `$(CONFIG_CLEAN_FILES)' is empty.
716         Report from Nicolas Joly.
717
718 2004-05-31  Alexandre Duret-Lutz  <adl@gnu.org>
719
720         * NEWS: Make clearer that we do not output partial Makefile.ins on
721         error.
722         Suggested by Akim Demaille.
723
724         * lib/depcomp (tru64) [libtool]: Use $dir$base.o.d instead
725         of $dir.libs/$base.o.d.  Libtool 1.5 causes both to be output,
726         and we will clean the second automatically during distclean.
727         Using the latter and leaving the former as we did before cause
728         "files left in build directory" failures during distcheck.
729         Suggested by Nicolas Joly.
730
731         * doc/automake.texi (Built sources example): Explain what
732         nodist_foo_SOURCES is (not) useful to, and use it in all the
733         examples.
734         (Tags): Mention nodist_noinst_HEADERS and nodist_prog_SOURCES.
735         Suggested by Akim Demaille.
736
737 2004-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
738
739         * configure.ac, NEWS: Bump version to 1.8c.
740
741         * configure.ac, NEWS: Bump version to 1.8b.
742
743         * m4/tar.m4 (_AM_PROG_TAR) <cpio>: Specify -o and -i option first,
744         by POSIX; and use option -d in am_untar.
745
746         * tests/defs.in (PATH): Export it.
747
748         * lib/am/multilib.am: Add $(MAKE) comments to multido and
749         multiclean lines, to enable parallel make.  Based on a patch
750         by Alexandre Oliva applied to newlib on 2003-10-15.
751
752 2004-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
753
754         * automake.in (scan_autoconf_traces): Trace for LT_SUPPORTED_TAG
755         instead of AC_LIBTOOL_TAGS, since that how CVS Libtool has been
756         changed.
757         * tests/libtool3.test: Do not grep for --tag=CC, since CVS
758         Libtool (unlike Libtool 1.5) does not has any CC tag.
759
760         * tests/tar2.test: Skip the test if no pax archiver were found.
761
762         * NEWS: Sync with branch-1-8, and reorganize current entry.
763
764         * automake.in (handle_libraries): Make the diagnostic about
765         non standard libraries a warning in foreign packages.  This
766         is already the case in handle_ltlibraries.
767         (handle_libraries, handle_ltlibraries): Suggest a standard
768         library name in the diagnostic, to help newcomers.
769         * tests/stdlib.test, tests/stdlib2.test: Check for these
770         suggestions.
771
772         Check directory names for unportable names.  Shaking the code
773         to check this also led to the removal of the no-"/"-in-SUBDIRS
774         restriction, and a fix to _do_recursive_traversal.
775
776         * automake.in (check_directory): New function extracted from
777         handle_subdirs, and augmented to check for reserved W32/DOS name.
778         (check_directories_in_var): New function.
779         (handle_subdirs): Call check_directories_in_var.  Doing so also
780         suppress the restriction that SUBDIRS should not contain slashes.
781         (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Call check_directory
782         to ensure the argument exists and is safe.
783         * doc/automake.texi (Top level): Do not say that src/subdir
784         cannot be put in SUBDIRS.
785         (Dist): Mention that distdir and top_distdir can be absolute.
786         * lib/Automake/Variable.pm (_do_recursive_traversal) Support
787         undefined $fun_collect, and fix two bugs introduced with
788         skip_ac_subst on 2004-03-07.
789         * lib/am/distdir.am (distdir): Use absolute distdir and
790         top_distdir when recursing, because we can no longer prepend only
791         `..' in case of SUBDIRS with `/'.
792         * tests/auxdir4.test, tests/subdir9.test: New files.
793         * tests/Makefile.am (TESTS): Add auxdir4.test.
794         * tests/cond2.test, tests/subdir7.test: Augment to check location
795         in diagnostics.
796
797 2004-05-21  Eric Blake  <ebb9@byu.net>  (tiny changes)
798
799         * tests/txinfo22.test (AC_CONFIG_AUX_DIR): Use aux1, not aux, for
800         cygwin compatibility.
801         * tests/yacc6.test (AC_CONFIG_AUX_DIR): Likewise.
802
803         * tests/conflnk3.test: Isolate checking for working `test -e' into
804         a subshell, to skip this test on broken /bin/sh of solaris.
805
806 2004-05-17  Alexandre Duret-Lutz  <adl@gnu.org>
807
808         * m4/cond.m4 (AM_CONDITIONAL): Double-quote diagnostic.
809         * tests/condd.test: Define a macro with the same name as a
810         conditional.
811         * tests/pr220.test: Modernize, and make sure the diagnostics
812         contains the macro name.
813         Report from Volker Boerchers.
814
815 2004-05-16  Alexandre Duret-Lutz  <adl@gnu.org>
816
817         * lib/texinfo.tex: New upstream version.
818
819 2004-05-15  Alexandre Duret-Lutz  <adl@gnu.org>
820
821         * automake.in (handle_dist): Always define DIST_SUBDIRS, even when
822         the no-dist or cygnus options are used.
823         * tests/clean2.test: New file.
824         * tests/Makefile.am (TESTS): Add clean2.test.
825         Report from Daniel Jacobowitz.
826
827         * aclocal.in (add_macro): Do not error out on undefined required
828         macros.  We are not sure they are really used, and Autoconf
829         already diagnoses them.
830         (scan_configure_dep): Diagnose missing AM_ macros as warnings rather
831         than errors.
832         * tests/aclocal3.test, tests/ammissing.test: Adjust to expect a
833         warning instead of an error.
834         * tests/aclocal8.test: AC_REQUIRE an undefined macro in an unused
835         macro, and ensure aclocal works anyway.
836         * tests/acloca17.test: New file.
837         * tests/error.test: Delete, superseded by tests/acloca17.test.
838         * tests/Makefile.am (TESTS): Add acloca17.test and remove error.test.
839         Report from Jim Meyering.
840
841         * lib/am/texibuild.am (?!GENERIC_INFO?%DEST_INFO_PREFIX%%DEST_SUFFIX%):
842         Fold a few lines to reduce the output by 5 lines.
843         Suggested by Karl Berry.
844
845         * automake.in (parse_arguments, MAIN): Give more precise
846         diagnostics when no input file is found.
847         * tests/output5.test: Adjust.
848         Suggested by Jens Petersen.
849
850 2004-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
851
852         * lib/am/libs.am (AR, ARFLAGS): Move these definition ...
853         * automake.in (handle_libraries): ... here, so that they are
854         output even for EXTRA_LIBRARIES.
855         * tests/ar2.test: New file.
856         * tests/Makefile.am (TESTS): Add it.
857         Report from Kevin Ryde.
858
859 2004-05-13  Alexandre Duret-Lutz  <adl@gnu.org>
860
861         * automake.in (generate_makefile): Do not output Makefile.in on
862         errors.
863         * tests/werror2.test: New file.
864         * tests/Makefile.am (TESTS): Add werror2.test.
865         * tests/substtarg.test, tests/cond36.test, tests/backsl4.test:
866         Adjust to run automake with -Wno-error when the output is expected
867         in spite of the error.
868         Report from Harlan Stenn.
869
870         * doc/automake.texi (Program and Library Variables): Remove
871         doubled word in footnote.
872
873         * automake.in (handle_source_transform): Also check for a
874         $(srcdir)/old_source rule when computing the default source name.
875         Propagate this $(srcdir) prefix in Automake variables.
876         * tests/ltlibsrc.test (noinst_LTLIBRARIES): Explicitly refer to
877         $(srcdir)/zoo_d_old2_la.c.  This fixes another failure with BSD Make.
878
879 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
880
881         * Makefile.am (fetch): Work even with FreeBSD "make", which
882         uses sh -e and thus errors-out if a simple-command fails.
883         * lib/am/check.am (check-TESTS): Likewise.
884         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Likewise.
885         * lib/am/tags.am (TAGS): Likewise.
886
887 2004-05-13  Alexandre Duret-Lutz  <adl@gnu.org>
888
889         * tests/lex3.test, tests/yacc6.test: Require GNU Make.
890         Fixing these for BSD Make requires invasive changes (lexers and
891         parsers must be built into $srcdir, and--most annoyingly--all
892         references to parse.h must be changed to $(srcdir)/parse.h).
893         Report from Mark D. Baushke.
894
895 2004-05-10  Alexandre Duret-Lutz  <adl@gnu.org>
896
897         * tests/defs.in (GNUmake): Grep for GNU to parry FreeBSD make.
898         Report from Mark D. Baushke.
899
900 2004-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
901
902         * lib/texinfo.tex: New upstream version.
903
904         * lib/depcomp (tru64): Clarify comments.  Thanks to Nicolas Joly.
905
906         * doc/automake.texi (Headers): Revamp.
907
908 2004-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
909
910         * automake.in (check_typos): Clarify the diagnostic.
911         * tests/warnopts.test: Adjust.
912
913         * lib/Automake/VarDef.pm (append): Turn VAR_ASIS variables into
914         VAR_PRETTY variables to work around make implementation with
915         limited line length, such as OSF1/Tru64 make.
916         * tests/longline.test: New file.
917         * tests/Makefile.am (TESTS): Add it.
918         * tests/pluseq3.test, tests/pluseq8.test: Adjust.
919         Report from Simon Josefsson.
920
921         * lib/am/tags.am (TAGS): Pass `.' to Exuberant Ctags if
922         --etags-include is used but no other files are supplied, so it
923         creates the TAGS file anyway.
924         Report from Akim Demaille.
925
926         * lib/depcomp (tru64) [libtool]: Nicolas Joly reported on
927         2002-06-12 that dependencies were output in $dir.libs/$base.lo.d.
928         Teun Burgers reported on 2004-03-30 they were in
929         $dir.libs/$base.o.d.  Try both.
930
931 2004-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
932
933         For PR automake/414:
934         Introduce option filename-length-max=99.
935         * doc/automake.texi (Options): Document it.
936         * configure.ac (AM_INIT_AUTOMAKE): Use it.
937         * lib/Automake/Options.pm (_process_option_list): Recognize it.
938         * automake.in (handle_dist): Set FILENAME_FILTER.
939         * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long
940         filenames.
941         * tests/fn99.test: New file.
942         * tests/Makefile.am (TESTS): Add fn99.test.
943
944 2004-04-20  Alexandre Duret-Lutz  <adl@gnu.org>
945
946         For PR automake/414:
947         Introduce options tar-v7, tar-ustar, and tar-pax to select
948         tar format.
949         * doc/automake.texi (Options): Document them.
950         * lib/Automake/Options.pm (_process_option_list): Process
951         these new options.
952         * lib/am/distdir.am (dist-gzip, dist-bzip2, dist-tarZ, dist,
953         distcheck): Adjust to use am__tar and am__untar.
954         * m4/tar.m4: New file.
955         * m4/Makefile.am (dist_m4data_DATA): Add tar.m4.
956         * m4/init.m4 (AM_INIT_AUTOMAKE): Support the new options
957         and call _AM_PROG_TAR.
958         * tests/tar.test, tests/tar2.test, tests/tar3.test: New files.
959         * tests/Makefile.am (TESTS): Add them.
960
961 2004-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
962
963         * lib/am/distdir.am (distcheck): Typo in shar decompression.
964
965         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
966         versions.
967
968 2004-04-17  Alexandre Duret-Lutz  <adl@gnu.org>
969
970         Fix PR automake/49:
971         * automake.in (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Diagnose
972         calls to AC_CONFIG_AUX_DIR followings calls to AM_INIT_AUTOMAKE.
973         * tests/auxdir.test, tests/auxdir2.test, tests/lex5.test,
974         tests/mdate3.test, tests/multlib.test, tests/reqd2.test,
975         tests/symlink.test, tests/txinfo8.test, tests/txinfo22.test,
976         tests/yacc6.test, tests/yacc8.test: Fix to call AC_CONFIG_AUX_DIR
977         before AM_INIT_AUTOMAKE.
978         * tests/auxdir3.test: New file (exercise this diagnostic).
979         * tests/Makefile.am (TESTS): Add auxdir3.test.
980
981 2004-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
982
983         * aclocal.in (%map_traced_defs): New variable.
984         (scan_m4_files): Normalize filenames.
985         (trace_used_macros): Trace for AC_DEFUN and AU_DEFUN, also
986         ask for the filename and the first argument.  Populate
987         %map_traced_defs.
988         (write_aclocal): Use $map_traced_defs to filter out unused
989         definitions.
990         * tests/acloca16.test: New file.
991         * tests/Makefile.am (TESTS): Add acloca16.test.
992
993 2004-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
994
995         * automake.in ($automake_needs_to_reprocess_all_files): Remove.
996         ($automake_will_process_aux_dir): New variable.
997         (scan_autoconf_traces): Reorder @input_files so that the Makefile
998         that distributes aux files is processed last.  This way we do not
999         have to process all files twice using
1000         $automake_will_process_aux_dir.
1001         (require_file_internal): Suggest a full run of automake when
1002         appropriate.
1003         (MAIN): Remove the loop on $automake_needs_to_reprocess_all_files.
1004         * tests/distcom7.test: New file.
1005         * tests/reqd2.test: Do not check for the "running more than two"
1006         message.
1007         * tests/Makefile.am (TESTS): Add distcom7.test.
1008
1009         * automake.in (@config_aux_path, $config_aux_dir): Rename as ...
1010         ($config_aux_dir, $am_config_aux_dir): ... these.
1011         ($config_aux_dir_set_in_configure_in): Rename as ...
1012         ($config_aux_dir_set_in_configure_ac): ... this.
1013         (%require_file_found): Rename as ...
1014         (%required_file_not_found): ... this.
1015         (handle_languages, handle_texinfo_helper, handle_dist,
1016         handle_configure, handle_emacs_lisp, handle_python,
1017         scan_autoconf_traces, yacc_lex_finish_helper): Adjust to new names.
1018         (scan_autoconf_traces): Call locate_aux_dir.
1019         (locate_aux_dir): New function.
1020         (@require_file_paths): Remove, not used anymore.
1021         (require_file_internal): Look files in only one directory (instead
1022         of @require_file_internal) passed in argument.
1023         (require_file, require_conf_file): Pass the destination directory
1024         to require_file_internal.
1025
1026         Fix for PR automake/416:
1027         * m4/depend.m4 (_AM_DEPENDENCIES): Catch `not supported' ICC 8.0
1028         remarks.
1029         From Peter Seiderer.
1030
1031 2004-04-10  Andreas Buening  <andreas.buening@nexgo.de>
1032
1033         * aclocal.in, automake.in, configure.ac, Makefile.am,
1034         tests/aclocal.in, tests/automake.in, tests/defs.in:
1035         Use PATH_SEPARATOR from autoconf instead of ':'.
1036
1037 2004-04-09  Alexandre Duret-Lutz  <adl@gnu.org>
1038
1039         * automake.in (handle_lib_objects): Pass the condition of
1040         the variable definition to handle_LIBOBJS and handle_ALLOCA,
1041         not the aggregated conditions.
1042         * tests/Makefile.am (TESTS): Add libobj14.test.
1043         * tests/libobj14.test: New file.
1044         Report from Bill Davidson.
1045
1046 2004-04-02  Mike Nolta  <mike@nolta.net>
1047
1048         Better support for Fortran 9x.
1049         * automake.in: Add "fc" and "ppfc" languages for Fortran 9x.
1050         * doc/automake.texi (Fortran 9x Support): New section.
1051         * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC.
1052         * tests/compile_f90_c_cxx.test: New file.
1053         * tests/ext.test: Add AC_PROG_FC.
1054         * tests/f90only.test: New file.
1055         * tests/link_f90_only.test: New file.
1056         * tests/Makefile.am (TESTS): Add new tests.
1057
1058 2004-04-01  Paul Eggert  <eggert@twinsun.com>
1059
1060         * lib/install-sh: If "mv -f" works, use it, and fall back to
1061         the old "test -f" + "rm -f" + "mv" method only if "mv -f" does
1062         not work.  This improves performance in the usual case where
1063         "mv -f" works.  It also lets us install the "mv" command
1064         without worrying about a small window where "mv" does not
1065         exist (this problem was reported by Raul Nunez de Arenas
1066         Coronado).
1067
1068 2004-03-26  Alexandre Duret-Lutz  <adl@gnu.org>
1069
1070         * m4/python.m4 (AM_PATH_PYTHON): Make sure am_display_PYTHON is
1071         set when $PYTHON has been set by the user.
1072         From Esben Haabendal Soerensen.
1073
1074 2004-03-22  Alexandre Duret-Lutz  <adl@gnu.org>
1075
1076         * doc/automake.texi (Default _SOURCES): Typo.
1077         (true): Correct _'s placement in example.
1078         Report from Stepan Kasal.
1079
1080 2004-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
1081
1082         Overriding JAVAROOT is legitimate, do not warn about it.
1083         * lib/Automake/Variable.pm (%_silent_variable_override): Add JAVAROOT.
1084         * tests/java2.test: Run automake without -Wno-override.
1085         Report from Simon Josefsson.
1086
1087 2004-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
1088
1089         * automake.in (handle_texinfo_helper): Typos in comment.
1090
1091 2004-03-07  Alexandre Duret-Lutz  <adl@gnu.org>
1092
1093         * lib/config.guess: New upstream version.
1094
1095         Fix for PR automake/285:
1096         * automake.in (handle_ltlibraries): Keep track of installation
1097         directories for each condition, then define a $(am_TARGET_rpath)
1098         variable to hold the -rpath flags of Libtool libraries conditionally
1099         installed in different directories.
1100         * lib/Automake/DisjConditions.pm (merge): New function.
1101         * tests/libtool6.test: Adjust.
1102         * tests/libtool8.test: New file.
1103         * tests/Makefile.am (TEST): Add libtool8.test.
1104
1105         * lib/Automake/Variable.pm (traverse_recursively,
1106         _do_recursive_traversal): Honor the skip_ac_subst option.
1107         * automake.in (handle_dist): Use skip_ac_subst.
1108
1109 2004-02-29  Alexandre Duret-Lutz  <adl@gnu.org>
1110
1111         * Makefile.am (cvs-release): Upload to ~ftp/pub/automake, not
1112         ~ftp/automake.
1113         * lib/gnupload (Example): Update example.
1114
1115         * lib/config-ml.in, lib/config.guess, lib/config.sub,
1116         lib/texinfo.tex: New upstream versions.
1117
1118         * m4/depend.m4 (_AM_DEPENDENCIES): Use `touch' rather than `: >'
1119         to create numbered dependencies.  This fixes a portability issue
1120         when CONFIG_SHELL is forced to /bin/sh on Solaris 8.
1121         Reported by Mark Phillips.
1122
1123         * automake.in (lang_yacc_target_hook): Use Automake::Rule::define
1124         so that rules for the same headers are not output twice.
1125         * lib/Automake/Variable.pm (value_as_list_recursive): Do not
1126         call `return' inside `map'.
1127         * tests/cond30.test: Make sure `a.c' and `b.c' both appear
1128         in the Makefile.in.
1129         * tests/cond35.test, tests/cond36.test: New files.
1130         * tests/Makefile.am (TESTS): Add cond35.test and cond36.test.
1131         Report from Roman Fietze.
1132
1133         Fix for PR/413:
1134         * lib/am/distdir.am (distcheck): Create $dc_destdir with `umask
1135         077 && mkdir' instead of `$(mkdir_p)'.  This prevents possible
1136         symlink attacks reported by Stefan Nordhausen.
1137
1138 2004-02-16  Alexandre Duret-Lutz  <adl@gnu.org>
1139
1140         * doc/automake.texi (Multiple Outputs): More text, based on
1141         comments from Eric Siegerman, Tim Van Holder, and Oren Ben-Kiki.
1142
1143 2004-02-15  Alexandre Duret-Lutz  <adl@gnu.org>
1144
1145         * m4/mkdirp.m4: Use `mkdir -p' only with GNU mkdir, because
1146         Solaris 8's mkdir is not thread-safe.
1147         * lib/mkinstalldirs: Likewise.
1148         * lib/install-sh: Abort when mkdir fails to create a directory.
1149         Report from Nathanael Nerode.
1150
1151 2004-02-07  Alexandre Duret-Lutz  <adl@gnu.org>
1152
1153         * aclocal.in (rel2abs): New function.
1154         (scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs,
1155         the later does was introduced in Perl 5.6 so using it breaks with
1156         Perl 5.005.
1157         Report from Werner John.
1158
1159 2004-02-03  Alexandre Duret-Lutz  <adl@gnu.org>
1160
1161         * doc/automake.texi (Future of aclocal): Make clearer that
1162         it's ok to install macros into /usr/share/aclocal/.
1163
1164 2004-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
1165
1166         * tests/lisp.test: Delete (pointless).
1167         * tests/Makefile.am (TESTS): Remove lisp.test.
1168
1169         * lib/Automake/Variable.pm (transform_variable_recursively):
1170         Define rewritten variables in all conditions not *covered* by user
1171         definitions, not simply in conditions without a previous
1172         definition.
1173         * tests/cond34.test: New file.
1174         * tests/Makefile.am (TESTS): Add cond34.test.
1175         Report from Elena A. Vengerova
1176
1177         * doc/automake.texi (Multiple Outputs): Typo.
1178
1179         * doc/automake.texi (Emacs Lisp): Typos.
1180
1181         Support for conditional _LISP.
1182         * automake.in (handle_emacs_lisp): Define $(ELCFILES) from LISP, not
1183         from $(am__ELCFILES).
1184         * lib/am/lisp.am (elc-stamp): Use $(LISP) instead of $(am__ELFILES).
1185         * tests/lisp6.test: New file.
1186         * tests/Makefile.am (TESTS): Add it.
1187
1188         * automake.in (handle_emacs_lisp): Define $(ELCFILES) as
1189         $(am__ELCFILES), and always push it on @all.  Do not mention
1190         elc-stamp.
1191         * lib/am/lisp.am (.el.elc): Rewrite as ...
1192         ($(am__ELCFILES)): ... this, and depend on elc-stamp.
1193         (elc-stamp): Make sure elc-stamp is older that all .elc files, as
1194         explained in the manual entry below.
1195
1196         * doc/automake.texi (Multiple Outputs): New node.
1197
1198 2004-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
1199
1200         * m4/regex.m4: Do not AC_SUBST(LIBOBJS), and quote most arguments.
1201         * tests/regex.test: New file.
1202         * tests/Makefile.am (TESTS): Add regex.test.
1203
1204 2004-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
1205
1206         * Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses.
1207         * lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am,
1208         lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am,
1209         lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote
1210         installation paths in install, uninstall, and installcheck rules,
1211         as well as in am__installdirs variables.  This is for the sake
1212         of paths containing spaces.
1213         * lib/am/install.am (installdirs-am, installdirs): Do not try
1214         to create "" directories.
1215         * test/instspc.test: New file.
1216         * test/Makefile.am (TESTS): Add instspc.test.
1217         Report from James Amundson.
1218
1219         * doc/automake.texi (Not Enough, Third-Party Makefiles): New nodes.
1220         (Extending): Make it a subsection of Not Enough.
1221
1222         * lib/gnupload (GPG): Use an absolute path.  Suggestion from Gary
1223         V. Vaughan.
1224         (passphrase): Unset it this variable before using it, in case it
1225         was exported.  Report from Scott James Remnant.
1226
1227 2004-01-25  Alexandre Duret-Lutz  <adl@gnu.org>
1228
1229         * lib/gnupload (usage): Fix example.
1230         * Makefile.am (cvs-release): Fix call to gnupload.
1231         From Jim Meyering.
1232
1233 2004-01-24  Alexandre Duret-Lutz  <adl@gnu.org>
1234
1235         * lib/gnupload: New script.
1236         * lib/Makefile.am (EXTRA_DIST): Distribute gnupload.
1237         * Makefile.am (cvs-release): New target.
1238
1239 2004-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
1240
1241         * lib/am/python.am (uninstall-%DIR%PYTHON): Remove extra `;'s.
1242         Fix python10.test.
1243
1244         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use `s/xx//p'
1245         instead of `/xx/ s///p'; the latter fails when GNU sed is run with
1246         POSIXLY_CORRECT.  Also strip superfluous -e.
1247         Report from Miloslav Trmac.
1248
1249 2004-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
1250
1251         * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
1252         this fixes a spurious failure reported by Andreas Schwab.  Also
1253         make sure ylwrap is not installed unless needed, and exercise
1254         --no-force.
1255
1256 2004-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1257
1258         * doc/automake.texi (Dist): Document limitations of distcheck-hook
1259         and DISTCHECK_CONFIGURE_FLAGS with regard to subdirs and
1260         subpackages.
1261
1262 2004-01-20  Alexandre Duret-Lutz  <adl@gnu.org>
1263
1264         * doc/automake.texi (Upgrading): New node.
1265
1266 2004-01-20  Gary V. Vaughan  <gary@gnu.org>
1267
1268         * automake.in (scan_autoconf_traces): AC_LIBTOOL_TAGS can be
1269         correctly called without arguments as evidenced by the libtool
1270         demo directories.
1271
1272 2004-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
1273
1274         * tests/conflnk3.test: Skip if `test -e' does not work.
1275         Report from Lars Hecking.
1276
1277 2004-01-13  Jim Meyering  <jim@meyering.net>
1278
1279         * lib/install-sh: Change `\n \t' to `\n\t ' in `defaultIFS'
1280         assignment.  Remove spurious SPACEs before TABs.
1281
1282 2004-01-12  Alexandre Duret-Lutz  <adl@gnu.org>
1283
1284         * lib/py-compile: Check input files after option processing.
1285         Ensure --basedir has an argument.
1286         * lib/am/python.am (install-%DIR%PYTHON): Do not run py-compile
1287         if nothing was installed.
1288         * tests/python10.test: New file.
1289         * tests/Makefile.am (TESTS): Add python10.test.
1290         Suggested by Sander Niemeijer.
1291
1292         * tests/txinfo29.test: Remove autom4te.cache.
1293         Report from Greg Schafer.
1294
1295         * lib/install-sh: Do not use "$@" in a context where it may be empty,
1296         for the sake of OSF1/Tru64's shell.
1297         Report from He Li.
1298
1299 2004-01-11  Alexandre Duret-Lutz  <adl@gnu.org>
1300
1301         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
1302         versions.
1303
1304         * m4/as.m4, m4/depend.m4, m4/maintainer.m4, m4/multi.m4: Update
1305         copyright years and serial.
1306
1307         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.4.
1308
1309 2004-01-10  Peter Eisentraut  <peter_e@gmx.net>  (tiny change)
1310
1311         * m4/as.m4 (AM_PROG_AS): Format and align help string more
1312         consistently.
1313         * m4/depend.m4 (AM_DEP_TRACK): Likewise.
1314         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
1315         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
1316         * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
1317
1318 2004-01-10  Paul Eggert  <eggert@twinsun.com>
1319
1320         * m4/lispdir.m4 (AM_PATH_LISPDIR): Don't use \? in sed regular
1321         expressions; it doesn't conform to POSIX.
1322
1323 2004-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
1324
1325         * automake.in (shadow_unconditionally): New function...
1326         (handle_source_transform): ... extracted from here.
1327         (am_install_var): Use shadow_unconditionally to define %DISTVAR%.
1328         * lib/am/data.am, lib/am/java.am, lib/am/lisp.am, lib/am/python.am,
1329         lib/am/script.am: Add %DISTVAR% to DIST_COMMON.
1330         * tests/cond33.test: Make sure all conditional files are distributed.
1331         Report from Ralf Corsepius.
1332
1333 2004-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
1334
1335         * m4/mkdirp.m4 (AM_PROG_MKDIR_P): Append `.' to $(mkdir_p).
1336         * lib/install-sh: Accept `install-sh -d' with 0..n arguments,
1337         as well as `install-sh sources... dest' with multiple sources.
1338         * tests/cond33.test: New file.
1339         * tests/instsh2.test: Add more checks for install-sh.
1340         * tests/transform.test: Test for installdirs.
1341         * tests/Makefile.am (TESTS): Add cond33.test
1342         Report from Ralf Corsepius.
1343
1344         * automake.in (handle_configure): Skip AC_CONFIG_LINKS items which
1345         do not look like DEST:SRC.
1346         * tests/conflnk3.test: Check for AC_CONFIG_LINKS($computed).
1347
1348 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
1349
1350         Fix for PR automake/289:
1351         * automake.in (Automake::Struct::libtool_tag): New attribute.  Define
1352         it for the language that have a Libtool tag.
1353         (%libtool_tags): New variable.
1354         (handle_languages, define_compiler_variable)
1355         (define_linker_variable): Pass --tag=XXX to libtool if supported.
1356         (scan_autoconf_traces): Scan for _LT_AC_TAGCONFIG and AC_LIBTOOL_TAGS.
1357         * tests/libtool3.test, tests/subobj9.test: Check that --tag=XXX is
1358         output.
1359
1360 2003-01-07  Eric Sunshine  <sunshine@sunshineco.com>  (tiny change)
1361
1362         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
1363         config.status.lineno.
1364
1365 2004-01-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1366
1367         * doc/automake.texi (Rebuilding): Typo.
1368
1369 2004-01-07  Alexandre Duret-Lutz  <adl@gnu.org>
1370
1371         * lib/am/Makefile.am (dist_am_DATA): Really add inst-vars.am.
1372
1373 2004-01-06  Alexandre Duret-Lutz  <adl@gnu.org>
1374
1375         * THANKS: Add Bruce Korb.
1376
1377 2004-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
1378
1379         Mimic Paul Eggert's changes to Autoconf.
1380         * Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'.
1381         * lib/Automake/Makefile.am (Config.pm): Likewise.
1382         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.
1383
1384         * lib/am/inst-vars.am: New file, define am__vpath_adj_setup,
1385         am__vpath_adj, and am__strip_dir.
1386         * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am.
1387         * lib/am/data.am, lib/am/lisp.am, lib/am/python.am,
1388         lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj),
1389         $(am__vpath_adj_setup), and $(am__strip_dir) in install and
1390         uninstall rules.  This fixes installation of nobase_ files in
1391         VPATH setups with Sun and OSF1/Tru64 Make.
1392         * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use
1393         $(am__strip_dir) to simplify install and uninstall rules.
1394         * tests/nobase.test: Augment to check installation from VPATH builds.
1395
1396         * automake.in (%transformed_files): New variable.
1397         (initialize_per_input): Reset it.
1398         (make_paragraphs): Fill %transformed_files, and define %FIRST%
1399         each time a file is transformed for the first time.
1400         (handle_configure): Do not define %FIRST_CONFIG_HIN%.
1401         (am_install_var): Do not define %FIRST%.
1402         * lib/am/remake-hdr.am: Use %?FIRST% instead of %?FIRST_CONFIG_HIN%.
1403
1404 2004-01-04  Alexandre Duret-Lutz  <adl@gnu.org>
1405
1406         * lib/texinfo.tex: New upstream version.
1407
1408         * m4/mkdirp.m4: Do not use `-m 0755'.  This overrides special bits
1409         and break setups where 775 directories are expected.  Just obey
1410         umask as we did in the past.
1411         Report from Harlan Stenn.
1412
1413 2004-01-03  Alexandre Duret-Lutz  <adl@gnu.org>
1414
1415         * automake.in (scan_texinfo_file): Do not compare $outfile to ''
1416         as $outfile might not be defined at all.
1417
1418         * lib/Automake/Variable.pm (define): Rework the way we check
1419         Automake variable definition.  Ensure consistent :=/+=/=
1420         definitions only for variables that have been and are defined by
1421         Automake, and make it an internal error.  Ignore Automake
1422         attempts to touch a user variable, even with += assignments.
1423         * tests/txinfo29.test: New file.
1424         * tests/Makefile.am (TESTS): Add txinfo29.test.
1425         Reported by Bruce Korb.
1426
1427 2004-01-02  Tom Tromey  <tromey@redhat.com>
1428
1429         * automake.in (handle_source_transform): Don't generate dist
1430         variables when no-dist is set.
1431         (generate_makefile): Likewise.
1432         * tests/nodist3.test: Ensure that DIST_SOURCES is not created,
1433         and that dist target does not exist.
1434         Reported by Tom Fitzsimmons.
1435
1436 2004-01-02  Alexandre Duret-Lutz  <adl@gnu.org>
1437
1438         * tests/libtool5.test, tests/ltcond.test, tests/ltcond2.test,
1439         * tests/ltconv.test: Run automake with --add-missing, because
1440         the CVS version of libtoolize no longer install config.sub and
1441         config.guess by default.
1442
1443         Fix for PR automake/319:
1444         * aclocal.in (scan_m4_files): Scan configure.ac.
1445         (trace_used_macros, write_aclocal): Remove configure.ac from the
1446         list of files to include.
1447         * tests/Makefile.am (TESTS): Add acloca15.test.
1448         * tests/acloca15.test: New file.
1449
1450         * aclocal.in (%file_includes): New variable.
1451         (scan_configure_dep): Compile $m4_include_rx and $ac_require_rx once.
1452         (scan_file): Scan for included files, and process these files
1453         recursively.  Fill %file_includes and %file_contents.  Return the
1454         list of included files, not the contents.
1455         (scan_m4_files): Adjust calls to scan_files.
1456         (strip_redundant_includes): New function.
1457         (trace_used_macros): Call it.
1458         (write_aclocal): Likewise.  Also check the mtime of included files.
1459         * tests/Makefile.am (TESTS): Add acloca14.test.
1460         * tests/acloca14.test: New file.
1461         Report from Phil Edwards.
1462
1463 2004-01-01  Alexandre Duret-Lutz  <adl@gnu.org>
1464
1465         * automake.in (handle_languages): Do not define DEP_FILES.
1466         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Extract included
1467         files with $(DEPDIR) in their name instead of DEP_FILES.
1468         * tests/depend.test, tests/depend4.test, tests/exsource.test:
1469         Adjust.
1470         Suggested by Tom Tromey.
1471
1472         Do not output .lo rules for programs and static libraries objects,
1473         and do not output .o/.obj rules for libtool libraries.  This is
1474         about explicit rules only, not inference rules.
1475         * automake.in (handle_single_transform_list): Rename as ...
1476         (handle_single_transform): ... this.  Take a single file
1477         to transform (it was only called this way) and accept a new
1478         %transform argument.  Fill %lang_specific_files with list
1479         references instead of strings, and append %transform to each
1480         of these lists.
1481         (define_objects_from_sources, handle_source_transform):
1482         Take a %transform argument, and forward it to &handle_single_transform.
1483         (handle_languages): Adjust to the new format of
1484         %lang_specific_files, and honor its %transform part.
1485         (handle_programs, handle_libraries, handle_ltlibraries): Override
1486         %NONLIBTOOL% and %LIBTOOL% while calling handle_source_transform.
1487         (make_paragraphs): Define %NONLIBTOOL% by default.  Make sure
1488         %transform settings override global settings.
1489         * lib/am/depend2.am (%OBJ%, %OBJOBJ%): Define only if %NONLIBTOOL%.
1490         * tests/libtool3.test: Augment to check Makefile.ins for unneeded
1491         rules.
1492         Suggested by Thomas Fitzsimmons.
1493
1494         * automake.in, aclocal.in: Bump copyright years.
1495
1496 2003-12-31  Alexandre Duret-Lutz  <adl@gnu.org>
1497
1498         * automake.in (generate_makefile): Update misleading comment.
1499
1500         * automake.in (handle_languages): Define %DEPBASE% conditionally
1501         on subdir-objects.  Define SUBDIROBJ.  Do not clean *_.c files
1502         here ...
1503         (lang_c_finish): ... do it here.
1504         (handle_single_transform_list): Do not output specific rules for
1505         subdir-objects files which are not renamed.  This should reduce
1506         the size of Makefiles with lots of subdirectory sources.
1507         * lib/depcomp: Simplify computation of dependency output, and use
1508         DEPDIR.
1509         * lib/am/depend2.am (%EXT%.o, %EXT%.obj, %EXT%.lo): Adjust call
1510         to depcomp.  Compute depbase on-the-fly in generic fastdep rules
1511         for subdir-objects.
1512         * tests/ansi9.test: Do not grep for an explicit rule that
1513         we no longer expect.  Really run $MAKE to make sure the chain
1514         of rules works.
1515         * tests/yacc5.test: Do not grep for an explicit rule that
1516         we no longer expect.  Adjust to use set -e.
1517
1518 2003-12-27  Alexandre Duret-Lutz  <adl@gnu.org>
1519
1520         * automake.in (@common_files): Move configure, configure.ac, and
1521         configure.in ...
1522         (@common_sometimes): ... here so that these files do not appear
1523         twice in DIST_COMMON.
1524
1525         * automake.in (maybe_push_required_file): Add $(srcdir) in front
1526         a required files outside the current directory or its subdirectories.
1527         * lib/am/distdir.am (distdir): Update comment.
1528         Report from Nicolas Joly.
1529
1530 2003-12-26  Alexandre Duret-Lutz  <adl@gnu.org>
1531
1532         * doc/automake.texi (@copying): Do not repeat the version.
1533         (Top): Use @insertcopying.  Add a @detailmenu, this works around
1534         Emacs 21's inability to lookup indices in sub-nodes (reported
1535         by Kevin Ryde).
1536         (C++ Support, Assembly Support, Fortran 77 Support, Java Support,
1537         Support for Other Languages, Preprocessing Fortran 77, Compiling
1538         Fortran 77 Files, Mixing Fortran 77 With C and C++, How the Linker
1539         is Chosen): Add missing descriptions in menus.
1540         (Fortran 77 and Autoconf): Remove, this node was just saying "use
1541         Autoconf 2.53 or greater".
1542
1543 2003-12-26  Santiago Vila  <sanvila@unex.es>  (tiny change)
1544
1545         * NEWS: s/Gettext 1.12.1/Gettext 0.12.1/
1546
1547 2003-12-25  Nicolas Joly  <njoly@pasteur.fr>  (tiny change)
1548
1549         * doc/automake.texi (Conditional Sources): Typo.
1550
1551 2003-12-25  Alexandre Duret-Lutz  <adl@gnu.org>
1552
1553         * lib/Automake/Config.in: Require Exporter.
1554         Report from Kevin Ryde (failure with Perl 5.005_03).
1555
1556 2003-12-15  Alexandre Duret-Lutz  <adl@gnu.org>
1557
1558         * tests/aclocal6.test: Check for autom4te.cache only if it has
1559         been created.
1560         * tests/maintclean.test: Update comment.
1561         Report from Bruno Haible.
1562
1563         * tests/txinfo24.test, tests/txinfo25.test, tests/txinfo28.test:
1564         Require texi2dvi-o.
1565         Report from Václav Haisman.
1566
1567 2003-12-10  Alexandre Duret-Lutz  <adl@gnu.org>
1568
1569         * configure.ac, NEWS: Bump version to 1.8a.
1570
1571         * configure.ac, NEWS: Bump version to 1.8.
1572
1573         * lib/texinfo.tex: New upstream version.
1574
1575         * Makefile.am (INSTALL): Copy the source from $(srcdir).
1576
1577 2003-12-09  Alexandre Duret-Lutz  <adl@gnu.org>
1578
1579         * lib/Automake/Rule.pm (define): Remove debugging traces.
1580         Report from Akim Demaille.
1581
1582 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1583             Alexandre Duret-Lutz  <adl@gnu.org>
1584
1585         * Makefile.am (do_subst): Fix the substitution of @configure_input@.
1586         (automake, aclocal): Create the output atomically and make it
1587         read-only, as done in the Autoconf package.
1588         * lib/Automake/Makefile.am (do_subst): Fix the substitution of
1589         @configure_input@.
1590         (Config.pm): Create the output atomically and make it read-only.
1591         * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Substitute
1592         @configure_input@ and make the output read-only.
1593         * lib/Automake/Config.in, m4/amversion.in, tests/aclocal.in,
1594         tests/automake.in, tests/defs.in: Add a @configure_input@ line.
1595
1596 2003-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
1597
1598         * doc/automake.texi (Local Macros, CVS): Typos.
1599
1600 2003-12-08  Alexandre Duret-Lutz  <adl@gnu.org>
1601
1602         * lib/Automake/Variable.pm (hook): Use $$ as prototype, not $\&.
1603         Perl 5.6.0 will not accept a reference sub reference for the
1604         latter.
1605         * automake.in (var_SUFFIXES_trigger): Adjust registration via
1606         Automake::Variable::hook.
1607         (handle_texinfo_helper): Make sure `inner_expand => 1' appears
1608         on one line, so that Perl 5.6.0 does not complain about
1609         inner_expand being a bare identifier.
1610
1611 2003-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
1612
1613         * aclocal.in (check_acinclude, scan_file): Output `warning:' in
1614         front of warnings.
1615         Report from Pavel Roskin.
1616
1617 2003-12-04  Alexandre Duret-Lutz  <adl@gnu.org>
1618
1619         * TODO: Remove some old entries.
1620
1621         * doc/automake.texi (Rebuilding): Document CONFIGURE_DEPENDENCIES
1622         and CONFIG_STATUS_DEPENDENCIES.  Move this sections later
1623         in the manual since it's pretty advanced material.
1624
1625         * automake.in ($config_header_location): Remove.  Use
1626         %ac_config_files_location instead.
1627         (rewrite_inputs_into_dependencies): Do not prepend $(top_builddir)/
1628         at the top-level.
1629         (handle_configure): Use rewrite_inputs_into_dependencies to
1630         distribute and compute AC_CONFIG_HEADERS dependencies.
1631         (scan_autoconf_traces) <AC_CONFIG_HEADERS>: Fill
1632         %ac_config_files_location.
1633         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Rename as ...
1634         (%CONFIG_HIN%): ... this.  $(srcdir) is already added in
1635         scan_autoconf_traces.
1636         * tests/Makefile.am (TESTS): Add confh5.test.
1637         * tests/confh5.test: New file.
1638
1639         * tests/ltlibsrc.test: Fix the zoo_d_old2_la.c rule in Makefile.am,
1640         $< is not portable and the source is in $(srcdir).
1641
1642 2003-12-03  Paolo Bonzini  <bonzini@gnu.org>
1643             Alexandre Duret-Lutz  <adl@gnu.org>
1644
1645         * automake.in (handle_configure): Do not require link sources if
1646         they contain a dollar, or if they were built.  Likewise, do not
1647         clean link destination if they contain a dollar.
1648         (scan_autoconf_traces) <AC_CONFIG_LINKS>: Populate
1649         %ac_config_files_location with link destinations.  Do not
1650         store locations in @config_links, now that %ac_config_files_location
1651         have them.
1652         * tests/conflnk3.test: New file.
1653         * tests/Makefile.am (TESTS): Add conflnk3.test.
1654
1655 2003-12-02  Alexandre Duret-Lutz  <adl@gnu.org>
1656
1657         * configure.ac, NEWS: Bump version to 1.7i.
1658
1659         * configure.ac, NEWS: Bump version to 1.7h.
1660
1661         * doc/automake.texi (Default _SOURCES): Fix reference to true.
1662
1663         * lib/texinfo.tex: New upstream version.
1664
1665 2003-11-30  Alexandre Duret-Lutz  <adl@gnu.org>
1666
1667         * automake.in (handle_source_transform): If it's present, use
1668         libfoo_la.c instead of libfoo.c as the default source of
1669         libfoo.la, and issue an -Wobsolete diagnostic.  Do not be
1670         greedy in the suffix replacement regex.
1671         * doc/automake.texi (Default _SOURCES): New node.
1672         (Program Sources, Libtool Modules): Refer to it.
1673         * tests/ltlibsrc.test: Update to check for old default source files.
1674
1675 2003-11-30  Gary V. Vaughan  <gary@gnu.org>
1676
1677         * automake.in (&handle_source_transform): Calculate a default file
1678         for use in the absence of an appropriate _SOURCES declaration by
1679         first stripping any suffix from the unxformed target name, and
1680         appending `.c'.
1681         * doc/automake.texi (Program Sources, Libtool Modules): Document this.
1682         * tests/ltlibsrc.test: New file.
1683         * tests/Makefile.am (TESTS): Add ltlibsrc.test.
1684
1685 2003-11-29  Alexandre Duret-Lutz  <adl@gnu.org>
1686
1687         * lib/Automake/Variable.pm (loc_and_value_as_list_recursive,
1688         _value_as_list_recursive_worker): Merge into ...
1689         (value_as_list_recursive): ... this function.  Pass options
1690         as a hash argument, and use the `location' option to trigger
1691         the behavior of loc_and_value_as_list_recursive.
1692         (traverse_recursively, transform_variable_recursively): Take
1693         options as a %options argument.
1694         (_do_recursive_traversal): Perform expansion of inner variables
1695         (as in `$(FILE).ext') on request.
1696         * automake.in (handle_options, check_libobjs_sources)
1697         (handle_source_transform, handle_LIBOBJS, handle_ltlibraries)
1698         (handle_ltlibraries, handle_man_pages, handle_dist)
1699         (handle_gettext, am_install_var): Adjust usage of
1700         value_as_list_recursive.
1701         (handle_texinfo_helper): Pass inner_expand to
1702         value_as_list_recursive.
1703         * tests/txinfo28.test: New file.
1704         * tests/Makefile.am (TESTS): Add txinfo28.test.
1705         Report from Ralf Corsepius.
1706
1707         * lib/Automake/Variable.pm (_do_recursive_traversal): Do not
1708         update @_substfroms and @_substfroms for undefined variables.
1709         * tests/substre2.test: New file.
1710         * tests/Makefile.am (TESTS): Add substre2.test.
1711
1712         * lib/Automake/VarDef.pm (value): Rename as ...
1713         (raw_value): ... this.
1714         (value): New method, strip # and \\\n.
1715         (dump): Use raw_value.
1716         * lib/Automake/Variable.pm (output): Use raw_value.
1717         (value_as_list): Simplify, now that backslash and comments
1718         are already removed.
1719         * tests/txinfo22.test: Make sure Automake isn't confused
1720         by comments in variables.
1721
1722 2003-11-27  Alexandre Duret-Lutz  <adl@gnu.org>
1723
1724         * doc/automake.texi: More target vs. rule editing.  Back out some
1725         of the previous changes.  It's OK to talk about targets as "entry
1726         points", or as thing to build, but targets cannot be run: rules
1727         are run.
1728
1729         * doc/automake.texi: s/target/rule/ where appropriate.  A target
1730         is the destination of a target rule, not the rule itself.
1731         Suggested by Bruno Haible.
1732
1733 2003-11-25  Alexandre Duret-Lutz  <adl@gnu.org>
1734
1735         * configure.ac, NEWS: Bump version to 1.7g.
1736
1737         * configure.ac, NEWS: Bump version to 1.7f.
1738
1739         * automake.in (prepend_srcdir): Parenthesize @inputs to remove
1740         a maintainer-check warning.
1741         * tests/subst2.test: Rewrite the $MAKE invocation to please
1742         maintainer-check.
1743
1744         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New upstream
1745         versions.
1746
1747         * doc/automake.texi (Program variables): Mention per-target
1748         _CPPFLAGS in the documentation of INCLUDES.
1749         * automake.in (generate_makefile): Likewise in the INCLUDES diagnostic.
1750         Report from Bob Friesenhahn.
1751
1752         * doc/automake.texi (Extending): Elaborate on overriding.
1753         * NEWS: Likewise.
1754         Suggested by Bruno Haible.
1755
1756 2003-11-24  Alexandre Duret-Lutz  <adl@gnu.org>
1757
1758         * lib/Automake/Variable.pm (output): Add $(am__empty) to variable
1759         definitions that end with a line full of @substitutions@ that
1760         would confuse HP-UX Make if it were blank.
1761         (transform_variable_recursively): Make sure not to erase empty
1762         variables.
1763         * tests/Makefile.am (TESTS): Add subst2.test.
1764         * tests/subst2.test: New file.
1765         Report from Harlan Stenn.
1766
1767         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Work around a
1768         Texinfo 4.1 bug.
1769         Report from Dalibor Topic.
1770
1771 2003-11-22  Alexandre Duret-Lutz  <adl@gnu.org>
1772
1773         Fix for PR automake/411:
1774         * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename
1775         into ...
1776         (prepend_srcdir): ... this.
1777         (rewrite_inputs_into_dependencies): New function, extracted from ...
1778         (handle_configure): ... here.  Adjust to use prepend_srcdir
1779         or rewrite_inputs_into_dependencies where needed.  Especially,
1780         using (the new) rewrite_inputs_into_dependencies to compute
1781         Makefile dependencies will fix PR/411.
1782         * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's
1783         already distributed by rewrite_inputs_into_dependencies.
1784         * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test.
1785         * tests/colon3.test: Use set -e.  Don't allow any AUTOMAKE
1786         invocation refer to zardoz.  Make sure two.in and three.in
1787         appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies.
1788         * tests/distcom.test: Delete.  This is covered by tests/output9.test.
1789         * tests/output10.test: New file, for PR/411.
1790
1791 2003-11-21  Alexandre Duret-Lutz  <adl@gnu.org>
1792
1793         * automake.in (append_exeext): Do not append $(EXEEXT) to
1794         @substitutions@.
1795         * tests/exeext4.test: New file.
1796         * tests/Makefile.am (TESTS): Add exeext4.test.
1797
1798 2003-11-19  Alexandre Duret-Lutz  <adl@gnu.org>
1799
1800         * lib/am/configure.am (%MAKEFILE%): Remove %MAINTAINER-MODE%,
1801         mistakenly added on 2001-03-05.
1802         * tests/remake5.test: New file.
1803         * tests/Makefile.am (TESTS): Add remake5.test.
1804         Report from Ralf Corsepius.
1805
1806 2003-11-18  Alexandre Duret-Lutz  <adl@gnu.org>
1807
1808         * configure.ac, NEWS: Bump version to 1.7e.
1809
1810         * configure.ac, NEWS: Bump version to 1.7d.
1811
1812         * lib/config.sub, lib/config.guess, lib/texinfo.tex: New
1813         upstream versions.
1814
1815 2003-11-18  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>  (tiny change)
1816             Alexandre Duret-Lutz  <adl@gnu.org>
1817
1818         * lib/am/texinfos.am (install-info): Depend on
1819         install-info-recursive or install-info-am even if no-installinfo.
1820         * tests/txinfo27.test: New file.
1821         * tests/Makefile.am (TESTS): Add txinfo26.test.
1822
1823 2003-11-18  Paolo Bonzini  <bonzini@gnu.org>
1824             Alexandre Duret-Lutz  <adl@gnu.org>
1825
1826         * lib/ylwrap: Do not overwrite headers if they haven't changed.
1827         Fix the include guard substitution.
1828         * tests/yacc6.test: Augment to run ylwrap, and make sure it
1829         does not needlessly update headers.
1830         * tests/yacc8.test: Make sure headers are not needlessly updated
1831         with ylwrap is not used.  Move `test -f foo.o' into the
1832         Makefile as `test -f foo.$(OBJEXT)' for portability.
1833
1834 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
1835
1836         * automake.in (generate_makefile): Define SUBDIRS if it is
1837         not defined and DIST_SUBDIRS is.
1838         * tests/subpkg2.test: New file.
1839         * tests/Makefile.am (TESTS): Add subpkg2.test.
1840         Report from Gary V. Vaughan.
1841
1842         * tests/suffix11.test: Check for suffixes containing `-'.
1843         * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in
1844         suffixes.
1845
1846         * lib/Automake/Rule.pm (define): Suggest using target-local instead
1847         of target-am, not target-am-local.
1848         * tests/overrid.test: Check the diagnostic for clean-am.
1849         Report from Bruno Haible.
1850
1851 2003-11-17  Jim Meyering  <jim@meyering.net>
1852
1853         * bootstrap: Require not only that `perl' have the executable
1854         bit set, but also that it is not a directory.
1855
1856         * lib/am/configure.am: Mark %MAKEFILE% as `.PRECIOUS'.
1857
1858 2003-11-17  Alexandre Duret-Lutz  <adl@gnu.org>
1859
1860         * automake.in (ac_config_files_location): Declare as a hash.
1861         (handle_configure): Rewrite the computation of AC_CONFIG_FILES
1862         dependencies; make sure we don't use $(srcdir) or $(top_srcdir)
1863         for inputs which are also outputs, and do not check inputs
1864         relatively to the current directory.
1865         (scan_autoconf_config_files): Take $where as argument, and
1866         fill $ac_config_files_location.
1867         * tests/output8.test, tests/output9.test: New files.
1868         * tests/Makefile.am (TESTS): Add output8.test and output9.test.
1869         Report from Bruno Haible.
1870
1871 2003-11-14  Alexandre Duret-Lutz  <adl@gnu.org>
1872
1873         * tests/aclibobj.test, tests/aclocal.test, tests/aclocal3.test,
1874         tests/acoutbs.test, tests/acoutbs2.test, tests/acoutnoq.test,
1875         tests/acoutpt.test, tests/acoutpt2.test, tests/acoutqnl.test,
1876         tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
1877         tests/all.test, tests/alpha.test, tests/amassign.test,
1878         tests/ammissing.test, tests/ansi.test, tests/ansi10.test,
1879         tests/ansi2.test, tests/ansi3.test, tests/ansi3b.test,
1880         tests/ansi4.test, tests/ansi5.test, tests/ansi6.test,
1881         tests/ansi7.test, tests/ansi9.test, tests/ar.test,
1882         tests/autohdr.test, tests/autohdr2.test, tests/auxdir.test,
1883         tests/auxdir2.test, tests/backsl.test, tests/backsl2.test,
1884         tests/badprog.test, tests/block.test, tests/canon2.test,
1885         tests/canon3.test, tests/canon4.test, tests/canon5.test,
1886         tests/ccnoco.test, tests/check.test, tests/check2.test,
1887         tests/check3.test, tests/checkall.test, tests/clean.test,
1888         tests/colneq2.test, tests/colon.test, tests/colon2.test,
1889         tests/colon3.test, tests/colon4.test, tests/colon5.test,
1890         tests/colon6.test, tests/colon7.test, tests/comment.test,
1891         tests/comment2.test, tests/comment4.test, tests/comment6.test,
1892         tests/comment7.test, tests/compile_f_c_cxx.test, tests/cond.test,
1893         tests/cond10.test, tests/cond11.test, tests/cond13.test,
1894         tests/cond14.test, tests/cond15.test, tests/cond16.test,
1895         tests/cond17.test, tests/cond18.test, tests/cond19.test,
1896         tests/cond21.test, tests/cond22.test, tests/cond25.test,
1897         tests/cond26.test, tests/cond28.test, tests/cond3.test,
1898         tests/cond4.test, tests/cond5.test, tests/cond6.test,
1899         tests/cond7.test, tests/cond8.test, tests/cond9.test,
1900         tests/condd.test, tests/condinc.test, tests/condlib.test,
1901         tests/condman.test, tests/condman2.test, tests/conf2.test,
1902         tests/confdeps.test, tests/confh.test, tests/confh4.test,
1903         tests/config.test, tests/confincl.test, tests/conflnk.test,
1904         tests/conflnk2.test, tests/confsub.test, tests/confvar.test,
1905         tests/confvar2.test, tests/copy.test, tests/ctarget1.test,
1906         tests/cxx.test, tests/cxxansi.test, tests/cxxcpp.test,
1907         tests/cxxlibobj.test, tests/cxxlink.test, tests/cxxnoc.test,
1908         tests/cxxo.test, tests/cygwin32.test, tests/dash.test,
1909         tests/defun.test, tests/defun2.test, tests/dejagnu.test,
1910         tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test,
1911         tests/dejagnu6.test, tests/dejagnu7.test, tests/depacl2.test,
1912         tests/depcomp.test, tests/depcomp2.test, tests/depcomp4.test,
1913         tests/depdist.test, tests/depend.test, tests/depend2.test,
1914         tests/depend3.test, tests/depend4.test, tests/destdir.test,
1915         tests/dirlist.test, tests/discover.test, tests/distcom.test,
1916         tests/distcom2.test, tests/distdir.test, tests/distname.test,
1917         tests/dollar.test, tests/double.test, tests/dup2.test,
1918         tests/empty.test, tests/empty2.test, tests/empty3.test,
1919         tests/empty4.test, tests/error.test, tests/exdir.test,
1920         tests/exeext.test, tests/exeext3.test, tests/exsource.test,
1921         tests/ext.test, tests/ext2.test, tests/extra.test,
1922         tests/extra2.test, tests/extra3.test, tests/extra4.test,
1923         tests/extra5.test, tests/extra6.test, tests/extra7.test,
1924         tests/flibs.test, tests/fnoc.test, tests/fo.test,
1925         tests/fonly.test, tests/fortdep.test, tests/fpinst2.test,
1926         tests/fpinstall.test, tests/gcj.test, tests/gcj3.test,
1927         tests/gcj4.test, tests/gnits2.test, tests/gnits3.test,
1928         tests/header.test, tests/implicit.test, tests/include.test,
1929         tests/include2.test, tests/info.test, tests/insh2.test,
1930         tests/install2.test, tests/installdir.test, tests/instdat.test,
1931         tests/instdat2.test, tests/instexec.test, tests/insthook.test,
1932         tests/instman.test, tests/instman2.test, tests/instsh.test,
1933         tests/instsh2.test, tests/interp.test, tests/interp2.test,
1934         tests/java.test, tests/java2.test, tests/javaprim.test,
1935         tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
1936         tests/lex.test, tests/lex3.test, tests/lex4.test, tests/lex5.test,
1937         tests/libobj11.test, tests/libobj2.test, tests/libobj4.test,
1938         tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
1939         tests/library.test, tests/libtool.test, tests/libtool2.test,
1940         tests/libtool3.test, tests/libtool5.test, tests/link_c_cxx.test,
1941         tests/link_dist.test, tests/link_f_only.test, tests/link_fc.test,
1942         tests/link_fccxx.test, tests/link_fcxx.test, tests/lisp.test,
1943         tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
1944         tests/maintclean.test, tests/make.test, tests/makej.test,
1945         tests/makevars.test, tests/man.test, tests/man2.test,
1946         tests/mclean.test, tests/mdate.test, tests/mdate2.test,
1947         tests/mdate3.test, tests/mdate4.test, tests/mkinst2.test,
1948         tests/mkinstall.test, tests/nobase.test, tests/nodef.test,
1949         tests/nodef2.test, tests/nodep.test, tests/nodepcomp.test,
1950         tests/nodist.test, tests/nodist2.test, tests/nodist3.test,
1951         tests/noinst.test, tests/noinstdir.test, tests/nolink.test,
1952         tests/nostdinc.test, tests/number.test, tests/obsolete.test,
1953         tests/order.test, tests/outdir.test, tests/output.test,
1954         tests/output2.test, tests/output3.test, tests/output4.test,
1955         tests/parse.test, tests/phony.test, tests/pluseq.test,
1956         tests/pluseq10.test, tests/pluseq2.test, tests/pluseq3.test,
1957         tests/pluseq4.test, tests/pluseq6.test, tests/pluseq8.test,
1958         tests/postproc.test, tests/ppf77.test, tests/pr2.test,
1959         tests/pr204.test, tests/pr220.test, tests/pr224.test,
1960         tests/pr229.test, tests/pr243.test, tests/pr266.test,
1961         tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
1962         tests/pr300-lib.test, tests/pr300-ltlib.test,
1963         tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
1964         tests/pr87.test, tests/pr9.test, tests/prefix.test,
1965         tests/proginst.test, tests/python.test, tests/python3.test,
1966         tests/python4.test, tests/python5.test, tests/python6.test,
1967         tests/python7.test, tests/python8.test, tests/python9.test,
1968         tests/recurs2.test, tests/remake.test, tests/remake2.test,
1969         tests/remake3.test, tests/req.test, tests/reqd.test,
1970         tests/rulepat.test, tests/scripts.test, tests/sinclude.test,
1971         tests/space.test, tests/specflg3.test, tests/specflg6.test,
1972         tests/specflg7.test, tests/specflg8.test, tests/specflg9.test,
1973         tests/spell3.test, tests/spelling.test, tests/spy.test,
1974         tests/stamph2.test, tests/stdlib2.test, tests/strip.test,
1975         tests/subcond.test, tests/subcond2.test, tests/subcond3.test,
1976         tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
1977         tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
1978         tests/subdirbuiltsources.test, tests/subobj.test,
1979         tests/subobj2.test, tests/subobj3.test, tests/subobj4.test,
1980         tests/subobj5.test, tests/subobj6.test, tests/subobj7.test,
1981         tests/subobj8.test, tests/subobj9.test, tests/subobjname.test,
1982         tests/subpkg.test, tests/subst.test, tests/substref.test,
1983         tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
1984         tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
1985         tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
1986         tests/suffix9.test, tests/symlink2.test, tests/symlink3.test,
1987         tests/tags.test, tests/tagsub.test, tests/target-cflags.test,
1988         tests/transform.test, tests/txinfo.test, tests/txinfo10.test,
1989         tests/txinfo13.test, tests/txinfo16.test, tests/txinfo17.test,
1990         tests/txinfo18.test, tests/txinfo2.test, tests/txinfo23.test,
1991         tests/txinfo24.test, tests/txinfo25.test, tests/txinfo26.test,
1992         tests/txinfo3.test, tests/txinfo5.test, tests/txinfo6.test,
1993         tests/txinfo7.test, tests/txinfo8.test, tests/txinfo9.test,
1994         tests/unused.test, tests/vars.test, tests/vars3.test,
1995         tests/vartar.test, tests/version.test, tests/version2.test,
1996         tests/version4.test, tests/version6.test, tests/version7.test,
1997         tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
1998         tests/werror.test, tests/whoami.test, tests/yacc.test,
1999         tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
2000         tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
2001         tests/yaccpp.test, tests/yaccvpath.test: Fix license to refer
2002         to Automake, not autoconf.
2003
2004         Fix for PR automake/408:
2005         * lib/am/texinfos.am (install-info-am): Strip any $(srcdir)/ prefix
2006         from $file, as already done for dist-info.
2007         * tests/Makefile.am (TESTS): Add txinfo26.test.
2008         * tests/txinfo26.test: New file.
2009         Report from Nicholas Wourms.
2010
2011 2003-11-13  Alexandre Duret-Lutz  <adl@gnu.org>
2012
2013         * m4/lispdir.m4 (AM_PATH_LISPDIR): If EMACS=t, empty it before
2014         running AC_CHECK_PROGS(EMACS).
2015         * lib/am/lisp.am (elc-stamp): Quote $(EMACS).
2016         Report from Jens Petersen.
2017
2018         * tests/mkinst2.test: Rewrite.
2019
2020         * m4/mkdirp.m4: Do not require AM_AUX_DIR_EXPAND.
2021
2022 2003-11-12  Alexandre Duret-Lutz  <adl@gnu.org>
2023
2024         * automake.in (scan_autoconf_traces): Honor sinclude.
2025         * tests/sinclude.test: Check for sinclude.
2026         Report from Roberto Bagnara.
2027
2028 2003-11-11  Alexandre Duret-Lutz  <adl@gnu.org>
2029
2030         * Makefile.am: Do not rerun `make dist' after tagging, `make distcheck'
2031         already build the tarballs.  Commit files right before tagging.
2032         Check NEWS before running distcheck.
2033
2034         * m4/amversion.in (AM_AUTOMAKE_VERSION): Missing cosmetic space.
2035
2036         * configure.ac, NEWS: Bump version to 1.7c.
2037
2038         * configure.ac, NEWS: Bump version to 1.7b.
2039         * Makefile.am (maintainer-check): Ignore comments while
2040         scanning for rm without -f.
2041
2042         * Makefile.am (fetch): Get all files from savannah.  Do not
2043         postprocess Struct.pm and XFiles.pm, since we now are the master
2044         of these.
2045         * lib/config.sub, lib/config.guess, lib/config-ml.in,
2046         lib/texinfo.tex: New upstream versions.
2047
2048         * configure.ac: Check that autoconf is installed, that it works,
2049         and that it is recent enough in three steps, not one.
2050
2051         * NEWS: Minor edits.
2052
2053         * lib/Makefile.am (dist_script_DATA): Move config-ml.in ...
2054         (dist_pkgvdata_DATA): ... here.
2055
2056         * tests/spy.test: Document overlapping ::-rules incompatibilities,
2057         and check only non-overlapping ::-rules.
2058
2059         * doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML,
2060         MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI,
2061         TEXI2PDF, DVIPS, and TEXINFO_TEX in a table.
2062         (Uniform): Do not speak of missing HTML support, this is
2063         confusing.
2064         * lib/Automake/Variable.pm (_silent_variable_override): Add
2065         AM_MAKEINFOHTMLFLAGS.
2066         * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and
2067         AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS.
2068         * lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define.
2069         * tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.
2070
2071 2003-11-10  Alexandre Duret-Lutz  <adl@gnu.org>
2072
2073         * tests/spy.test: New file.
2074         * tests/Makefile.am (TESTS): Add spy.test.
2075
2076         * automake.in (handle_configure): Distribute and define mkinstalldirs
2077         only if it is already present in the package.
2078         (scan_autoconf_files): Do not require mkinstalldirs.
2079         (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs).
2080         * lib/am/data.am, lib/am/distdir.am, lib/am/install.am,
2081         lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am,
2082         lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
2083         lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs).
2084         * m4/mkdirp.m4: New file.
2085         * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4.
2086         * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P.
2087         * tests/Makefile.am (TESTS): Remove insh.test.
2088         * tests/insh.test: Delete.
2089         * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs.
2090         * tests/auxdir.test: Install mkinstalldirs.
2091         * tests/distdir.test, tests/instman.test, tests/pr2.test: Use
2092         $(mkdir_p), not $(mkinstalldirs).
2093         * tests/empty.test: Run configure, do not substitute things by hand.
2094         * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh
2095         as an example, not mkinstalldirs.
2096         (Auxiliary Programs) <mkinstalldirs>: Update.
2097
2098         * tests/defs.in: Handle required=bzip2.
2099
2100         * tests/defs.in: Export SHELL.
2101         * tests/cond11.test: Missing quotes.
2102         * tests/nogzip2.test: Require bzip2.
2103
2104 2003-11-09  Alexandre Duret-Lutz  <adl@gnu.org>
2105
2106         * NEWS: Add news entries from 1.6.x and 1.7.x.
2107
2108         * automake.texi (Optional) <AC_SUBST>: Grammar fixes.
2109
2110         * automake.in (check_gnu_standards): Install COPYING only if
2111         none of COPYING, COPYING.LIB, or COPYING.LESSER exist.  Do not
2112         overwrite the license otherwise.
2113         * tests/Makefile.am (TESTS): Add license.test.
2114         * tests/license.test: New file.
2115
2116         * lib/mkinstalldirs: Mention automake-patches@gnu.org and
2117         bug-automake@gnu.org.
2118         * lib/compile, lib/depcomp, lib/elisp-comp, lib/mdate-sh:
2119         Likewise.  Also add support for --help and --version.
2120         * lib/py-compile, lib/ylwrap: Likewise, and reindent.
2121
2122 2003-11-08  Alexandre Duret-Lutz  <adl@gnu.org>
2123
2124         * lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove.
2125         * lib/am/dejagnu.am (RUNTESTFLAGS): Remove.
2126         * lib/am/java.am (JAVACFLAGS): Remove.
2127         * tests/dejagnu3.test: Check that the environment value
2128         of RUNTESTFLAGS get passed down to runtest.
2129         Suggested by Mark Mitchell.
2130
2131         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
2132         (?GENERIC?%EXT%.lo): Do not echo compile command manually, this
2133         breaks `make -s'.  Instead, fold the compile command on two lines,
2134         so that it take less space on the display.
2135         Suggested by Karl Berry and William Fulton.
2136
2137         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Rename as ...
2138         (%DEST_INFO_PREFIX%%DEST_SUFFIX%): ... this, and honor ?INSRC?
2139         to select $(srcdir) or `.' builds.
2140         (INFO_DEPS): Define here.
2141         * lib/am/texinfos.am (dist-info): Strip filename starting with
2142         "$(srcdir)/".
2143         * automake.in (output_texinfo_build_rules): Take a new argument
2144         $insrc, and adjust substitutions in 'texibuild'.
2145         (handle_texinfo_helper): Compute a regex of all user-cleaned
2146         files, and use this to select whether to build .info files in `.'
2147         or $(srcdir).  Give an account of the $(srcdir) vs `.' debacle.
2148         Alway build the version.texi and stamp files in $(srcdir).  Do not
2149         define INFO_DEPS.
2150         * tests/Makefile.am (TESTS): Add txinfo23.test, txinfo24.test,
2151         and txinfo25.test.
2152         * tests/txinfo23.test, tests/txinfo24.test, tests/txinfo25.test:
2153         New files.
2154         * tests/txinfo13.test, tests/txinfo16.test, tests/txinfo3.test,
2155         tests/vtexi.test: Adjust to new rules.
2156
2157 2003-11-05  Alexandre Duret-Lutz  <adl@gnu.org>
2158
2159         * m4/init.m4 (AM_INIT_AUTOMAKE): Require Autoconf 2.58.
2160         * configure.ac: Require Autoconf 2.58a, and check for 2.58.
2161
2162 2003-10-27  Alexandre Duret-Lutz  <adl@gnu.org>
2163
2164         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Erase %STAMP%.
2165         * tests/Makefile.am (TESTS): Add autohdr3.test
2166         * tests/autohdr3.test: New file.
2167
2168         * automake.in (handle_configure): Rename am__configure_deps
2169         as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and
2170         $configure_ac.  Define am__configure_deps as am__aclocal_m4_deps
2171         + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4).  Do not define
2172         ACLOCAL_M4_DEPS while processing configure.am.
2173         (make_paragraphs): Do not define %CONFIGURE_AC%, now unused.
2174         (scan_aclocal_m4): Do not distribute aclocal.m4, this
2175         is done from lib/am/configure.am.
2176         * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON,
2177         $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using
2178         $(am__configure_deps) or $(am__aclocal_m4_deps).
2179         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
2180
2181 2003-10-26  Alexandre Duret-Lutz  <adl@gnu.org>
2182
2183         * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Depend on
2184         $(am__configure_deps).
2185
2186         * automake.in (handle_configure): Distribute all AC_CONFIG_HEADERS
2187         sources, and without using require_file.  Define %CONFIG_H_DEPS%
2188         and %FIRST_CONFIG_HIN% while processing remake-hdr.am.
2189         * lib/am/remake-hdr.am (%STAMP%): Use %CONFIG_H_DEPS% instead
2190         of (srcdir)/%CONFIG_HIN%.  Output the $(srcdir)/%CONFIG_HIN%
2191         rule only for the first header (i.e., if %FIRST_CONFIG_HIN%).
2192         * tests/autohdr4.test: New file.
2193         * tests/Makefile.am (TESTS): Add autohdr4.test.
2194         * tests/config.test: Do not grep, run things to see if they work.
2195
2196 2003-10-25  Alexandre Duret-Lutz  <adl@gnu.org>
2197
2198         * tests/output7.test: Populate sub/ with a dummy file, so that it
2199         is not empty.  This fixes a failure reported by Patrick Welche.
2200         * lib/am/distdir.am: Add note about tar's `-o' option and empty
2201         directories.
2202
2203 2003-10-24  Didier Cassirame  <faded@free.fr>  (tiny change)
2204
2205         * lib/ylwrap: Typo in regex.
2206
2207 2003-10-23  Paul Eggert  <eggert@twinsun.com>
2208
2209         * lib/Automake/XFile.pm: Don't assume -j is solo.
2210         Issue a more-informative diagnostic.
2211         Problems reported by Eric Sunshine.
2212
2213 2003-10-21  Alexandre Duret-Lutz  <adl@gnu.org>
2214
2215         * m4/lispdir.m4 (AM_PATH_LISPDIR): Always check for Emacs.
2216         Always define lispdir.
2217         * lib/am/lisp.am (install-%DIR%LISP, uninstall-%DIR%LISP): Check
2218         $(EMACS) to decide whether _LISP files must be installed,
2219         not $(lispdir).
2220         * doc/automake.texi (Emacs Lisp): Mention the two ways to install
2221         non byte-compiled Emacs lisp files.
2222         * tests/lisp4.test, tests/lisp5.test: Check "make install"
2223         when EMACS=no.
2224         Suggested by Simon Josefsson.
2225
2226         * NEWS: Clarify the entry about multiple conditional definitions
2227         of _PROGRAMS, _LDADD, and _LIBADD.
2228         Report from Simon Josefsson.
2229
2230         * lib/am/install.am (install-strip): Override install_sh_PROGRAM
2231         too.
2232         Report from Elmar Hoffmann.
2233
2234 2003-10-07  Alexandre Duret-Lutz  <adl@gnu.org>
2235
2236         * aclocal.in ("MAIN", usage, parse_arguments): Move near
2237         the end, so "MAIN" can use prototypes.
2238         (scan_configure): Move later too, for the sake of prototypes.
2239         (scan_configure_dep): Fix setting of $scanned_configure_dep.
2240         (trace_used_macros): Do not take any argument.
2241
2242 2003-10-06  Alexandre Duret-Lutz  <adl@gnu.org>
2243
2244         * tests/stdlib2.test: Check AM_LDFLAGS alone.
2245
2246         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
2247         versions.
2248
2249         * automake.in (handle_ltlibraries): Also grep AM_LDFLAGS for `-module'.
2250         * tests/stdlib2.test: New file.
2251         * tests/Makefile.am (TESTS): Add stdlib2.test.
2252         Report from Kevin P. Fleming.
2253
2254 2003-10-03  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
2255
2256         * tests/defs.in: For required=runtest, check that we are using
2257         a DejaGnu that supports specifying the program on the command-line.
2258
2259 2003-10-03  Alexandre Duret-Lutz  <adl@gnu.org>
2260
2261         For Debian Bug #213524:
2262         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Merge
2263         stderr and stdout, and grep only the first line while testing
2264         install-info --version's output.  This revert part of the change
2265         from 2001-05-18.
2266
2267 2003-10-01  Akim Demaille  <akim@epita.fr>
2268
2269         * m4/amversion.in: Add (C) to the Copyright notice.
2270
2271 2003-10-01  Paul Eggert  <eggert@twinsun.com>
2272
2273         * lib/Automake/XFile.pm: Use Errno.
2274         (lock): Ignore ENOLCK errors.  Problem reported Andreas Schwab in
2275         <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
2276
2277 2003-09-30  Tom Tromey  <tromey@redhat.com>
2278
2279         * lib/Automake/Options.pm (_process_option_list): Recognize
2280         no-dist.
2281         * NEWS: Update.
2282         * doc/automake.texi (Options): Document no-dist.
2283         * automake.in (check_cygnus): Set no-dist option.
2284         (handle_dist): Recognize no-dist.
2285         * tests/nodist3.test: New file.
2286         * tests/Makefile.am (TESTS): Added nodist3.test.
2287
2288 2003-09-29  Alexandre Duret-Lutz  <adl@gnu.org>
2289
2290         * automake.in (handle_clean): Take $makefile as argument, and
2291         define %MAKEFILE% while processing clean.am.
2292         (generate_makefile): Pass $makefile to handle_clean.
2293         * lib/am/clean.am (distclean, maintainer-clean): Erase %MAKEFILE%,
2294         not Makefile.
2295         * tests/gnumake.test: New file.
2296         * tests/Makefile.am (TESTS): Add gnumake.test.
2297         Report from Braden N. McDaniel.
2298
2299 2003-09-26  Alexandre Duret-Lutz  <adl@gnu.org>
2300
2301         * doc/automake.texi (Scripts): Update the example about automake.
2302         Mention `dist_' for distributed scripts.
2303
2304         * lib/mkinstalldirs: Clean up after NextStep and OpenStep mkdir.
2305         Suggested by Eric Sunshine.
2306
2307 2003-09-25  Alexandre Duret-Lutz  <adl@gnu.org>
2308
2309         * README: More mailing lists.
2310
2311         * NEWS: Mention the switch to GNU FDL for the manual.
2312
2313 2003-09-24  Alexandre Duret-Lutz  <adl@gnu.org>
2314
2315         * lib/install-sh (src, dst): Protect names starting with `-',
2316         as in mkinstalldirs.
2317
2318         * configure.in: Rename as ...
2319         * configure.ac: ... this.
2320         * README: s/configure.in/configure.ac/.
2321
2322         * doc/fdl.texi: New file.
2323         * doc/Makefile.am (automake_TEXINFOS): New variable.
2324         * doc/automake.texi (Copying This Manual): New appendix, include
2325         fdl.texi.
2326         (Macro and Variable Index, General Index): Move as subsections of ...
2327         (Indices): This new appendix.
2328
2329         * doc/automake.texi: Refer to configure.ac instead of configure.in.
2330
2331         * automake.texi: Move ...
2332         * doc/automake.texi: ... here.
2333         * doc/Makefile.am: New file.
2334         * configure.in: Output doc/Makefile.
2335         * Makefile.am (SUBDIRS): Add doc.
2336         (ETAGS_ARGS, TAGS_DEPENDENCIES): Move to doc/Makefile.am.
2337
2338 2003-09-23  Alexandre Duret-Lutz  <adl@gnu.org>
2339
2340         * aclocal.in (write_aclocal): Consider files with relative
2341         paths as local to the project, i.e., subject to m4_include.
2342         * tests/subpkg.test (ACLOCAL_AMFLAGS): Make sure m4_include
2343         is also used for .m4 files in the outer project.
2344
2345         Support for multiple inputs in AC_CONFIG_FILES.
2346         Requested long ago by Harlan Stenn.
2347         * automake.in (handle_dist): Remove unused argument $makefile.
2348         (handle_subdirs): Expect SUBDIRS elements in $relative_dir,
2349         not $am_relative_dir.
2350         (rewrite_inputs_into_dependencies): Allow $add_srcdir to
2351         be a filename that must always be prefixed by $(srcdir) or
2352         $(top_srcdir).
2353         (handle_configure, generate_makefile): Revamp to make the
2354         Makefile.am, Makefile.in, Makefile more independent.
2355         (locate_am): New function.
2356         (scan_configure_dep, parse_arguments): Use locate_am.
2357         (MAIN): Adjust call to generate_makefile.
2358         * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies
2359         of %MAKEFILE%.  %MAKEFILE-IN% is already in %MAKEFILE-DEPS%.
2360         * tests/output6.test, tests/output7.test: New files.
2361         * tests/Makefile.am (TESTS): Add them.
2362         * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how
2363         multiple inputs are scanned.
2364
2365 2003-09-13  Alexandre Duret-Lutz  <adl@gnu.org>
2366
2367         * Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm
2368         and lib/Automake/Struct.pm from Autoconf.
2369         * lib/Automake/XFile.pm: Update comment, Automake is now
2370         the master for this file.  Cosmetic changes.
2371
2372 2003-09-09  Akim Demaille  <akim@epita.fr>
2373
2374         * lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g.
2375         Reported by Gary Vaughan.
2376         (&find_file): Walk the @include in forward order.
2377
2378 2003-09-09  Akim Demaille  <akim@epita.fr>
2379
2380         * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave
2381         trailing files.
2382
2383 2003-09-07  Alexandre Duret-Lutz  <adl@gnu.org>
2384
2385         Changes to m4_included files should also cause aclocal.m4 to change.
2386         * aclocal.in (m4_include_rx): New variable.
2387         (scan_configure_dep): New function.
2388         (scan_configure, add_file): Simplify using scan_configure_dep.
2389         * tests/Makefile.am (TESTS): Add acloca13.test.
2390         * tests/aclocal13.test: New file.
2391
2392         * tests/instsh.test: Do not reset $ACLOCAL and $AUTOMAKE now
2393         that we have fake version in the $PATH.
2394
2395         * aclocal.in (add_file): Remove useless filling of $output, probably
2396         left a after CVS conflict.  This code is now in write_aclocal.
2397
2398         * aclocal.in (configure_ac): Do not call require_configure_ac
2399         before parsing the options.
2400         * automake.in (configure_ac): Likewise.
2401         * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac,
2402         find it.
2403         * lib/Automake/Configure_ac.pm (require_configure_ac):
2404         find_configure_ac never return an undefined value, so test
2405         the file's existence instead.
2406         * tests/Makefile.am (TESTS): Add help.test.
2407         * tests/help.test: New file.
2408
2409 2003-09-06  Alexandre Duret-Lutz  <adl@gnu.org>
2410
2411         * lib/Automake/XFile.pm: Update to use ChannelDefs.
2412         (close): Call Automake::FileUtils::handle_exec_errors on errors.
2413         * automake.in (scan_autoconf_files): Exit with $?=63 on version
2414         mismatch.
2415         (scan_autoconf_traces): Likewise.  Close the autoconf pipe to
2416         capture abnormal exits.
2417         * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code
2418         instead.
2419         (trace_used_macros): Close the autom4te pipe to capture abnormal exits.
2420         * lib/missing: When a tool has run and exited with $?=63, emulate
2421         it.  Adjust the diagnostic and pretend the tool is tool old in this
2422         case.  Use an emacs-updated "scriptversion" variable.
2423         * configure.in: Output tests/aclocal-${APIVERSION} and
2424         tests/automake-${APIVERSION}.
2425         * tests/aclocal.in, tests/automake.in,
2426         tests/missing.test, tests/missing2.test: New files.
2427         * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define
2428         to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION.
2429         * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are
2430         already testing for this.
2431         * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix
2432         configure.in so that aclocal works.
2433         * tests/defun.test: Quote the AC_DEFUN body.
2434         * tests/Makefile.am (TESTS): Add missing.test and missing2.test,
2435         and remove dup3.test.
2436         (check_SCRIPTS): Add aclocal and automake.
2437
2438         * tests/unused.test: Quote AC_DEFUN arguments.
2439
2440 2003-09-05  Paul Eggert  <eggert@twinsun.com>
2441
2442         * NEWS, aclocal.in, automake.in, automake.texi, lib/ansi2knr.c,
2443         lib/depcomp, lib/missing, lib/py-compile,
2444         lib/Automake/Channels.pm, lib/Automake/Rule.pm,
2445         lib/Automake/Variable.pm, lib/Automake/tests/Condition.pl,
2446         lib/am/dejagnu.am, lib/am/depend.am, lib/am/lisp.am,
2447         lib/am/remake-hdr.am, lib/am/texi-vers.am, m4/obsolete.m4,
2448         m4/python.m4, tests/backsl4.test, tests/defs.in,
2449         tests/dejagnu7.test, tests/depacl2.test, tests/dirlist.test,
2450         tests/error.test, tests/getopt.test, tests/gnuwarn.test,
2451         tests/include2.test, tests/libobj10.test, tests/libtool5.test,
2452         tests/libtool6.test, tests/lisp3.test, tests/phony.test,
2453         tests/pr220.test, tests/subcond2.test, tests/subcond3.test,
2454         tests/vtexi.test:
2455         Spelling and minor grammar fixes.
2456
2457 2003-09-01  Alexandre Duret-Lutz  <adl@gnu.org>
2458
2459         * lib/config.sub, lib/config.guess, lib/texinfo.tex,
2460         lib/config-ml.in, lib/symlink-tree: New upstream versions.
2461
2462 2003-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
2463
2464         * tests/yacc7.test: Require bison.
2465
2466 2003-08-31  Alexandre Duret-Lutz  <adl@gnu.org>
2467
2468         * aclocal.in (scan_file): Warn about underquoted AC_DEFUN.
2469         ($underquoted_manual_once): New variable.
2470         * automake.texi (Extending aclocal): Document this.
2471
2472 2003-08-29  Alexandre Duret-Lutz  <adl@gnu.org>
2473
2474         * aclocal.in (@file_order): New variable, to make sure
2475         files are output in the opposite order of the -I arguments.
2476         (scan_file): Fill it.
2477         (trace_used_macros, write_aclocal): Use it.
2478         (scan_m4_files): Reverse the directory contents, so that
2479         macros from the lexicographically greatest files are preferred.
2480         * tests/aclocal9.test, tests/acloca10.test, tests/acloca11.test:
2481         New files.
2482         * tests/Makefile.am (TESTS): Add them.
2483
2484 2003-08-24  Alexandre Duret-Lutz  <adl@gnu.org>
2485
2486         For Debian Bug #206299:
2487         * automake.in ($configure_deps_greatest_timestamp,
2488         $output_deps_greatest_timestamp): New variables.
2489         (initialize_per_input): Reset $output_deps_greatest_timestamp.
2490         (scan_autoconf_traces, scan_autoconf_files, read_am_file):
2491         Update $configure_deps_greatest_timestamp and
2492         $output_deps_greatest_timestamp
2493         (generate_makefile): Rewrite the logic to decide whether
2494         to rewrite the output.  Move the leading dup_channel_setup
2495         and trailing drop_channel_setup to MAIN, so that
2496         drop_channel_setup is executed for all exit paths.
2497         * tests/aclocal7.test: Update to check for $AUTOMAKE --no-force
2498         * tests/distcom6.test: New file.  Report from Scott James Remnant.
2499         * tests/Makefile.am (TESTS): Add distcom6.test.
2500
2501         * configure.in: Require Autoconf 2.57b to be sure
2502         aclocal can use autom4te --language Autoconf-without-aclocal-m4.
2503         * m4/init.m4: Likewise.  Move the AC_PREREQ and m4_pattern_allow
2504         calls inside the AM_INIT_AUTOMAKE macro.
2505         * m4/auxdir.m4, m4/cond.m4, m4/lex.m4, m4/regex.m4: Move
2506         AC_PREREQ calls inside the macros.
2507         * m4/header.m4: Remove AC_PREREQ.
2508
2509         * automake.in (file_contents_internal): Do not add newlines before
2510         empty actions.
2511
2512         * aclocal.in (write_aclocal): Take an output file and list of
2513         used macros in arguments and make up the file contents here.
2514         (trace_used_macros): New function.
2515         (add_file): Do not update $output.
2516         ($output): Delete.
2517         (MAIN): Call trace_used_macros.  Then rewrite aclocal.m4 only
2518         for these traced macros.  This should shorten aclocal.m4 by
2519         stripping out unused macros.
2520         * automake.texi (Invoking aclocal): Document ${AUTOM4TE}.
2521         * tests/aclibobj.test: Make sure configure.in exists by the time
2522         aclocal runs.
2523         * tests/aclocal8.test: New file.
2524         * tests/Makefile.am (TESTS): Add aclocal8.test.
2525         Suggested by Bruno Haible and Akim Demaille.
2526
2527 2003-08-21  Akim Demaille  <akim@epita.fr>
2528
2529         * lib/Automake/Configure_ac.pm (&find_configure_ac)
2530         (&require_configure_ac): Accept an optional directory argument.
2531         ($configure_ac): Remove.
2532         * aclocal.in, automake.in ($configure_ac): New.
2533         * lib/Automake/Variable.pm: Don't use $configure_ac, just
2534         configure.ac.
2535
2536 2003-08-20  Akim Demaille  <akim@epita.fr>
2537
2538         * lib/Automake/FileUtils.pm: More perldoc.
2539         (&up_to_date_p): New.
2540
2541 2003-08-17  Alexandre Duret-Lutz  <adl@gnu.org>
2542
2543         Fix for PR automake/398:
2544         * m4/python.m4: Do not call AC_PATH_PROGS if $PYTHON is already
2545         set.  Display `none' instead of `:' and $PYTHON is set to `:'
2546         when no suitable interpreter is found.  Honor ACTION-IF-FOUND and
2547         ACTION-IF-NOT-FOUND.
2548         * automake.texi (Python): Document ACTION-IF-FOUND and
2549         ACTION-IF-NOT-FOUND.
2550         * tests/python4.test, tests/python5.test, tests/python6.test,
2551         tests/python7.test, tests/python8.test, tests/python9.test: New
2552         files.
2553         * tests/Makefile.am (TESTS): Add them.
2554         Report from Per Cederqvist.
2555
2556 2003-08-13  Alexandre Duret-Lutz  <adl@gnu.org>
2557
2558         Fix for PR automake/399:
2559         * m4/python.m4: Use AC_PATH_PROGS, not AC_PATH_PROG.
2560         Report from Per Cederqvist.
2561
2562 2003-08-12  Raja R Harinath  <harinath@acm.org>
2563
2564         * lib/Automake/Condition.pm (strip): Replace loop with 'grep'.
2565         (not): Replace loop with 'map'.
2566         * lib/Automake/DisjConditions.pm (sub_conditions): Likewise.
2567         * lib/Automake/Item.pm (not_alwasy_defined_in_cond):
2568         Don't 'simplify' result of 'invert', since it's already in
2569         canonical form.
2570         * lib/Automake/Rule.pm (define): Replace loop with
2571         'not_always_defined_in_cond'.
2572
2573         * lib/Automake/DisjConditions.pm (ambiguous_p): Typo in comment.
2574         * lib/Automake/Rule.pm (accept_extensions, msg_cond_rule): Likewise.
2575         (define): Reword comment slightly.
2576         * Variable.pm (_var_order, msg_cond_var): Typo in comment.
2577         * tests/cond20.test (var2): Use foo.c instead of foo.cc to avoid
2578         spurious automake error exit.
2579
2580 2003-08-12  Alexandre Duret-Lutz  <adl@gnu.org>
2581
2582         * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files.
2583         * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files.
2584         * lib/Automake/Makefile.am (dist_perllib_DATA): Add them.
2585         * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef.
2586         (new): Adjust to call Automake::ItemDef::new.
2587         (comment, location, owner): Delete.  Now inherited from ItemDef.
2588         * lib/Automake/Variable.pm: Make this a subclass of Automake::Item.
2589         (_new): Adjust to call Automake::Item::new.
2590         (name, def, rdef, _set, conditions, not_always_defined_in_cond):
2591         Delete.  How inherited from Item, where `_set' is called `set'.
2592         * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule.
2593         (suffix_rules_default): Delete.  Now
2594         Automake::Rule::_suffix_rules_default
2595         (suffixes): Delete.  Now Automake::Rule::suffixes.
2596         (TARGET_AUTOMAKE, TARGET_USER): Delete.  Now
2597         Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER.
2598         (%targets, %target_source, %target_name, %target_owner): Delete,
2599         replaced by the Rule and RuleDef classes.
2600         (dependencies, depend, actions): Delete.  Now in Automake::Rule.
2601         (suffix_rules, register_suffix_rule): Likewise.
2602         (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise.
2603         (known_extensions_list): Delete.  Now
2604         Automake::Rule::_known_extensions_list.
2605         (target_conditions): Delete.  Now inherited by Automake::Rule
2606         from Automake::Item::conditions.
2607         (rule_define): Delete.  Now Automake::Rule::define.  Adjust all
2608         callers.
2609         (target_defined): Delete.  Now Automake::Rule::rule.  Adjust all
2610         callers.
2611         (initialize_per_input): Adjust to call Automake::Rule::reset.
2612         (err_target, err_cond_target, msg_cond_target, msg_target,
2613         reject_target): Delete.  Now defined in Automake::Rule as
2614         err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target.
2615         Adjust all callers.
2616         (handle_languages): Call suffix_rules_count.
2617         * tests/location.test: Adjust expected diagnostics.  We now display
2618         $(EXEEXT) accurately.
2619
2620 2003-08-10  Alexandre Duret-Lutz  <adl@gnu.org>
2621
2622         Revert the fix for PR automake/291:
2623         * lib/Automake/Variable.pm (define): Do not warn about variables
2624         starting with `_' which are an issue on NEWS-OS 4.2R.  According
2625         to Paul Eggert, NEWS-OS 4.2R is ten years old, the latest version
2626         was released on 1996 and is not in wide use.  On the other hand,
2627         variables starting with `_' are mandatory in several situations,
2628         so diagnosing them is more annoying than useful.
2629         * tests/canon5.test: Do not use -Wno-portability.
2630         * tests/vars2.test: Delete.
2631         * tests/Makefile.am (TESTS): Remove vars2.test.
2632         Suggested by Jim Meyering.
2633
2634 2003-08-09  Raja R Harinath  <harinath@acm.org>
2635
2636         * lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly.
2637         * lib/Automake/tests/DisjConditions.pl (test_ambig): Test
2638         Automake::Disjunctions::ambiguous_p.
2639
2640 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
2641
2642         * lib/Automake/Variable.pm (condition_ambiguous_p): Move ...
2643         * lib/Automake/DisjConditions.pm (ambiguous_p): ... here.
2644         * automake.in (rule_define): Adjust usage.
2645         * lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.
2646
2647         * lib/Automake/Options.pm: New file.
2648         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm.
2649         * automake.in (FOREIGN, GNU, GNITS, $default_strictness)
2650         ($default_strictness_name, $strictness, $strictness_name)
2651         (%options, %global_options, process_option_list)
2652         (set_strictness): Remove, now in Options.pm.
2653         (initialize_per_input): Call Automake::Options::reset.
2654         (handle_options, get_object_extension, get_object_extension)
2655         (handle_languages, handle_single_transform_list, handle_compile)
2656         (handle_texinfo_helper, handle_man_pages, handle_dist)
2657         (handle_configure, do_check_merge_target)
2658         (handle_factored_dependencies, handle_tests)
2659         (handle_minor_options, scan_autoconf_traces, check_cygnus)
2660         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define)
2661         (make_paragraphs, am_install_var, parse_arguments): Adjust
2662         to set and read options via the new interface.
2663
2664 2003-08-07  Raja R Harinath  <harinath@acm.org>
2665
2666         * Makefile.am (maintainer-check): Update perllibdir.
2667         * lib/Automake/Makefile.am (Config.pm): Depend on Makefile too.
2668         (EXTRA_DIST): Add Config.in.
2669         * Makefile.in, lib/Automake/Makefile.in: Regenerate.
2670         * tests/defs.in (AUTOMAKE, ACLOCAL): Use absolute paths in
2671         $perllibdir.
2672
2673 2003-08-06  Raja R Harinath  <harinath@acm.org>
2674
2675         * configure.in (AUTOMAKE, ACLOCAL): Search the 'lib' directory
2676         from the builddir too, to pick up Automake::Config.
2677         * tests/defs.in (AUTOMAKE, ACLOCAL): Likewise.
2678         * configure: Regenerate.
2679         * automake.in (BEGIN): Handle multiple directories in $perllibdir.
2680         * aclocal.in (BEGIN): Likewise.
2681
2682 2003-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
2683
2684         * tests/ltcond.test: Thinko.
2685
2686 2003-08-06  Alexandre Duret-Lutz  <adl@gnu.org>
2687
2688         * lib/Automake/Config.in: New file.
2689         * lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst,
2690         CLEANFILES): New variables.
2691         (Config.pm): New rule.
2692         * Makefile.am (maintainer-check): Adjust expected differences
2693         between automake.in and automake.
2694         * aclocal.in, automake.in: Use Automake::Config.
2695
2696 2003-08-05  Alexandre Duret-Lutz  <adl@gnu.org>
2697
2698         * tests/ltconv.test: s/rm/rm -f/ to placate maintainer-check.
2699
2700         * automake.in (handle_texinfo_helper): Use the user definition
2701         of TEXINFO_TEX before checking for cygnus or AC_CONFIG_AUX_DIR.
2702         * tests/txinfo22.test: New file.
2703         * tests/Makefile.am (TESTS): Add txinfo22.test.
2704         Report from Tom Tromey.
2705
2706 2003-08-03  Raja R Harinath  <harinath@acm.org>
2707
2708         * lib/Automake/Variable.pm (@EXPORT): Remove
2709         traverse_variable_recursively and
2710         require_variables_for_variable.
2711         (require_variables_for_variable, traverse_variable_recursively)
2712         (_traverse_variable_recursively_worker): Convert to
2713         Automake::Variable methods, remove support for being
2714         invoked with variable names, and rename to ...
2715         (requires_variables, traverse_recursively)
2716         (_do_recursive_traversal): ... these.
2717         (_value_as_list_recursive_worker, transform_variable_recursively):
2718         Update to reflect changes.
2719         * automake.in (handle_LIBOBJS, handle_ALLOCA)
2720         (handle_libraries, handle_ltlibraries, am_primary_prefixes):
2721         Likewise.
2722         (define_objects_from_sources): Fix typo in comment.
2723
2724 2003-08-02  Raja R Harinath  <harinath@acm.org>
2725
2726         * automake.in (handle_source_transform): Replace 'grep' with 'map'.
2727         (register_language): Replace 'grep' with 'foreach' modifier.
2728
2729 2003-08-01  Raja R Harinath  <harinath@acm.org>
2730
2731         * lib/Automake/Variables.pm (variables): Return a list of
2732         Automake::Variable instances, not a list of strings.
2733         (dump): Remove support for being invoked with a string.
2734         (variables_dump): Adapt to these changes.
2735         * automake.in (check_typos): Likewise.
2736         (am_primary_prefixes): Likewise.
2737
2738 2003-07-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
2739
2740         * lib/depcomp (aix): Support AIX Compiler version 6.
2741
2742 2003-07-31  Alexandre Duret-Lutz  <adl@gnu.org>
2743
2744         * automake.texi (A Shared Library): Rewrite and split into
2745         subsections.  Valuable comments from Norman Gray, Harlan Stenn,
2746         Tim Van Holder, and Guido Draheim.
2747         * tests/ltcond.test, tests/ltcond2.test, tests/ltconv.test: New files.
2748         * tests/Makefile.am (TESTS): Add them.
2749
2750 2003-07-30  Alexandre Duret-Lutz  <adl@gnu.org>
2751
2752         * automake.in (handle_single_transform_list): Complain about
2753         foo.$(OBJEXT) being created both with libtool and without, not
2754         about foo.lo.
2755         Report from Tim Van Holder.
2756
2757 2003-07-29  Alexandre Duret-Lutz  <adl@gnu.org>
2758
2759         * Makefile.am (FETCHFILES, fetch): Add config-ml.in and
2760         symlink-tree.
2761         * lib/config.sub, lib/config-ml.in, lib/texinfo.tex: New
2762         upstream versions.
2763
2764 2003-07-28  Alexandre Duret-Lutz  <adl@gnu.org>
2765
2766         * automake.in (handle_configure): Cosmetic change to avoid
2767         a maintainer-check complaint.
2768
2769 2003-07-27  Alexandre Duret-Lutz  <adl@gnu.org>
2770
2771         * lib/Automake/Variable.pm (@EXPORT): Remove variable_dump.
2772         (variable_dump): Replace by ...
2773         (dump): ... this method.
2774         (rdef, _check_ambiguous_condition): Adjust to use ->dump.
2775         (define, variables_dump): Adjust to use Automake::Variable::dump
2776
2777         * lib/am/compile.am (mostlyclean-compile): Do not erase core dumps.
2778         * automake.texi (Built sources example): Adjust example.
2779
2780 2003-07-26  Alexandre Duret-Lutz  <adl@gnu.org>
2781
2782         * automake.in (get_object_extension, handle_languages)
2783         (handle_single_transform_list, handle_compile, handle_compile)
2784         (handle_texinfo_helper, handle_texinfo_helper, handle_man_pages)
2785         (handle_tests, handle_minor_options, check_gnu_standards)
2786         (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define):
2787         Simplify "if (defined $options{'X'})" into "if ($options{'X'})".
2788
2789         Complete changes from 2003-07-08.
2790         * automake.in ($cmdline_use_dependencies, $use_dependencies): Remove,
2791         replaced by $options{'no-dependencies'}.
2792         ($global_options): Remove.
2793         (%global_options): New variable.
2794         (initialize_per_input): Empty %options.
2795         (process_option_list): Take a location and %options ref argument,
2796         process no-dependencies as other options.
2797         (handle_options): Do not reparse the global options, just initialize
2798         %options from %global_options and fill it with local options.
2799         (handle_languages, handle_single_transform_list)
2800         (handle_configure, check_cygnus): Adjust usage of
2801         $options{'no-dependencies'}.
2802         (make_paragraphs): Adjust usage of $options{'cygnus'}.
2803         (parse_arguments): Set cygnus and no-dependencies in %global_options.
2804         (scan_autoconf_traces) <AM_INIT_AUTOMAKE>: Call process_option_list
2805         to fill %global_options.
2806
2807 2003-07-25  Alexandre Duret-Lutz  <adl@gnu.org>
2808
2809         * tests/remake4.test: Use `$MAKE distdir' instead of `$MAKE dist' to
2810         avoid the use of tar.
2811
2812 2003-07-24  Alexandre Duret-Lutz  <adl@gnu.org>
2813
2814         * tests/gnuwarn2.test: Typo.
2815
2816         * tests/insthook.test: Use $MAKE, not make.
2817
2818         Fix missing rebuilds during `make dist' with BSD make.
2819         * automake.in (generate_makefile): Do not push Makefile.in, and
2820         Makefile.am into DIST_COMMON here.
2821         * lib/am/configure.am (DIST_COMMON): Do it here, and use
2822         %MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON
2823         actually match the targets.   Prefix `configure' with `$(srcdir)/'
2824         to match the target.
2825         * tests/remake4.test: New file.
2826         * tests/Makefile.am (TESTS): Add remake4.test.
2827         Report from Akim Demaille.
2828
2829 2003-07-23  Alexandre Duret-Lutz  <adl@gnu.org>
2830
2831         * automake.in (handle_multilib): Register all-multi.
2832         (file_contents_internal): Insert \n when concatenating actions
2833         from "factored" rules.
2834         * lib/config-ml.in: New file, from GCC, including a patch
2835         from Ralf Corsepius (see GCC's PR 11526).
2836         * lib/symlink-tree.in: New file, from GCC.
2837         * lib/Makefile.am (dist_script_DATA): Add config-ml.in and
2838         symlink-tree.
2839         * lib/am/clean.am (distclean-generic): Do not delete Makefile here...
2840         (distclean, maintainer-clean): ... do it here.
2841         * lib/am/depend.am (distclean-depend): Likewise, replace by
2842         (distclean, maintainer-clean): ... these.
2843         * lib/am/multilib.am (all-recursive, install-recursive,
2844         mostlyclean-recursive, clean-recursive, distclean-recursive,
2845         maintainer-clean-recursive): Remove these rules.
2846         (mostlyclean-am, clean-am, distclean-am, maintainer-clean-am): Replace
2847         by ...
2848         (mostlyclean, clean, distclean, maintainer-clean): ... these.
2849         (all-am): Remove, done in handle_multilib.
2850         (install-am): Replace by ...
2851         (install-exec-am): ... this.
2852         * tests/Makefile.am (TESTS): Add multlib.test.
2853         * tests/multlib.test: New file, based on a test case by
2854         Ralf Corsepius
2855
2856 2003-07-23  Tom Tromey  <tromey@redhat.com>
2857
2858         * lib/missing (autom4te): Typo.
2859
2860 2003-07-16  Derek Price  <derek@ximbiot.com>
2861
2862         * automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS.
2863         (handle_configure): Handle adding AC_CONFIG_LINKS arguments to
2864         distclean targets (CONFIG_CLEAN_FILES makefile var).
2865         * NEWS: Note new handling of AC_CONFIG_LINKS.
2866         * automake.texi (Other things Automake recognizes): Ditto.
2867         * tests/Makefile.am (TESTS): Add new tests.
2868         * tests/conflnk.test: New test that links are cleaned on distclean.
2869         * tests/conflnk2.test: New test that source files for links are
2870         distributed.
2871
2872 2003-07-15  Ralf Corsepius <corsepiu@faw.uni-ulm.de>  (tiny change)
2873
2874         * automake.in (scan_autoconf_traces): Trace AM_ENABLE_MULTILIB to
2875         render $seen_multilib functional again.
2876
2877 2003-07-10  Raja R Harinath  <harinath@cs.umn.edu>
2878
2879         Avoid using refs as hash keys.
2880         * lib/Automake/Variable.pm ($_traversal): New.
2881         (reset): Reset $_traversal.
2882         (_new): New attribute 'scanned'.
2883         (%_vars_scanned): Remove.
2884         (traverse_variable_recursively)
2885         (traverse_variable_recursively_worker):
2886         Use $_traversal instead of %_vars_scanned to detect recursively
2887         defined variables.
2888
2889         * lib/am/configure.am (am--refresh): Silence.
2890
2891 2003-07-10  Alexandre Duret-Lutz  <adl@gnu.org>
2892
2893         * lib/Automake/Variable.pm (define): Make clear the diagnostic
2894         about variable names starting with `_' is about *Make* variables.
2895
2896         For Debian Bug #193907:
2897         * automake.texi (Clean): make maintainer-clean should still
2898         allow ./configure && make to run.
2899
2900         * automake.texi (CVS): Typo.
2901
2902 2003-07-09  Alexandre Duret-Lutz  <adl@gnu.org>
2903
2904         * aclocal.in: Use Automake::FileUtils.
2905         (parse_arguments, scan_configure, scan_m4_files): Never call
2906         "die" to print an error message.  Use print and exit.
2907         * automake.in: Use Automake::FileUtils.
2908         * lib/Automake/General.pm ($debug, $help, $tmp, $verbose,
2909         $version, &debug, &getopt, &mktmpdir, &verbose): Remove.
2910         (END): Do not massage Perl's exit code.  Do not clean any temporary
2911         directory.
2912         (find_file, mtime, update_file, xsystem, contents): Move to ...
2913         * lib/Automake/FileUtils.pm: ... this new file.  Adjust to
2914         report errors using Channels.
2915         (handle_exec_errors, xqx): New functions, from Autoconf.
2916         * lib/Automake/Makefile.am (dist_perllib_DATA): Add FileUtils.pm.
2917
2918         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
2919         Return the empty list on recursively defined variable.  This
2920         supersedes my change of 2003-07-02.
2921
2922 2003-07-08  Akim Demaille  <akim@epita.fr>
2923
2924         * automake.in ($cygnus_mode): Replace with $options{'cygnus'}.
2925         Adjust all dependencies.
2926         (&depend): Move next to %dependencies and prototype.
2927         (&initialize_per_input): Initialize the 'cygnus' field of
2928         '%options' to spare the code from 'exists' or 'defined' when
2929         testing it.
2930         (&handle_configure, &do_check_merge_target, &check_cygnus): Prototype.
2931         (&parse_arguments): Rename '%options' and '%options_1st_pass' as
2932         '%cli_options' and '%cli_options_1st_pass' to avoid clashes and
2933         inconsistencies.
2934
2935 2003-07-07  Alexandre Duret-Lutz  <adl@gnu.org>
2936
2937         * automake.in (generate_makefile): Move near the end of the
2938         file, after the definition of all called functions, so that
2939         prototypes can be enforced.
2940
2941 2003-07-06  Akim Demaille  <akim@epita.fr>
2942
2943         * lib/am/subdirs.am (RECURSIVE_TARGETS): Move install-recursive,
2944         install-exec-recursive, install-data-recursive and
2945         uninstall-recursive addition to...
2946         * lib/am/texinfos.am: here.
2947         * lib/am/texinfos.am, lib/am/subdirs.am: Remove the .PHONY
2948         declaration of RECURSIVE_TARGETS.
2949
2950 2003-07-06  Akim Demaille  <akim@epita.fr>
2951
2952         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm (VAR_SORTED):
2953         New variable type.
2954         Handle it.
2955         * automake.in (&handle_subdirs): Prototype.
2956         Adjust callers.
2957         Make RECURSIVE_TARGETS a VAR_SORTED.
2958
2959 2003-07-06  Akim Demaille  <akim@epita.fr>
2960
2961         * automake.in (&define_files_variable): New.
2962         (&handle_texinfo_helper): Move the handling of user variables from
2963         here, to...
2964         (&handle_texinfo): here.
2965         This is to balance the size of these functions, and to match the
2966         convention of other _helper functions.
2967         (&handle_texinfo_helper): Use &define_files_variable.
2968         Move some code to use less variables.
2969         Rename $info_cursor as $texi.
2970         (&handle_texinfo): Do not call handle_texinfo_helper if there are
2971         no TEXINFOS.
2972         * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps
2973         and html.
2974         Remove *-recursive targets from .PHONY, they are part of
2975         $(RECURSIVE_TARGETS) anyway.
2976         (install-info, mostlyclean-aminfo): Are .PHONY.
2977
2978 2003-07-05  Akim Demaille  <akim@epita.fr>
2979
2980         * lib/am/distdir.am: Use ';' as a terminator, not a separator, for
2981         sed complex commands, as required by NetBSD sed.
2982         Reported by Patrick Welche.
2983
2984 2003-07-05  Alexandre Duret-Lutz  <adl@gnu.org>
2985
2986         * lib/config.guess, lib/config.sub: New upstream version.
2987
2988 2003-07-04  Alexandre Duret-Lutz  <adl@gnu.org>
2989
2990         * automake.texi (Optional, Dist): AC_CONFIG_AUX_DIR files
2991         are automatically distributed.
2992
2993         * lib/depcomp (icc): Update to grok ICC 7.1's output.
2994         * m4/depend.m4 (_AM_DEPENDENCIES): Check dependency generation
2995         in a subdirectory, and with many dependencies.  This
2996         catches more failures of depcomp.
2997         Reports from Ralf Wildenhues and Akim Demaille.
2998
2999 2003-07-04  Akim Demaille  <akim@epita.fr>
3000
3001         * automake.in (&scan_texinfo_file, &output_texinfo_build_rules,
3002         (&handle_texinfo_helper, &handle_texinfo): Formatting changes.
3003         Prototype properly.
3004         Don't use & when calling functions.
3005
3006 2003-07-03  Alexandre Duret-Lutz  <adl@gnu.org>
3007
3008         * NEWS: Categorize entries.
3009         Suggested by Jim Meyering.
3010
3011         * Makefile.am (maintainer-clean): Disallow '$AUTOMAKE && exit 1'.
3012         Ignore @...@ substitutions in comments.
3013         * tests/defs.in: Try to make the shell more POSIX compliant.
3014         (AUTOMAKE_run, AUTOMAKE_fails): New functions.
3015         * tests/README: Mention AUTOMAKE_fails.
3016         * tests/alloca.test, tests/alloca2.test, tests/ansi8.test,
3017         * tests/asm.test, tests/backsl3.test, tests/backsl4.test,
3018         * tests/badline.test, tests/badopt.test, tests/canon.test,
3019         * tests/canon5.test, tests/colneq.test, tests/comment3.test,
3020         * tests/comment5.test, tests/cond2.test, tests/cond20.test,
3021         * tests/cond23.test, tests/cond24.test, tests/cond27.test,
3022         * tests/condinc2.test, tests/conff2.test, tests/cxx2.test,
3023         * tests/dejagnu2.test, tests/dirforbid.test,
3024         * tests/distcom3.test, tests/else.test, tests/exdir2.test,
3025         * tests/exeext2.test, tests/gcj2.test, tests/gcj5.test,
3026         * tests/getopt.test, tests/gettext.test, tests/gettext2.test,
3027         * tests/gnits.test, tests/gnuwarn.test, tests/gnuwarn2.test,
3028         * tests/insh.test, tests/lex2.test, tests/libobj10.test,
3029         * tests/libobj12.test, tests/libobj13.test,
3030         * tests/libobj3.test, tests/library2.test,
3031         * tests/library3.test, tests/libtool4.test,
3032         * tests/libtool6.test, tests/lisp2.test, tests/location.test,
3033         * tests/nogzip2.test, tests/output5.test, tests/overrid.test,
3034         * tests/percent.test, tests/percent2.test,
3035         * tests/pluseq5.test, tests/pluseq7.test, tests/pluseq9.test,
3036         * tests/pr211.test, tests/primary.test, tests/primary2.test,
3037         * tests/python2.test, tests/recurs.test, tests/reqd2.test,
3038         * tests/seenc.test, tests/specflg.test, tests/specflg2.test,
3039         * tests/spell.test, tests/spell2.test, tests/srcsub.test,
3040         * tests/srcsub2.test, tests/stdlib.test, tests/subdir7.test,
3041         * tests/substtarg.test, tests/suffix11.test,
3042         * tests/symlink.test, tests/syntax.test,
3043         * tests/targetclash.test, tests/txinfo4.test,
3044         * tests/version3.test, tests/warnopts.test,
3045         * tests/xsource.test, tests/yacc2.test: Use set -e,
3046         AUTOMAKE_fails, and always grep error message.
3047
3048         * automake.in (handle_ltlibraries): Fix call to msg.
3049
3050         * tests/stamph.test: Delete.
3051         * tests/Makefile.am (TESTS): Remove stamph.test.
3052
3053         * automake.in (handle_single_transform_list): Use $var->name
3054         to print variable in the configure-substitution diagnostic.
3055         Do not mention the parent when it is the variable itself.
3056
3057         * tests/package.test: Delete.
3058         * tests/Makefile.am (TESTS): Remove package.test.
3059
3060         * automake.in (cond_stack_else): Return FALSE if `if' was not
3061         used.
3062         (cond_stack_endif): Return TRUE if `if' was not used.  Do not
3063         display $negate and $cond, they are irrelevant and maybe undefined.
3064
3065 2003-07-02  Alexandre Duret-Lutz  <adl@gnu.org>
3066
3067         * lib/Automake/Variable.pm (_traverse_variable_recursively_worker):
3068         Do not return undef when a variable is recursively defined, this
3069         causes warnings all over the place.  Return the empty string instead.
3070
3071         * lib/am/distdir.am (distcheck): Protect loop of DIST_ARCHIVES
3072         from empty DIST_ARCHIVES.
3073
3074 2003-07-01  Alexandre Duret-Lutz  <adl@gnu.org>
3075
3076         * automake.in (scan_autoconf_traces): Check the expected
3077         number of arguments of each traced macro.
3078         * tests/overrid.test: Fix call to AM_CONDITIONAL.
3079         * tests/conff2.test: New files.
3080         * tests/Makefile.am (TESTS): Add conff2.test.
3081         Report from Paolo Bonzini.
3082
3083 2003-06-30  Alexandre Duret-Lutz  <adl@gnu.org>
3084
3085         * automake.in ($SUBST_REF_PATTERN): Do not define.
3086         (%gen_varname): Move to Variable.pm, as %_gen_varname.
3087         (initialize_per_input): Do not clean %gen_varname.
3088         (handle_options, check_libobjs_sources, handle_source_transform,
3089         handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper,
3090         handle_man_pages, handle_dist, handle_subdirs, handle_gettext,
3091         am_install_var): Adjust to use value_as_list_recursive,
3092         loc_and_value_as_list_recursive, and has_conditional_contents.
3093         (require_file_with_macro): Accept an Automake::Variable as argument.
3094         (traverse_variable_recursively,
3095         traverse_variable_recursively_worker, gen_varname,
3096         transform_variable_recursively): Move ...
3097         * lib/Automake/Variable.pm (traverse_variable_recursively,
3098         _traverse_variable_recursively_worker,
3099         _gen_varname, transform_variable_recursively): ... here.
3100         * automake.in (variable_conditionally_defined,
3101         variable_value_as_list_recursive_worker,
3102         variable_value_as_list_recursive
3103         variable_loc_and_value_as_list_recursive): Move ...
3104         * lib/Automake/Variable.pm (has_conditional_contents,
3105         _value_as_list_recursive_worker,
3106         value_as_list_recursive, loc_and_value_as_list_recursive): ... here.
3107         (reset): Reset %_gen_varname.
3108         (require_variables_for_variable): Accept an Automake::Variable
3109         as argument.
3110
3111 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
3112
3113         * tests/aclocal6.test: Test maintainer-clean in VPATH
3114         builds. (For Ralf's fix.)
3115
3116 2003-06-27  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>  (tiny change)
3117
3118         * lib/am/configure.am (maintainer-clean): Remove
3119         $(top_srcdir)/autom4te.cache, not autom4te.cache.
3120
3121 2003-06-27  Akim Demaille  <akim@epita.fr>
3122
3123         * automake.texi: Use @node with a single argument.
3124
3125 2003-06-27  Alexandre Duret-Lutz  <adl@gnu.org>
3126
3127         * m4/Makefile.am (dist_m4data_DATA): Add $(top_srcdir)/m4/amversion.m4.
3128
3129         * lib/am/distdir.am (distcheck): Run $(am__remove_distdir)
3130         at the end of distcheck.  This was mistakenly removed on
3131         2003-06-15.
3132         * tests/subpkg.test: Make sure distcheck cleans up after itself.
3133
3134         * m4/Makefile.am ($(srcdir)/amversion.m4): Rename as ...
3135         ($(top_srcdir)/m4/amversion.m4): ... this.
3136         (DISTCLEANFILES): Remove.
3137         (nodist_m4data_DATA): Remove. amversion.m4 is automatically
3138         distributed.
3139         (EXTRA_DIST): Add amversion.in.
3140
3141 2003-06-25  Akim Demaille  <akim@epita.fr>
3142
3143         * automake.texi (Top): Use @copying and @insertcopying.
3144         Make Alexandre an author.
3145         * automake.in ($gen_copyright): Add the "(C)" to Copyright.
3146         * lib/depcomp: Likewise.
3147
3148 2003-06-23  Alexandre Duret-Lutz  <adl@gnu.org>
3149
3150         * lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions.
3151         (variable_defined, examine_variable): Remove.
3152         (%_ac_macro_for_var): Add an entry for ALLOCA.
3153         (require_variables): Use vardef instead of variable_defined.
3154         Do not use _cvar.
3155         * automake.in (generate_makefile): Do not push $(SOURCE) into
3156         @sources.  Use define_pretty_variable to define SOURCES.
3157         (handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable
3158         to require LIBOBJS, LTLIBOBJS and ALLOCA.
3159         (handle_programs, handle_ltlibraries): Do not define an empty
3160         _DEPENDENCIES or _LDFLAGS variable when none is defined.
3161         (define_configure_variable): Do not check whether the variable
3162         already exists (it's Automake::Variable::define's job).
3163         (require_build_directory): Likewise, do not check
3164         the existence of am__dirstamp.
3165         (generate_makefile, handle_options, handle_languages)
3166         (check_libobjs_sources, handle_single_transform_list)
3167         (traverse_variable_recursively_worker, handle_source_transform)
3168         (handle_lib_objects, handle_LIBOBJS, handle_compile)
3169         (handle_libtool, handle_programs, handle_libraries)
3170         (handle_ltlibraries, check_typos, handle_texinfo_helper)
3171         (handle_man_pages, handle_tags, handle_dist, handle_subdirs)
3172         (scan_aclocal_m4, handle_gettext, handle_footer, handle_install)
3173         (handle_all, do_check_merge_target, handle_clean, lang_c_finish)
3174         (handle_tests, lang_yacc_target_hook, define_pretty_variable)
3175         (define_compiler_variable, define_linker_variable)
3176         (make_paragraphs, am_primary_prefixes, am_install_var): Adjust to
3177         call var, vardef, or set_seen, instead of variable_defined.  Use
3178         set_seen only for variables which are actually checked by
3179         check_typos.
3180         * tests/target.test: Delete.
3181         * tests/alloca.test, tests/alloca2.test: New files.
3182         * tests/libobj3.test: Check error message.
3183         * tests/distcom4.test: Make sure configure is in DIST_COMMON.
3184         This replace confdist.test.
3185         * tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test.
3186         (TESTS): Add alloca.test and alloca2.test.  Remove confdist.test.
3187
3188 2003-06-20  Alexandre Duret-Lutz  <adl@gnu.org>
3189
3190         * automake.in (handle_dist): Delete DIST_COMMON before redefining
3191         it.  Bug report from Akim Demaille.
3192         (rewrite_inputs_into_dependencies): Make sure we always return
3193         something, even when $add_srcdir is 0.
3194         * tests/distcom4.test, tests/distcom5.test: New files.
3195         * tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.
3196
3197         * tests/cond29.test: Also check for _SOURCES.
3198         Report from Paolo Bonzini.
3199
3200 2003-06-20  Akim Demaille  <akim@epita.fr>
3201
3202         * lib/am/configure.am: Replace leading spaces with a real tab.
3203
3204 2003-06-15  Alexandre Duret-Lutz  <adl@gnu.org>
3205
3206         * tests/nogzip.test, tests/nogzip2.test: New files.
3207         * tests/Makefile.am (TESTS): Add nogzip.test and nogzip2.test
3208
3209 2003-06-15  Akim Demaille  <akim@epita.fr>
3210
3211         * automake.in (&make_paragraphs): Define %GZIP%.
3212         (&process_option_list): Accept no-dist-gzip2.
3213         (&handle_dist): Complain when no archive format is enabled.
3214         * lib/am/distdir.am (DIST_ARCHIVES): New variable.
3215         (dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer
3216         conditioned.
3217         (dist): Build $(distdir).tar.gz conditionally.
3218         (distcheck): Use DIST_ARCHIVES to find an archive to unpack, and
3219         to list built archives.  Run $(MAKE) dist instead of dist-gzip.
3220         * automake.texi (Options, The types of distributions): Adjust.
3221
3222 2003-06-15  Jens Elkner  <elkner@imsgroup.de>  (tiny change)
3223
3224         * m4/lispdir.m4 (AM_PATH_LISPDIR): Fix sed commands to work with
3225         POSIXLY_CORRECT=1.
3226
3227 2003-06-14  Karl Berry  <karl@gnu.org>
3228             Alexandre Duret-Lutz  <adl@gnu.org>
3229
3230         * mkinstalldirs (scriptversion): New variable.  Setup emacs hooks
3231         to update it each time the file is written, as in install-sh.
3232         (usage): Improve message.
3233         (--version): New option.
3234         (--help): Output to stdout, not stderr.
3235
3236 2003-06-13  Paul Eggert  <eggert@twinsun.com>
3237
3238         * lib/install-sh (dsttmp, rmtmp): Do not use '#' in file names;
3239         it's not guaranteed by POSIX and it doesn't work on OpenVMS.
3240         Bug reported by Bernard Giroud in:
3241         http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html
3242
3243 2003-06-05  Alexandre Duret-Lutz  <adl@gnu.org>
3244
3245         * automake.in (check_gnu_standards): Use no-installman and
3246         no-installinfo's locations.
3247         (process_option_list): Fill %options with locations.
3248         (check_cygnus) Fill $options{'no-installinfo'} and
3249         $options{'no-dependencies'} with $cygnus_mode, so that it
3250         remains a Location.
3251         * tests/gnuwarn2.test: New file.
3252         * tests/Makefile.am (TESTS): Add gnuwarn2.test.
3253
3254 2003-06-04  Alexandre Duret-Lutz  <adl@gnu.org>
3255
3256         * automake.in (process_option_list): Record the location
3257         of ansi2knr's definition.
3258         (handle_compile): Use it.
3259         * tests/ansi3.test: Make sure the location appears correctly.
3260         Update to use set -e.
3261         * tests/ansi3b.test: New file.
3262         * tests/Makefile.am (TESTS): Add ansi3b.test.
3263
3264         * tests/alpha.test: Really run $MAKE.  Augment to test
3265         subdirectories, and check-news report.
3266         * tests/alpha2.test: New file.  Bug report from Akim Demaille.
3267         * tests/gnits2.test: Make sure README-alpha is not distributed.
3268         * tests/Makefile.am (TESTS): Add alpha2.test.
3269         * automake.in (handle_minor_options): Distribute README-alpha
3270         using push_dist_common, not require_file_with_macro.
3271
3272 2003-06-03  Alexandre Duret-Lutz  <adl@gnu.org>
3273
3274         * lib/Automake/Configure_ac.pm
3275         (search_configure_ac, find_configure_ac): Rename as ...
3276         (find_configure_ac, require_configure_ac): ... these.
3277         * aclocal.in (scan_configure): Adjust call to require_configure_ac.
3278         * automake.in (scan_autoconf_files): Likewise.
3279         Suggested by Tim Van Holder.
3280
3281         * alocal.in: Use Automake::Configure_ac.
3282         ($configure_ac): Delete.
3283         (scan_configure): Adjust use of find_configure_ac;
3284         * automake.in: Use Automake::Configure_ac.
3285         ($configure_ac): Delete.
3286         (scan_autoconf_files): Adjust use of find_configure_ac;
3287         * lib/Automake/Configure_ac.pm: New file.
3288         * lib/Automake/General.pm (find_configure_ac): Delete.  Now
3289         replaced by Automake::Configure_ac::search_configure_ac.
3290         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm.
3291         * lib/Automake/Variable.pm: Use Automake::Configure_ac.
3292         (require_variables): Adjust use of $configure_ac.
3293
3294 2003-06-02  Akim Demaille  <akim@epita.fr>
3295
3296         * lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
3297         * lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am,
3298         * lib/am/program.am, lib/am/multilib.am, lib/am/mans.am,
3299         * lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am,
3300         * lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am,
3301         * lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am,
3302         * lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am,
3303         * lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am,
3304         * lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am,
3305         * lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am,
3306         * m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4,
3307         * m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4,
3308         * m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4,
3309         * m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4,
3310         * m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4,
3311         * m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4,
3312         * m4/Makefile.am: White space changes and Copyright updates.
3313
3314 2003-05-29  Alexandre Duret-Lutz  <adl@gnu.org>
3315
3316         * lib/Automake/Variable.pm (check_defined_unconditionally): Add
3317         the $parent_cond argument.
3318         (output): Use $self->name in diagnostic not $self.
3319         (variable_value_as_list): Rename as ...
3320         (value_as_list): ... this.  Declare as a method.  Take a $parent_cond
3321         argument and pass it to check_defined_unconditionally.  Do not call
3322         variable_assert, now that this is a method.
3323         (variable_assert): Delete (unused).
3324         * automake.in (traverse_variable_recursively_worker): Adjust to
3325         use check_defined_unconditionally and value_as_list as a methods.
3326
3327         * lib/Automake/Variable.pm (output): Declare as a method, since it
3328         is only used this way.
3329         (define): Fix documentation of $cond.
3330         Suggested by Raja R. Harinath.
3331
3332 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
3333
3334         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
3335         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Variable.pm
3336         and VarDef.pm.
3337         * automake.in: Use Automake::Variable and Automake::VarDef.
3338         (MACRO_PATTERN): Delete. Now Automake::Variable::_MACRO_PATTERN.
3339         (am_macro_for_var): Delete. Now Automake::Variable::_am_macro_for_var.
3340         (ac_macro_for_var): Delete. Now Automake::Variable::_ac_macro_for_var.
3341         (silent_variable_override): Delete.  Now
3342         Automake::Variable::_silent_variable_override.
3343         (var_value, var_location, var_comment, var_type, var_owner,
3344         var_pretty, content_seen): Delete.  This functionality is now
3345         offered by Automake::Variable and Automake::VarDef.
3346         (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE, VAR_ASIS, VAR_PRETTY):
3347         Delete.  Now defined in Automake::VarDef.
3348         (var_order): Delete.  Now Automake::Variable::_var_order.
3349         (appendvar): Delete.  Now Automake::Variable::_appendvar.
3350         (var_SUFFIX_trigger): Register using Automake::Variable::hook.
3351         (initialize_per_input): Call Automake::Variable::reset.
3352         (err_var, msg_cond_var, msg_var, reject_var): Delete.  Now
3353         defined in Automake::Variable.
3354         (generate_makefile, process_option_list, handle_languages)
3355         (traverse_variable_recursively_worker)
3356         (transform_variable_recursively, handle_compile)
3357         (handle_libraries, handle_ltlibraries)
3358         (check_typos, handle_dist, handle_subdirs, scan_autoconf_files):
3359         Adjust to use Automake::Variable functions.
3360         (check_ambiguous_condition): Delete.  Now
3361         Automake::Variable::_check_ambiguous_condition.
3362         (condition_ambiguous_p): Delete.  Now
3363         Automake::Variable::condition_ambiguous_p.
3364         (variable_not_always_defined_in_cond): Delete.  Now
3365         Automake::Variable::not_always_defined_in_cond.
3366         (macro_define): Delete.  Now Automake::Variable::define.
3367         (macro_delete): Delete.  Now Automake::Variable::variable_delete.
3368         (macro_dump): Delete.  Now Automake::Variable::variable_dump.
3369         (macros_dump): Delete.  Now Automake::Variable::variables_dump.
3370         (variable_defined): Delete.  Now
3371         Automake::Variable::variable_defined, with the target check
3372         temporarily disabled.
3373         (variable_assert): Delete.  Now Automake::Variable::variable_assert.
3374         (examine_variable): Delete.  Now
3375         Automake::Variable::examine_variable.
3376         (variable_conditions): Delete.  Now Automake::Variable::conditions.
3377         (scan_variable_expansions): Delete.  Now
3378         Automake::Variable::scan_variable_expansions.
3379         (check_variable_expansions): Delete.  Now
3380         Automake::Variable::check_variable_expansions.
3381         (check_variable_defined_unconditionally): Delete.  Now
3382         Automake::Variable::check_defined_unconditionally.
3383         (variable_value): Delete.  Now Automake::Variable::variable_value.
3384         (variable_value_as_list): Delete.  Now
3385         Automake::Variable::variable_value_as_list.
3386         (variable_value_as_list_recursive_worker): Adjust to use
3387         Automake::Variable functions.
3388         (variable_output): Delete.  Now Automake::Variable::output.
3389         (define_pretty_variable, define_configure_variable, read_am_file)
3390         (define_standard_variables, read_main_am_file): Adjust to use
3391         Automake::Variable functions.
3392         (handle_variables): Delete.  Now Automake::Variable::output_variables.
3393         (file_contents_internal, am_primary_prefixes, am_install_var)
3394         (require_file_with_macro, require_conf_file_with_macro)
3395         (push_dist_common): : Adjust to use
3396         Automake::Variable functions.
3397         (require_variables): Delete.  Now
3398         Automake::Variable::require_variables.
3399         (require_variables_for_macro): Delete.  Now
3400         Automake::Variable::require_variables_for_variable.
3401         * tests/Makefile.am (XFAIL_TESTS): Add target.test.
3402
3403 2003-05-25  Christian Cornelssen  <ccorn@cs.tu-berlin.de>  (tiny change)
3404
3405         * tests/dejagnu7.test: Check if runtest supports --status.
3406
3407 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
3408
3409         * lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
3410         is undefined.
3411
3412         * lib/Automake/DisjConditions.pm (human): Fix infinite loop when
3413         $self contains only one Condition.
3414
3415         * automake.in: Use plain strict, including refs.
3416         (macro_define, handle_single_transform_list): Use \&{'name'} to
3417         build references to named subroutines.
3418
3419 2003-05-22  Karl Berry  <karl@gnu.org>
3420
3421         * automake.texi: Update @dircategory to match the Free Software
3422         Directory.  End directory entries with dots.
3423
3424 2003-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
3425
3426         * automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
3427
3428         * lib/elisp-comp: s/François/Franc,ois/.
3429         Suggested by Paul Eggert.
3430
3431         * automake.in: Move the "main" code at the end.
3432         (parse_arguments): Move near the end.
3433         ($KNOWN_EXTENSIONS_PATTERN, @known_extensions_list,
3434         accept_extensions, var_SUFFIXES_trigger): Move these definitions
3435         before any call to register_language.
3436         (am_file): Move the definition with all other global variables,
3437         do not use local to define it.
3438         * Makefile.am (maintainer-check): Expect no `local' in Automake.
3439
3440 2003-05-21  Alexandre Duret-Lutz  <adl@gnu.org>
3441
3442         * lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
3443         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Wrap.pm.
3444         * lib/Automake/tests/Makefile.am (TESTS): Add Wrap.pl.
3445         * automake.in (handle_texinfo_helper, pretty_print_rule)
3446         (variable_output): Adjust to use makefile_wrap instead of
3447         pretty_print_internal.
3448         (pretty_print_internal): Remove.  Renamed as Automake::Wrap::wrap
3449         and augmented to accept the $eol and $max_len arguments.
3450
3451 2003-05-18  Alexandre Duret-Lutz  <adl@gnu.org>
3452
3453         * lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
3454         lib/texinfo.tex: New upstream versions.
3455
3456 2003-05-17  Alexandre Duret-Lutz  <adl@gnu.org>
3457
3458         * lib/am/install.am (install, install-exec, install-data, uninstall):
3459         Declare conditionally using a if/else/endif block instead of
3460         using ?SUBDIRS?-style conditions.  The latter fail when
3461         %maybe_BUILT_SOURCES% is replaced by several lines.
3462         This fixes a bug introduced on 2003-04-06.
3463         * tests/bsource.test: New file.
3464         * tests/Makefile.am (TESTS): Add bsource.test.
3465         Reported by Bruno Haible.
3466
3467 2003-05-11  Alexandre Duret-Lutz  <adl@gnu.org>
3468
3469         * automake.texi (renamed objects): New node.
3470         (Program and Library Variables): Move maude_DEPENDENCIES closer
3471         to maude_LDADD.  Define and use `per-target compilation flags' in the
3472         explanation for maude_CFLAGS et al.  Link to the `renamed objects'
3473         node.  Illustrate maude_SHORTNAME.
3474
3475 2003-05-09  Alexandre Duret-Lutz  <adl@gnu.org>
3476
3477         * lib/install-sh: Update copyright notice and license to that of
3478         X11R6.  This removes an advertising clause reported as Debian bug
3479         #191717.
3480
3481 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
3482
3483         * configure.in (ACLOCAL): Do not use -I, --acdir is enough.
3484
3485         * m4/make.m4: Rename the doit target as am__doit,
3486         and make it phony.
3487         Reported by Philip S Tellis.
3488
3489 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
3490
3491         * lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
3492         status.
3493         * tests/makej.test: New file (test Autom4te's cache locking,
3494         new in CVS Autoconf).
3495         * tests/Makefile.am (TESTS): Add makej.test.
3496
3497 2003-05-06  Alexandre Duret-Lutz  <adl@gnu.org>
3498
3499         * lib/Automake/General.pm (contents): New function.
3500         * aclocal.in (greatest_mtime, force_output): New globals.
3501         (scan_configure, add_file): Update $greatest_mtime.
3502         (parse_arguments): Parse --force.
3503         (write_aclocal): Do not overwrite $output_file unless needed.
3504         * automake.texi (aclocal options): Document --force.
3505         * tests/aclocal7.test: New file.
3506         * tests/Makefile.am (TESTS): Add aclocal7.test.
3507
3508 2003-05-05  Alexandre Duret-Lutz  <adl@gnu.org>
3509
3510         * automake.texi (Optional): Document m4_include.
3511         (Invoking aclocal): Shake a bit to introduce the various uses
3512         of aclocal and explain that aclocal will use m4_include for
3513         local files.
3514         (Extending aclocal): Show how to install installable macros
3515         in $(datadir)/aclocal, and make it clearer that writing installable
3516         macros is not the only way to extend aclocal.
3517         (Local Macros, Future of aclocal): New sections.
3518
3519 2003-04-27  Alexandre Duret-Lutz  <adl@gnu.org>
3520
3521         * automake.in (@common_files): Remove acinclude.m4 since
3522         it will be m4_included by aclocal.m4 and files are always
3523         distributed.
3524         (scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
3525         We will get this dependency when tracing m4_includes.
3526         * tests/aclocal6.test: Make sure acinclude.m4 is distributed
3527         when used.
3528         * tests/acinclude.test: Delete.
3529         * tests/Makefile.am (TESTS): Remove acinclude.test.
3530
3531 2003-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
3532
3533         * automake.in (handle_configure): Don't add @configure_deps to
3534         DIST_COMMON, we do this from lib/am/configure.am now.
3535         Define the am__configure_deps variable instead of substituing
3536         %CONFIGURE_DEPS%.
3537         * lib/am/configure.am (%MAKEFILE-IN%, $(top_srcdir)/configure,
3538         $(ACLOCAL_M4)): Use $(am__configure_deps) instead of %CONFIGURE_DEPS%.
3539         (DIST_COMMON): Add $(am__configure_deps).
3540
3541         * tests/aclocal6.test: New file.
3542         * lib/am/configure.am (am--refresh): New rule.
3543         (%MAKEFILE-IN%, %MAKEFILE%, $(top_builddir)/config.status,
3544         $(top_srcdir)/configure): Call the top-level am--refresh from
3545         subdirectories.
3546         ($(ACLOCAL_M4)): Depend upon %CONFIGURE_DEPS%.  Call the
3547         top-level am--refresh when not in the top-level directory.
3548         Fix jump directories for VPATH builds.
3549         Suggested by Raja R. Harinath.
3550
3551 2003-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
3552
3553         * automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
3554         and glob for m4_files (We've got all local m4 files while
3555         tracing m4_include's).  Diagnose ACLOCAL_M4_SOURCES as obsolete.
3556         Distribute aclocal.m4 only at the top-level.
3557         (my_glob): Remove.  This fixes PR automake/11.
3558         (handle_dist): Strip leading `./' from directories.
3559         * aclocal.in (add_file): Output 'm4_include([file.m4])' instead
3560         of copying local files.
3561         (write_aclocal, parse_arguments): Bump copyright date.
3562         * configure.in: De not build m4/amversion.m4 from here ...
3563         * m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here.
3564         (nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead
3565         of amversion.m4.
3566         * tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test.
3567         (TESTS): Remove aclocal2.test.  Do not test aclocal.test twice.
3568         * tests/aclocal2.test: Delete (pointless).
3569         * tests/aclocal5.test: Make sure configure's dependencies are
3570         distributed.
3571         * tests/acinclude.test: Adjust to search for m4_include.
3572         * tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep
3573         configure instead of aclocal.m4.
3574
3575         For PR automake/46:
3576         * automake.in (scan_aclocal_m4): Work in all directories, not only
3577         the top-level.  Prepend $(top_srcdir) in front of each aclocal.m4
3578         dependency.
3579         * lib/am/configure.am (config.status, configure, $(ACLOCAL_M4)):
3580         Define rebuild rules in each directory.
3581         * tests/subdir8.test: Augment to exercise aclocal.m4's dependencies
3582         from the top-level directory.
3583         * tests/aclocal5.test: New file.  Exercise aclocal.m4's dependencies
3584         from a subdirectory.
3585         * tests/Makefile.am (TESTS): Add aclocal5.test.
3586         (XFAIL_TESTS): Replace subdir8.test by aclocal5.test.
3587
3588 2003-04-24  Akim Demaille  <akim@epita.fr>
3589             Alexandre Duret-Lutz  <adl@gnu.org>
3590
3591         For PR automake/46:
3592         * lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is rebuilt
3593         because of one of configure's dependencies, run automake without
3594         argument to update the whole tree at once.  Depend upon
3595         %CONFIGURE_DEPS%.
3596         (%MAKEFILE%): If Makefile is rebuilt because config.status has
3597         been updated, run config.status without arguments.
3598         * automake.in (scan_autoconf_traces): Prepend $(top_srcdir)
3599         before all files in @configure_deps.
3600         * tests/subdir5.test: Modernize configure.in, make sure
3601         maude/Makefile was actually created, and exercise %CONFIGURE_DEPS%.
3602         * tests/subdir8.test: New file.
3603         * tests/Makefile.am (TESTS): Add subdir8.test.
3604         (XFAIL_TESTS): Replace subdir5.test by subdir8.test.
3605
3606 2003-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
3607
3608         * automake.texi (Requirements): Typo in index
3609         s/AC_CONFIG_FILE/AC_CONFIG_FILES/.
3610
3611         * lib/texinfo.tex: New upstream version.
3612
3613 2003-04-21  Jim Meyering  <jim@meyering.net>
3614
3615         * lib/mkinstalldirs: Remove each sequence of spaces before a
3616         TAB character.
3617         * lib/depcomp: Search for TAB-SPC, not SPC-TAB.
3618
3619 2003-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
3620
3621         Fix for PR automake/389:
3622         * automake.in (handle_configure): Don't put $colon_infile in
3623         CONFIG-MAKEFILE.
3624         * tests/conff.test: New file.
3625         * tests/Makefile.am (TESTS): Add conff.test.
3626         Reported by Alexander Turbov.
3627
3628 2003-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
3629
3630         * tests/defs.in: Handle required=etags to work around
3631         Exuberant Ctags.
3632
3633         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
3634         versions.
3635
3636         * tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
3637         Distribute dejagnu test cases, so that distcheck actually runs them.
3638
3639 2003-04-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
3640
3641         * lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
3642         because we set that by invoking runtest with --tool.
3643         * tests/Makefile.am (TESTS): Add dejagnu4.test, dejagnu5.test,
3644         dejagnu6.test, dejagnu7.test.
3645         * tests/dejagnu4.test: New test.
3646         * tests/dejagnu5.test: New test.
3647         * tests/dejagnu6.test: New test.
3648         * tests/dejagnu7.test: New test.
3649
3650         * tests/dejagnu3.test: Make sure the DejaGnu test is actually run.
3651
3652 2003-04-18  Jim Meyering  <jim@meyering.net>
3653
3654         * automake.in (variable_output): Fix typo in comment s/is/if/.
3655
3656         * lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
3657         directly to $@.  Instead, redirect to $@t and rename upon success.
3658         Also, move the commands that update $@ so they are last.  Otherwise,
3659         this rule could leave the user with an up to date target (.c file)
3660         but with a missing or corrupted corresponding .h file.
3661
3662 2003-04-17  Richard Dawe  <rich@phekda.freeserve.co.uk>
3663
3664         * tests/defs.in: Handle required=runtest, to detect runtest
3665         from DejaGnu.
3666         * tests/Makefile.am (TESTS): Add dejagnu3.test.
3667         * tests/dejagnu3.test: New test.
3668
3669 2003-04-16  Alexandre Duret-Lutz  <adl@gnu.org>
3670
3671         * automake.in (rule_define): If the user tries to override
3672         an Automake which has a -local variant, suggest using the
3673         -local variant in the -Woverride diagnostic.
3674         (handle_factored_dependencies): Register factored
3675         rules with rule_define, and define them only in undefined
3676         conditions.
3677         * tests/Makefile.am (TESTS): Add override.test.
3678         * tests/overrid.test: New file.
3679         * tests/phony.test: Count the number of .PHONY targets.
3680
3681 2003-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
3682
3683         * lib/am/distdir.am (distuninstallcheck, distcleancheck): Silence
3684         these rules, so that we don't confuse users by echoing
3685         "echo ERROR:" commands which are not run.
3686
3687 2003-03-14  Richard Dawe  <rich@phekda.freeserve.co.uk>
3688             Alexandre Duret-Lutz  <adl@gnu.org>
3689
3690         * automake.in (output_texinfo_build_rules, handle_texinfo_helper,
3691         initialize_per_input):  Add infrastructure for generating HTML
3692         documentation from texinfo source.
3693         * lib/am/texinfos.am: Add rules for building HTML documentation
3694         from texinfo source.
3695         * lib/am/texibuild.am: Likewise.
3696         * automake.texi (Texinfo): Document rules for building
3697         HTML documentation from texinfo source.
3698         * tests/txinfo21.test: New file.
3699         * tests/Makefile.am (TESTS): Add txinfo21.test.
3700         * tests/defs.in: Handle required=makeinfo-html.
3701
3702 2003-04-14  Alexandre Duret-Lutz  <adl@gnu.org>
3703
3704         * automake.in (%silent_variable_override): New variable.
3705         (macro_define): Warn about variable definitions overriding
3706         Automake variables.
3707         (rule_define): Warn about target definitions overriding
3708         Automake variables.  Fix $condmsg definition.
3709         * automake.texi (Invoking Automake): Document the `override'
3710         category.
3711         * lib/Automake/ChannelDefs.pm (usage): Likewise.
3712         * lib/am/texinfos.am [!%?CYGNUS] (MAKEINFO): Do not define,
3713         this is already done in m4/init.m4.
3714         * tests/dejagnu2.test: Run $MAKE, don't only grep.  Use
3715         -Wno-override, and make sure we get a warning without.
3716         * tests/exeext2.test, tests/substtarg.test: Use -Wno-override,
3717         and make sure we get a warning without.
3718         * tests/exeext3.test, tests/java2.test, tests/nolink.test,
3719         tests/subpkg.test, tests/vartest.test: Use -Wno-override.
3720         * tests/txinfo13.test: Use installcheck-local instead of overriding
3721         installcheck.
3722         * tests/txinfo2.test: Run $MAKE on the real Makefile (this test
3723         used to succeed thanks to a failure...)
3724         * tests/location.test: Adjust expected messages.
3725         * tests/Makefile.am (XFAIL_TESTS): Add txinfo5.test.
3726
3727 2003-04-12  Raja R Harinath  <harinath@acm.org>
3728
3729         * lib/Automake/DisjConditions.pm (true): Don't cache answer.
3730         (invert): Update comment.
3731         (_simplify): Remove.
3732         (simplify): Implement using invert().
3733         * lib/Automake/tests/DisjConditions.pl (test_simplify):
3734         Update to reflect changes.
3735
3736 2003-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
3737
3738         * automake.in (scan_autoconf_files): Augment the error message
3739         about AM_INIT_AUTOMAKE not found.
3740         Suggested by Bruno Haible.
3741
3742         * lib/Automake/Version.pm: New file.
3743         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Version.pm.
3744         * lib/Automake/tests/Version.pl: New file.
3745         * lib/Automake/tests/Makefile.am (TESTS): Add Version.pl.
3746         * tests/Makefile.am (TESTS): Remove version5.test.
3747         * tests/version5.test: Delete.  Move the tests to Version.pl.
3748         * automake.in (version_split, version_compare, version_check): Move ...
3749         * lib/Automake/Version.pm (split, compare, check): ... here.
3750
3751 2003-04-11  Alexandre Duret-Lutz  <adl@gnu.org>
3752
3753         * lib/Automake/tests/Condition.pl (test_reduce_and)
3754         (test_reduce_or): Cosmetics.
3755         * lib/Automake/tests/DisjConditions.pl (test_sub_conditions):
3756         Fix a comment.
3757         * lib/Automake/DisjConditions.pm (sub_conditions): Add missing C<...>
3758         in comment.
3759         * tests/yacc8.test, configure.in: Update copyright year.
3760
3761 2003-04-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
3762
3763         * configure.in: Get the build platform name.  Define
3764         MODIFICATION_DELAY as the time to wait after modifying a file,
3765         to cope with timestamp granularity issues, depending
3766         on the platform.
3767         * tests/defs.in: Define `sleep' using MODIFICATION_DELAY.
3768
3769 2003-04-10  Eric Siegerman  <eric_97@pobox.com>  (tiny change)
3770
3771         * automake.texi (Public macros): Clarify that the new
3772         AM_INIT_AUTOMAKE variant is preferred, and the old one
3773         deprecated.  Copy-edit the rest of the AM_INIT_AUTOMAKE item.
3774         (Hello): Caution that the example uses the deprecated
3775         AC_INIT/AM_INIT_AUTOMAKE syntax, and xref to the discussion.
3776
3777 2003-04-10  Alexandre Duret-Lutz  <adl@gnu.org>
3778
3779         Retain all variable definitions until the whole Makefile.am has
3780         been processed, then output all variables in one step, at the top
3781         of Makefile.in.  (Older revisions used to output user variables
3782         before generating Automake targets, and to mix Automake variables
3783         with Automake targets, preventing redefinitions of previously
3784         output variables.)
3785
3786         * automake.in (%var_pretty): New variable.
3787         (VAR_ASIS, VAR_PRETTY): New constants.
3788         (@var_list): Rename as ...
3789         (@var_order): ... this.
3790         (initialize_per_input): Clear %var_pretty.
3791         (handle_variables): New function, extracted from ...
3792         (read_main_am_file): ... here.
3793         (generate_makefile): Call handle_variable after everything else.
3794         (handle_dist): Use define_pretty_variable, not pretty_print.
3795         (pretty_print): Delete.
3796         (macro_define): Augment with $COMMENT and $PRETTY parameters.
3797         Update %var_comment, %var_pretty, and @var_order.  Adjust callers.
3798         (variable_pretty_output): Merge with ...
3799         (variable_output): ... this, and choose the prettiness on a
3800         per-condition basis.
3801         (append_comments): Delete.  This work is now done by macro_define.
3802         (read_am_file, file_contents_internal): Don't call append_comments
3803         nor update @var_list, adjust calls to macro_define.
3804         (handle_subdirs): Don't explicitly output RECURSIVE_TARGETS,
3805         just mark it as VAR_PRETTY.
3806         * tests/exeext.test: Make sure bin_PROGRAMS is output only once.
3807         Report from Jim Meyering.
3808
3809 2003-04-06  Alexandre Duret-Lutz  <adl@gnu.org>
3810
3811         * automake.in (handle_installdirs): Rename as ...
3812         (handle_install): ... this.  Define maybe_BUILT_SOURCES.
3813         (generate_makefile): Adjust call to handle_install.
3814         * lib/am/install.am (install): Use %maybe_BUILT_SOURCES%.
3815         * automake.texi (Sources, Built sources example): BUILT_SOURCES
3816         is honored by `make install' too.
3817         * tests/check3.test: Make sure that `make install' also depends
3818         upon BUILT_SOURCES.
3819         Report from Alexander Turbov.
3820
3821         * lib/am/libs.am (ARFLAGS): Define.
3822         * automake.in (handle_libraries): Use `$(ARFLAGS)' instead of
3823         hard-coding `cru'.
3824         * automake.texi (A Library): Explain how AR, ARFLAGS and RANLIB
3825         are used, and how they can be overridden.
3826         (Program and Library Variables): Adjust to show `$(ARFLAGS)'
3827         instead of `cru'
3828         * tests/ar.test: Rewrite to test for AR, ARFLAGS, and RANLIB.
3829         * tests/ranlib.test: Delete, obsoleted by ar.test.
3830         * tests/Makefile.am (TESTS): Remove ranlib.test.
3831         Report from Paul Thomas.
3832
3833 2003-04-03  Alexandre Duret-Lutz  <adl@gnu.org>
3834
3835         * automake.in (check_trailing_slash): New function (variation on
3836         a patch by Peter Muir).  Diagnose whitespaces following trailing
3837         backslash.
3838         (read_am_file): Use it.
3839         * tests/backsl4.test: New file.
3840         * tests/Makefile.am (TESTS): Add backsl4.test.
3841         Reported by Peter Muir.
3842
3843 2003-03-29  Raja R Harinath  <harinath@acm.org>
3844
3845         Speedup Automake::DisjConditions::invert().
3846         * lib/Automake/Condition.pm (multiply): New.
3847         * lib/Automake/DisjConditions.pm (_multiply): Use it.
3848         (sub_conditions): Likewise.
3849
3850         * lib/Automake/Condition.pm (reduce): Rename to ...
3851         (reduce_and): ... this.
3852         (reduce_or): New.
3853         * lib/Automake/DisjConditions.pm (_multiply): Use reduce_or().
3854         * lib/Automake/tests/Condition.pl (test_reduce): Rename to ...
3855         (test_reduce_and): ... this.
3856         (test_reduce_or): New.
3857         * lib/Automake/tests/DisjConditions.pl
3858         (test_invert): Update to reflect effect of reduce_or().
3859         (test_simplify): Don't skip invert() on larger inputs.
3860
3861 2003-03-29  Raja R Harinath  <harinath@cs.umn.edu>
3862
3863         * tests/yacc8.test: Add a $sleep before modifying Makefile.am so
3864         that timestamp will change.
3865
3866 2003-03-23  Akim Demaille  <akim@epita.fr>
3867             Alexandre Duret-Lutz  <adl@gnu.org>
3868
3869         * lib/am/tags.am (TAGS): Use --etags-include instead of --include,
3870         when supported by etags (Exuberant Ctags).
3871         * tests/tagsub.test: Rewrite to _run_ the `tags' rule.
3872
3873 2003-03-20  Alexandre Duret-Lutz  <adl@gnu.org>
3874
3875         For Debian Bug #185388:
3876         * automake.texi (Extending): Augment the install-exec-hook
3877         discussion with an example how to symlink a versioned binary.
3878         * tests/insthook.test: Rewrite to test the above example.
3879         Report from James R. Van Zandt.
3880
3881 2003-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
3882
3883         * Makefile.am (maintainer-check): Allow `automake:' tokens,
3884         occuring in location.test.  Automake now has 5 legitimate
3885         unsubstituted @strings@.
3886
3887         * tests/aclocal4.test: Require GNU make.
3888
3889 2003-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
3890
3891         * tests/aclocal4.test: New file.  Test for the ACLOCAL_M4 bug below.
3892         * tests/Makefile.am (TESTS): Add aclocal4.test.
3893
3894 2003-03-14  Jim Meyering  <jim@meyering.net>
3895
3896         * automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
3897         subdirectories.  Makefile.in depends on that variable.
3898
3899 2003-03-13  Alexandre Duret-Lutz  <adl@gnu.org>
3900
3901         * m4/init.m4: Remove a leftover comment from the pre-1.7 era.
3902
3903         Fix for PR automake/386:
3904         * m4/init.m4: Require Autoconf 2.55.
3905         Reported by Owen Taylor.
3906
3907         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3908         (?GENERIC?%EXT%.lo): Use `mv -f' instead of `mv' in FASTDEP mode.
3909         Suggested by Matthias Andree.
3910
3911         * tests/README: Typo.
3912
3913 2003-03-08  Alexandre Duret-Lutz  <adl@gnu.org>
3914
3915         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
3916         (?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
3917         Just echo the gcc command.
3918         Suggested by Karl Berry.
3919
3920 2003-03-06  Alexandre Duret-Lutz  <adl@gnu.org>
3921
3922         * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
3923         `test -f foo || echo $(srcdir)/` to emulate a VPATH search when
3924         outputing suffix rules.  This follows 2003-02-25's change.
3925         * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3926         * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
3927
3928 2003-03-05  Alexandre Duret-Lutz  <adl@gnu.org>
3929
3930         * automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
3931         with AC_CONFIG_FILES are cleaned by `make distclean'.  Don't
3932         pretend otherwise.
3933         Reported by Rafael Laboissiere.
3934
3935 2003-03-04  Andreas Buening  <andreas.buening@nexgo.de>
3936
3937         * lib/mdate-sh: Find out which column of the ls -l output contains
3938         the month. Do not assume it is at least the fifth column.
3939
3940 2003-02-26  Alexandre Duret-Lutz  <adl@gnu.org>
3941
3942         * automake.texi (Emacs Lisp): Mention that `dist_' can be used.
3943
3944         * automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
3945         instead of lisp_LISP when they don't want byte-compilation.
3946         Don't mention ELCFILES anymore.
3947         * automake.in (handle_data): Allow lisp_DATA.
3948         * tests/lisp5.test: New file.
3949         * tests/Makefile.am (TESTS): Add lisp5.test.
3950
3951         * automake.in (handle_emacs_lisp): Don't build *.elc files
3952         if ELCFILES was set empty.
3953         * tests/lisp4.test: New file.
3954         * tests/Makefile.am (TESTS): Add lisp4.test.
3955         Reported by Simon Josefsson.
3956
3957         * tests/lex3.test, tests/lex5.test: Require flex.
3958         Reported by Leo Davis.
3959
3960 2003-02-25  Alexandre Duret-Lutz  <adl@gnu.org>
3961
3962         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
3963         use the `test -f foo || echo $(srcdir)/` to emulate a VPATH search
3964         when outputing suffix rules.
3965         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.dvi)
3966         (?GENERIC?%SOURCE_SUFFIX%.pdf): Likewise.
3967         Suggested by Bruno Haible.
3968
3969         * automake.in (read_am_file): Catch trailing backslashes on last line.
3970         * tests/backsl3.test: New file.
3971         * tests/Makefile.am (TESTS): Add backsl3.test.
3972         Reported by Akim Demaille.
3973
3974 2003-02-24  Alexandre Duret-Lutz  <adl@gnu.org>
3975
3976         * ChangeLog: Move 2002's entries to ...
3977         * ChangeLog.02: ... this new file.
3978         * Makefile.am (EXTRA_DIST): Add ChangeLog.02.
3979
3980 2003-02-24  Richard Dawe  <rich@phekda.freeserve.co.uk>
3981
3982         * tests/version7.test: Use $sleep to sleep before updating
3983         the version, to work around timestamp inconsistencies in Windows.
3984
3985 2003-02-24  Bruno Haible  <bruno@clisp.org>
3986             Alexandre Duret-Lutz  <adl@gnu.org>
3987
3988         * lib/am/texibuild.am: Don't remove the target info files. Instead,
3989         back up and restore them if makeinfo fails.
3990         * tests/txinfo20.test: New file.
3991         * tests/Makefile.am (TESTS): Add txinfo20.test.
3992
3993 2003-02-23  Alexandre Duret-Lutz  <adl@gnu.org>
3994
3995         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
3996         (distcleancheck): Fix typos and other errors reported by Karl
3997         Berry.
3998
3999 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
4000
4001         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
4002         instead of ${...}.
4003
4004         * tests/defs.in: Handle required=ro-dir.
4005         * tests/destdir.test: Use this.
4006
4007 2003-02-19  Richard Dawe  <rich@phekda.freeserve.co.uk>
4008
4009         * lib/am/distdir.am (distcheck): Strip any leading DOS drive
4010         from dc_install_base.
4011
4012 2003-02-19  Alexandre Duret-Lutz  <adl@gnu.org>
4013
4014         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
4015         DJGPP-style *.iNN info files.
4016         (maintainer-clean-aminfo): Rewrite using the same pattern
4017         as in uninstall-info-am.
4018         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
4019         DJGPP-style *.iNN info files before running $(MAKEINFO).
4020         * tests/txinfo19.test: New file.
4021         * tests/Makefile.am (TESTS): Add txinfo19.test.
4022
4023 2003-02-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
4024
4025         * lib/depcomp (dashmstdout): Cope with DOS filenames in
4026         dependencies.
4027
4028 2003-02-17  Alexandre Duret-Lutz  <adl@gnu.org>
4029
4030         * lib/depcomp (makedepend): Don't pass $object to makedepend.
4031         Reported by Stepan Kasal.
4032
4033 2003-02-12  Alexandre Duret-Lutz  <adl@gnu.org>
4034
4035         * tests/defs.in: Handle required=makedepend.
4036
4037         * Makefile.am (maintainer-check): Update the diff check
4038         to account for the recent @SHELL@ substitution.
4039
4040 2003-02-11  Alexandre Duret-Lutz  <adl@gnu.org>
4041
4042         * lib/depcomp: Do not put comments on the `icc)' line.
4043
4044         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
4045         versions.
4046
4047         Fix for PR automake/381:
4048         * automake.in (handle_gettext): Do not print diagnostics
4049         about po/ and intl/ missing from SUBDIRS if po/ does not
4050         exist.  Warn if `SUBDIRS = intl' is used although libintl
4051         is 'external'.
4052         * tests/gettext.test: Make sure diagnostics are not output
4053         when po/ does not exist.
4054         * tests/gettext2.test: Test for unwanted intl/.
4055         PR from Alexander Turbov, fix suggested by Bruno Haible.
4056
4057         * m4/depend.m4: Grep depcomp's stderr for icc warnings about
4058         ignored options.
4059         * lib/depcomp (icc): New mode.
4060         * tests/depcomp5.test: New file.
4061         * tests/defs.in: Handle required=icc.
4062         * tests/Makefile.am (TESTS): Add it.
4063
4064         Temporary hack for PR automake/381:
4065         * automake.in (handle_gettext): Turn missing po/ and intl/ errors
4066         into -Wsyntax warnings.
4067
4068 2003-02-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
4069
4070         * Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
4071         This makes the setting of SHELL work for DJGPP.
4072
4073 2003-02-10  Alexandre Duret-Lutz  <adl@gnu.org>
4074
4075         For PR automake/385:
4076         * lib/depcomp (makedepend): Strip any libtool call, before
4077         running makedepends.
4078         * tests/depcomp4.test: New file.
4079         * tests/Makefile.am (TESTS): Add it.
4080         Reported by Jeff Squyres.
4081
4082         Related to PR automake/385:
4083         * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
4084         write dependencies to /dev/null.  `-o /dev/null' was added
4085         on 2002-06-13 just because I tried to replace `-o foo.o' by something
4086         else and didn't thought about removing it entirely.
4087         * tests/depcomp3.test: New file.
4088         * tests/Makefile.am (TESTS): Add it.
4089
4090         * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
4091         SHELL for DJGPP.
4092         Suggested by Richard Dawe.
4093
4094 2003-02-09  Alexandre Duret-Lutz  <adl@gnu.org>
4095
4096         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
4097         (distcleancheck): New nodes.
4098
4099 2003-02-06  Alexandre Duret-Lutz  <adl@gnu.org>
4100
4101         * automake.in (scan_autoconf_files): Don't complain that
4102         AM_INIT_AUTOMAKE comes from an old version if it was not found.
4103
4104 2003-02-05  Alexandre Duret-Lutz  <adl@gnu.org>
4105
4106         * automake.in (am_install_var): Simplify filtering of
4107         variable_loc_and_value_as_list_recursive's output.
4108
4109 2003-02-04  Alexandre Duret-Lutz  <adl@gnu.org>
4110
4111         * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
4112         indexes of header files so we create stamp files with
4113         the right numbers when config.status is run on some headers.
4114         * tests/stamph2.test: Check for this.
4115         Reported by Sander Niemeijer.
4116
4117 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
4118
4119         * automake.in (vars_scanned): Move near traverse_variable_recursively.
4120         (traverse_variable_recursively,
4121         traverse_variable_recursively_worker): Accept a $COND_FILTER argument
4122         to filter out conditions during recursion.  Don't recurse into
4123         undefined variables.  Don't pass empty results to &FUN_COLLECT.
4124         (value_to_list): Remove, was used by
4125         variable_value_as_list_recursive_worker only.
4126         (variable_value_as_list_recursive_worker): Rewrite using
4127         traverse_variable_recursively.  Remove the $parent argument.
4128         (variable_value_as_list_recursive,
4129         variable_loc_and_value_as_list_recursive): Adjust calls
4130         to variable_value_as_list_recursive_worker.  Don't reset
4131         %vars_scanned.
4132         * tests/cond3.test: Don't expect empty helper variables,
4133         we don't output them anymore.
4134         * tests/cond30.test: Use an undefined variable.
4135
4136         * automake.in (handle_programs): Strip $(EXEEXT) before
4137         calling &check_canonical_spelling.
4138         * tests/exeext.test: Make sure we don't use a
4139         maude3__EXEEXT__OBJECTS variable.
4140
4141 2003-02-02  Jeremy Nimmer  <jwnimmer@alum.mit.edu>  (tiny change)
4142
4143         For Debian Bug #39542:
4144         * automake.texi (Invoking Automake, Optional): Document how
4145         AC_CONFIG_AUX_DIR interacts with missing files.
4146
4147 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
4148
4149         * lib/Automake/DisjConditions.pm (_permutations_worker)
4150         (permutations): Remove, so that people aren't tempted to use it.
4151         * lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.
4152
4153         * automake.in (variable_conditions_recursive): Remove.
4154         (variable_conditionally_defined): Rewrite using
4155         traverse_variable_recursively.
4156
4157         * automake.in (traverse_variable_recursively,
4158         traverse_variable_recursively_worker): Pass one merged Condition
4159         instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
4160         (transform_variable_recursively, define_objects_from_sources)
4161         (handle_lib_objects, variable_conditions_recursive): Adjust usage.
4162
4163 2003-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
4164
4165         * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
4166         using transform_variable_recursively instead of
4167         variable_conditions_recursive and variable_value_as_list_recursive
4168         to avoid combinatorial explosion.
4169         (handle_lib_objects_cond): Merge into handle_lib_objects.
4170         * tests/cond11.test: Don't grep internal details in Makefile.in,
4171         run $MAKE to make sure the resulting Makefile runs as expected.
4172         * tests/cond29.test: Also exercise conditional _LDADD.
4173         * tests/cond31.test, tests/cond32.test: New files.
4174         * tests/Makefile.am (TESTS): Add tests/cond31.test and
4175         tests/cond32.test.
4176
4177 2003-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
4178
4179         * automake.in (handle_lib_objects_cond): Ignore -dlopen and
4180         -dlpreopen in _LIBADD variables too.
4181         (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
4182         handle_lib_objects_cond.
4183         * tests/libtool7.test: New file.
4184         * tests/Makefile.am (TESTS): Add libtool7.test.
4185
4186         * automake.texi (Program and Library Variables): Clarify that
4187         _LIBADD is for libraries and _LDADD for programs.
4188
4189         * automake.in (handle_source_transform): Correct typo from 2003-01-23.
4190
4191 2003-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
4192
4193         Fix for PR automake/352:
4194         * automake.in (transform_variable_recursively): If the destination
4195         and the source variables are the same, delete the source variable
4196         before defining the destination variable.
4197         (handle_programs): Strip any $(EXEEXT) suffix from $one_file,
4198         or this will confuse handle_source_transform.
4199         (append_exeext): Rewrite using transform_variable_recursively.
4200         * tests/cond29.test, tests/cond30.test: New files.
4201         * tests/exeext.test: Run ./configure and make, this uncovered
4202         the above handle_programs issue.
4203         * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
4204
4205         * automake.in (%subobjvar): Replace by ...
4206         (%gen_varname): ... this.
4207         (subobjname): Replace by ...
4208         (gen_varname): ... this.
4209         (initialize_per_input): Clean gen_varname instead of subobjname.
4210         (transform_variable_recursively): New function, extracted
4211         from define_objects_from_sources.
4212         (define_objects_from_sources): Use transform_variable_recursively.
4213         Remove the unused $parent argument.
4214         (handle_source_transform): Adjust call to define_objects_from_sources.
4215
4216 2003-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
4217
4218         * automake.in (@substfroms, @substtos): Move near
4219         traverse_variable_recursively.
4220         (traverse_variable_recursively, traverse_variable_recursively_worker):
4221         New functions, extracted from define_objects_from_sources.
4222         (define_objects_from_sources): Rewrite using
4223         traverse_variable_recursively.
4224         (handle_source_transform): Use variables_conditionally_defined
4225         instead of calling variable_conditions_recursive directly.
4226         Adjust the call to define_objects_from_sources; there is no need
4227         to reset @substtos, @substfroms, and %vars_scanned now.
4228         (variable_conditions_recursive): Rewrite using
4229         traverse_variable_recursively.
4230         (variable_conditions_recursive_sub): Remove.
4231         (variable_conditionally_defined): Fix condition comparison (the
4232         consequence was that DIST_SUBDIRS was always output).
4233         * lib/Automake/Condition.pm (merge): Allow merging several
4234         conditions at once.
4235
4236 2003-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
4237
4238         * automake.texi (Python): Explain that directory variables start
4239         with either ${prefix} or ${exec_prefix}, and point to the
4240         `Installation Directory Variables' section of the Autoconf manual.
4241
4242 2003-01-21  Alexandre Duret-Lutz  <adl@gnu.org>
4243
4244         * lib/am/distdir.am (top_distdir, distdir): Define these
4245         variables only in top level Makefile.  Redefine $(top_distdir)
4246         as $(distdir).
4247         (distdir): Fix passing of $(top_distdir) to sub-makes.
4248         * automake.in (handle_dist): Do not define the DISTDIR and
4249         TOP_DISTDIR transformations.  We don't need them anymore.
4250         * automake.texi (Dist): Reorder the dist-hook section, and move
4251         the DIST_SUBDIRS paragraph earlier.  Document distdir and
4252         top_distdir.
4253         * tests/subpkg.test: Update to check for $(distdir) and
4254         $(top_distdir).
4255
4256 2003-01-19  Alexandre Duret-Lutz  <adl@gnu.org>
4257
4258         Rename more files to accomodate 8+3 file systems, and adjust the
4259         vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
4260         and we call "condition" a conjunction of "conditionals".
4261         * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
4262         * lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
4263         * lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
4264         * lib/am/tests/ConditionalSet.pl: Rename to
4265         lib/am/tests/DisjConditions.pl
4266         * lib/am/Conditional.pm (condition_negate): Rename to ...
4267         * lib/am/Condition.pm (conditional_negate): ... this.
4268         * automake.in: Adjust references to Condition and DisjConditions.
4269         (check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
4270         (check_ambiguous_condition, condition_ambiguous_p): ... these.
4271
4272         * tests/README: New file.
4273
4274         * automake.texi (Conditional Programs): Show a sample Makefile.am.
4275         Remind $(EXEEXT) must be appended to configure substitutions.
4276         Show how Automake conditionals can be used instead.
4277         * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
4278         appended to conditionally defined programs.
4279
4280 2003-01-16  Jim Meyering  <jim@meyering.net>
4281
4282         Accept --help and --version, and lots of syntactic clean-up.
4283         * lib/install-sh: Use consistent indentation, two spaces per level.
4284         (scriptversion): New variable.
4285         Change initializations like `variable=""' to `variable='.
4286         (usage): New variable.
4287         Use `test', not `['.
4288         Use `test -z "$var"', not `[ x"$var" = x ]'.
4289         Use `test -n "$var"', not `[ x"$var" != x ]'.
4290         Alphabetize case entries.
4291         Accept --help and --version options.
4292         Remove unnecessary `else :' clauses.
4293         Add a `Local variables' eval block to help emacs users update
4294         the time-stamp variable added above.
4295         Mostly from Karl Berry.
4296
4297 2003-01-16  Alexandre Duret-Lutz  <adl@gnu.org>
4298
4299         * m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
4300         python2.3.
4301
4302         * m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
4303         or `pyexecdir', for the sake of 64-bit distributions that usually
4304         use lib64/ instead of lib/.  Fall back to the default directory
4305         if it doesn't work.
4306         Suggested by Gwenole Beauchesne.
4307
4308 2003-01-14  Alexandre Duret-Lutz  <adl@gnu.org>
4309
4310         For PR automake/382:
4311         * automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
4312         Explain BUILT_SOURCES is usually needed in this case.
4313         Reported by William S Fulton.
4314
4315 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
4316
4317         Rename some files for the sake of 8+3 file systems.
4318         * tests/aclocali.test:     Rename to tests/aclocal.test.
4319         * tests/aclocali1.test:    Rename to tests/aclocal2.test.
4320         * tests/aclocalii.test:    Rename to tests/aclocal3.test.
4321         * tests/acoutput.test:     Rename to tests/acoutpt.test.
4322         * tests/acoutput2.test:    Rename to tests/acoutpt2.test.
4323         * tests/acouttbs.test:     Rename to tests/acoutbs.test.
4324         * tests/acouttbs2.test:    Rename to tests/acoutbs2.test.
4325         * tests/autoheader.test:   Rename to tests/autohdr.test.
4326         * tests/autoheader2.test:  Rename to tests/autohdr2.test.
4327         * tests/condincl.test:     Rename to tests/condinc.test.
4328         * tests/condincl2.test:    Rename to tests/condinc2.test.
4329         * tests/distcommon.test:   Rename to tests/distcom.test.
4330         * tests/distcommon2.test:  Rename to tests/distcom2.test.
4331         * tests/distcommon3.test:  Rename to tests/distcom3.test.
4332         * tests/installsh.test:    Rename to tests/instsh.test.
4333         * tests/installsh2.test:   Rename to tests/instsh2.test.
4334         * tests/instdata.test:     Rename to tests/instdat.test.
4335         * tests/instdata2.test:    Rename to tests/instdat2.test.
4336         * tests/libobj12b.test:    Rename to tests/libobj13.test.
4337         * tests/link_f_c.test:     Rename to tests/link_fc.test.
4338         * tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
4339         * tests/link_f_cxx.test:   Rename to tests/link_fcxx.test.
4340         * tests/nodefine.test:     Rename to tests/nodef.test.
4341         * tests/nodefine2.test:    Rename to tests/nodef2.test.
4342         * tests/required.test:     Rename to tests/reqd.test.
4343         * tests/required2.test:    Rename to tests/reqd2.test.
4344         * tests/sourcesub.test:    Rename to tests/srcsub.test.
4345         * tests/sourcesub2.test:   Rename to tests/srcsub2.test.
4346         * tests/specflags.test:    Rename to tests/specflg.test.
4347         * tests/specflags2.test:   Rename to tests/specflg2.test.
4348         * tests/specflags3.test:   Rename to tests/specflg3.test.
4349         * tests/specflags6.test:   Rename to tests/specflg6.test.
4350         * tests/specflags7.test:   Rename to tests/specflg7.test.
4351         * tests/specflags8.test:   Rename to tests/specflg8.test.
4352         * tests/specflags9.test:   Rename to tests/specflg9.test.
4353         * tests/subdircond.test:   Rename to tests/subcond.test.
4354         * tests/subdircond2.test:  Rename to tests/subcond2.test.
4355         * tests/subdircond3.test:  Rename to tests/subcond3.test.
4356         * tests/texinfo.test:      Rename to tests/txinfo.test.
4357         * tests/texinfo2.test:     Rename to tests/txinfo2.test.
4358         * tests/texinfo3.test:     Rename to tests/txinfo3.test.
4359         * tests/texinfo4.test:     Rename to tests/txinfo4.test.
4360         * tests/texinfo5.test:     Rename to tests/txinfo5.test.
4361         * tests/texinfo6.test:     Rename to tests/txinfo6.test.
4362         * tests/texinfo7.test:     Rename to tests/txinfo7.test.
4363         * tests/texinfo8.test:     Rename to tests/txinfo8.test.
4364         * tests/texinfo9.test:     Rename to tests/txinfo9.test.
4365         * tests/texinfo10.test:    Rename to tests/txinfo10.test.
4366         * tests/texinfo13.test:    Rename to tests/txinfo13.test.
4367         * tests/texinfo16.test:    Rename to tests/txinfo16.test.
4368         * tests/texinfo17.test:    Rename to tests/txinfo17.test.
4369         * tests/texinfo18.test:    Rename to tests/txinfo18.test.
4370         * tests/Makefile.am (TESTS): Adjust.
4371         * ChangeLog.1996: Rename to ChangeLog.96.
4372         * ChangeLog.1998: Rename to ChangeLog.98.
4373         * ChangeLog.2000: Rename to ChangeLog.00.
4374         * ChangeLog.2001: Rename to ChangeLog.01.
4375         * Makefile.am (EXTRA_DIST): Adjust.
4376         Reported by Richard Dawe.
4377
4378 2003-01-13  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
4379
4380         * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
4381         Use '_build' and '_inst' instead of '=build' and '=inst'.
4382         * tests/man2.test: Reflect change automake: check for files in
4383         '_build' and '_inst' directories instead of '=build' and '=inst'.
4384
4385 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
4386
4387         Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
4388         * m4/lead-dot.m4: New file.
4389         * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
4390         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
4391         * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
4392         DEPDIR using am__leading_dot.
4393         * automake.in (require_build_directory): Define am__dirstamp, a new
4394         variable for the dirstamp basename, based on am__leading_dot.
4395         * tests/subobj6.test: Move all `test -f' into Makefiles, so we can
4396         use $(am__dirstamp).
4397         Reported by Richard Dawe.
4398
4399         * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
4400         Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
4401         testing for programs.
4402         Reported by Richard Dawe.
4403
4404 2003-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
4405
4406         * Makefile.am (maintainer-check): Suggest using $sleep instead of
4407         sleep 2.
4408         * tests/defs.in (sleep): New variable.
4409         * tests/asm.test, tests/confsub.test, tests/lisp3.test,
4410         tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
4411         Use $sleep instead of sleep 2, to work around timestamp
4412         inconsistencies in Windows.
4413         Reported by Richard Dawe.
4414
4415         * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
4416         after $MAKE -e.
4417         * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
4418         tests/man2.test, tests/subobj3.test, tests/suffix8.test,
4419         tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
4420         $SHELL is overridden by tests/defs, so it won't hurt even
4421         if $MAKE -e uses the $SHELL envvar.
4422         * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
4423         tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
4424         Reported by Richard Dawe.
4425
4426         Build elisp files all at once instead of one by one.
4427         * automake.in (handle_emacs_lisp): Define am__ELFILES.  Add
4428         elc-stamp to all's dependencies.
4429         * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
4430         (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
4431         (clean-lisp): Clean elc-stamp.
4432         * lib/elisp-comp: Reindent.  Erase the temporatry directory
4433         from a trap.  Propagate Emacs's exit status.
4434         * tests/lisp3.test: New file.
4435         * tests/Makefile.am (TESTS): Add lisp3.test.
4436         Reported by Ryan T. Sammartino.
4437
4438 2003-01-09  Akim Demaille  <akim@epita.fr>
4439
4440         * automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
4441
4442 2003-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
4443
4444         * m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
4445         variables.  Suggested by Ryan T. Sammartino.
4446
4447 2003-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
4448
4449         * automake.in (macro_define): Add missing `{$cond}' (typo from
4450         2002-09-18).
4451         ($gen_copyright): Append year 2003.
4452         (version): Increase year.
4453
4454         * tests/defs.in: Substitute aclocaldir instead of running
4455         the installed aclocal.  Otherwise Libtool and Gettext
4456         tests get skipped when aclocal doesn't preexist.
4457         Reported by Imacat.
4458         * tests/listval.test, tests/suffix2.test: Remove pointless -I
4459         argument to aclocal.
4460
4461 -----
4462
4463 Copyright (C) 2003, 2004  Free Software Foundation, Inc.
4464
4465 This file is part of GNU Automake.
4466
4467 GNU Automake is free software; you can redistribute it and/or modify
4468 it under the terms of the GNU General Public License as published by
4469 the Free Software Foundation; either version 2, or (at your option)
4470 any later version.
4471
4472 GNU Automake is distributed in the hope that it will be useful,
4473 but WITHOUT ANY WARRANTY; without even the implied warranty of
4474 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4475 GNU General Public License for more details.
4476
4477 You should have received a copy of the GNU General Public License
4478 along with autoconf; see the file COPYING.  If not, write to
4479 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
4480 Boston, MA 02111-1307, USA.
4481
4482 ;; Variables:
4483 ;; coding: utf-8
4484 ;; End: