test harness: improve catching of usage errors in script 'test-driver'
[platform/upstream/automake.git] / old / ChangeLog.02
1 2002-12-31  Alexandre Duret-Lutz  <adl@gnu.org>
2
3         * lib/Automake/ChannelDefs.pm: New file.
4         * lib/Automake/Makefile.am (dist_perllib_DATA): Add ChannelDefs.pm.
5         * automake.in: Move all "register_channel" calls to ChannelDefs.pm.
6         (prog_error, error, fatal, verb, switch_warning, parse_WARNINGS,
7         parse_warnings): Move to ChannelDefs.pm.
8         (usage): Move the warning list to Automake::ChannelDefs::usage
9         and call it.
10         (set_strictness): Move channel setings to
11         Automake::ChannelDefs::set_strictness and call it.
12
13         * automake.in (err): Rename as ...
14         (error): ... this.  Adjust all callers.
15         Suggested by H.Merijn Brand.
16
17 2002-12-13  Alexandre Duret-Lutz  <adl@gnu.org>
18
19         * tests/version7.test: Require GNU make.
20         Reported by Patrick Welche.
21
22 2002-12-11  Brian Ford  <ford@vss.fsi.com>
23
24         * m4/init.m4 (AM_INIT_AUTOMAKE): Properly quote AC_PACKAGE_TARNAME
25         and AC_PACKAGE_VERSION.
26
27 2002-12-11  Alexandre Duret-Lutz  <adl@gnu.org>
28
29         * automake.texi (ANSI): Since Autoconf 2.54, LIBOBJ and LTLIBOBJ
30         no longer have to be rewritten in order to support deansification.
31         (Tests): Link to the DejaGnu manual.
32         (Optional): Comment out FIXME.
33         (Complete, A Library, LIBOBJS): Use $(LIBOBJ) and $(ALLOCA)
34         instead of @LIBOBJ@ and @ALLOCA@.
35         (Sources): Typo.
36
37 2002-12-05  Alexandre Duret-Lutz  <adl@gnu.org>
38
39         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Strip
40         directories from info filenames.
41         * tests/texinfo13.test: Make sure main.info gets installed
42         as $(infodir)/main.info.
43
44         * automake.in (handle_dist): Do not define %GETTEXT% if the user
45         is using $seen_gettext_external, this distcheck won't run
46         `./configure' with a meaningless `--with-included-gettext'.
47         * tests/gettext.test: Make sure distcheck uses --with-included-gettext.
48         * tests/gettext2.test: Make sure distcheck does not use
49         --with-included-gettext.
50
51         * m4/ccstdc.m4: Define am_cv_prog_cc_stdc for backward
52         compatibility and diagnose the use of AM_PROG_CC_STDC.
53         * automake.texi (Public macros) <AM_PROG_CC_STDC>: Remove
54         documentation, this macro is no longer supported.
55         Reported by Kevin Ryde.
56
57 2002-12-04  Alexandre Duret-Lutz  <adl@gnu.org>
58
59         * automake.in (handle_languages): Test $objdir, not $srcdir, to
60         decide whether a _.c file is in a subdirectory and has to be
61         cleaned separately.
62         Reported by Kevin Ryde.
63
64         * tests/ansi10.test (liblib_a_LIBADD): Set ac_cv_prog_cc_stdc
65         not am_cv_prog_cc_stdc.
66
67         * automake.texi (Options): Some English nits from Eric Siegerman.
68         (Sources): Rewrite the introduction and move the example to ...
69         (Built sources example): ... this separate node.
70
71         * automake.in (variable_pretty_output): Strip trailing
72         backslashes in $val after $val is defined...
73         Reported by Kevin Ryde.
74
75         * tests/depcomp2.test: Pass CC='gcc' as an argument to ./configure
76         not in the environment.  Otherwise the test will fail when
77         run with ksh and VERBOSE=x.
78         Reported by Paul Jarc.
79
80         * tests/man2.test: Exercize `make uninstall', to test
81         the previous change.
82
83 2002-12-03  Nicolas Joly  <njoly@pasteur.fr>
84
85         * lib/am/mans.am (uninstall-man%SECTION%): Change the extension of
86         the man pages being uninstalled, if needed.
87
88 2002-12-03  Alexandre Duret-Lutz  <adl@gnu.org>
89
90         * automake.in (macro_define): Do not strip escaped new lines
91         in Automake's +='ed variables.  We don't know whether it will
92         be pretty printed or not at this point.
93         (variable_pretty_output): Do this here.
94         * tests/pluseq10.test: New file.
95         * tests/Makefile.am (TESTS): Add pluseq10.test.
96         Reported by Ralf Corsepius.
97
98 2002-12-02  Charles Wilson  <cwilson@ece.gatech.edu>
99
100         * tests/gnits3.test (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT):
101         Append $(EXEEXT) again.
102
103 2002-12-02  Alexandre Duret-Lutz  <adl@gnu.org>
104
105         * automake.texi (Sources): Illustrate $(BUILT_SOURCES) with an
106         example.
107
108         * automake.texi (Options): Programs listed in
109         AM_INSTALLCHECK_STD_OPTIONS_EXEMPT should have $(EXEEXT) appended.
110         * tests/gnits3.test (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT):
111         Append $(EXEEXT).
112         Reported by Charles Wilson.
113
114 2002-12-01  Alexandre Duret-Lutz  <adl@gnu.org>
115
116         * automake.in (lang_c_finish): Do not fill de_ansi_files with
117         subdirectory informations for %libsources files.  A LIBOBJS source
118         is always in the current directory.  This reverts part of a change
119         from 2002-01-13.
120         * tests/ansi10.test: New file.
121         * tests/Makefile.am (TESTS): Add ansi10.test.
122
123         * automake.in (do_check_merge_target): Add missing space.
124
125         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
126         versions.
127
128         * configure.in: Do not use missing while checking for Autoconf's
129         version, otherwise we won't notice that Autoconf isn't installed.
130         Augment the error message with a few questions to help users.
131
132 2002-11-30  Alexandre Duret-Lutz  <adl@gnu.org>
133
134         * tests/gnits2.test, tests/gnits3.test: Move the greps inside the
135         Makefile, so we can honor $(EXEEXT).  Otherwise these tests
136         fail under Cygwin.
137         Reported by Charles Wilson.
138
139         For PR automake/375 (Debian Bug #168671):
140         * automake.in (scan_texinfo_file): Erase all known index files, no
141         matter whether they are used at the top-level or not, because we
142         can never know if they are used in included files.  The remaining
143         macros we recognize at the top-level of a Texi document are
144         @defindex, @defcodeindex, @synindex, and @syncodeindex.
145         * tests/texinfo18.test: New file.
146         * tests/Makefile.am (TESTS): Add texinfo18.test.
147         Reported by Simon Richter.
148
149         * automake.in (scan_texinfo_file): Honor only the first @setfilename.
150         * tests/texinfo17.test: New file.
151         * tests/Makefile.am (TESTS): Add texinfo17.test.
152         Reported by Karl Berry.
153
154         For PR automake/357:
155         * automake.in (require_file_internal): Don't complain a file is "not
156         found" when it is a target.  Make sure "not found" files are otherwise
157         reported as error (they were reported as 'note').
158         * tests/distcommon3.test: Augment to test the above.
159         * tests/libobj12b.test: Touch ltmain.sh.
160         * tests/required2.test: Make sure Automake fails because ltmain.sh
161         has been removed.
162         Reported by Ronald Landheer.
163
164         * tests/texinfo3.test: Make sure we don't output single suffix
165         inference rules when building `.info'-less Info files (this
166         confuses Solaris make).  Run distcheck to make sure the rules
167         work.
168         * automake.in (output_texinfo_build_rules): Define GENERIC_INFO
169         and SOURCE_INFO.
170         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%,
171         %DEST_PREFIX%%DEST_SUFFIX%): Honor GENERIC_INFO and SOURCE_INFO.
172
173 2002-11-29  Alexandre Duret-Lutz  <adl@gnu.org>
174
175         For PR automake/359:
176         * automake.in (do_check_merge_target): Make `check' dependent on
177         $(BUILT_SOURCES) if the variable is defined.  Run `check-am' or
178         `check-recursive' in a submake in this case.
179         * tests/check2.test, tests/check3.test: New files.
180         * tests/check.test: Make sure `check' depends on `check-am'.
181         * tests/Makefile.am (TESTS): Add check2.test and check3.test.
182
183         For PR automake/371 and PR automake/372:
184         * automake.in (rule_define): Honor inference rules with multiple
185         targets, and warn when they are used.
186         * tests/suffix11.test: New file.
187         * tests/Makefile.am (TESTS): Add suffix11.test.
188         Reported by Duncan Gibson.
189
190 2002-11-28  Alexandre Duret-Lutz  <adl@gnu.org>
191
192         For PR automake/370:
193         * automake.in (handle_languages): Don't prepend $U to $myext
194         since handle_single_transform_list now appends it to $obj.
195         Process the rule twice to handle deansified files in subdirectories.
196         Mark _.c files in subdirectories for cleaning.
197         (handle_single_transform_list): Append $U to $obj_sans_ext if
198         needed: before this dependencies were output foo.Po instead
199         of foo$U.Po.  Don't output explicit dependencies for renamed
200         objects or sources in sub-directories: we already output
201         a full compile rule for them.
202         (lang_c_finish): Don't always use the full filename in the
203         .c -> _.c rule.  This reverts part of my change of 2002-11-21.
204         * tests/ansi6.test, tests/ansi7.test: Make sure deansified
205         files are created in the right directory, and cleaned.
206         Reported by Kevin Ryde.
207
208 2002-11-25  Jim Meyering  <jim@meyering.net>
209
210         * lib/install-sh: Put `$0:' at the beginning of each diagnostic,
211         not `install:'.
212
213 2002-11-21  Alexandre Duret-Lutz  <adl@gnu.org>
214
215         * automake.in (make_condition_string): New function.
216         (cond_stack_if, cond_stack_else, cond_stack_endif): Use it.
217         Suggested by Raja R Harinath.
218
219         * tests/texinfo13.test: Require texi2dvi-o.
220         * tests/defs.in: Handle required=texi2dvi-o.
221
222         * automake.in (lang_c_finish): Use $@ in the .c -> _.c rule.
223
224         * automake.in (handle_single_transform_list): Don't strip the
225         directory from $full_ansi.  This reverts my patch of 2002-10-16.
226         (lang_c_finish): Use the full filename, including the directory,
227         in the .c -> _.c rule.  These two files must reside in the same
228         directory.
229         * tests/ansi6.test: Also try to compile without ansi2knr.
230         Reported by Andreas Schwab
231
232 2002-11-20  Alexandre Duret-Lutz  <adl@gnu.org>
233
234         * lib/Automake/Conditional.pm (strip): New function.
235         * lib/Automake/ConditionalSet.pm (sub_conditions): Use it.
236         Suggested by Raja R Harinath.
237
238         * automake.in (conditional_ambiguous_p, macro_define, rule_define,
239         require_variables): Use ->human instead of ->string.
240         * lib/Automake/Conditional.pm (string): Don't sort conditions, they
241         are already sorted.
242         (_to_human, human): New functions.
243         * lib/Automake/ConditionalSet.pm (human): New function.
244         * tests/cond27.test, tests/library3.test, tests/pluseq5.test,
245         tests/pluseq9.test: Adjust.
246
247         * lib/Automake/Conditional.pm [SYNOPSIS]: Fix not's description.
248         * lib/Automake/ConditionalSet.pm (sub_conditions): New function.
249         (multiply): Also accept an Automake::Conditional as argument.
250         * automake.in (variable_not_always_defined_in_cond): Simplify,
251         using only Automake::ConditionalSet methods.
252         Suggested by Raja R Harinath.
253
254         * lib/Automake/ConditionalSet.pm (conds): Use value() to simplify.
255         (invert): Rewrite as a product-of-sums to sum-of-products converter.
256         (_multiply, multiply): New functions.
257         * lib/Automake/Conditional.pm (not): New function.
258         * lib/Automake/tests/ConditionalSet.pl (test_invert): Update.
259         * automake.in (condition_negate): Move ...
260         * lib/Automake/Conditional.pm (negate_condition): ... here.
261         Suggested by Raja R Harinath.
262
263 2002-11-19  Alexandre Duret-Lutz  <adl@gnu.org>
264
265         * lib/Automake/ConditionalSet.pm (_simplify, simplify): New methods.
266         (true): Cache return value, so _simplify can use it.
267         * lib/Automake/tests/ConditionalSet.pl (test_simplify): New function.
268         * automake.in (variable_not_always_defined_in_cond): Return
269         a simplified ConditionalSet.
270         (macro_define, require_variables): Adjust.
271         * tests/Makefile.am (TEST): Add library3.test.
272         * tests/library3.test: New file.
273         * tests/pluseq9.test: Adjust.
274         Thanks to Raja R Harinath.
275
276 2002-11-18  Alexandre Duret-Lutz  <adl@gnu.org>
277
278         * lib/Automake/tests/Makefile.am, lib/Automake/tests/Conditional.pl,
279         lib/Automake/tests/ConditionalSet.pl: New files.
280         * lib/Automake/Makefile.am (SUBDIRS): New variable.
281         * configure.in: Output lib/Automake/tests/Makefile.
282         * lib/Automake/ConditionalSet.pm (by_conditions): Delete.
283         (conds): Don't use by_conditions, sort alphabetically, and
284         return sorted conds.
285         (string): Call ->string on each Conditional.
286         * tests/Makefile.am (TESTS): Remove cond12.test.
287         * tests/cond12.test: Remove, moved to
288         lib/Automake/tests/ConditionalSet.pl.
289         * tests/cond3.test: Adjust conditional ordering.
290
291 2002-11-15  Alexandre Duret-Lutz  <adl@gnu.org>
292
293         * lib/Automake/ConditionalSet.pm (_permutations_worker): Ignore TRUE
294         conditions.
295         (permutations): Treat empty permutations as TRUE.
296         (invert): Simplify.
297         Suggested by Raja R Harinath.
298
299 2002-11-14  Alexandre Duret-Lutz  <adl@gnu.org>
300
301         * automake.in (variable_defined): Thinko.
302         * lib/Automake/ConditionalSet.pm (true): Simplify.
303         (permutations): Fix documentation.
304         (new): Don't simplify conditional sets that contain TRUE.
305         Reported by Raja R Harinath.
306
307 2002-11-14  Eric Blake  <ebb9@email.byu.edu>
308
309         * lib/am/depend2.am: Add missing fi in c.obj rules.
310
311 2002-11-14  Alexandre Duret-Lutz  <adl@gnu.org>
312
313         * automake.in (handle_installdirs): Reindent to workaround a
314         parsing bug in Perl 5.6.0.
315         Reported by Patrick Welche.
316
317         * lib/Automake/Conditional.pm: Add reference to ConditionalSet.pm.
318         * lib/Automake/ConditionalSet.pm: New file.
319         * lib/Automake/Makefile.am (dist_perllib_DATA): Add ConditionalSet.pm.
320         * automake.in: Use ConditionalSet.
321         (by_condition, invert_conditions, variable_conditions_permutations):
322         Remove, now defined as Automake::ConditionalSet::by_condition,
323         Automake::ConditionalSet::invert, and
324         Automake::ConditionalSet::permutations.
325         (variable_sorted_conditions): Remove.
326         (msg_var, msg_target handle_source_transform, handle_lib_objects,
327         conditional_ambiguous_p, variable_not_always_defined_in_cond,
328         macro_define, macro_dump, variable_defined,
329         variable_conditions_recursive, variable_conditions,
330         target_conditions, variable_conditionally_defined,
331         variable_conditions_recursive_sub,
332         check_variable_defined_unconditionally, variable_value_as_list,
333         variable_value_as_list_recursive_worker, variable_output,
334         variable_pretty_output, rule_define, append_exeext,
335         am_install_var, require_variables_for_macro): Adjust to
336         use ConditionalSet.
337
338 2002-11-13  Alexandre Duret-Lutz  <adl@gnu.org>
339
340         * automake.in (variable_conditions): Split into ...
341         (variable_conditions, variable_sorted_conditions): ... these
342         functions, where variable_sorted_conditions has the semantic of
343         the old variable_condition.
344         (target_conditions): New function.
345         (msg_var, handle_lib_objects_cond, check_ambiguous_conditional,
346         variable_not_always_defined_in_cond, macro_define,
347         variable_defined, check_variable_defined_unconditionally,
348         variable_conditions_recursive_sub,
349         variable_conditions_permutations, variable_value_as_list,
350         variable_value_as_list_recursive_worker, append_exeext,
351         am_install_var, require_variables_for_macro): Use variable_conditions.
352         (msg_target, rule_define): Use target_conditions.
353         (define_objects_from_sources, macro_define, macro_dump,
354         variable_pretty_output): Use variable_sorted_conditions.
355
356         * automake.texi (Conditional Sources): Fix the `+=' example.
357         Reported by Mike Castle.
358
359         * automake.in: Don't declare TRUE and FALSE, import them from
360         Automake::Conditional.
361         * lib/Automake/Conditional.pm (TRUE, FALSE): New constants.
362         (new): Simplify using FALSE.
363         (reduce): New function, moved from ...
364         * automake.in (variable_conditions_reduce): ... here.
365         (variable_conditions_recursive_sub, invert_conditions):
366         Adjust calls to Automake::Conditional::reduce.
367         * tests/cond12.test: Adjust to use Automake::Conditional.
368
369 2002-11-09  Jim Meyering  <jim@meyering.net>
370
371         Make install-sh work even when names contain spaces or
372         certain (but not all) shell metachars.
373
374         * lib/install-sh: Remove lots of unnecessary quoting.
375         Add double quotes where necessary.
376         Write diagnostics to stderr, not stdout.
377         Normalize spacing in diagnostics: use one space (not two,
378         and not a TAB) after the leading `install:'.
379         Remove trailing white space.
380         Remove unnecessary curly braces.
381         If removing the destination fails, also try to move it aside.
382         Use `trap' more portably.
383         * tests/installsh2.test: New file, to test for the above fix.
384         * tests/Makefile.am (TESTS): Add installsh2.test.
385
386         * automake.texi: Fix some typos and a grammar nit.
387
388 2002-11-07  Alexandre Duret-Lutz  <adl@gnu.org>
389
390         * automake.in (switch_warning): Subject Perl warnings to -Werror.
391
392         * automake.texi (Extending): Complete unterminated sentence.
393         Reported by Mike Castle.
394
395 2002-11-06  Akim Demaille  <akim@epita.fr>
396
397         * automake.in (&conditional_ambiguous_p): Don't forget to ->string
398         the Conditionals.
399
400 2002-10-31  Alexandre Duret-Lutz  <adl@gnu.org>
401
402         * automake.texi (Dist): Fix the distcleancheck_listfiles example.
403         Reported by Karl Berry.
404
405 2002-10-31  Akim Demaille  <akim@epita.fr>
406
407         * tests/location.test (Makefile.am): Strengthen.
408         * lib/Automake/Channels.pm (_print_message): Be sure to flush
409         $partial when the message is output.
410         Thanks to Alexandre Duret-Lutz.
411
412 2002-10-31  Akim Demaille  <akim@epita.fr>
413
414         * automake.in (&read_am_file): Use $last_where to register the
415         _first_ line of a variable definition as location instead of the
416         last one.
417         (&conditional_ambiguous_p): Don't forget to ->string the
418         Conditionals.
419         (&rule_define): Likewise.
420         * tests/location.test: Adjust to exercise this.
421
422 2002-10-25  Charles Wilson  <cwilson@ece.gatech.edu>
423
424         * tests/defs.in: Add explicit stanza for python -V.
425
426 2002-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
427
428         * tests/ansi6.test, tests/ansi7.test: Set ac_cv_prog_cc_stdc instead
429         of am_cv_prog_cc_stdc.  This follows Akim's patch of 2002-10-09,
430         and reveals a bug in my patch of 2002-10-15.
431         * automake.in (handle_single_transform_list): Strip directory name
432         from $full_ansi if subdir-objects is not set.
433
434         * lib/texinfo.tex: New version from Texinfo 4.2b.
435
436 2002-10-15  Alexandre Duret-Lutz  <adl@gnu.org>
437
438         * automake.in (handle_single_transform_list) <full_ansi>: New variable.
439         Use this to record correct dependencies about deansifiable files which
440         are using per-program flags or are in a subdirectory.
441         * tests/ansi9.test: New file.
442         * tests/Makefile.am (TESTS): Add ansi9.test.
443         Reported by Paul D. Smith
444
445 2002-10-12  Alexandre Duret-Lutz  <adl@gnu.org>
446
447         * aclocal.in (ac_defun_rx, ac_require_rx): If the macro name is
448         quoted, accept any character but `]'.  This makes it possible
449         to define macros such as `AC_LANG_PREPROC(Fortran 90)'.
450         (scan_m4_files): Quote $key in the regex.  Don't define $expr, it's
451         not used.
452         (add_file, scan_file): Adjust to the new definitions of $ac_defun_rx
453         and $ac_require_rx.
454         * tests/aclocal2.test: New file.
455         * tests/Makefile.am (TESTS): Add aclocal2.test.
456         Reported by Tamara L. Dahlgren and Tom Epperly.
457
458 2002-10-11  Alexandre Duret-Lutz  <adl@gnu.org>
459
460         For Debian Bug#153697:
461         * lib/am/dejagnu.am (distclean-DEJAGNU): Remove $tool.sum and
462         $tool.log.
463         Suggested by Andrew Suffield.
464
465 2002-10-10  Alexandre Duret-Lutz  <adl@gnu.org>
466
467         For PR automake/369:
468         * lib/am/python.am: Lookup python files in build directory or
469         source directory.
470         From Mathias Doreille.
471         * tests/python3.test: New file.
472         * tests/Makefile.am (TESTS): Add python3.test.
473         * tests/defs: Handle `required=python'.
474
475         For PR automake/358:
476         * lib/am/texi-vers.am (%STAMPVTI%): Depend on configure instead of
477         configure.ac.
478         Suggested by Thien-Thi Nguyen.
479         * lib/am/configure.am ($(srcdir)/configure): Depends on
480         %CONFIGURE_DEPS%
481         * automake.in (@configure_deps): New array.
482         (scan_autoconf_traces): Scan for m4_include and m4_sinclude,
483         and fill @configure_deps.
484         (handle_configure): Substitute %CONFIGURE_DEPS%.
485         Distribute @configure_deps.
486         * tests/version7.texi: New file.
487         * tests/vtexi.test: Adjust.
488         * tests/Makefile.am (TESTS): Add version7.test.
489         * automake.texi (Dist): Mention that m4_include'd files
490         are distributed.
491
492 2002-10-09  Akim Demaille  <akim@epita.fr>
493
494         * m4/ccstdc.m4 (AM_PROG_CC_STDC): Its definition is now empty:
495         the content of this macro was merged in AC_PROG_CC.
496         * m4/protos.m4 (AM_C_PROTOTYPES): Adjust to AC_C_PROTOTYPES.
497         * tests/depacl.test: Remove, it exercizes aclocal in a way that was
498         exercized by all the other tests since the test suite really uses
499         aclocal.
500         * tests/Makefile.am (TESTS): Remove depacl.test.
501
502 2002-10-08  Paul Eggert  <eggert@twinsun.com>
503
504         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%,
505         %DEST_PREFIX%.dvi, %DEST_PREFIX%.pdf): Use "makeinfo -o output
506         input", not "makeinfo input -o output", as the latter fails if
507         POSIXLY_CORRECT=1.
508         * lib/am/texinfos.am (.dvi.ps): Likewise for dvips.
509         * m4/depend.m4 (_AM_DEPENDENCIES): Likewise for $depcc.
510
511 2002-10-08  Alexandre Duret-Lutz  <adl@gnu.org>
512
513         * automake.in (file_contents_internal): Fix the relationship
514         regex flags, don't use `m'.
515
516         For Debian Bug#162583:
517         * automake.in (file_contents_internal): Simplify regex to
518         separate relationship from actions in rules.
519         Reported by Sam Hocevar.
520
521         * lib/Automake/Conditional.pm (has): Simplify.
522
523 2002-10-07  Alexandre Duret-Lutz  <adl@gnu.org>
524
525         * lib/Automake/Conditional.pm: New file.
526         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Conditional.pm.
527         * automake.in: Use Automake::Conditional.
528         (TRUE, FALSE): New constants.
529         (%var_value, %var_location, %var_comment, %var_type, %var_owner,
530         %targets, %target_source, %target_name, %target_owner): Tie to
531         Tie::RefHash::Nestable.
532         (generate_makefile, process_option_list, handle_options,
533         handle_languages, handle_source_transform, handle_compile,
534         handle_libtool, handle_texinfo_helper, handle_dist, handle_subdirs,
535         scan_aclocal_m4, handle_emacs_lisp, handle_python,
536         scan_autoconf_files, variable_assert, define_variable,
537         define_pretty_variable, define_configure_variable, am_install_var,
538         push_dist_common): Use TRUE.
539         (define_objects_from_sources): Fix return value on
540         "recursively-defined" errors.
541         (conditional_string, conditional_true_when, conditional_is_redundant,
542         conditional_implies_any, make_conditions): Remove these functions,
543         obsoleted by Conditional.pm.
544         (cond_stack_if, cond_stack_else, cond_stack_endif): Return
545         an Automake::Conditional instance.
546         (by_condition, conditional_ambiguous_p,
547         variable_not_always_defined_in_cond, macro_define,
548         variable_conditions_recursive, variable_conditions_recursive_sub,
549         variable_conditions_reduce, invert_conditions,
550         variable_conditions_permutations,
551         check_variable_defined_unconditionally, variable_value_as_list,
552         variable_output, variable_pretty_output, rule_define,
553         read_am_file, file_contents_internal, require_variables): Adjust
554         to use Automake::Conditional objects.
555         (handle_footer): Get $(SUFFIXES) in 'all' conditions.
556         * tests/cond12.test: Adjust to use Automake::Conditional objects.
557
558 2002-10-01  Alexandre Duret-Lutz  <adl@gnu.org>
559
560         * automake.in (handle_source_transform): If foo_SOURCES is defined
561         conditionally, create and use am__foo_SOURCES_DIST for distribution.
562         * tests/condd.test: Extend to check distributed files.
563         * tests/substref.test: Make sure we don't use such a variable when
564         it's not needed.
565         Reported by Marcus Brinkmann.
566
567 2002-09-30  Ezra Peisach  <epeisach@MED-XTAL.BU.EDU>
568
569         * tests/defs.in: Run $MAKE --version -v.
570         * tests/dollar.test: Abort on ./defs failure.
571         * tests/lex5.test: Require GNUmake, not make.
572
573 2002-09-30  Kevin Ryde  <user42@zip.com.au>
574
575         * m4/as.m4 (AM_PROG_AS): Let CCAS and CCASFLAGS default to the actual
576         values of $CC and $CFLAGS (as opposed to $(CC) and $(CFLAGS)), so
577         configure tests can use them.  Use AC_ARG_VAR instead of AC_SUBST.
578
579 2002-09-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
580
581         * automake.in (require_variables): The fix introduced in 2002-09-19
582         is incomplete.  Rewrite the conditional variable definition check
583         using &variable_not_always_defined_in_cond.
584         * tests/cond26.test, tests/cond27.test, tests/cond28.test: New file.
585         * tests/Makefile.am (TESTS): Add cond26.test, cond27.test, and
586         cond28.test.
587         Reported by Juergen Keil.
588
589         * automake.in (INTERNAL): Redefine as an empty location,
590         so that internal locations get displayed as `automake:'.
591
592         * lib/am/distdir.am (distdir): Create $dc_destdir right before
593         its use.
594         Reported by Akim Demaille.
595
596         Fix for PR automake/366:
597         * automake.in (handle_dist): Strip $(srcdir) and replace
598         $(top_srcdir) when computing DIST_COMMON directories.
599         * tests/include2.test: Use an obsolute $(srcdir), and check
600         for spurious directories in $(distdir)/sub.
601         * lib/am/distdir.am: Rewrite $(top_srcdir) as $(top_builddir).
602         Reported by Kevin Ryde.
603
604 2002-09-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
605
606         * lib/Automake/Channels.pm (%_default_options): Add 'partial'.
607         (_format_message): Rename as ...
608         (_format_sub_message): ... this.
609         (_format_message): New function, extracted from ...
610         (_print_message): ... here.  Honor the 'partial' option.
611         ($partial): New variable.
612         * automake.in (handle_ltlibraries, check_ambiguous_conditional,
613         rule_define): Mark partial messages.
614
615         * automake.in (handle_ltlibraries): Record library locations in
616         %liblocations, and print the previous declaration on error.
617         * tests/libtool6.test: Check that the locations of the two
618         definitions are shown.
619
620         For PR automake/360:  Propagate more locations.
621         * automake.in (handle_programs): Adjust usage of am_install_var's
622         return value.  Pass on locations as context to file_contents.
623         (handle_libraries, handle_ltlibraries): Likewise.  Use locations
624         in the 'not a standard library name' diagnostic.
625         (handle_emacs_lisp, handle_python): Adjust usage of am_install_var's
626         return value.  Pass on locations to require_variables and
627         require_conf_file.
628         (check_ambiguous_conditional): Strip trailing dot in message.
629         (value_to_list): Add the $WHERE and $LOC_WANTED arguments.
630         (variable_value_as_list_recursive_worker): Add the $LOC_WANTED
631         argument.  Adjust calls to value_to_list.
632         (variable_value_as_list_recursive): Call
633         variable_value_as_list_recursive_worker with $LOC_WANTED = 0.
634         (variable_loc_and_value_as_list_recursive): New function,
635         variable_value_as_list_recursive_worker with $LOC_WANTED = 1.
636         (am_install_var): Use variable_loc_and_value_as_list_recursive,
637         and return a list of [$location, $value] pairs.
638         (rule_define): Use better locations in EXEEXT diagnostic.
639         (handle_source_transform, define_objects_from_sources): Add and use
640         a $WHERE argument.  Adjust callers.
641         * tests/stdlib.test: Grep the location in error message.
642         * tests/location.test: New file.
643         * tests/Makefile.am (TESTS): Add location.test.
644
645         * tests/exeext3.test: New file.
646         * tests/Makefile.am (TESTS): Add exeext3.test.
647         * automake.in (%target_name): New hash.
648         (initialize_per_input): Reset %target_name.
649         (rule_define): Fill %target_name, and use it to detect targets
650         which have been registered with key X but really are X$(EXEEXT).
651
652 2002-09-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
653
654         For PR automake/360:
655         * lib/Automake/Location.pm: New file.
656         * lib/Automake/Channels.pm (_print_message): Display contexts
657         when given an Automake::Location.
658         (msg): Clone the location.
659         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Location.pm.
660         * tests/comment5.test: Make sure we display `included from' stacks.
661         * automake.in: Use Automake::Location.
662         (INTERNAL): New constant.
663         (file_contents, file_contents_internal, define_variable,
664         define_pretty_variable, read_am_file): Take $WHERE as argument.
665         Adjust all callers.
666         (scan_autoconf_traces) <$where>: Define as a Location, and use
667         it instead of $here.
668         (macro_define, rule_define): Make sure $WHERE is a location.
669         Clone it before updating $var_location or $targets.
670
671 2002-09-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
672
673         * lib/mkinstalldirs: Reindent using `sh-indentation: 2'.
674         Suggested by Bruno Haible.
675
676         * Makefile.am (fetch, FETCHFILES): Don't fetch install-sh from
677         Autoconf.  Automake now has the master copy of install-sh and
678         mkinstalldirs.
679
680 2002-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
681
682         * configure.in: Bump version to 1.7a.
683
684         * NEWS, configure.ac: Version 1.7.
685
686 2002-09-25  Art Haas  <ahaas@neosoft.com>
687
688         * automake.texi (Optional, Options, Distributing, ANSI,
689         API versioning): Spelling fixes and Texi tweaks.
690
691 2002-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
692
693         * configure.in: Check for 'tex'.
694         * tests/defs.in: Handle required=tex using configure's result.
695         Reported by Patrick Welche.
696
697         * Makefile.am (mdate-sh): Remove.
698         * mdate-sh: Delete.
699         Suggested by Akim Demaille.
700
701 2002-09-25  Tom Tromey  <tromey@redhat.com>
702
703         * NEWS: Mention distuninstallcheck.
704         * automake.texi (Dist): Document new macro and target.
705         * lib/am/distdir.am (distuninstallcheck_listfiles): New macro.
706         (distuninstallcheck): New target.
707         (distcheck): Use distuninstallcheck.
708
709 2002-09-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
710
711         * tests/specflags7.test (true_CFLAGS, false_CFLAGS, false.c): Use
712         AM_TRUE, AM_FALSE to avoid bad interaction with Tru64 UNIX
713         <sys/types.h>.
714         * tests/specflags8.test (true_CPPFLAGS, false_CPPFLAGS, false.c):
715         Likewise.
716
717 2002-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
718
719         * automake.in (output_texinfo_build_rules): Define %SOURCE_REAL%.
720         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%,
721         %DEST_PREFIX%.dvi, %DEST_PREFIX%.pdf): Add %SOURCE_REAL% as dependency.
722
723 2002-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
724
725         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Use $$dir in make
726         command.
727
728 2002-09-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
729
730         * automake.in (handle_single_transform_list): Revert the change
731         from 2002-09-22.  We need to erase .libs/ in the object directory
732         in addition to the library directory.
733
734         * tests/target-cflags.test: Build in `build/', not `obj/' because
735         `obj/' is special to BSD make.
736
737         * automake.in (read_am_file): Prefix included files with
738         $(top_srcdir) or $(srcdir) in DIST_COMMON.  Fixes
739         subdircond2.test, and subdircond3.test on OSF1.
740
741         * tests/defs.in (SHELL): Set it.
742
743         * lib/am/distdir.am (distcleancheck): Mention `in build directory'
744         in error message.
745
746 2002-09-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
747
748         For PR automake/350:
749         * automake.in (handle_ltlibraries): Allow a library to be installed
750         many times in the same directory.
751         * tests/libtool5.test, tests/libtool6.test: New files.
752         * tests/Makefile.am (TESTS): Add libtool5.test and libtool6.test.
753
754 2002-09-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
755
756         * automake.in (handle_ltlibraries): Fill $libtool_clean_directories
757         here, with directories where .la files are built...
758         (handle_single_transform_list): ... not here with directories
759         where .lo files are built.
760         * tests/libtool3.test: Build a library in a subdirectory to
761         check for this.
762         Reported by Peter Gavin.
763
764         * tests/cond5.test: Give more time to automake.
765         Reported by Art Haas.
766
767         * configure.in: Really check for Autoconf 2.54.
768
769         * automake.texi (Yacc and Lex): ylwrap is used only when there is
770         more than one yacc or lex source file in a directory.
771
772         * automake.in (macro_define): Update a variable's location each
773         time its owner is updated.
774         * tests/gnuwarn.test: Append to CFLAGS to check for this.
775         Reported by Harlan Stenn.
776
777 2002-09-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
778
779         * configure.in: Bump version to 1.6g.
780
781         * configure.in, NEWS: Bump version to 1.6f.
782
783         * Makefile.am (INSTALL): New rules.
784
785 2002-09-20  Mirko Streckenbach  <strecken@infosun.fmi.uni-passau.de>
786
787         For PR automake/363:
788         * m4/cond.m4: Fix AC_MSG_ERROR quoting.
789
790 2002-09-19  Pavel Roskin  <proski@gnu.org>
791
792         * tests/warnopts.test: Fix random failures by removing Autoconf
793         cache directory when configure.in changes.  Use the code and the
794         comment from tests/asm.test.
795
796 2002-09-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
797
798         * automake.texi (Program and Library Variables) <maude_LIBADD>:
799         Don't mention _LDADD for Libtool libraries.
800         Reported by Schleicher Ralph.
801
802         For PR automake/361:
803         * tests/suffix8.test: More explicit dependencies.
804         Reported by Paul Eggert.
805
806         * automake.in (rule_define): Don't diagnose duplicate user rules.
807         * tests/phony.test, tests/percent2.test: New files.
808         * tests/Makefile.am (TESTS): Add them.
809         Reported by Ralf Corsepius.
810
811         * automake.in (require_variables): Search variable definitions
812         in any condition implied by $cond.
813         * tests/cond25.test: New file.
814         * tests/Makefile.am (TESTS): Add cond25.test.
815         Reported by Pavel Roskin.
816
817         * tests/subobj9.test: Skip this test on configure errors.
818         Reported by Paul Eggert.
819
820 2002-09-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
821
822         * configure.in: Bump version to 1.6e.
823
824         * configure.in, NEWS: Bump version to 1.6d.
825         * tests/libobj12.test, tests/libobj12b.test: Include ./defs,
826         not $srcdir/defs.
827         * tests/suffix8.test: Typo.
828
829         * automake.in (check_ambiguous_conditional, rule_define): Issue
830         syntactic warnings, not errors.
831         (macro_define): Don't adjust the owner of a variable which is being
832         appended in a condition different from its definition.
833         (variable_output, variable_pretty_output): Make sure the
834         requested condition exists.
835
836         For PR automake/353: fill %var_location, %var_comment,
837         %var_type, %var_owner for each condition.
838         * automake.in (msg_cond_var): New function.
839         (msg_var): Use it.
840         (generate_makefile, process_option_list, handle_languages,
841         handle_lib_objects_cond, handle_compile, handle_libtool,
842         handle_ltlibraries, handle_texinfo_helper, handle_tests,
843         handle_emacs_lisp, handle_python, macro_define, macro_delete,
844         macro_dump, variable_assert, variable_output,
845         variable_pretty_output, read_am_file, read_main_am_file,
846         file_contents_internal, am_primary_prefixes,
847         require_variables_for_macro): Adjust accesses to %var_location,
848         %var_comment, %var_type, %var_owner.
849         (append_comments, require_file_with_macro,
850         require_conf_file_with_macro, require_variables): Add the
851         $cond argument.
852         * tests/comment7.test: New file.
853         * tests/Makefile.am (TESTS): Add comment7.test.
854
855 2002-09-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
856
857         For PR automake/353:
858         * automake.in (check_ambiguous_conditional): Display locations for
859         the two definitions of the ambiguous variable.  Show the macro_dump
860         output in --verbose only.  Accept $where as a third argument,
861         (macro_define): Pass $where.
862
863         * automake.in (handle_programs): Ooops.  Really add LDADD
864         objects into _DEPENDENCIES.
865         * tests/libobj12.test: Check for it.
866
867 2002-09-17  Assar Westerlund  <assar@kth.se>
868             Alexandre Duret-Lutz  <duret_g@epita.fr>
869
870         * automake.in (handle_programs, handle_libraries,
871         handle_ltlibraries): Maintain $seen_libobjs on a
872         per-program/per-library basis, instead of globally to each
873         of these functions.
874         * tests/libobj12.test, tests/libobj12b.test: New files.
875         * tests/Makefile.am (TESTS): Add libobj12.test and libobj12b.test.
876
877 2002-09-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
878
879         * tests/defs.in (configure.in): Don't call AC_PROG_INSTALL and
880         AC_PROG_MAKE_SET.
881
882         * lib/config.guess, lib/config.sub, lib/INSTALL,
883         lib/Automate/Struct.pm: New upstream version.
884         * Makefile.am (mdate-sh): New rule.
885         (FETCHFILES): Add Automate/Struct.pm.
886         (fetch): Get Automate/Struct.pm.
887         (AUTOMAKESOURCES, CLEANFILES): New macros.
888         (EXTRA_DIST, TAGS_FILES): Use them.
889         * install-sh, mkinstalldirs, missing: Delete.
890
891         * automake.in: Rename the 'unused' channel to 'syntax'.
892         (variable_defined): Issue a warning instead of an error
893         for variable-is-a-target conditions.
894         * automake.texi (Invoking Automake): Rename the 'unused'
895         channel to 'syntax'.
896         * tests/warnopts.test: Likewise.
897
898         * tests/suffix8.test: Add explicit dependencies.
899         * tests/texinfo13.test, tests/texinfo16.test: Require tex.
900
901 2002-09-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
902
903         * configure.in, m4/init.m4, NEWS: Require Autoconf 2.54.
904
905         * automake.in (variable_defined): Thinko in $cond handling.
906
907 2002-09-15  Paul Eggert  <eggert@twinsun.com>
908
909         * lib/Automake/Channels.pm: Don't use 'our', as it isn't portable
910         to Perl 5.00503.
911
912         * Makefile.am (maintainer-check): Don't use egrep.
913
914 2002-09-15  Tom Tromey  <tromey@redhat.com>
915
916         * tests/subdircond3.test: Pass flags to make in environment.
917         * tests/subdircond2.test: Pass flags to make in environment.
918         * Makefile.am (maintainer-check): Add a new check for @...@
919         substitutions.  Updated correct number of diffs between source and
920         build trees.
921
922         * configure.in (aclocal, automake): Don't create.
923         * automake.in ($prefix): Don't define.
924         * aclocal.in ($prefix): Don't define.
925         * Makefile.am (do_subst): New macro.
926         (automake): New target.
927         (aclocal): Likewise.
928
929 2002-09-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
930
931         * aclocal.in, automake.in: Requote each "@var@" as '@var@'.
932
933 2002-09-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
934
935         * tests/Makefile.am (XFAIL_TESTS): Remove specflags7.test and
936         specflags8.test.
937
938 2002-09-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
939
940         * automake.texi (Building ctags and etags): Rename and adjust as ...
941         (Building true and false): ... this.
942         * tests/targetclash.test: New file.
943         * tests/specflags7.test, tests/specflags8.test: Adjust to build
944         true and false.
945         * tests/Makefile.am (TESTS): Add targetclash.test.
946
947         Diagnose target clashes, for PR automake/344:
948         * automake.in (%targets): Record conditionals for definitions.
949         (%target_conditional): Remove (obsoleted by %targets).
950         (%target_source, %target_owner): New hashes.
951         (TARGET_AUTOMAKE, TARGET_USER): New constants.
952         (initialize_per_input): Adjust to reset new variables.
953         (err_cond_target, msg_cond_target): New functions.
954         (msg_target): Adjust usage of %targets.
955         (conditional_ambiguous_p): Take a list of conditional to check
956         as a third parameter, so this can be used for other things that
957         variables.
958         (handle_lib_objects_cond): Adjust conditional_ambiguous_p usage.
959         (variable_defined): Restrict the target-with-same-name check
960         to user targets.
961         (rule_define): Add the $SOURCE argument, and take $OWNER instead
962         of $IS_AM.  Diagnose target clashes (including ambugious
963         conditionals).  Return a list of conditions where the rule should
964         be defined instead of a boolean.  Fill %target_source and
965         %target_owner.
966         (target_define): Use `exists', not `defined'.
967         (read_am_file): Adjust the call to rule_define.
968         (file_contents_internal): Add more FIXMEs.  Simplify my moving
969         and documenting the "define rules in undefined conditions" to
970         rule_define.
971         * tests/Makefile.am (XFAIL_TESTS): Add specflags7.test and
972         specflags8.test.
973
974 2002-09-12  Akim Demaille  <akim@epita.fr>
975
976         * aclocal.in: Prototype all the functions.
977         Add `(C)' to Copyrights.
978         (&add_file): Strip the comments before checking for `AC_REQUIRE'.
979         Remove Perl 4 hacks, since anyway we require 5.005 via General.pm.
980
981 2002-09-11  Akim Demaille  <akim@epita.fr>
982
983         * lib/am/texinfos.am (TEXI2PDF): Pass --batch to texi2dvi, since
984         it was already supported when --pdf support was added.
985
986 2002-09-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
987
988         * lib/Automake/Channels.pm (_default_options): Add `backtrace'.
989         (msg): Die with backtrace if requested.
990         * automake.in: Enable `backtrace' on the `automake' channel.
991
992         * automake.in (process_option_list): Mention `Automake' in
993         version-mismatch error.
994         Suggested by Akim Demaille.
995
996         * tests/Makefile.am ($(TESTS)): Replace by ...
997         (check_SCRIPTS): ... this.
998         Suggested by Raja R Harinath.
999
1000 2002-09-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1001
1002         * tests/Makefile.am ($(TESTS)): New, depends on defs.
1003         (BUILT_SOURCES): Remove (useless because of PR/359).
1004
1005         * m4/init.m4: Execute cygpath in a sub-shell.
1006
1007 2002-09-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1008
1009         * automake.in (macro_define): Warn about `:=' assignments.
1010         * tests/colneq.test: Check for this warning.
1011
1012         * automake.texi (Include): Fragments are always distributed.
1013         * NEWS: Likewise.
1014
1015 2002-09-08  Andreas Buening  <andreas.buening@nexgo.de>
1016
1017         Fix for automake/334:
1018         * lib/am/depend2.am: Replaced "cygpath -w" by $(CYGPATH_W).
1019         * m4/init.m4: New make variable CYGPATH_W.
1020
1021 2002-09-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1022
1023         * configure.in: Check for EGREP and FGREP.  Create tests/defs.
1024         * tests/defs: Rename as ...
1025         * tests/defs.in: ... this.  Add copyright notice.  Use configure's
1026         values for PERL, EGREP, and FGREP.  Be verbose if $srcdir is unset.
1027         * tests/Makefile.am (EXTRA_DIST): Remove defs.
1028         (BUILT_SOURCES): New.
1029         * tests/acinclude.test, tests/aclibobj.test, tests/aclocal.test,
1030         tests/aclocali.test, tests/aclocali1.test, tests/aclocalii.test,
1031         tests/acoutnoq.test, tests/acoutput.test, tests/acoutput2.test,
1032         tests/acoutqnl.test, tests/acouttbs.test, tests/acouttbs2.test,
1033         tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
1034         tests/all.test, tests/alpha.test, tests/amassign.test,
1035         tests/ammissing.test, tests/ansi.test, tests/ansi2.test,
1036         tests/ansi3.test, tests/ansi4.test, tests/ansi5.test,
1037         tests/ansi6.test, tests/ansi7.test, tests/ansi8.test,
1038         tests/ar.test, tests/asm.test, tests/autoheader.test,
1039         tests/autoheader2.test, tests/auxdir.test, tests/auxdir2.test,
1040         tests/backsl.test, tests/backsl2.test, tests/badline.test,
1041         tests/badopt.test, tests/badprog.test, tests/block.test,
1042         tests/canon.test, tests/canon2.test, tests/canon3.test,
1043         tests/canon4.test, tests/canon5.test, tests/ccnoco.test,
1044         tests/check.test, tests/checkall.test, tests/clean.test,
1045         tests/colneq.test, tests/colneq2.test, tests/colon.test,
1046         tests/colon2.test, tests/colon3.test, tests/colon4.test,
1047         tests/colon5.test, tests/colon6.test, tests/colon7.test,
1048         tests/comment.test, tests/comment2.test, tests/comment3.test,
1049         tests/comment4.test, tests/comment5.test, tests/comment6.test,
1050         tests/compile_f_c_cxx.test, tests/cond.test, tests/cond10.test,
1051         tests/cond11.test, tests/cond12.test, tests/cond13.test,
1052         tests/cond14.test, tests/cond15.test, tests/cond16.test,
1053         tests/cond17.test, tests/cond18.test, tests/cond19.test,
1054         tests/cond2.test, tests/cond20.test, tests/cond21.test,
1055         tests/cond22.test, tests/cond23.test, tests/cond24.test,
1056         tests/cond3.test, tests/cond4.test, tests/cond5.test,
1057         tests/cond6.test, tests/cond7.test, tests/cond8.test,
1058         tests/cond9.test, tests/condd.test, tests/condincl.test,
1059         tests/condincl2.test, tests/condlib.test, tests/condman.test,
1060         tests/condman2.test, tests/conf2.test, tests/confdeps.test,
1061         tests/confdist.test, tests/confh.test, tests/confh4.test,
1062         tests/config.test, tests/confincl.test, tests/confsub.test,
1063         tests/confvar.test, tests/confvar2.test, tests/copy.test,
1064         tests/ctarget1.test, tests/cxx.test, tests/cxx2.test,
1065         tests/cxxansi.test, tests/cxxcpp.test, tests/cxxlibobj.test,
1066         tests/cxxlink.test, tests/cxxnoc.test, tests/cxxo.test,
1067         tests/cygwin32.test, tests/dash.test, tests/defun.test,
1068         tests/defun2.test, tests/dejagnu.test, tests/dejagnu2.test,
1069         tests/depacl.test, tests/depacl2.test, tests/depcomp.test,
1070         tests/depcomp2.test, tests/depdist.test, tests/depend.test,
1071         tests/depend2.test, tests/depend3.test, tests/depend4.test,
1072         tests/destdir.test, tests/dirforbid.test, tests/dirlist.test,
1073         tests/discover.test, tests/distcommon.test,
1074         tests/distcommon2.test, tests/distcommon3.test,
1075         tests/distdir.test, tests/distname.test, tests/dollar.test,
1076         tests/double.test, tests/dup2.test, tests/dup3.test,
1077         tests/else.test, tests/empty.test, tests/empty2.test,
1078         tests/empty3.test, tests/empty4.test, tests/error.test,
1079         tests/exdir.test, tests/exdir2.test, tests/exeext.test,
1080         tests/exeext2.test, tests/exsource.test, tests/ext.test,
1081         tests/ext2.test, tests/extra.test, tests/extra2.test,
1082         tests/extra3.test, tests/extra4.test, tests/extra5.test,
1083         tests/extra6.test, tests/extra7.test, tests/flibs.test,
1084         tests/fnoc.test, tests/fo.test, tests/fonly.test,
1085         tests/fortdep.test, tests/fpinst2.test, tests/fpinstall.test,
1086         tests/gcj.test, tests/gcj2.test, tests/gcj3.test, tests/gcj4.test,
1087         tests/gcj5.test, tests/getopt.test, tests/gettext.test,
1088         tests/gettext2.test, tests/gnits.test, tests/gnits2.test,
1089         tests/gnits3.test, tests/gnuwarn.test, tests/header.test,
1090         tests/implicit.test, tests/include.test, tests/include2.test,
1091         tests/info.test, tests/insh.test, tests/insh2.test,
1092         tests/install.test, tests/install2.test, tests/installdir.test,
1093         tests/installsh.test, tests/instdata.test, tests/instdata2.test,
1094         tests/instexec.test, tests/insthook.test, tests/instman.test,
1095         tests/instman2.test, tests/interp.test, tests/interp2.test,
1096         tests/java.test, tests/java2.test, tests/javaprim.test,
1097         tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
1098         tests/lex.test, tests/lex2.test, tests/lex3.test, tests/lex4.test,
1099         tests/lex5.test, tests/libobj10.test, tests/libobj11.test,
1100         tests/libobj2.test, tests/libobj3.test, tests/libobj4.test,
1101         tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
1102         tests/library.test, tests/library2.test, tests/libtool.test,
1103         tests/libtool2.test, tests/libtool3.test, tests/libtool4.test,
1104         tests/link_c_cxx.test, tests/link_dist.test, tests/link_f_c.test,
1105         tests/link_f_c_cxx.test, tests/link_f_cxx.test,
1106         tests/link_f_only.test, tests/lisp.test, tests/lisp2.test,
1107         tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
1108         tests/maintclean.test, tests/make.test, tests/makevars.test,
1109         tests/man.test, tests/man2.test, tests/mclean.test,
1110         tests/mdate.test, tests/mdate2.test, tests/mdate3.test,
1111         tests/mdate4.test, tests/mkinst2.test, tests/mkinstall.test,
1112         tests/nobase.test, tests/nodefine.test, tests/nodefine2.test,
1113         tests/nodep.test, tests/nodepcomp.test, tests/nodist.test,
1114         tests/nodist2.test, tests/noinst.test, tests/noinstdir.test,
1115         tests/nolink.test, tests/nostdinc.test, tests/number.test,
1116         tests/obsolete.test, tests/order.test, tests/outdir.test,
1117         tests/output.test, tests/output2.test, tests/output3.test,
1118         tests/output4.test, tests/output5.test, tests/package.test,
1119         tests/parse.test, tests/percent.test, tests/pluseq.test,
1120         tests/pluseq2.test, tests/pluseq3.test, tests/pluseq4.test,
1121         tests/pluseq5.test, tests/pluseq6.test, tests/pluseq7.test,
1122         tests/pluseq8.test, tests/pluseq9.test, tests/postproc.test,
1123         tests/ppf77.test, tests/pr2.test, tests/pr204.test,
1124         tests/pr211.test, tests/pr220.test, tests/pr224.test,
1125         tests/pr229.test, tests/pr243.test, tests/pr266.test,
1126         tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
1127         tests/pr300-lib.test, tests/pr300-ltlib.test,
1128         tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
1129         tests/pr87.test, tests/pr9.test, tests/prefix.test,
1130         tests/primary.test, tests/primary2.test, tests/proginst.test,
1131         tests/python.test, tests/python2.test, tests/ranlib.test,
1132         tests/recurs.test, tests/recurs2.test, tests/remake.test,
1133         tests/remake2.test, tests/remake3.test, tests/req.test,
1134         tests/required.test, tests/required2.test, tests/rulepat.test,
1135         tests/scripts.test, tests/seenc.test, tests/sinclude.test,
1136         tests/sourcesub.test, tests/sourcesub2.test, tests/space.test,
1137         tests/specflags.test, tests/specflags2.test,
1138         tests/specflags3.test, tests/specflags6.test,
1139         tests/specflags7.test, tests/specflags8.test,
1140         tests/specflags9.test, tests/spell.test, tests/spell2.test,
1141         tests/spell3.test, tests/spelling.test, tests/stamph.test,
1142         tests/stamph2.test, tests/stdlib.test, tests/strip.test,
1143         tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
1144         tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
1145         tests/subdir7.test, tests/subdirbuiltsources.test,
1146         tests/subdircond.test, tests/subdircond2.test,
1147         tests/subdircond3.test, tests/subobj.test, tests/subobj2.test,
1148         tests/subobj3.test, tests/subobj4.test, tests/subobj5.test,
1149         tests/subobj6.test, tests/subobj7.test, tests/subobj8.test,
1150         tests/subobj9.test, tests/subobjname.test, tests/subpkg.test,
1151         tests/subst.test, tests/substref.test, tests/substtarg.test,
1152         tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
1153         tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
1154         tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
1155         tests/suffix9.test, tests/symlink.test, tests/symlink2.test,
1156         tests/symlink3.test, tests/syntax.test, tests/tags.test,
1157         tests/tagsub.test, tests/target-cflags.test, tests/target.test,
1158         tests/texinfo.test, tests/texinfo10.test, tests/texinfo13.test,
1159         tests/texinfo16.test, tests/texinfo2.test, tests/texinfo3.test,
1160         tests/texinfo4.test, tests/texinfo5.test, tests/texinfo6.test,
1161         tests/texinfo7.test, tests/texinfo8.test, tests/texinfo9.test,
1162         tests/transform.test, tests/unused.test, tests/vars.test,
1163         tests/vars2.test, tests/vars3.test, tests/vartar.test,
1164         tests/version.test, tests/version2.test, tests/version3.test,
1165         tests/version4.test, tests/version5.test, tests/version6.test,
1166         tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
1167         tests/warnopts.test, tests/werror.test, tests/whoami.test,
1168         tests/xsource.test, tests/yacc.test, tests/yacc2.test,
1169         tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
1170         tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
1171         tests/yaccpp.test, tests/yaccvpath.test: Add copyright notice.
1172         Source ./defs instead of $srcdir/defs.
1173
1174 2002-09-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1175
1176         * lib/am/distdir.am (distcheck): Strip $(srcdir) prefix on
1177         distributed files, to workaround Sun make VPATH munging.
1178         This fixes subdircond2.test, subdircond3.test, and subpkg.test
1179         on Solaris.
1180         * tests/extra6.test, tests/lex3.test, tests/pr87.test,
1181         tests/pr9.test, tests/target-cflags.test, tests/texinfo13.test,
1182         tests/texinfo16.test, tests/yacc7.test, tests/yaccvpath.test:
1183         Don't require GNU make.
1184
1185         * lib/am/distdir.am (distcheck): Add missing `;'.
1186
1187         * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Account for
1188         Sun make rewriting rules in VPATH builds.  (Fixes gnits3.test.)
1189         * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Likewise.
1190
1191 2002-09-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
1192
1193         For automake/354:
1194         * lib/am/texibuild.am (%SOURCE_SUFFIX%.dvi, %SOURCE_SUFFIX%.pdf):
1195         Don't use `-o' unless necessary.
1196
1197 2002-08-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1198
1199         For PR automake/343:
1200         * automake.in (scan_texinfo_file) <clean_suffixes>: Remove dvi, ps,
1201         and pdf.
1202         (output_texinfo_build_rules): Define %DIRSTAMP% when processing
1203         texibuild.am.  Return $dirstamp and a list of files to clean.
1204         (handle_texinfo_helper): Process texi-vers.am after the call to
1205         output_texinfo_build_rules and use $dirstamp to define %DIRSTAMP%.
1206         * lib/am/texi-vers.am (%STAMPVTI%): Build %DIRSTAMP% if needed.
1207         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Likewise.
1208         (%DEST_PREFIX%.dvi, %DEST_PREFIX%.pdf): Depend on %DIRSTAMP%.
1209         * tests/texinfo13.test: New file.
1210         * tests/Makefile.am (TESTS): Add texinfo13.test.
1211         * lib/am/texinfos.am (install-info-am, dist-info): Looks for
1212         info files in build or source directory.
1213         This completes the change from 2002-07-30 (for PR automake/168).
1214
1215 2002-08-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1216
1217         * automake.in (CLEAN, MAINTAINER_CLEAN): New constants.
1218         (maintainer_clean_files): Replace by ...
1219         (clean_files): ... this new variable.
1220         (initialize_per_input, lang_yacc_target_hook,
1221         lang_lex_target_hook): Use %clean_files instead of
1222         @maintainer_clean_files.
1223         (handle_clean): Rewrite, using %clean_files.
1224         (require_build_directory_maybe): Use %clean_files instead
1225         of %compile_clean_files.  This allows using
1226         &require_build_directory_maybe for non-compiling targets.
1227         * lib/am/clean.am (mostlyclean-generic, clean-generic,
1228         distclean-generic, maintainer-clean-generic): Rewrite using
1229         %MOSTLYCLEAN_RMS%, %CLEAN_RMS%, %DISTCLEAN_RMS%, and
1230         %MAINTAINER_CLEAN_RMS%.
1231
1232         For Debian Bug#157778:
1233         * m4/python.m4: Fix output of `python' in checking messages
1234         when no version of Python is required.
1235
1236 2002-08-23  Raja R Harinath  <harinath@cs.umn.edu>
1237
1238         * lib/am/depend2.am (%EXT%.lo): Fix typo.  Rename the file that
1239         was generated by gcc -MF.
1240
1241 2002-08-23  Pavel Roskin  <proski@gnu.org>
1242
1243         * lib/am/progs.am: Exit in case of install failure, otherwise
1244         it is ignored on Cygwin because of the surrounding "for" loop.
1245
1246 2002-08-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
1247
1248         * automake.texi (Top level): More words about conditional
1249         subdirectories.  Don't mention AC_PROG_MAKE_SET.
1250         * tests/subdircond2.test, tests/subdircond3.test: New files.
1251         * tests/Makefile.am (TESTS): Add them.
1252
1253         For PR automake/347:
1254         * automake.in (MACRO_PATTERN): Allow `.' in variable names.
1255         (scan_variable_expansions, check_variable_expansions): New functions.
1256         (macro_define): Call check_variable_expansions.
1257         (read_am_file): Likewise, when outputing rules.
1258         (variable_conditions_recursive_sub): Simplify using
1259         scan_variable_expansions.
1260         * tests/vars3.test: New file.
1261         * tests/Makefile.am (TESTS): Add vars3.test.
1262         * tests/colneq.test: Use -Wno-portability.
1263
1264         * lib/Automake/Channels.pm (buffering, backlog): New variables.
1265         (buffer_messages, flush_messages): New functions.
1266         (@EXPORT): Add buffer_messages and flush_messages.
1267         * automake.in (generate_makefile): Call buffer_messages and
1268         flush_messages to buffer warnings until AUTOMAKE_OPTIONS has
1269         been read.
1270
1271         * automake.in (read_am_file): Fix computation of path to
1272         included file when $(top_srcdir) is not used.
1273         * tests/include2.test: Augment.
1274
1275 2002-08-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
1276
1277         * automake.in (set_strictness): Never enable 'portability'
1278         warnings for now.
1279         (usage): Adjust `-Wportability' doc.
1280         * automake.texi (Invoking Automake): Likewise.
1281         Suggested by Ralf Corsepius.
1282
1283 2002-08-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1284
1285         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Fix cleanup of
1286         so_location files in current directory.
1287
1288         Fix for PR automake/346:
1289         * automake.texi (Optional): Suppress the documentation for
1290         AC_PATH_XTRA, AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE, AC_FUNC_FNMATCH,
1291         AC_FUNC_GETLOADAVG, AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_OBSTACK,
1292         AC_FUNC_STRTOD, AC_REPLACE_FUNCS, AC_REPLACE_GNU_GETOPT,
1293         AC_STRUCT_ST_BLOCKS, AM_WITH_REGEX, AC_CHECK_TOOL, AC_CHECK_PROG,
1294         AC_CHECK_PROGS, AC_PATH_PROG, and AC_PATH_PROGS.  Augment the
1295         documentation of AC_LIBSOURCE and AC_SUBST to explain this
1296         applies to any macro that calls them.
1297
1298 2002-08-19  Tom Tromey  <tromey@redhat.com>
1299
1300         For PR automake/348:
1301         * tests/Makefile.am (TESTS): Added include2.test.
1302         * tests/include2.test: New file.
1303         * tests/include.test: Check to make sure include file is
1304         distributed.
1305         * automake.in (read_am_file): Distribute included files.
1306
1307 2002-08-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1308
1309         Fix for PR automake/345:
1310         * tests/defs: Add support for required=non-root, stolen
1311         from fileutils' test suite.
1312         * tests/destdir.test: Use required=non-root.
1313
1314         * tests/vtexi.test: Fix spurious failure introduced on 2002-07-30.
1315
1316 2002-08-17  Tom Tromey  <tromey@redhat.com>
1317
1318         For PR automake/347:
1319         * automake.in (rule_define): Given portability warning if "%" seen
1320         in target name.
1321         (TARGET_PATTERN): Added `%'.
1322         * tests/Makefile.am (TESTS): Added percent.test.
1323         * tests/percent.test: New file.
1324
1325 2002-08-15  Art Haas  <ahaas@neosoft.com>
1326
1327         * lib/am/depend2.am: Use correct name for dependency file in
1328         libtool fastdep case.
1329
1330 2002-08-14  Art Haas  <ahaas@neosoft.com>
1331
1332         * lib/am/depend2.am: Added missing `;'.
1333
1334 2002-08-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1335
1336         * automake.texi (Python): Fix wording.
1337
1338         * tests/ext2.test: New file.  This bug is present in Automake 1.6.3
1339         and was fixed by the change on variable_conditions_permutations
1340         and invert_conditions on 2002-05-16.
1341         * tests/Makefile.am (TESTS): Add ext2.test.
1342         Reported by Ladislav Strojil.
1343
1344 2002-08-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
1345
1346         * aclocal.in (parse_arguments): Add `dirlist' paths add the
1347         very end of the search path, after aclocal-APIVERSION/ and
1348         aclocal/.
1349         * automake.texi (Macro search path): Adjust to reflect the
1350         new ordering.
1351         * tests/dirlist.test: Check for this.
1352
1353 2002-07-31  Charles Wilson  <cwilson@ece.gatech.edu>
1354
1355         * aclocal.in (parse_arguments): Add support for extending
1356         default macro search path, using a `dirlist' file within
1357         the aclocal directory.
1358         * automake.texi (Invoking aclocal): Move option descriptions into ...
1359         (aclocal options): ... this new node.
1360         (Macro search path): New node.
1361         * tests/dirlist.test: New file.
1362         * tests/Makefile.am (TESTS): Add dirlist.test.
1363         * m4/dirlist: New file.
1364         * m4/Makefile.am (EXTRA_DIST): Add dirlist.
1365         * tests/defs: Honor any installed dirlist when searching for
1366         libtool.m4 and gettext.m4.
1367
1368 2002-07-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
1369
1370         Build info files in builddir instead of srcdir (for PR automake/168),
1371         and prepare support for info files in subdirecties.
1372         * automake.in (output_texinfo_build_rules): New function.
1373         (handle_texinfo_helper): Use output_texinfo_build_rules, and
1374         prepare to support subdir texinfos.  Define am__TEXINFO_TEX_DIR.
1375         * lib/am/texi-vers.am: Build version.texi and stamp-vti in the
1376         current directory, not $(srcdir).  Use %STAMPVTI% to name the stamp
1377         file.
1378         * lib/am/texibuild.am: Rewrite to output files in the current
1379         directory, not $(srcdir).  Also, support both generic and
1380         non-generic output.  Pass `-o $@' to makeinfo, texinfo, and
1381         texi2dvi (for PR automake/339).
1382         * tests/texinfo3.test: Make sure the `.texi:' rule is output.
1383         * tests/texinfo10.test: Use set -e, so the checks are not ignored.
1384         * tests/texinfo16.test: New file.
1385         * tests/Makefile.am (TESTS): Add texinfo16.test.
1386
1387 2002-07-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
1388
1389         * aclocal.in (write_aclocal): Don't write the filename ($output_file)
1390         in the aclocal.m4 header.
1391
1392         * configure.in: Require Autoconf 2.53b.
1393
1394 2002-07-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
1395
1396         * configure.in: Bump version to 1.6c.
1397
1398         * configure.in: Bump version to 1.6b.
1399         * lib/config.guess, lib/config.sub, lib/Automake/XFile.pm: New
1400         upstream versions.
1401         * automake.in: Don't write @ALLOCA@ and @LIBOBJS@ in clear text,
1402         since this file is processed by config.status.
1403
1404 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1405
1406         * automake.in (read_am_file): Escaped newlines in comments are not
1407         portable.  If a comment line doesn't start with a `#', add it.
1408         * tests/comment6.test: Ensure this is done.
1409
1410 2002-07-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1411
1412         Fix failures reported by Patrick Welche on NetBSD.
1413         * tests/gnits2.test, tests/gnits3.test: Don't trust the exit
1414         status of `make -k'.
1415         * tests/obsolete.test: Source obs.1 and obs.2 from current
1416         directory.
1417
1418 2002-07-23  Patrick Welche  <prlw1@newn.cam.ac.uk>
1419
1420         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
1421         configure.lineno.
1422
1423 2002-07-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
1424
1425         * tests/required2.test: New file.
1426         * tests/Makefile.am (TESTS): Add required2.test.
1427         * automake.in (initialize_per_input): Remove %require_file_found
1428         setting.  This reverts my change of 2002-04-19.
1429         (require_file_internal): Use the full name of a file as a
1430         key in %require_file_found, not only the basename.
1431         Reported by Andrew Suffield.
1432
1433 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
1434
1435         * automake.in (handle_subdirs): Warn if `obj' appears in SUBDIRS.
1436         * tests/subdir7.test: New file.
1437         * tests/Makefile.am (TESTS): Add subdir7.test.
1438
1439         * lib/mkinstalldirs: Remove Id keyword.
1440
1441         * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor
1442         AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
1443         * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise.
1444         * automake.texi (Options) <std-options>: Document
1445         AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
1446         (Gnits): Reference std-options.
1447         * tests/gnits3.test: New file.
1448         * tests/Makefile.am (TESTS): Add gnits3.test.
1449         Suggested by Jim Meyering.
1450
1451 2002-07-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
1452
1453         * tests/gnits2.test: Use --program-prefix.  Test for scripts too.
1454         Replace the sed script by calls to grep, easier to debug.
1455         * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor nobase
1456         and $(transform).
1457         * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise.
1458
1459         * lib/am/progs.am (install-%DIR%PROGRAMS, uninstall-%DIR%PROGRAMS):
1460         Always strip the directory part before applying $(transform),
1461         even for nobase_ targets.
1462         * lib/am/scripts.am (install-%DIR%SCRIPTS, uninstall-%DIR%SCRIPTS):
1463         Likewise.
1464         * tests/nobase.test: Use --program-prefix while testing nobase
1465         support.
1466
1467 2002-07-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1468
1469         * tests/dirname.test: Delete.  We don't define _AM_DIRNAME anymore.
1470         * tests/Makefile.am (TESTS): Remove dirname.test.
1471
1472         * m4/init.m4: Require Autoconf 2.53b.
1473         * m4/header.m4 (AM_CONFIG_HEADER): Redefine using AU_DEFUN.
1474         * m4/ccstdc.m4 (fp_PROG_CC_STDC): New AU_DEFUN.
1475         * m4/dmalloc.m4 (fp_WITH_DMALLOC): Likewise.
1476         * m4/lispdir.m4 (ud_PATH_LISPDIR): Likewise.
1477         * m4/maintainer.m4 (jm_MAINTAINER_MODE): Likewise.
1478         * m4/protos.m4 (fp_C_PROTOTYPES): Likewise.
1479         * m4/regex.m4 (fp_WITH_REGEX): Likewise.
1480         * m4/termios.m4: Delete.  AM_SYS_POSIX_TERMIOS is now AU_DEFUNed
1481         in m4/obsolete.m4.
1482         * m4/winsz.m4: Delete. AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL is now
1483         AU_DEFUNed in m4/obsolete.m4.
1484         * m4/obsol-gt.m4, m4/obsol-lt.m4, m4/obsolete.m4 : New files.
1485         * m4/Makefile.am (dist_m4data_DATA): Add obsol-gt.m4, obsol-lt.m4,
1486         and obsolete.m4. Remove termios.m4 and winsz.m4.
1487         * aclocal.in (obsolete, obsolete_rx): Remove.
1488         (scan_configure): Don't grep for obsolete macros.
1489         * tests/defs (AUTOUPDATE): Define.
1490         * Makefile.am (maintainer-check): Check for misuses of autoupdate.
1491         * tests/obsolete.test: Rewrite.  Exercize the AU_DEFUN macros from
1492         m4/obsolete.m4.
1493
1494         Fix for PR automake/338:
1495         * automake.in (seen_gettext_external): New variable.
1496         (handle_gettext): Conditionalize the intl/ check on
1497         $seen_gettext_external.  Fix grep usage.
1498         (scan_autoconf_traces): Set $seen_gettext_external if
1499         `external' is passed to AM_GNU_GETTEXT.
1500         * tests/gettext.test, tests/gettext2.test: New files.
1501         * tests/Makefile.am (TESTS): Add gettext.test and gettext2.test.
1502
1503 2002-07-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
1504             Akim Demaille  <akim@epita.fr>
1505
1506         * m4/header.m4 (_AM_DIRNAME, _AM_STAMP, _AM_CONFIG_HEADER,
1507         _AM_CONFIG_HEADER_INSINUATE): Remove them all.  Leave just ...
1508         (AM_CONFIG_HEADER): ... this new definition for compatibility.
1509         * m4/init.m4: Don't call _AM_CONFIG_HEADER_INSINUATE.
1510         (_AC_AM_CONFIG_HEADER_HOOK): New macro.
1511         * tests/confh5.tests: Delete.
1512         * tests/Makefile.am (TESTS): Remove confh5.tests.
1513
1514 2002-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1515
1516         * automake.in (handle_single_transform_list): Typo.
1517
1518         * lib/Automake/Channels.pm (dup_channel_setup,
1519         drop_channel_setup): New functions.
1520         (@EXPORT): Add them.
1521         * automake.in (generate_makefile): Call dup_channel_setup and
1522         drop_channel_setup.
1523         (process_option_list): Recognize --warnings and -W options.
1524         * automake.texi (Options): Document them.
1525         * tests/pluseq5.test: Check that -Wno-obsolete will disable the
1526         warning.
1527         * tests/warnopts.test: New file.
1528         * tests/Makefile.am (TESTS): Add warnopts.test.
1529
1530 2002-07-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
1531
1532         * automake.in: Register warning channel `gnu'.
1533         (set_strictness): Turn on `gnu' in --gnu and --gnits.
1534         (usage): Mention the `gnu' category.
1535         (%var_is_am): Replace by ...
1536         (%var_owner): ... this, which uses ...
1537         (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE): ... these new constants.
1538         Adjust all uses of %var_is_am.
1539         (handle_languages): Warn about user variables being overriden.
1540         (require_variables): Also check %configure_vars for the existence
1541         of a required variable.
1542         * automake.texi (Invoking Automake): Document -Wgnu.
1543         * tests/yacc2.test, tests/yacc3.test: Use -Wno-gnu when
1544         we test YFLAGS.
1545         * tests/gnuwarn.test: New file.
1546         * tests/Makefile.am (TESTS): Add gnuwarn.test.
1547
1548 2002-07-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
1549
1550         Fix for PR automake/337:
1551         * automake.in: Redefine the `flags' attribute of each language
1552         as a list.  List CPPFLAGS in `flags' when it is used.
1553         (register_language): Set the default value of 'flags'.
1554         (handle_single_transform_list): Adjust to treat `flags' as a list.
1555         (handle_languages): Likewise.  Don't bother defining the
1556         configure variable for `c', this is always done since we trace
1557         configure.ac.
1558         * automake.texi (etags): Use per-executable _CPPFLAGS.
1559         (Program and Library Variables): Mention maude_CPPFLAGS.
1560         (Program variables): Likewise.
1561         * tests/specflags8.test: Use _CPPFLAGS instead of _CFLAGS.
1562         * tests/specflags9.test: New file.
1563         * tests/Makefile.am (TESTS): Add specflag9.test.
1564
1565 2002-07-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1566
1567         * automake.texi: Use `variable' instead of `macro' everywhere it
1568         designates a Makefile variable.
1569         (Texinfo): `VERSION', `UPDATED', `EDITION', and `UPDATED-MONTH' are
1570         `flags', not `macros'.  `Macro' means something else in Texinfo.
1571         Also show how to use these flags.
1572         * automake.in (file_contents_internal): s/macro/variable/ in
1573         error message.
1574
1575         * automake.in (parse_arguments): Call Getopt twice: once to catch
1576         --help or --verbose, and once to process the other arguments.
1577         (usage, verbose): Always exit 0, ignoring $exit_code (which anyway
1578         should always be 0 because of the change to parse_arguments).
1579         * tests/Makefile.am (TESTS): Add getopt.test.
1580         * tests/getopt.test: New file.
1581
1582 2002-07-09  Tom Tromey  <tromey@redhat.com>
1583
1584         For PR automake/286:
1585         * automake.texi (Tags): Document ctags.
1586         * automake.in (handle_tags): Handle ctags.
1587         * lib/am/tags.am (CTAGS): New macro.
1588         (CTAGSFLAGS): Likewise.
1589         (ctags): New target.
1590         (distclean-tags): Remove `tags'.
1591
1592         * lib/am/depend2.am: Reworked syntax to avoid parsing problem.
1593
1594         * lib/am/depend2.am: Search in srcdir and builddir for %SOURCE%
1595         before passing to cygpath.  Partial fix for PR automake/334.
1596
1597 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1598
1599         * automake.in (generate_makefile): Suggest using AM_CPPFLAGS
1600         instead of INCLUDES.
1601         * tests/pluseq5.test: Check that AM_CPPFLAGS is suggested.
1602
1603 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1604
1605         * automake.in (usage, version): Honor $exit_code.
1606         (parse_arguments): Use fatal.
1607
1608 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1609
1610         * automake.texi (Invoking Automake): Document WARNINGS.
1611         * automake.in (switch_warning, parse_WARNINGS): New function.
1612         (setup_warnings): Rename to ...
1613         (parse_warnings): ... this.  Move most of the code to switch_warning.
1614         Accept a comma separated list of categories.
1615         * tests/vars2.test: Use a comma separated list of warning categories.
1616
1617 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1618
1619         * NEWS (New in 1.6): Mention that libtoolize is no longer run
1620         by automake.
1621
1622 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1623
1624         Fix for PR automake/291:
1625         * automake.in (macro_define): Catch variable names starting
1626         with `_'.
1627         (handle_installdirs): Rename _am_installdirs to am__installdirs.
1628         * lib/am/data.am, lib/am/install.am, lib/am/libs.am,
1629         lib/am/lisp.am, lib/am/ltlibs.am, lib/am/mans.am,
1630         lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
1631         lib/am/texinfos.am: Likewise.
1632         * tests/canon5.test: Use -Wno-portability.
1633         * tests/vars2.test: New file.
1634         * tests/Makefile.am (TESTS): Add vars2.test.
1635
1636 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1637
1638         * tests/defs (AUTOMAKE): Add -Wall.
1639         * tests/outdir.test: Use -Wno-obsolete.
1640
1641 2002-07-07  Tom Tromey  <tromey@redhat.com>
1642
1643         * m4/depend.m4 (_AM_DEPENDENCIES): Compute am__fastdep<compiler>
1644         conditional.
1645         * automake.in (handle_languages): Compute FASTDEP.
1646         * lib/am/depend2.am: Added %FASTDEP% mode.
1647
1648 2002-07-07  Tom Tromey  <tromey@redhat.com>
1649
1650         * automake.texi (Optional): AM_MAINTAINER_MODE is ok in Gnits mode
1651         now.  Fixes PR automake/332.
1652
1653 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1654
1655         * tests/nobase.test (test-install-exec): Move all the `test -f'
1656         tests in the Makefile so we can use $(EXEEXT) on programs.
1657         Reported by Charles Wilson.
1658
1659 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1660
1661         * m4/header.m4 (AM_CONFIG_HEADER): New macro.
1662         * tests/confh5.test: Make sure that Autoconf complains if
1663         AM_CONFIG_HEADER or AC_CONFIG_HEADERS is called before
1664         AM_INIT_AUTOMAKE.
1665
1666 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1667
1668         * lib/Automake/Channels.pm: New file.
1669         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Channels.pm.
1670         * automake.in: Use Automake::Channels and register some channels
1671         for errors and warnings.
1672         ($exit_status): Remove, replaced by Channels::$exit_code.
1673         (%required_variables): Remove, Channels will filter-out duplicates
1674         itself.
1675         (initialize_per_input): Call reset_local_duplicates.
1676         (prog_error): Adjust to all `msg'.
1677         (setup_warnings): New functions.
1678         (parse_arguments): Accept -W CATEGORY and --warnings=CATEGORY,
1679         call setup_warnings.
1680         (usage): Update usage text accordingly.
1681         (macro_dump, macros_dump): Return the dump as a string instead
1682         of printing it.
1683         (am_install_var) <$warned_about_extra>: Remove, Channels will
1684         filter-out duplicates itself.
1685         (set_strictness): Turn on/off channels for each stricness.
1686         (err, fatal, err_var, err_target, err_am, err_ac, msg_var,
1687         msg_target, msg_am, msg_ac, reject_var, reject_target, verb):
1688         New functions, to replace ...
1689         (print_error, am_error, file_error, macro_error, target_error,
1690         conf_error, file_warning): ... these functions.  Remove them.
1691         Update all the code to use the new functions.  The rough
1692         correspondance is
1693            am_error                -> err_am
1694            file_error              -> err
1695            macro_error             -> err_var
1696            target_error            -> err_target
1697            conf_error              -> err_ac
1698            die                     -> fatal
1699            macro_error if defined  -> reject_var
1700            target_error if defined -> reject_target
1701            verbose                 -> verb
1702         * automake.texi (Invoking Automake): Document -W and --warnings.
1703         Remove the documentation for --Werror and --Wno-error.
1704         * tests/defs: Use -Werror, not --Werror.
1705         * tests/exeext2.test: Test that the error message
1706         is enabled with -Wobsolete.
1707         * tests/output5.test: Rewrite to test that Automake complains
1708         when there is no Makefile specified. (The original test was
1709         succeeding for the wrong reason.)
1710         * tests/seenc.test: Don't use --Wno-error, there is no reason now
1711         that -Werror doesn't stop after the first error.
1712         * tests/subobj.test: Use --add-missing, and check that
1713         `compile' is installed and that Automake says so.
1714         * tests/subobj2.test: Don't create `compile'.
1715
1716 2002-07-05  Tom Tromey  <tromey@redhat.com>
1717
1718         * automake.texi (Java Support): Mention --main and _LDFLAGS.
1719         For PR automake/324.
1720
1721 2002-07-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
1722
1723         * tests/asm.test: Erase Autom4te's cache between each test.
1724
1725 2002-07-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
1726
1727         * automake.in (am_macro_for_var): Add LIBTOOL.
1728         (ac_macro_for_var): Add RANLIB.
1729         (seen_libtool): Remove.
1730         (handle_libtool, lang_c_finish, define_compiler_variable,
1731         make_paragraphs): Use
1732         variable_defined ('LIBTOOL') instead of $seen_libtool.
1733         (handle_languages) <%transform>: Don't set 'LIBTOOL', it is
1734         already done in make_paragraphs.
1735         (handle_libraries): Simplify by requiring RANLIB with
1736         &require_variables_for_macro.
1737         (handle_ltlibraries): Simplify by requiring LIBTOOL with
1738         &require_variables_for_macro.
1739         (scan_autoconf_traces): Don't trace for AC_PROG_LIBTOOL and
1740         AM_PROG_LIBTOOL.
1741         * tests/libtool4.test, tests/library2.test: New files.
1742         * tests/Makefile.in (TESTS): Add libtool4.test and library2.test.
1743
1744 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1745
1746         * automake.in (create, keyed_aclocal_warning): Delete, unused.
1747
1748 2002-07-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
1749
1750         * automake.in (ac_macro_for_var): Add YACC.
1751
1752 2002-07-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
1753
1754         Handle multiple suffix rules with the same input extension.
1755         For PR automake/37.
1756
1757         * automake.in (suffix_rules_default): New variable.
1758         (suffix_rules): Redefine as a hash of hashes of pairs.
1759         (initialize_per_input): Setup suffix_rules_default from
1760         suffix_rules on first call, an override suffix_rules
1761         with suffix_rules_default on following calls.
1762         (struct) <output_extensions>: New attribute.
1763         (register_language): Set the default for output_extensions.
1764         Call register_suffix_rule for each suffix.
1765         (derive_suffix, handle_languages): Adjust to the new definition
1766         of $suffix.
1767         (register_suffix_rule): New function.
1768         (rule_define): Call register_suffix_rule.
1769         * tests/suffix8.test, tests/suffix9.test, tests/suffix10.test:
1770         New files.
1771         * tests/Makefile.am (TESTS): Add them.
1772
1773 2002-06-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
1774
1775         * automake.in (am_macro_for_var, ac_macro_for_var,
1776         required_variables): New variables.
1777         (am_c_prototypes, seen_prog_lex, am_lispdir_location,
1778         pythondir_location): Remove.
1779         (initialize_per_input): Clear %required_variables.
1780         (require_variables, require_variables_for_macro): New functions.
1781         (handle_languages): Call &require_variables for $lang->config_vars.
1782         (handle_compile): Call &require_variables_for_macro for the
1783         ANSI2KNR and U variables.
1784         (handle_emacs_lisp): Call &require_variables for EMACS and libdir.
1785         (handle_python): Call &require_variables for PYTHON.  Don't
1786         explicitly allow `python' as a prefix for PYTHON.
1787         (scan_autoconf_traces): Don't scan AC_PROG_LEX, AM_C_PROTOTYPES,
1788         AM_PATH_LISPDIR, and AM_PATH_PYTHON.
1789         (scan_autoconf_traces) <AC_SUBST>: Don't filter out ANSI2KNR and
1790         AMDEPBACKSLASH here...
1791         (define_configure_variable): ... do this here.
1792         (am_primary_prefixes): Probe the existence of ${X}dir using
1793         &require_variables_for_macro.  If a standard prefix is not
1794         legitimate, say so.  Ignore all configure variables.
1795         * tests/ansi8.test, tests/cxx2.test, tests/gcj5.test,
1796         tests/lisp2.test, tests/python2.test: New files
1797         * tests/Makefile.am (TESTS): Add them.
1798         * tests/asm.test: Grep stderr.
1799         * tests/lex2.test: Rewrite to test that Automake suggests AM_PROG_LEX.
1800         * tests/python.test: Make sure py-compile is installed.
1801
1802 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
1803
1804         * automake.in (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR,
1805         COMPILE_LIBTOOL, COMPILE_ORDINARY): Redefine as constants.
1806         Adjust all occurrences.
1807
1808 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
1809
1810         * aclocal.in: Add local variables so that Emacs setups GNU style
1811         for perl-mode and cperl-mode.
1812         * automake.in: Likewise.
1813         (WHITE_PATTERN, RULE_PATTERN, SUFFIX_RULE_PATTERN, MACRO_PATTERN,
1814         ASSIGNMENT_PATTERN, IF_PATTERN, ELSE_PATTERN, ENDIF_PATTERN,
1815         INCLUDE_PATTERN, EXEC_DIR_PATTERN): Write $ as "\$" to please
1816         perl-mode.
1817
1818 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
1819
1820         * Makefile.am (fetch): Fetch install-sh from Autoconf CVS.
1821         * lib/config.sub, lib/install-sh: New upstream versions.
1822
1823 2002-06-26  Paul Eggert  <eggert@twinsun.com>
1824
1825         * Makefile.am (maintainer-check): Don't assume that egrep exists;
1826         this fixes a portability bug introduced in the 2002-06-08 fix for
1827         PR automake/317.
1828
1829 2002-06-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1830
1831         * automake.in (required_targets): Add ps and ps-am.
1832         (initialize_per_input): Reset them.
1833         (handle_texinfo_helper): Fill @pss_list, and define the
1834         PSS make variable.
1835         * lib/am/texinfos.am (RECURSIVE_TARGETS): Add ps-recursive.
1836         (ps, ps-am): New targets.
1837         * automake.texi (Auxiliary Programs) <texinfo.tex>: Mention
1838         `make ps' and `make pdf'.
1839         (Texinfo): Document `make ps', `make pdf', and `make dvi'.
1840         (Extending): The `ps' and `pdf' targets support a `-local' version.
1841
1842 2002-06-26  Art Haas  <ahaas@neosoft.com>
1843
1844         * automake.texi: s/.../@dots{}/.
1845
1846 2002-06-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1847
1848         * configure.in: Check that ln works, fall back to `cp -p'.
1849         * Makefile.am (install-exec-hook): Use $(LN) instead of ln.
1850         Reported by Andreas Buening.
1851
1852 2002-06-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1853
1854         * automake.in: Register &lang_lex_target_hook for lex and lexxx.
1855         (lang_lex_target_hook): New function.
1856         * tests/lex3.c: Complete to check that maintainer-clean erases
1857         Lex's output.
1858         Reported by Flavien Astraud.  This was lost on 2001-06-23 too.
1859
1860 2002-06-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1861
1862         * automake.in (lang_yacc_target_hook): Add $output to
1863         @maintainer_clean_files.  This was lost on 2001-06-23.
1864         * tests/yacc7.test, tests/yacc4.test: Complete to check
1865         that maintainer-clean erases YACC's output files,
1866         respectively with and without `-d'.
1867         Reported by Flavien Astraud.
1868
1869 2002-06-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1870
1871         * lib/am/lang-compile.am (%FPFX%DEPMODE): Delete.  This is now
1872         traced from configure.ac.
1873
1874         * automake.in (macro_define): Don't accept to override an AC_SUBST
1875         or Automake variable in a new condition.
1876         * tests/cond23.test, tests/cond24.test: New file.
1877         * tests/Makefile.am (TESTS): Add cond23.test and cond24.test.
1878         Reported by Patrik Weiskirchre.
1879
1880 2002-06-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1881
1882         * tests/nobase.test, tests/pr204.test, tests/pr300-lib.test,
1883         tests/pr300-ltlib.test, tests/pr300-prog.test,
1884         tests/specflags7.test, tests/specflags8.test, tests/subdir5.test,
1885         tests/subobj6.test, tests/subpkg.test, tests/transform.test:
1886         Require gcc.
1887
1888 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
1889
1890         * tests/libtool2.test: Use required=libtoolize.
1891         * tests/install2.test: Use required=gzip.
1892
1893 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
1894
1895         * tests/defs (required): Handle bison; set YACC automatically.
1896         * tests/pr204.test, tests/yacc4.test, tests/yacc8.test,
1897         tests/yaccvpath.test: Require bison.  Don't set YACC.
1898
1899 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
1900
1901         * tests/defs (required): Handle `gcc' and `g++'; automatically
1902         export CC and CXX when they are required.
1903         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
1904         tests/cond4.test, tests/cond16.test, tests/cond18.test,
1905         tests/cond19.test, tests/depcomp2.test, tests/depend2.test,
1906         tests/lex3.test, tests/pr87.test, tests/pr220.test,
1907         tests/substref.test, tests/target-cflags.test, tests/yacc4.test,
1908         tests/yaccvpath.test: Require gcc.  Don't pass CC=gcc to
1909         configure.
1910         * tests/subobj9.test: Require g++.
1911
1912 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
1913
1914         * tests/defs (required): Handle `GNUmake'.
1915         (needs_gnu_make): Don't define anymore.
1916         * tests/cond4.test, tests/cond18.test, tests/cond19.test,
1917         tests/dollar.test, tests/exsource.test, tests/extra6.test,
1918         tests/lex3.test, tests/make.test, tests/pr9.test, tests/pr87.test,
1919         tests/subdir5.test, tests/target-cflags.test, tests/yacc7.test,
1920         tests/yaccvpath.test: Use `required=GNUmake' instead of
1921         `$needs_gnu_make'.
1922
1923 2002-06-17  Paolo Bonzini  <bonzini@gnu.org>
1924
1925         * automake.in (process_option_list): Recognize std-options.
1926         (handle_options): Enable std-options in gnits strictness.
1927         (am_install_var): If std-options, enable CK-OPTS section.
1928         * lib/am/scripts.am (installcheck-am): New target.
1929         * lib/am/progs.am (installcheck-am): New target.
1930         * tests/gnits2.test: New file.
1931         * tests/Makefile.am (TESTS): Add gnits2.test.
1932         * automake.texi (Gnits, Options): Document std-options.
1933
1934 2002-06-17  Kevin Ryde  <user42@zip.com.au>
1935
1936         * automake.in (scan_texinfo_file): Add tmp to @clean_suffixes,
1937         as generated by recent texinfo.tex.
1938
1939 2002-06-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
1940
1941         * m4/header.m4 (AM_CONFIG_HEADER): Rename to ...
1942         (_AM_CONFIG_HEADERS): ... this.
1943         (_AM_CONFIG_HEADER_INSINUATE): Define AC_CONFIG_HEADERS to
1944         call _AM_CONFIG_HEADERS; and AM_CONFIG_HEADER to call
1945         AC_CONFIG_HEADERS.
1946         * automake.in (scan_autoconf_traces): Trace AC_CONFIG_HEADERS
1947         instead of AM_CONFIG_HEADER.
1948         * tests/autoheader2.test: New file.
1949         * tests/Makefile.am (TESTS): Add autoheader2.test.
1950         Suggested by Raja R Harinath.
1951
1952 2002-06-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1953
1954         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): Use m4_copy instead
1955         of m4_rename so that AC_CONFIG_HEADER is never undefined and
1956         therefore still traced after the redefinition.
1957         * tests/defs (AUTOHEADER): Define.
1958         * tests/autoheader.test: New file.
1959         * tests/Makefile.am (TESTS): Add autoheader.test.
1960         Reported by Braden McDaniel.
1961
1962 2002-06-13  Paolo Bonzini  <bonzini@gnu.org>
1963
1964         * automake.in (check_gnu_standards): In --gnu mode, accept
1965         one of COPTING, COPYING.LESSER, or COPYING.LIB.
1966         (common_files): Add COPYING.LESSER.
1967         * automake.texi (Gnits): Document this.
1968
1969 2002-06-13  Paolo Bonzini  <bonzini@gnu.org>
1970
1971         * automake.in (required_targets): Add the pdf and pdf-am targets.
1972         (initialize_per_input): Likewise.
1973         (scan_texinfo_file): Add pdf to @clean_suffixes.
1974         (handle_texinfo_helper): Output the .pdf dependencies, and define
1975         the PDFS variable.
1976         * lib/am/texinfos.am (TEXI2PDF): New variable.
1977         (pdf, pdf-am): New targets.
1978         (.PHONY): Add pdf, pdf-am, and pdf-recursive.
1979         * lib/am/texibuild.am (.%SUFFIX%.pdf): New rule.
1980
1981 2002-06-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1982
1983         Fix pr307.test failure with gcc 3.x.
1984         * lib/depcomp (dashmstdout): Strip the call to libtool, and
1985         replace `-o $object' by `-o /dev/null' before running "$@"
1986         to generate dependencies.
1987         (cpp): Strip the call to libtool as well as `-o $object'.
1988
1989 2002-06-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
1990
1991         * lib/depcomp (tru64): Expect dependency files in .libs/, maybe as
1992         $base.lo.d, when libtool is used.
1993         Reported by Nicolas Joly.
1994
1995 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
1996
1997         * lib/am/java.am (class%DIR%.stamp): Don't run $(JAVAC) when there
1998         is no file to compile.
1999         * tests/java2.test: New file.
2000         * tests/Makefile.am (TESTS): Add java2.test.
2001         Reported by Braden N. McDaniel.
2002
2003 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
2004
2005         * tests/maintclean.test: Don't check for autom4te.cache if
2006         it's not created by Autoconf.
2007         Reported by Bernd Jendrissek.
2008
2009 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
2010
2011         * automake.texi (Tests): Document site.exp.  Update DejaGnu's url.
2012
2013 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2014
2015         * lib/am/header-vars.am (transform): Define.
2016         Was removed by mistake on 2002-04-13.
2017         * tests/transform.test: New file.
2018         * tests/Makefile.am (TESTS): Add transform.test.
2019         Reported by Nicolas Joly.
2020
2021 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2022
2023         * tests/dollar.test: Require GNU make.
2024         * tests/maintclean.test: Don't use `export YACC=false'.  Pass
2025         YACC=false to configure instead.
2026
2027 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2028
2029         * lib/config.guess, lib/config.sub, lib/texinfo.tex, lib/INSTALL,
2030         INSTALL: New upstream versions.
2031
2032 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2033
2034         * tests/sinclude.test: Check for m4_include too.
2035
2036 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2037
2038         * tests/sinclude.test: Rename the package as amsinclude;
2039         am__sinclude still trigers the sinclude macro once it has been
2040         converted to am--sinclude.
2041         Reported by Nicolas Joly.
2042
2043 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2044
2045         * automake.texi (API versioning): Typo.
2046
2047 2002-06-10  Nicolas Joly  <njoly@pasteur.fr>
2048
2049         * THANKS (Nicolas Joly): Remove duplicate.
2050
2051 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2052
2053         * Makefile.am (maintainer-check): Fix $MAKE -e detection.
2054         * tests/yacc7.test: Use rm -f.
2055
2056 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2057
2058         * tests/defs (ACLOCAL, AUTOMAKE): Use absolute paths.
2059         * tests/subpkg.test: New file.
2060         * tests/Makefile.am (TESTS): Add subpkg.test.
2061
2062 2002-06-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
2063
2064         For PR automake/318:
2065         * tests/nobase.test: Rewrite to test _HEADERS, _DATA, _SCRIPTS,
2066         _PROGRAMS, _LIBRARIES, and _LTLIBRARIES.
2067         * lib/am/scripts.am (install-%DIR%SCRIPTS,
2068         uninstall-%DIR%SCRIPTS): Honor nobase_; strip the directory by
2069         default.
2070         (?%DIR%SCRIPT_INSTALL): New variable.
2071         * lib/am/header-vars.am (install_sh_SCRIPT): New variable.
2072         Reported by Eric Siegerman.
2073
2074 2002-06-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
2075
2076         * automake.in (lang_yacc_target_hook): Add rule to recover from
2077         the removal of $header.
2078         * lib/am/yacc.am (%BASE%.h): Remove (duplicate with the one
2079         output by lang_yacc_target_hook).
2080         * tests/yacc7.test: Try to recreate foo.h after its removal.
2081         * tests/yacc8.test: Add `AM_YFLAGS = -d' and try to recreate
2082         parse.h too.
2083         Reported by Bernd Jendrissek.
2084
2085 2002-06-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
2086
2087         For PR automake/317:
2088         * Makefile.am (maintainer-check): Disallow `for f in $(FILES)',
2089         suggest `list='$(FILES)'; for f in $$list' instead.
2090         * lib/am/distdir.am (distdir): Adjust `for' usage.
2091         * lib/am/texinfos.am (maintainer-clean-aminfo): Likewise.
2092         * tests/dollar.test: New file.
2093         * tests/Makefile.am (TESTS): Add dollar.test.
2094         Reported by Eric Siegerman and Philip Fong.
2095
2096 2002-06-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
2097
2098         For PR automake/47 (fixed a long time ago):
2099         * tests/yacc7.test: Also check that parser sources are distributed.
2100
2101 2002-06-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
2102
2103         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable.
2104         (distclean): Use it.
2105         (maintainer-clean): Delete autom4te.cache and
2106         $(am__CONFIG_DISTCLEAN_FILES).
2107         * tests/maintclean.test: New file.
2108         * tests/Makefile.am (TESTS): Add maintclean.test.
2109
2110 2002-06-05  Miloslav Trmac  <trmac@popelka.ms.mff.cuni.cz>
2111
2112         * lib/am/dejagnu.am (site.exp): Quote build_alias, host_alias, and
2113         target_alias.
2114
2115 2002-05-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
2116
2117         * Makefile.am (maintainer-check): Check for egrep and fgrep.
2118
2119         * test/cond22.test: Set SHELL when calling $MAKE -e.
2120
2121 2002-05-31  Richard Boulton <richard@tartarus.org>
2122
2123         Fix PR automake/326:
2124         * automake.in (define_objects_from_sources): Calculate the result in
2125         all conditions before passing this to subobjname to pick a name to
2126         store the result in.
2127         (subobjname): Expect a list of condition/value pairs as input.
2128         Combine this list and use it as the key to determine the variable name.
2129         * test/cond22.test: New file.
2130         * tests/Makefile.am (TESTS): Add cond22.test
2131
2132 2002-05-30  Paul Eggert  <eggert@twinsun.com>
2133
2134         * lib/am/distdir.am (distdir): Don't assume that 'grep -F' works;
2135         instead, use shell pattern matching.
2136
2137 2002-05-29  Paul Eggert  <eggert@twinsun.com>
2138
2139         Don't assume that egrep and fgrep exist, as POSIX 1003.1-2001 no
2140         longer requires them.
2141
2142         * Makefile.am (maintainer-check): Use grep -E and grep -F instead
2143         of egrep and fgrep.  Omit unnecessary -E and -F.
2144         Fix quoting typo -- "fgrep '\$${'" should have been "fgrep '$${'".
2145         * lib/am/distdir.am (distdir): fgrep -> grep -F.
2146         Use $(), not ${}, for Make variables.
2147         * lib/am/texinfos.am (install-info-am, uninstall-info-am):
2148         fgrep -> grep
2149         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
2150         * tests/defs: Set FGREP and EGREP.
2151
2152         * tests/aclocali.test, tests/acoutput2.test, tests/all.test,
2153         tests/ansi.test, tests/ansi4.test, tests/colon3.test,
2154         tests/cond21.test, tests/condlib.test, tests/confh4.test,
2155         tests/confsub.test, tests/cxxansi.test, tests/cxxo.test,
2156         tests/depend4.test, tests/discover.test, tests/distname.test,
2157         tests/dup3.test, tests/empty4.test, tests/fo.test,
2158         tests/implicit.test, tests/insh2.test, tests/interp.test,
2159         tests/lex.test, tests/lex3.test, tests/lex4.test,
2160         tests/libobj5.test, tests/libobj7.test, tests/make.test,
2161         tests/makevars.test, tests/nostdinc.test, tests/parse.test,
2162         tests/pluseq.test, tests/pluseq4.test, tests/pluseq6.test,
2163         tests/pr2.test, tests/pr9.test, tests/seenc.test,
2164         tests/specflags.test, tests/specflags3.test,
2165         tests/specflags6.test, tests/subobj.test, tests/subobj2.test,
2166         tests/suffix3.test, tests/texinfo.test, tests/texinfo6.test,
2167         tests/texinfo8.test, tests/vtexi.test, tests/yacc3.test,
2168         tests/yacc6.test: fgrep -> $FGREP, egrep -> $EGREP
2169
2170 2002-05-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
2171
2172         For PR automake/323:
2173         * m4/depend.m4: Missing comma.
2174         * tests/gcj4.test: New file.
2175         * tests/Makefile.am (TESTS): Add gcj4.test.
2176         Reported by David Pashley.
2177
2178 2002-05-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
2179
2180         * tests/defs (configure.in): Don't double-quote $me.
2181         * tests/sinclude.test: Overwrite configure.in and use
2182         `am__sinclude' instead of `sinclude' as package name.
2183         Exercise `m4_sinclude' instead of `sinclude'.
2184
2185 2002-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
2186
2187         * automake.in (conditional_implies_one_of): Rename as ...
2188         (conditional_implies_any): ... this.
2189         * tests/pluseq9.test: Exercise another case with the new
2190         `C' variable.
2191         Suggested by Raja R Harinath.
2192
2193 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2194
2195         * tests/defs (configure.in): Quote macro arguments.
2196         Reported by Nicolas Joly.
2197
2198 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2199
2200         * lib/am/header-vars.am (build_triplet, host_triplet,
2201         target_triplet): Define.  Were removed by mistake on 2002-04-13.
2202
2203 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2204
2205         For PR automake/186:
2206         * lib/am/distdir.am (distcheck): Attempt a DESTDIR install.
2207         * tests/destdir.test: New file.
2208         * tests/Makefile.am (TESTS): Add destdir.test.
2209
2210 2002-05-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
2211
2212         * automake.in (conditional_true_when): Return false if $WHEN == FALSE.
2213         (conditional_is_redundant): Simplify.
2214         (conditional_implies_one_of,
2215         variable_not_always_defined_in_cond): New functions
2216         (macro_define): Reject appends if the variable is not defined in
2217         all conditions where `+=' applies.
2218         (invert_conditions): Rewrite.  Before this patch,
2219         invert_conditions("A_TRUE B_TRUE", "A_TRUE B_FALSE", "A_FALSE")
2220         would return ("A_FALSE B_TRUE", "A_FALSE B_TRUE"), which seems
2221         wrong (these conditions implies "A_FALSE").  Now it outputs (),
2222         which just means the input conditions cover all cases.
2223         (variable_conditions_permutations): Never output FALSE conditions.
2224         * tests/pluseq2.test, tests/pluseq3.test: Define data_DATA
2225         in the CHECK_FALSE condition to fix the test.
2226         * tests/pluseq5.test: Actually check the diagnostic.
2227         * tests/pluseq9.test: New file.
2228         * tests/Makefile.am (TESTS): Add pluseq9.test.
2229
2230 2002-05-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
2231
2232         Fix for PR automake/322:
2233         * automake.in (read_am_file): Rename $was_rule as $prev_state, and
2234         set it with IN_RULE_DEF, IN_VAR_DEF, or IN_COMMENT as appropriate.
2235         Handle comments continued by backslashes.
2236         * tests/comment6.test: New file.
2237         * tests/Makefile.am (TESTS): Add comment6.test.
2238         Reported by Braden N. McDaniel.
2239
2240 2002-05-08  Charles Wilson  <cwilson@ece.gatech.edu>
2241             Alexandre Duret-Lutz  <duret_g@epita.fr>
2242
2243         * lib/am/progs.am (clean-%DIR%PROGRAMS): If Libtool is used, clean
2244         both `program$(EXEEXT)' and `program'; needed under Cygwin.
2245         * tests/libtool3.test: New file.
2246         * tests/Makefile.am (TESTS): Add libtool3.test.
2247
2248 2002-05-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
2249
2250         * TODO: Undust.
2251
2252 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
2253
2254         * Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.
2255
2256 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
2257
2258         Erase stamps from the Makefile that generates them.
2259
2260         * automake.in (handle_configure): Append each used stamp to
2261         @distclean_config.  Don't warn about stamp-h in AC_OUTPUT, this
2262         file is not used anymore.
2263         * lib/am/clean.am (distclean-generic): Don't erase stamp-h and
2264         stamp-h[0-9]*.
2265         * tests/subdir6.test: New file.
2266         * tests/Makefile.am (TESTS): Add it.
2267
2268 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
2269
2270         Fix for condd.test (conditional `+='):
2271         * automake.in (%appendvar): New.
2272         (initialize_per_input): Clear it.
2273         (macro_define): Handle += for variable defined in another condition.
2274         * automake.texi (Conditional Sources): Use conditional += in
2275         the example.
2276         (General Operation, Conditionals): Remove note about broken +=.
2277         * tests/cond21.test: New file.
2278         * tests/condd.test: Also test conditional append to a _SOURCE
2279         variable.  Create missing directories.
2280         * tests/Makefile.am (TESTS): Add cond21.test.
2281         (XFAILS): Remove condd.test.
2282
2283 2002-05-05  Tom Tromey  <tromey@redhat.com>
2284
2285         * automake.texi (Program and Library Variables): Mention _LFLAGS.
2286
2287 2002-04-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
2288
2289         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
2290         files.  Fix subobj9.test on OSF and IRIX.
2291         Reported by Nelson H. F. Beebe.
2292
2293 2002-04-26  Tom Tromey  <tromey@redhat.com>
2294
2295         * lib/am/dejagnu.am (distclean-DEJAGNU): New target.
2296         For Debian bug 144221.
2297
2298 2002-04-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
2299
2300         * tests/man2.test: Use `pwd`, not $PWD.  Use $MAKE -e.
2301
2302 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2303
2304         * automake.in (subobjname): Use the length of %subobjvar
2305         instead of $subobjnamenum.
2306         (subobjnamenum): Remove.
2307
2308 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2309
2310         For PR automake/307:
2311         * lib/depcomp: Never compute dependencies in the background, this
2312         can cause races with libtool.  Compute the dependencies after
2313         the actual compilation.  Don't make libtool silent now that
2314         it's run in the foreground.
2315         * tests/pr307.test: New file.
2316         * tests/Makefile.am (TESTS): Add pr307.test.
2317         Reported by Laurent Morichetti.
2318
2319 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2320
2321         * lib/am/check.am: Show skipped tests.  Display the
2322         $(PACKAGE_BUGREPORT) address on failure.
2323
2324 2002-04-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
2325
2326         Fix PR automake/315:
2327         * automake.in (subobjname): Rewrite to generate variable name
2328         unique for each content.
2329         (%substnums): Remove.
2330         (%subobjvar): New hash.
2331         (initialize_per_input): Clear %subobjvar.
2332         (define_objects_from_sources): Return the name of the variable
2333         defined, in addition to the linker.  Call subobjname only once
2334         the content of the variable to define is known.
2335         (handle_source_transform): Adjust call to define_objects_from_sources.
2336         * tests/specflags8.test: Mention PR 315.
2337         * tests/subobjname.test: New file.
2338         * tests/Makefile.am (XFAIL_TESTS): Remove specflags8.test.
2339         (TESTS): Add subobjname.test.
2340
2341 2002-04-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
2342
2343         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep
2344         the whole file for 'generated by automake', not only the
2345         first line.  This accounts for post-processed Makefile.in's.
2346         * tests/postproc.test: New file.
2347         * tests/Makefile.am (TESTS): Add postproc.test.
2348
2349 2002-04-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
2350
2351         For PR automake/151 and PR automake/314:
2352         * automake.texi (A Program): Split into
2353         (Program Sources, Linking, Conditional Sources, Conditional
2354         Programs): ... these subsections; moving the Linking node
2355         before the Conditional discussions.
2356         (Conditional Sources): More details.  Notably, mention
2357         hello_DEPENDENCIES.
2358         (Conditionals): Adjust reference to Conditional Programs.
2359
2360 2002-04-19  Paul Eggert  <eggert@twinsun.com>
2361
2362         Fix some bugs when using "$@" when there might be zero positional
2363         arguments in cases where this matters.  Zsh doesn't support
2364         the workaround ${1+"$@"} that has been used by Automake since
2365         the Mon Dec  4 11:55:36 1995 change.
2366
2367         * aclocal.in: Use 'case' statement to work around problem.
2368         * automake.in: Likewise.
2369         * lib/ylwrap: Likewise.
2370         * lib/missing: No need for workaround, as the command is never
2371         invoked with zero arguments.
2372         * tests/ccnoco.test: Likewise.
2373         * missing: Update from lib/missing.
2374
2375 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
2376
2377         * automake.in (initialize_per_input): Clear %require_file_found.
2378         (%require_file_found): Group the declaration with the other
2379         variables initialized by initialize_per_input.
2380         * tests/required.test: New file.
2381         * tests/Makefile.am (TESTS): Add it.
2382         Reported by Marius Vollmer.
2383
2384 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
2385
2386         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): New function,
2387         override AC_CONFIG_HEADERS with AM_CONFIG_HEADER.
2388         (_AM_CONFIG_HEADER): Use _AM_AC_CONFIG_HEADERS.
2389         * m4/init.m4: Call _AM_CONFIG_HEADER_INSINUATE.
2390         * tests/stamph2.test: Use AC_CONFIG_HEADERS for some of the config
2391         files.
2392         * tests/confh5.test: New file.
2393         * tests/Makefile.am (TESTS): Add confh5.test.
2394         * automake.texi (Optional, Public macros): Update descriptions
2395         of AC_CONFIG_HEADERS and AM_CONFIG_HEADER.
2396
2397 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
2398
2399         * tests/man2.test: New file.
2400         * tests/Makefile.am (TESTS): Add man2.test.
2401         * lib/am/mans.am (install-man%SECTION%): Change the extension
2402         of the man pages being installed, as documented.
2403
2404 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
2405
2406         Enable traces; wipe out the old configure.in parser.
2407
2408         * automake.in (scan_autoconf_traces): Use '$ENF{AUTOCONF}' of
2409         'autoconf'.  Honnor the $filename argument.
2410         (scan_autoconf_files): Don't call scan_one_autoconf_file.
2411         Always call scan_autoconf_traces.
2412         (scan_one_autoconf_file): Remove, with it associated regexes.
2413         (obsolete, obsolete_rx): Remove.
2414         (register_language, handle_languages): Remove the 'define_flag'
2415         support.  Remove it from the struct and language definitions too.
2416         (unquote_m4_arg): Remove.
2417         * lib/am/header-vars.am, lib/am/compile.am, lib/am/lisp.am: Remove
2418         the `FOO = @FOO@' definitions for all AC_SUBST'ed variables.  They
2419         are now generated automatically.
2420         * aclocal.in (obsolete_macros): Don't mention obsolete_macros in
2421         automake.in.
2422         * automake.texi (Invoking Automake): Mention the AUTOCONF envvar.
2423
2424 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
2425
2426         * tests/version6.test: New file.
2427         * tests/Makefile.am (TESTS): Add tests/version6.test.
2428         * automake.in (version_check): Return 0 on equality.
2429
2430 2002-04-13  Andreas Schwab  <schwab@suse.de>
2431
2432         * THANKS: Update my mail address.
2433
2434 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
2435
2436         * tests/discover.test: Use a full configure.in that calls AC_INIT.
2437         Use AC_LIBOBJ.  Grep the error message.
2438         * test/ldadd.test: Don't use LIBOBJS.  Use a full configure.in.
2439         Grep the error message.  Require libtool.
2440         * tests/ldflags.test:  Don't use LIBOBJS.
2441         * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the
2442         error messages for CC and CXX.
2443
2444 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
2445
2446         * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
2447         and AMDEPBACKSLASH.
2448         * tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
2449         * tests/ext.test: Enable dependencies for OBJC.
2450         * tests/libobj.test, tests/libobj6.test, tests/libobj9.test:
2451         Delete.  They tests for different flavors of $LIBOBJS assignments
2452         that wont be supported anymore.
2453         * tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ.
2454         * tests/obsolete.test: Don't test Automake.
2455         * tests/suffix5.test: Require libtool.
2456         * tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and
2457         libobj9.test.
2458
2459 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2460
2461         * configure.in (APIVERSION): Fix definition.
2462
2463 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2464
2465         * NEWS: Catch up with changes since 1.6.
2466
2467 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2468
2469         * tests/yacc8.test: Don't assume GNU make, run config.status
2470         to regenerate the Makefile.
2471
2472 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2473
2474         * Makefile.am (maintainer-check): Make sure `$MAKE -e' is
2475         always followed by a SHELL setting.
2476         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set
2477         SHELL when calling `$MAKE -e'.
2478
2479 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2480
2481         * tests/subobj9.test: Use configure.in, not configure.ac,
2482         otherwise this fails with old libtool versions.
2483
2484 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2485
2486         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
2487         versions.
2488
2489 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
2490
2491         * ChangeLog.2001: New file, extracted from ChangeLog.
2492         * Makefile.am (EXTRA_DIST): Add it.
2493
2494 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
2495
2496         * automake.texi (Canonicalization): The sources for libmumble++.a
2497         go into libmumble___a_SOURCES.
2498
2499 2002-04-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
2500
2501         * Makefile.am (maintainer-check): Check for `sleep 1' uses in the
2502         test suite.  Suggest `sleep 2' instead.
2503         * tests/confsub.test: Use `sleep 2'.
2504
2505 2002-04-04  Paul Eggert  <eggert@twinsun.com>
2506
2507         * lib/am/subdirs.am:
2508         ($(RECURSIVE_TARGETS), maintainer-clean-recursive):
2509         $(MAKEFLAGS) -> $$MAKEFLAGS, so that we don't run into problems if
2510         MAKEFLAGS contains '$(...)'.
2511
2512 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
2513
2514         * tests/specflags8.test: Typo.
2515
2516 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
2517
2518         * tests/specflags6.test: Run aclocal.
2519         * tests/Makefile.am (TESTS): Add specflags6.test.
2520
2521 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
2522
2523         * tests/specflags7.test, tests/specflags8.test: New files.
2524         * tests/Makefile.am (TESTS): Add them.
2525         (XFAIL_TESTS): Add specflags8.test.
2526
2527 2002-03-29  Tom Tromey  <tromey@redhat.com>
2528
2529         * automake.in (check_typos): Examine AM_LDFLAGS.
2530         Fixes PR automake/311.
2531
2532         For PR automake/312:
2533         * lib/am/libtool.am (clean-libtool): Use LTRMS.
2534         * automake.in (handle_single_transform_list): When processing a
2535         libtool object, clean the ordinary object and register the
2536         directory.
2537         (libtool_clean_directories): New global.
2538         (initialize_per_input): Initialize it.
2539         (generate_makefile): Call handle_libtool later.
2540         (handle_libtool): Handle libtool_clean_directories.
2541         * tests/subobj9.test: New file.
2542         * tests/Makefile.am (TESTS): Added subobj9.test.
2543
2544 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
2545
2546         * tests/extra6.test, tests/subdir5.test: Require GNU make.
2547
2548 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
2549
2550         * tests/dup3.test (ACLOCAL): s/srcdir/testsrcdir/.
2551
2552 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
2553
2554         * tests/extra7.test: New file.
2555         * tests/Makefile.am: Add it.
2556         * lib/am/distdir.an (distdir): When a distribuable directory
2557         exists both in `.' and $(srcdir), merge both directories.  This
2558         works around a failure of extra6.test on Tru64 reported by
2559         Nicolas Joly.
2560
2561 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
2562
2563         * tests/pr87.test, tests/yaccvpath.test: Require GNU make.
2564
2565 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
2566
2567         * Makefile.am (maintainer-check): Catch occurrences of
2568         `$MAKE foo=bar' in the testsuite.  Suggest using
2569         `foo=bar $MAKE -e' instead.
2570         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test:
2571         Use $MAKE -e.  This fixes a ansi5.test failure with Solaris make.
2572         * tests/defs: Unset $srcdir, and set $testsrcdir to its old value.
2573         * tests/installsh.test (AUTOMAKE, ACLOCAL): Use $testsrcdir.
2574
2575 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
2576
2577         Fix for PR automake/310:
2578         * lib/am/depend2.am, lib/am/lex.am, lib/am/yacc.am: Quote %SOURCE%
2579         so it never appears as a plain word.
2580
2581 2002-03-25  Angus Leeming  <a.leeming@ic.ac.uk>
2582
2583         * lib/depcomp (tru64): Correctly compute `base'.
2584
2585 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
2586
2587         * tests/pr211.test: s/requires/required/, otherwise the test fails
2588         if libtool is not installed.
2589
2590 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
2591
2592         * tests/dirname.test: Don't use $SHELL when calling ./configure.
2593
2594 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
2595
2596         * tests/dirname.test: Use --quiet to fix failure on installations
2597         using a site script.
2598         Reported by Nicolas Joly.
2599
2600 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
2601
2602         * Makefile.am (maintainer-check): Check for misuses of make,
2603         autoconf, automake, aclocal, and perl in the testsuite.  Suggest
2604         using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
2605         * tests/confsub.test: Use $AUTOCONF and $MAKE.
2606         * tests/extra5.test, tests/extra6.test, tests/lex5.test,
2607         tests/nobase.test, tests/nodist2.test, tests/pr204.test,
2608         tests/pr224.test, tests/pr287.test, tests/strip.test,
2609         tests/yacc8.test: Use $MAKE.
2610
2611 2002-03-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
2612
2613         Add support for two-dot versions.
2614
2615         * tests/version5.test: New file.
2616         * tests/Makefile.am (TESTS): Add it.
2617         * automake.in (version_split, version_compare): New functions.
2618         (version_check): Rewrite using version_split and version_compare.
2619         (process_option_list): Adjust regex.
2620
2621 2002-03-18  Richard Boulton <richard@tartarus.org>
2622
2623         Fix for PR automake/306:
2624         * automake.texi (Generalities): Document +=.
2625         (Conditionals): Document limitations of += with conditionals.
2626
2627 2002-03-17  Tom Tromey  <tromey@redhat.com>
2628
2629         Fix for PR automake/295:
2630         * automake.texi (Invoking Automake): Deprecate --output-dir.
2631         * automake.in (usage): Don't document --output-dir.
2632         (output_directory): Don't initialize.
2633         (parse_arguments): Deprecate --output-dir.
2634
2635         * m4/init.m4 (AUTOMAKE, ACLOCAL): Removed extra quotes.
2636         Fixes PR automake/304.
2637
2638 2002-03-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2639
2640         * tests/dirforbid.test: Workaround for NetBSD sh bug.
2641         Fixes PR automake/305.
2642
2643 2002-03-11  Richard Boulton <richard@tartarus.org>
2644
2645         * automake.in (check_typos): Allow variables with reserved
2646         suffices (such as _LDFLAGS) and prefixes which aren't
2647         recognised if the variable is defined in configure.ac.
2648         Fixes acsubst.test.
2649
2650 2002-03-11  Richard Boulton <richard@tartarus.org>
2651
2652         * tests/acsubst.test: New test, by Alexandre Duret-Lutz
2653         * tests/acsubst2.test: New test, by Alexandre Duret-Lutz
2654         * tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test
2655
2656 2002-03-11  Peter Breitenlohner  <peb@mppmu.mpg.de>
2657
2658         * tests/defs: Unset DESTDIR, otherwise `make DESTDIR=/foo check'
2659         causes failures.
2660
2661 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
2662
2663         Fix for PR automake/303:
2664         * automake.in (version_check): Move the error message ...
2665         (process_option_list): ... here, so we can distinguish between
2666         global and local options.
2667
2668 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
2669
2670         * tests/pr300-lib.test, tests/pr300-ltlib.test,
2671         tests/pr300-prog.test: Use AC_OUTPUT, not AC_OUTPUT(Makefile), so
2672         Autoconf doesn't complain about Makefile being output twice.
2673
2674 2002-03-06  Tom Tromey  <tromey@redhat.com>
2675
2676         * configure.in: Upped version to 1.6a.
2677
2678 2002-03-05  Tom Tromey  <tromey@redhat.com>
2679
2680         * configure.in: Released 1.6.
2681
2682 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
2683
2684         Fix for PR automake/300:
2685         * tests/pr300-lib.test, tests/pr300-ltlib.test,
2686         tests/pr300-prog.test: New files.
2687         * tests/Makefile.am (TESTS): Add them.
2688         * automake.in (handle_ltlibraries): Strip nobase_ prefix to
2689         compute the directory.
2690         * lib/am/header-vars.am (install_sh_PROGRAM): New variable.
2691         * lib/am/libs.am (%DIR%LIBRARIES_INSTALL): New variable.
2692         (install-%DIR%LIBRARIES): Use it.  Honor nobase_.
2693         (uninstall-%DIR%LIBRARIES): Honor nobase_.
2694         * lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): New variable.
2695         (install-%DIR%LTLIBRARIES): Use it.  Honor nobase_.
2696         (uninstall-%DIR%LTLIBRARIES): Honor nobase_.
2697         * lib/am/progs.am (%DIR%PROGRAMS_INSTALL): New variable.
2698         (install-%DIR%PROGRAMS): Use it.  Honor nobase_.
2699         (uninstall-%DIR%PROGRAMS): Honor nobase_.
2700         See also the fix for nobase.test on 2001-11-09.
2701
2702 2002-03-05  Tom Tromey  <tromey@redhat.com>
2703
2704         * lib/config.sub, lib/config.guess, lib/texinfo.tex: Updated.
2705
2706 2002-03-05  Pavel Roskin  <proski@gnu.org>
2707
2708         * tests/yacc8.test: Add a command between "test" and "cd" to
2709         work around a bug in bash-2.05.
2710
2711 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
2712
2713         Fix for PR automake/294:
2714         * tests/dirforbid.test: New file.
2715         * tests/Makefile.am (TESTS): Add it.
2716         * automake.in (standard_prefix): New hash.
2717         (am_primary_prefixes): Forbid standard_prefixes which are not
2718         explicitely allowed.
2719         * automake.texi (Uniform): Remove FIXME.
2720
2721 2002-03-05  Jim Meyering  <meyering@lucent.com>
2722
2723         * automake.in (@common_files): Add config.rpath.
2724
2725 2002-03-05  Kevin Ryde  <user42@zip.com.au>
2726
2727         For PR automake/297:
2728         * lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until
2729         after AC_PROG_LEX, since it will try to run it and fail (in autoconf
2730         2.52 at least).
2731
2732 2002-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2733
2734         * automake.in (scan_one_autoconf_file): Declare
2735         LEX_OUTPUT_ROOT and LEXLIB as configure variables when
2736         AM_PROG_LEX or AC_PROG_LEX are seen.  This allows to ...
2737         * lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB
2738         definitions.  Search %SOURCE% in $(srcdir).  Use s||| instead
2739         of s/// in the sed invocation, to support filenames containing
2740         slashes.
2741         * lib/am/yacc.am: Search %SOURCE% in $(srcdir).  Use s||| too.
2742         * tests/lex5.test, tests/yacc8.test: New files.
2743         * tests/Makefile.am (TESTS): Add them.
2744
2745 2002-02-23  Per Bothner  <per@bothner.com>
2746
2747         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Set `dirpart' to
2748         `.' in else branch.
2749
2750 2002-02-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
2751
2752         * tests/make.test: Revert the grep logic to work around a bug
2753         in NetBSD sh (see NetBSD Problem Report #11542).
2754         Reported by Patrick Welche.
2755
2756 2002-02-20  Tim Van Holder  <tim.van.holder@pandora.be>
2757
2758         * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
2759         to try and prevent a non-lisp emacs from starting in interactive
2760         mode.
2761         * automake.texi: Document this change.
2762
2763 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
2764
2765         * automake.texi (Macros): Split into ...
2766         (Public Macros, Private Macros): ... these.
2767
2768 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
2769
2770         * tests/insthook.test: Use sed instead of "tail +X".
2771
2772 2002-02-18  Paul Eggert  <eggert@twinsun.com>
2773
2774         * lib/depcomp: Don't use "tail +3"; it's not portable to
2775         POSIX 1003.1-2001 hosts.
2776
2777 2002-02-18  Jim Meyering  <meyering@lucent.com>
2778
2779         * tests/cond12.test: Use sed 1q, not `head -n 1'.
2780         The latter is not portable to some old systems.
2781         * m4/depout.m4: Don't use `head -1'; it's no longer portable.
2782         Use `sed 1q' instead.
2783         * tests/insthook.test: Likewise.
2784
2785 2002-02-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2786
2787         * automake.in (handle_lib_objects_cond): Tell the user to put
2788         global linker flags in AM_LDFLAGS, not LDFLAGS.
2789
2790         * automake.texi (General Operation): AC_SUBST'ed variables
2791         override Automake's variables.
2792         (Uniform): More words and @refs.
2793         (Auxiliary Programs) <config.sub, config.guess>: Add URL.
2794         (etags): More explanations about the first example.
2795         (Invoking Automake): Mention autoreconf.  More @refs.
2796         (Requirements): Mention AC_CONFIG_FILES.
2797         (Optional): AC_CHECK_TOOL will no longer install config.sub and
2798         config.guess.  Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
2799         (Invoking aclocal): aclocal no longer warn about duplicates.
2800         (Macros) <AM_INIT_AUTOMAKE>: More explanations.
2801         (Extending aclocal): Suggest using the output of
2802         `aclocal --print-ac-dir` to install third-party macros.
2803         (Alternative): Specify ordering of dist_, nodist_, and nobase_
2804         prefixes.
2805         (A Program): Mention scripts.  The global LDADD variable is not
2806         meant to hold link flags, suggest using AM_LDFLAGS instead.
2807         (Program and Library Variables) <maude_LIBADD, maude_LDADD>:
2808         _LIBADD and _LDADD are subject to the same restriction wrt to
2809         link flags.
2810         (Program and Library Variables) <maude_DEPENDECIES>: Is also
2811         derived from maude_LIBADD.
2812         (Program variables): Define AM_LDFLAGS.
2813         (Dependencies): Passing the no-dependencies option to
2814         AM_INIT_AUTOMAKE is preferred.
2815         (Scripts): Explain why automake is magically cleaned.
2816         Mention noinst_SCRIPTS and check_SCRIPTS.
2817         (Data): Use dist_ in Automake's example.
2818         (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
2819         Mention AC_CONFIG_FILES instead of AC_OUTPUT.
2820
2821 2002-02-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
2822
2823         * Makefile.am (FETCHFILES): Add Automake/XFile.pm.
2824         (fetch): Fetch XFile.pm.  Update the files in $(srcdir) instead
2825         of asking the maintainer to do it manually.
2826         * lib/config.guess, lib/config.sub, lib/texinfo.tex,
2827         Automake/XFile.pm: New upstream versions.
2828
2829 2002-02-02  Tom Tromey  <tromey@redhat.com>
2830
2831         * automake.texi (Macros): Warn about upgrading.
2832
2833 2002-02-01  Tom Tromey  <tromey@redhat.com>
2834
2835         Change per GNU coding standards:
2836         * aclocal.in (parse_arguments): Only mention most recent year in
2837         copyright output.
2838         * automake.in (version): Only mention most recent year.
2839
2840 2002-01-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
2841
2842         * automake.texi (API versioning): New Node.
2843         (Extending): Use $(DESTDIR) in examples.
2844
2845 2002-01-28  Akim Demaille  <akim@epita.fr>
2846
2847         * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5.
2848         Respect the --help layout.
2849
2850 2002-01-27  Tom Tromey  <tromey@redhat.com>
2851
2852         * configure.in: Bumped to 1.5e.
2853
2854         * lib/am/yacc.am: Use `rm -f'.
2855
2856         * configure.in: Released 1.5d.
2857
2858         * lib/config.guess: New version from FSF.
2859
2860         * Makefile.am (uninstall-hook): New target.
2861
2862 2002-01-24  Akim Demaille  <akim@epita.fr>
2863
2864         * lib/install-sh: Update, from Autoconf.
2865
2866 2002-01-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
2867
2868         * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
2869         as AC_CANONICAL_HOST (the former does not require the latter since
2870         Autoconf 2.50).
2871         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
2872         * automake.texi (Requirements): Do not require STRIP to be
2873         defined by the user.
2874
2875 2002-01-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
2876
2877         * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
2878         * automake.in (handle_languages): Compute and substitute %DEPDIRS%.
2879         * tests/pr224.test: Make sure .deps subdirectories are
2880         erased by distclean.
2881
2882 2002-01-22  Tom Tromey  <tromey@redhat.com>
2883
2884         * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
2885         no-dependencies option is set.
2886         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
2887         no-dependencies option is set.  Don't call AM_DEP_TRACK or
2888         AM_SET_DEPDIR.
2889
2890 2002-01-22  Pavel Roskin  <proski@gnu.org>
2891
2892         * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and
2893         ASFLAGS.
2894
2895 2002-01-22  Akim Demaille  <akim@epita.fr>
2896
2897         * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex.
2898         (fetch): Adjust.
2899
2900 2002-01-21  Tom Tromey  <tromey@redhat.com>
2901
2902         * Makefile.am (fetch): Don't fetch ansi2knr.
2903
2904         * automake.texi (Macros): Updated for new variable names.
2905         (Program and Library Variables): Likewise.
2906         (Assembly Support): Likewise.
2907         * m4/as.m4: Use CCAS and CCASFLAGS.
2908         * automake.in (asm): Use CCAS and CCASFLAGS.
2909
2910 2002-01-21  Akim Demaille  <akim@epita.fr>
2911
2912         * automake.in (&parse_arguments): Use a more GNUish error message
2913         on wrong options.
2914
2915 2002-01-20  Tom Tromey  <tromey@redhat.com>
2916
2917         Fix for PR automake/231:
2918         * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ).
2919         * m4/depend.m4: Document `GCJ'.
2920
2921         For PR automake/224:
2922         * tests/Makefile.am (TESTS): Added pr224.test.
2923         * tests/pr224.test: New file.
2924         * lib/depcomp: Fixed computation of depfile.
2925         * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
2926         * automake.in (handle_single_transform_list): Only reject `..'
2927         component for Java.  Put dependencies in directory near object.
2928         (handle_languages): Set DEPBASE.  Handle de-ansi-fication.
2929
2930 2002-01-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
2931
2932         * tests/defs: Export AUTOMAKE and ACLOCAL.
2933
2934 2002-01-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
2935
2936         Fix for PR automake/204:
2937         * tests/pr204.test: New file.
2938         * tests/Makefile.am (TESTS): Add it.
2939         * automake.in (handle_single_transform_list): Don't distribute
2940         sources derived from non-distributed sources.
2941
2942 2002-01-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
2943
2944         Fix for PR automake/229:
2945         * tests/pr229.test: New file.
2946         * tests/Makefile.am (TESTS): Add it.
2947         * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN,
2948         AC_EMXOS2, and AC_MINGW32.
2949
2950 2002-01-18  Tom Tromey  <tromey@redhat.com>
2951
2952         * tests/cond7.test: Fix test bug exposed by copyright update.
2953
2954         For PR automake/288:
2955         * automake.in (lang_c_rewrite): Don't prepend directory to base if
2956         directory is `.'.  Also, properly compute de_ansi_files entry in
2957         subdir-objects case
2958         * tests/Makefile.am (TESTS): Added ansi7.test.
2959         * tests/ansi7.test: New file.
2960
2961         * aclocal.in (parse_arguments): Added 2002.
2962         (write_aclocal): Likewise.
2963         (parse_arguments): Updated my email address.
2964         * automake.in (gen_copyright): Added 2002.
2965         (version): Likewise.  Also, changed my email address.
2966
2967         * configure.in (APIVERSION): Refined definition.
2968
2969 2002-01-18  Tom Tromey  <tromey@redhat.com>
2970
2971         * missing: Updated.
2972         * lib/missing: Accept versioned aclocal.
2973         * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
2974
2975 2002-01-17  Pavel Roskin  <proski@gnu.org>
2976
2977         * m4/Makefile.am (m4datadir): Use APIVERSION.
2978
2979 2002-01-16  Tom Tromey  <tromey@redhat.com>
2980
2981         * Makefile.am (install-exec-hook): Use APIVERSION.
2982         * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
2983         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
2984         APIVERSION.
2985         * automake.in (perllibdir): Use APIVERSION.
2986         (libdir): Likewise.
2987         * aclocal.in (perllibdir): Use APIVERSION.
2988         (APIVERSION): New global.
2989         (parse_arguments): Use APIVERSION.
2990         * configure.in (APIVERSION): New subst.
2991         (pkgvdatadir): Use APIVERSION.
2992
2993 2002-01-15  Tom Tromey  <tromey@redhat.com>
2994
2995         * missing: Updated.
2996         * lib/missing: Match against `automake*' to pick up versioned
2997         automake.
2998         * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name.
2999         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version
3000         variable.
3001         * lib/am/Makefile.am (amdir): Use pkgvdatadir.
3002         * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use
3003         pkgvdatadir.
3004         (scriptdir): Use pkgvdatadir.
3005         (installcheck-local): Likewise.
3006         * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir.
3007         * automake.in (perllibdir): Added VERSION.
3008         (libdir): Likewise.
3009         * aclocal.in (parse_arguments): Search versioned directory.  Don't
3010         push unversioned directory unless it exists.
3011         (perllibdir): Added VERSION.
3012         (default_acdir): New global.
3013         * m4/Makefile.am (m4datadir): Added $(VERSION).
3014         * Makefile.am (install-exec-hook): New target.
3015         * configure.in (ACLOCAL): Search build directory.
3016         (pkgvdatadir): New subst.
3017
3018 2002-01-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
3019
3020         * lib/config.sub, lib/config.guess: New versions from FSF.
3021
3022 2002-01-13  Tom Tromey  <tromey@redhat.com>
3023
3024         For PR automake/288:
3025         * automake.in (lang_c_rewrite): Set value for de_ansi_files entry
3026         to directory.
3027         (lang_c_finish): Likewise.  Also, use directory information from
3028         de_ansi_files.
3029
3030 2002-01-13  Kevin Ryde  <user42@zip.com.au>
3031
3032         For PR automake/288:
3033         * tests/Makefile.am (TESTS): Added ansi6.test.
3034         * tests/ansi6.test: New file.
3035
3036 2002-01-13  Tom Tromey  <tromey@redhat.com>
3037
3038         For PR automake/287:
3039         * lib/am/distdir.am (distdir): Use `$$list' trick when looping
3040         over subdirs.
3041         * tests/Makefile.am (TESTS): Added pr287.test.
3042         * tests/pr287.test: New file.
3043
3044 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
3045
3046         * lib/am/distdir.am (distdir): Handle subdirectories.
3047         * tests/extra6.test: New file.
3048         * tests/Makefile.am (TESTS): Add it.
3049
3050 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
3051
3052         * tests/extra2.test: Run $ACLOCAL.
3053
3054 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
3055
3056         * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
3057         AM_INIT_AUTOMAKE arguments when using the old-style call.
3058         Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
3059         Suggested by Pavel Roskin.
3060
3061 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
3062
3063         * test/nodefine.test, test/nodefine2.test: Check that no-define
3064         works, not the contrary...
3065         * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
3066         * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
3067         not the contrary.
3068
3069 2002-01-12  Jim Meyering  <meyering@lucent.com>
3070
3071         * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
3072         * tests/libobj11.test: New file.
3073         * tests/Makefile.am (TESTS): Add libobj11.test.
3074
3075 2002-01-09  Ryan T. Sammartino  <ryants@shaw.ca>
3076
3077         * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options.
3078
3079 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
3080
3081         * automake.in (file_contents_internal): Introduce two variables,
3082         $is_rule and $discard_rules to track rules spanning across multiple
3083         paragraphs.  This fixes a very nasty bug reported by Dmitry Mikhin
3084         where only the first paragraph of such a multi-paragraph rule was
3085         discarded; but it leaves many similar latent bugs (see the FIXMEs).
3086
3087 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
3088
3089         * tests/dup3.test: Remove all -I from $ACLOCAL before using it.
3090         * tests/error.test: Use some macro names which are not defined by
3091         Automake itself.
3092
3093 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
3094
3095         * automake.texi (Complete, Macros, Options): Document the new style
3096         AM_INIT_AUTOMAKE.  Remove AM_AUTOMAKE_OPTIONS documentaion.
3097         * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
3098         AC_INIT if they are available there.  Support a new call form
3099         where the only argument is an optional space-separated list of
3100         Automake options.
3101         * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
3102         (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
3103         _AM_IF_OPTION): New functions.
3104         * automake.in (AC_INIT_PATTERN): New variable.
3105         (global_options_line): Remove, use $seen_init_automake instead.
3106         (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
3107         from AC_INIT if available.  Support the new style AM_INIT_AUTOMAKE.
3108         Remove the AM_AUTOMAKE_OPTIONS handling.
3109         * configure.in: Modernize.
3110         * tests/defs (configure.in): Modernize.  One third of the tests
3111         still overwrite the default configure.in and use an old
3112         AM_INIT_AUTOMAKE call,  so that makes testing for both.
3113         * tests/nodefine.test, tests/nodefine2.test: New files.
3114         * tests/Makefile.am (TESTS): Add them.
3115
3116 2002-01-08  Raja R Harinath  <harinath@cs.umn.edu>
3117
3118         * automake.in (define_configure_variable): Propagate line numbers.
3119
3120 2002-01-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
3121
3122         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2.
3123
3124 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
3125
3126         * configure.in: Run the Autoconf test in a subdirectory, then
3127         erase this directory.
3128
3129 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
3130
3131         * configure.in (AUTOMAKE): Create m4/amversion.m4.
3132         * m4/amversion.in: New file.
3133         * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
3134         (dist_m4data_DATA): ... this.
3135         (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4.
3136         * m4/init.m4 (AM_INIT_AUTOMAKE): Require
3137         AM_SET_CURRENT_AUTOMAKE_VERSION.
3138         * automake.in (seen_automake_version): New variable.
3139         (scan_autoconf_traces, scan_one_autoconf_file,
3140         scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain
3141         when the version used in aclocal.m4 differs from Automake's.
3142         * tests/defs (ACLOCAL): Look in ../m4 too.
3143         * tests/installsh.test (ACLOCAL): Likewise.
3144         * tests/installdir.test (installdirs-local): Run $ACLOCAL.
3145
3146 2002-01-06  Raja R Harinath  <harinath@cs.umn.edu>
3147
3148         * automake.in (handle_languages): Emit an automake
3149         internal variable 'am__depfiles_maybe'.
3150         * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe.
3151
3152         * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to
3153         config.status.
3154
3155 2002-01-06  Tom Tromey  <tromey@redhat.com>
3156
3157         * automake.texi (Tags): Document new variables.
3158         * lib/am/tags.am (ETAGS): New macro.
3159         (ETAGSFLAGS): Likewise.
3160         (TAGS): Use them.
3161
3162 2002-01-04  Tom Tromey  <tromey@redhat.com>
3163
3164         * configure.in (ACLOCAL): Set perllibdir.  From Nicolas Joly.
3165
3166 2002-01-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
3167
3168         * automake.in (read_am_file): Thinko in "comment following
3169         trailing backslash" detection.
3170         * tests/comment5.test: Test for this too.
3171
3172 2002-01-02  Tom Tromey  <tromey@redhat.com>
3173
3174         * automake.texi (Extending): Added index for uninstall-hook.
3175
3176 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
3177
3178         Fix for PR automake/278:
3179         * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
3180         with versions such as '2.2c1'.  Also, use `int' instead of the
3181         obsoleted `string.atoi'.
3182         Reported by Enrico Scholz.
3183
3184 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
3185
3186         Fix for PR automake/280:
3187         * automake.in (read_am_file): Warn about trailing backslashes
3188         in comments.
3189         * tests/comment5.test: New file.
3190         * tests/Makefile.am (TESTS): Add comment5.test.
3191         Reported by Enrico Scholz.
3192
3193 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
3194
3195         * tests/comment4.test: New file.
3196         * tests/Makefile.am (TESTS): Add comment4.test.
3197
3198         Fix for comment4.test:
3199         * automake.in (read_am_file): Output leading comments only when
3200         encountering white lines.
3201
3202 2002-01-01  Tom Tromey  <tromey@redhat.com>
3203
3204         For PR automake/234:
3205         * tests/Makefile.am (TESTS): Added strip.test.
3206         * tests/strip.test: New file.
3207
3208         * automake.texi (Extending): Mention uninstall-hook.
3209         (Install): Likewise.
3210         * automake.in (handle_factored_dependencies): Allow
3211         uninstall-hook.
3212
3213 2002-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
3214
3215         * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
3216         it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
3217         This fixes a bug introduced on 2001-01-28.
3218         Reported by Jared Davis.
3219
3220 -----
3221
3222 Copyright (C) 2002-2013 Free Software Foundation, Inc.
3223
3224 Copying and distribution of this file, with or without modification, are
3225 permitted provided the copyright notice and this notice are preserved.