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