Fix for PR automake/337:
[platform/upstream/automake.git] / ChangeLog
1 2002-07-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
2
3         Fix for PR automake/337:
4         * automake.in: Redefine the `flags' attribute of each language
5         as a list.  List CPPFLAGS in `flags' when it is used.
6         (register_language): Set the default value of 'flags'.
7         (handle_single_transform_list): Adjust to treat `flags' as a list.
8         (handle_languages): Likewise.  Don't bother defining the
9         configure variable for `c', this is always done since we trace
10         configure.ac.
11         * automake.texi (etags): Use per-executable _CPPFLAGS.
12         (Program and Library Variables): Mention maude_CPPFLAGS.
13         (Program variables): Likewise.
14         * tests/specflags8.test: Use _CPPFLAGS instead of _CFLAGS.
15         * tests/specflags9.test: New file.
16         * tests/Makefile.am (TESTS): Add specflag9.test.
17
18 2002-07-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
19
20         * automake.texi: Use `variable' instead of `macro' everywhere it
21         designates a Makefile variable.
22         (Texinfo): `VERSION', `UPDATED', `EDITION', and `UPDATED-MONTH' are
23         `flags', not `macros'.  `Macro' means something else in Texinfo.
24         Also show how to use these flags.
25         * automake.in (file_contents_internal): s/macro/variable/ in
26         error message.
27
28         * automake.in (parse_arguments): Call Getopt twice: once to catch
29         --help or --verbose, and once to process the other arguments.
30         (usage, verbose): Always exit 0, ignoring $exit_code (which anyway
31         should always be 0 because of the change to parse_arguments).
32         * tests/Makefile.am (TESTS): Add getopt.test.
33         * tests/getopt.test: New file.
34
35 2002-07-09  Tom Tromey  <tromey@redhat.com>
36
37         For PR automake/286:
38         * automake.texi (Tags): Document ctags.
39         * automake.in (handle_tags): Handle ctags.
40         * lib/am/tags.am (CTAGS): New macro.
41         (CTAGSFLAGS): Likewise.
42         (ctags): New target.
43         (distclean-tags): Remove `tags'.
44
45         * lib/am/depend2.am: Reworked syntax to avoid parsing problem.
46
47         * lib/am/depend2.am: Search in srcdir and builddir for %SOURCE%
48         before passing to cygpath.  Partial fix for PR automake/334.
49
50 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
51
52         * automake.in (generate_makefile): Suggest using AM_CPPFLAGS
53         instead of INCLUDES.
54         * tests/pluseq5.test: Check that AM_CPPFLAGS is suggested.
55
56 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
57
58         * automake.in (usage, version): Honor $exit_code.
59         (parse_arguments): Use fatal.
60
61 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
62
63         * automake.texi (Invoking Automake): Document WARNINGS.
64         * automake.in (switch_warning, parse_WARNINGS): New function.
65         (setup_warnings): Rename to ...
66         (parse_warnings): ... this.  Move most of the code to switch_warning.
67         Accept a comma separated list of categories.
68         * tests/vars2.test: Use a comma separated list of warning categories.
69
70 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
71
72         * NEWS (New in 1.6): Mention that libtoolize is no longer run
73         by automake.
74
75 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
76
77         Fix for PR automake/291:
78         * automake.in (macro_define): Catch variable names starting
79         with `_'.
80         (handle_installdirs): Rename _am_installdirs to am__installdirs.
81         * lib/am/data.am, lib/am/install.am, lib/am/libs.am,
82         lib/am/lisp.am, lib/am/ltlibs.am, lib/am/mans.am,
83         lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
84         lib/am/texinfos.am: Likewise.
85         * tests/canon5.test: Use -Wno-portability.
86         * tests/vars2.test: New file.
87         * tests/Makefile.am (TESTS): Add vars2.test.
88
89 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
90
91         * tests/defs (AUTOMAKE): Add -Wall.
92         * tests/outdir.test: Use -Wno-obsolete.
93
94 2002-07-07  Tom Tromey  <tromey@redhat.com>
95
96         * m4/depend.m4 (_AM_DEPENDENCIES): Compute am__fastdep<compiler>
97         conditional.
98         * automake.in (handle_languages): Compute FASTDEP.
99         * lib/am/depend2.am: Added %FASTDEP% mode.
100
101 2002-07-07  Tom Tromey  <tromey@redhat.com>
102
103         * automake.texi (Optional): AM_MAINTAINER_MODE is ok in Gnits mode
104         now.  Fixes PR automake/332.
105
106 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
107
108         * tests/nobase.test (test-install-exec): Move all the `test -f'
109         tests in the Makefile so we can use $(EXEEXT) on programs.
110         Reported by Charles Wilson.
111
112 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
113
114         * m4/header.m4 (AM_CONFIG_HEADER): New macro.
115         * tests/confh5.test: Make sure that Autoconf complains if
116         AM_CONFIG_HEADER or AC_CONFIG_HEADERS is called before
117         AM_INIT_AUTOMAKE.
118
119 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
120
121         * lib/Automake/Channels.pm: New file.
122         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Channels.pm.
123         * automake.in: Use Automake::Channels and register some channels
124         for errors and warnings.
125         ($exit_status): Remove, replaced by Channels::$exit_code.
126         (%required_variables): Remove, Channels will filter-out duplicates
127         itself.
128         (initialize_per_input): Call reset_local_duplicates.
129         (prog_error): Adjust to all `msg'.
130         (setup_warnings): New functions.
131         (parse_arguments): Accept -W CATEGORY and --warnings=CATEGORY,
132         call setup_warnings.
133         (usage): Update usage text accordingly.
134         (macro_dump, macros_dump): Return the dump as a string instead
135         of printing it.
136         (am_install_var) <$warned_about_extra>: Remove, Channels will
137         filter-out duplicates itself.
138         (set_strictness): Turn on/off channels for each stricness.
139         (err, fatal, err_var, err_target, err_am, err_ac, msg_var,
140         msg_target, msg_am, msg_ac, reject_var, reject_target, verb):
141         New functions, to replace ...
142         (print_error, am_error, file_error, macro_error, target_error,
143         conf_error, file_warning): ... these functions.  Remove them.
144         Update all the code to use the new functions.  The rough
145         correspondance is
146            am_error                -> err_am
147            file_error              -> err
148            macro_error             -> err_var
149            target_error            -> err_target
150            conf_error              -> err_ac
151            die                     -> fatal
152            macro_error if defined  -> reject_var
153            target_error if defined -> reject_target
154            verbose                 -> verb
155         * automake.texi (Invoking Automake): Document -W and --warnings.
156         Remove the documentation for --Werror and --Wno-error.
157         * tests/defs: Use -Werror, no --Werror.
158         * tests/exeext2.test: Test that the error message
159         is enabled with -Wobsolete.
160         * tests/output5.test: Rewrite to test that Automake complains
161         when there is no Makefile specified. (The original test was
162         succeeding for the wrong reason.)
163         * tests/seenc.test: Don't use --Wno-error, there is no reason now
164         that -Werror doesn't stop after the first error.
165         * tests/subobj.test: Use --add-missing, and check that
166         `compile' is installed and that Automake says so.
167         * tests/subobj2.test: Don't create `compile'.
168
169 2002-07-05  Tom Tromey  <tromey@redhat.com>
170
171         * automake.texi (Java Support): Mention --main and _LDFLAGS.
172         For PR automake/324.
173
174 2002-07-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
175
176         * tests/asm.test: Erase Autom4te's cache between each test.
177
178 2002-07-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
179
180         * automake.in (am_macro_for_var): Add LIBTOOL.
181         (ac_macro_for_var): Add RANLIB.
182         (seen_libtool): Remove.
183         (handle_libtool, lang_c_finish, define_compiler_variable,
184         make_paragraphs): Use
185         variable_defined ('LIBTOOL') instead of $seen_libtool.
186         (handle_languages) <%transform>: Don't set 'LIBTOOL', it is
187         already done in make_paragraphs.
188         (handle_libraries): Simplify by requiring RANLIB with
189         &require_variables_for_macro.
190         (handle_ltlibraries): Simplify by requiring LIBTOOL with
191         &require_variables_for_macro.
192         (scan_autoconf_traces): Don't trace for AC_PROG_LIBTOOL and
193         AM_PROG_LIBTOOL.
194         * tests/libtool4.test, tests/library2.test: New files.
195         * tests/Makefile.in (TESTS): Add libtool4.test and library2.test.
196
197 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
198
199         * automake.in (create, keyed_aclocal_warning): Delete, unused.
200
201 2002-07-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
202
203         * automake.in (ac_macro_for_var): Add YACC.
204
205 2002-07-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
206
207         Handle multiple suffix rules with the same input extension.
208         For PR automake/37.
209
210         * automake.in (suffix_rules_default): New variable.
211         (suffix_rules): Redefine as a hash of hashes of pairs.
212         (initialize_per_input): Setup suffix_rules_default from
213         suffix_rules on first call, an override suffix_rules
214         with suffix_rules_default on following calls.
215         (struct) <output_extensions>: New attribute.
216         (register_language): Set the default for output_extensions.
217         Call register_suffix_rule for each suffix.
218         (derive_suffix, handle_languages): Adjust to the new definition
219         of $suffix.
220         (register_suffix_rule): New function.
221         (rule_define): Call register_suffix_rule.
222         * tests/suffix8.test, tests/suffix9.test, tests/suffix10.test:
223         New files.
224         * tests/Makefile.am (TESTS): Add them.
225
226 2002-06-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
227
228         * automake.in (am_macro_for_var, ac_macro_for_var,
229         required_variables): New variables.
230         (am_c_prototypes, seen_prog_lex, am_lispdir_location,
231         pythondir_location): Remove.
232         (initialize_per_input): Clear %required_variables.
233         (require_variables, require_variables_for_macro): New functions.
234         (handle_languages): Call &require_variables for $lang->config_vars.
235         (handle_compile): Call &require_variables_for_macro for the
236         ANSI2KNR and U variables.
237         (handle_emacs_lisp): Call &require_variables for EMACS and libdir.
238         (handle_python): Call &require_variables for PYTHON.  Don't
239         explicitly allow `python' as a prefix for PYTHON.
240         (scan_autoconf_traces): Don't scan AC_PROG_LEX, AM_C_PROTOTYPES,
241         AM_PATH_LISPDIR, and AM_PATH_PYTHON.
242         (scan_autoconf_traces) <AC_SUBST>: Don't filter out ANSI2KNR and
243         AMDEPBACKSLASH here...
244         (define_configure_variable): ... do this here.
245         (am_primary_prefixes): Probe the existence of ${X}dir using
246         &require_variables_for_macro.  If a standard prefix is not
247         legitimate, say so.  Ignore all configure variables.
248         * tests/ansi8.test, tests/cxx2.test, tests/gcj5.test,
249         tests/lisp2.test, tests/python2.test: New files
250         * tests/Makefile.am (TESTS): Add them.
251         * tests/asm.test: Grep stderr.
252         * tests/lex2.test: Rewrite to test that Automake suggests AM_PROG_LEX.
253         * tests/python.test: Make sure py-compile is installed.
254
255 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
256
257         * automake.in (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR,
258         COMPILE_LIBTOOL, COMPILE_ORDINARY): Redefine as constants.
259         Adjust all occurrences.
260
261 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
262
263         * aclocal.in: Add local variables so that Emacs setups GNU style
264         for perl-mode and cperl-mode.
265         * automake.in: Likewise.
266         (WHITE_PATTERN, RULE_PATTERN, SUFFIX_RULE_PATTERN, MACRO_PATTERN,
267         ASSIGNMENT_PATTERN, IF_PATTERN, ELSE_PATTERN, ENDIF_PATTERN,
268         INCLUDE_PATTERN, EXEC_DIR_PATTERN): Write $ as "\$" to please
269         perl-mode.
270
271 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
272
273         * Makefile.am (fetch): Fetch install-sh from Autoconf CVS.
274         * lib/config.sub, lib/install-sh: New upstream versions.
275
276 2002-06-26  Paul Eggert  <eggert@twinsun.com>
277
278         * Makefile.am (maintainer-check): Don't assume that egrep exists;
279         this fixes a portability bug introduced in the 2002-06-08 fix for
280         PR automake/317.
281
282 2002-06-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
283
284         * automake.in (required_targets): Add ps and ps-am.
285         (initialize_per_input): Reset them.
286         (handle_texinfo_helper): Fill @pss_list, and define the
287         PSS make variable.
288         * lib/am/texinfos.am (RECURSIVE_TARGETS): Add ps-recursive.
289         (ps, ps-am): New targets.
290         * automake.texi (Auxiliary Programs) <texinfo.tex>: Mention
291         `make ps' and `make pdf'.
292         (Texinfo): Document `make ps', `make pdf', and `make dvi'.
293         (Extending): The `ps' and `pdf' targets support a `-local' version.
294
295 2002-06-26  Art Haas  <ahaas@neosoft.com>
296
297         * automake.texi: s/.../@dots{}/.
298
299 2002-06-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
300
301         * configure.in: Check that ln works, fall back to `cp -p'.
302         * Makefile.am (install-exec-hook): Use $(LN) instead of ln.
303         Reported by Andreas Buening.
304
305 2002-06-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
306
307         * automake.in: Register &lang_lex_target_hook for lex and lexxx.
308         (lang_lex_target_hook): New function.
309         * tests/lex3.c: Complete to check that maintainer-clean erases
310         Lex's output.
311         Reported by Flavien Astraud.  This was lost on 2001-06-23 too.
312
313 2002-06-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
314
315         * automake.in (lang_yacc_target_hook): Add $output to
316         @maintainer_clean_files.  This was lost on 2001-06-23.
317         * tests/yacc7.test, tests/yacc4.test: Complete to check
318         that maintainer-clean erases YACC's output files,
319         respectively with and without `-d'.
320         Reported by Flavien Astraud.
321
322 2002-06-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
323
324         * lib/am/lang-compile.am (%FPFX%DEPMODE): Delete.  This is now
325         traced from configure.ac.
326
327         * automake.in (macro_define): Don't accept to override an AC_SUBST
328         or Automake variable in a new condition.
329         * tests/cond23.test, tests/cond24.test: New file.
330         * tests/Makefile.am (TESTS): Add cond23.test and cond24.test.
331         Reported by Patrik Weiskirchre.
332
333 2002-06-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
334
335         * tests/nobase.test, tests/pr204.test, tests/pr300-lib.test,
336         tests/pr300-ltlib.test, tests/pr300-prog.test,
337         tests/specflags7.test, tests/specflags8.test, tests/subdir5.test,
338         tests/subobj6.test, tests/subpkg.test, tests/transform.test:
339         Require gcc.
340
341 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
342
343         * tests/libtool2.test: Use required=libtoolize.
344         * tests/install2.test: Use required=gzip.
345
346 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
347
348         * tests/defs (required): Handle bison; set YACC automatically.
349         * tests/pr204.test, tests/yacc4.test, tests/yacc8.test,
350         tests/yaccvpath.test: Require bison.  Don't set YACC.
351
352 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
353
354         * tests/defs (required): Handle `gcc' and `g++'; automatically
355         export CC and CXX when they are required.
356         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
357         tests/cond4.test, tests/cond16.test, tests/cond18.test,
358         tests/cond19.test, tests/depcomp2.test, tests/depend2.test,
359         tests/lex3.test, tests/pr87.test, tests/pr220.test,
360         tests/substref.test, tests/target-cflags.test, tests/yacc4.test,
361         tests/yaccvpath.test: Require gcc.  Don't pass CC=gcc to
362         configure.
363         * tests/subobj9.test: Require g++.
364
365 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
366
367         * tests/defs (required): Handle `GNUmake'.
368         (needs_gnu_make): Don't define anymore.
369         * tests/cond4.test, tests/cond18.test, tests/cond19.test,
370         tests/dollar.test, tests/exsource.test, tests/extra6.test,
371         tests/lex3.test, tests/make.test, tests/pr9.test, tests/pr87.test,
372         tests/subdir5.test, tests/target-cflags.test, tests/yacc7.test,
373         tests/yaccvpath.test: Use `required=GNUmake' instead of
374         `$needs_gnu_make'.
375
376 2002-06-17  Paolo Bonzini  <bonzini@gnu.org>
377
378         * automake.in (process_option_list): Recognize std-options.
379         (handle_options): Enable std-options in gnits strictness.
380         (am_install_var): If std-options, enable CK-OPTS section.
381         * lib/am/scripts.am (installcheck-am): New target.
382         * lib/am/progs.am (installcheck-am): New target.
383         * tests/gnits2.test: New file.
384         * tests/Makefile.am (TESTS): Add gnits2.test.
385         * automake.texi (Gnits, Options): Document std-options.
386
387 2002-06-17  Kevin Ryde  <user42@zip.com.au>
388
389         * automake.in (scan_texinfo_file): Add tmp to @clean_suffixes,
390         as generated by recent texinfo.tex.
391
392 2002-06-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
393
394         * m4/header.m4 (AM_CONFIG_HEADER): Rename to ...
395         (_AM_CONFIG_HEADERS): ... this.
396         (_AM_CONFIG_HEADER_INSINUATE): Define AC_CONFIG_HEADERS to
397         call _AM_CONFIG_HEADERS; and AM_CONFIG_HEADER to call
398         AC_CONFIG_HEADERS.
399         * automake.in (scan_autoconf_traces): Trace AC_CONFIG_HEADERS
400         instead of AM_CONFIG_HEADER.
401         * tests/autoheader2.test: New file.
402         * tests/Makefile.am (TESTS): Add autoheader2.test.
403         Suggested by Raja R Harinath.
404
405 2002-06-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
406
407         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): Use m4_copy instead
408         of m4_rename so that AC_CONFIG_HEADER is never undefined and
409         therefore still traced after the redefinition.
410         * tests/defs (AUTOHEADER): Define.
411         * tests/autoheader.test: New file.
412         * tests/Makefile.am (TESTS): Add autoheader.test.
413         Reported by Braden McDaniel.
414
415 2002-06-13  Paolo Bonzini  <bonzini@gnu.org>
416
417         * automake.in (check_gnu_standards): In --gnu mode, accept
418         one of COPTING, COPYING.LESSER, or COPYING.LIB.
419         (common_files): Add COPYING.LESSER.
420         * automake.texi (Gnits): Document this.
421
422 2002-06-13  Paolo Bonzini  <bonzini@gnu.org>
423
424         * automake.in (required_targets): Add the pdf and pdf-am targets.
425         (initialize_per_input): Likewise.
426         (scan_texinfo_file): Add pdf to @clean_suffixes.
427         (handle_texinfo_helper): Output the .pdf dependencies, and define
428         the PDFS variable.
429         * lib/am/texinfos.am (TEXI2PDF): New variable.
430         (pdf, pdf-am): New targets.
431         (.PHONY): Add pdf, pdf-am, and pdf-recursive.
432         * lib/am/texibuild.am (.%SUFFIX%.pdf): New rule.
433
434 2002-06-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
435
436         Fix pr307.test failure with gcc 3.x.
437         * lib/depcomp (dashmstdout): Strip the call to libtool, and
438         replace `-o $object' by `-o /dev/null' before running "$@"
439         to generate dependencies.
440         (cpp): Strip the call to libtool as well as `-o $object'.
441
442 2002-06-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
443
444         * lib/depcomp (tru64): Expect dependency files in .libs/, maybe as
445         $base.lo.d, when libtool is used.
446         Reported by Nicolas Joly.
447
448 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
449
450         * lib/am/java.am (class%DIR%.stamp): Don't run $(JAVAC) when there
451         is no file to compile.
452         * tests/java2.test: New file.
453         * tests/Makefile.am (TESTS): Add java2.test.
454         Reported by Braden N. McDaniel.
455
456 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
457
458         * tests/maintclean.test: Don't check for autom4te.cache if
459         it's not created by Autoconf.
460         Reported by Bernd Jendrissek.
461
462 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
463
464         * automake.texi (Tests): Document site.exp.  Update DejaGnu's url.
465
466 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
467
468         * lib/am/header-vars.am (transform): Define.
469         Was removed by mistake on 2002-04-13.
470         * tests/transform.test: New file.
471         * tests/Makefile.am (TESTS): Add transform.test.
472         Reported by Nicolas Joly.
473
474 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
475
476         * tests/dollar.test: Require GNU make.
477         * tests/maintclean.test: Don't use `export YACC=false'.  Pass
478         YACC=false to configure instead.
479
480 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
481
482         * lib/config.guess, lib/config.sub, lib/texinfo.tex, lib/INSTALL,
483         INSTALL: New upstream versions.
484
485 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
486
487         * tests/sinclude.test: Check for m4_include too.
488
489 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
490
491         * tests/sinclude.test: Rename the package as amsinclude;
492         am__sinclude still trigers the sinclude macro once it has been
493         converted to am--sinclude.
494         Reported by Nicolas Joly.
495
496 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
497
498         * automake.texi (API versioning): Typo.
499
500 2002-06-10  Nicolas Joly  <njoly@pasteur.fr>
501
502         * THANKS (Nicolas Joly): Remove duplicate.
503
504 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
505
506         * Makefile.am (maintainer-check): Fix $MAKE -e detection.
507         * tests/yacc7.test: Use rm -f.
508
509 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
510
511         * tests/defs (ACLOCAL, AUTOMAKE): Use absolute paths.
512         * tests/subpkg.test: New file.
513         * tests/Makefile.am (TESTS): Add subpkg.test.
514
515 2002-06-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
516
517         For PR automake/318:
518         * tests/nobase.test: Rewrite to test _HEADERS, _DATA, _SCRIPTS,
519         _PROGRAMS, _LIBRARIES, and _LTLIBRARIES.
520         * lib/am/scripts.am (install-%DIR%SCRIPTS,
521         uninstall-%DIR%SCRIPTS): Honor nobase_; strip the directory by
522         default.
523         (?%DIR%SCRIPT_INSTALL): New variable.
524         * lib/am/header-vars.am (install_sh_SCRIPT): New variable.
525         Reported by Eric Siegerman.
526
527 2002-06-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
528
529         * automake.in (lang_yacc_target_hook): Add rule to recover from
530         the removal of $header.
531         * lib/am/yacc.am (%BASE%.h): Remove (duplicate with the one
532         output by lang_yacc_target_hook).
533         * tests/yacc7.test: Try to recreate foo.h after its removal.
534         * tests/yacc8.test: Add `AM_YFLAGS = -d' and try to recreate
535         parse.h too.
536         Reported by Bernd Jendrissek.
537
538 2002-06-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
539
540         For PR automake/317:
541         * Makefile.am (maintainer-check): Disallow `for f in $(FILES)',
542         suggest `list='$(FILES)'; for f in $$list' instead.
543         * lib/am/distdir.am (distdir): Adjust `for' usage.
544         * lib/am/texinfos.am (maintainer-clean-aminfo): Likewise.
545         * tests/dollar.test: New file.
546         * tests/Makefile.am (TESTS): Add dollar.test.
547         Reported by Eric Siegerman and Philip Fong.
548
549 2002-06-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
550
551         For PR automake/47 (fixed a long time ago):
552         * tests/yacc7.test: Also check that parser sources are distributed.
553
554 2002-06-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
555
556         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable.
557         (distclean): Use it.
558         (maintainer-clean): Delete autom4te.cache and
559         $(am__CONFIG_DISTCLEAN_FILES).
560         * tests/maintclean.test: New file.
561         * tests/Makefile.am (TESTS): Add maintclean.test.
562
563 2002-06-05  Miloslav Trmac  <trmac@popelka.ms.mff.cuni.cz>
564
565         * lib/am/dejagnu.am (site.exp): Quote build_alias, host_alias, and
566         target_alias.
567
568 2002-05-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
569
570         * Makefile.am (maintainer-check): Check for egrep and fgrep.
571
572         * test/cond22.test: Set SHELL when calling $MAKE -e.
573
574 2002-05-31  Richard Boulton <richard@tartarus.org>
575
576         Fix PR automake/326:
577         * automake.in (define_objects_from_sources): Calculate the result in
578         all conditions before passing this to subobjname to pick a name to
579         store the result in.
580         (subobjname): Expect a list of condition/value pairs as input.
581         Combine this list and use it as the key to determine the variable name.
582         * test/cond22.test: New file.
583         * tests/Makefile.am (TESTS): Add cond22.test
584
585 2002-05-30  Paul Eggert  <eggert@twinsun.com>
586
587         * lib/am/distdir.am (distdir): Don't assume that 'grep -F' works;
588         instead, use shell pattern matching.
589
590 2002-05-29  Paul Eggert  <eggert@twinsun.com>
591
592         Don't assume that egrep and fgrep exist, as POSIX 1003.1-2001 no
593         longer requires them.
594
595         * Makefile.am (maintainer-check): Use grep -E and grep -F instead
596         of egrep and fgrep.  Omit unnecessary -E and -F.
597         Fix quoting typo -- "fgrep '\$${'" should have been "fgrep '$${'".
598         * lib/am/distdir.am (distdir): fgrep -> grep -F.
599         Use $(), not ${}, for Make variables.
600         * lib/am/texinfos.am (install-info-am, uninstall-info-am):
601         fgrep -> grep
602         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
603         * tests/defs: Set FGREP and EGREP.
604
605         * tests/aclocali.test, tests/acoutput2.test, tests/all.test,
606         tests/ansi.test, tests/ansi4.test, tests/colon3.test,
607         tests/cond21.test, tests/condlib.test, tests/confh4.test,
608         tests/confsub.test, tests/cxxansi.test, tests/cxxo.test,
609         tests/depend4.test, tests/discover.test, tests/distname.test,
610         tests/dup3.test, tests/empty4.test, tests/fo.test,
611         tests/implicit.test, tests/insh2.test, tests/interp.test,
612         tests/lex.test, tests/lex3.test, tests/lex4.test,
613         tests/libobj5.test, tests/libobj7.test, tests/make.test,
614         tests/makevars.test, tests/nostdinc.test, tests/parse.test,
615         tests/pluseq.test, tests/pluseq4.test, tests/pluseq6.test,
616         tests/pr2.test, tests/pr9.test, tests/seenc.test,
617         tests/specflags.test, tests/specflags3.test,
618         tests/specflags6.test, tests/subobj.test, tests/subobj2.test,
619         tests/suffix3.test, tests/texinfo.test, tests/texinfo6.test,
620         tests/texinfo8.test, tests/vtexi.test, tests/yacc3.test,
621         tests/yacc6.test: fgrep -> $FGREP, egrep -> $EGREP
622
623 2002-05-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
624
625         For PR automake/323:
626         * m4/depend.m4: Missing comma.
627         * tests/gcj4.test: New file.
628         * tests/Makefile.am (TESTS): Add gcj4.test.
629         Reported by David Pashley.
630
631 2002-05-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
632
633         * tests/defs (configure.in): Don't double-quote $me.
634         * tests/sinclude.test: Overwrite configure.in and use
635         `am__sinclude' instead of `sinclude' as package name.
636         Excercise `m4_sinclude' instead of `sinclude'.
637
638 2002-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
639
640         * automake.in (conditional_implies_one_of): Rename as ...
641         (conditional_implies_any): ... this.
642         * tests/pluseq9.test: Exercise another case with the new
643         `C' variable.
644         Suggested by Raja R Harinath.
645
646 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
647
648         * tests/defs (configure.in): Quote macro arguments.
649         Reported by Nicolas Joly.
650
651 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
652
653         * lib/am/header-vars.am (build_triplet, host_triplet,
654         target_triplet): Define.  Were removed by mistake on 2002-04-13.
655
656 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
657
658         For PR automake/186:
659         * lib/am/distdir.am (distcheck): Attempt a DESTDIR install.
660         * tests/destdir.test: New file.
661         * tests/Makefile.am (TESTS): Add destdir.test.
662
663 2002-05-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
664
665         * automake.in (conditional_true_when): Return false if $WHEN == FALSE.
666         (conditional_is_redundant): Simplify.
667         (conditional_implies_one_of,
668         variable_not_always_defined_in_cond): New functions
669         (macro_define): Reject appends if the variable is not defined in
670         all conditions where `+=' applies.
671         (invert_conditions): Rewrite.  Before this patch,
672         invert_conditions("A_TRUE B_TRUE", "A_TRUE B_FALSE", "A_FALSE")
673         would return ("A_FALSE B_TRUE", "A_FALSE B_TRUE"), which seems
674         wrong (these conditions implies "A_FALSE").  Now it outputs (),
675         which just means the input conditions cover all cases.
676         (variable_conditions_permutations): Never output FALSE conditions.
677         * tests/pluseq2.test, tests/pluseq3.test: Define data_DATA
678         in the CHECK_FALSE condition to fix the test.
679         * tests/pluseq5.test: Actually check the diagnostic.
680         * tests/pluseq9.test: New file.
681         * tests/Makefile.am (TESTS): Add pluseq9.test.
682
683 2002-05-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
684
685         Fix for PR automake/322:
686         * automake.in (read_am_file): Rename $was_rule as $prev_state, and
687         set it with IN_RULE_DEF, IN_VAR_DEF, or IN_COMMENT as appropriate.
688         Handle comments continued by backslashes.
689         * tests/comment6.test: New file.
690         * tests/Makefile.am (TESTS): Add comment6.test.
691         Reported by Braden N. McDaniel.
692
693 2002-05-08  Charles Wilson  <cwilson@ece.gatech.edu>
694             Alexandre Duret-Lutz  <duret_g@epita.fr>
695
696         * lib/am/progs.am (clean-%DIR%PROGRAMS): If Libtool is used, clean
697         both `program$(EXEEXT)' and `program'; needed under Cygwin.
698         * tests/libtool3.test: New file.
699         * tests/Makefile.am (TESTS): Add libtool3.test.
700
701 2002-05-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
702
703         * TODO: Undust.
704
705 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
706
707         * Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.
708
709 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
710
711         Erase stamps from the Makefile that generates them.
712
713         * automake.in (handle_configure): Append each used stamp to
714         @distclean_config.  Don't warn about stamp-h in AC_OUTPUT, this
715         file is not used anymore.
716         * lib/am/clean.am (distclean-generic): Don't erase stamp-h and
717         stamp-h[0-9]*.
718         * tests/subdir6.test: New file.
719         * tests/Makefile.am (TESTS): Add it.
720
721 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
722
723         Fix for condd.test (conditional `+='):
724         * automake.in (%appendvar): New.
725         (initialize_per_input): Clear it.
726         (macro_define): Handle += for variable defined in another condition.
727         * automake.texi (Conditional Sources): Use conditional += in
728         the example.
729         (General Operation, Conditionals): Remove note about broken +=.
730         * tests/cond21.test: New file.
731         * tests/condd.test: Also test conditional append to a _SOURCE
732         variable.  Create missing directories.
733         * tests/Makefile.am (TESTS): Add cond21.test.
734         (XFAILS): Remove condd.test.
735
736 2002-05-05  Tom Tromey  <tromey@redhat.com>
737
738         * automake.texi (Program and Library Variables): Mention _LFLAGS.
739
740 2002-04-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
741
742         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
743         files.  Fix subobj9.test on OSF and IRIX.
744         Reported by Nelson H. F. Beebe.
745
746 2002-04-26  Tom Tromey  <tromey@redhat.com>
747
748         * lib/am/dejagnu.am (distclean-DEJAGNU): New target.
749         For Debian bug 144221.
750
751 2002-04-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
752
753         * tests/man2.test: Use `pwd`, not $PWD.  Use $MAKE -e.
754
755 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
756
757         * automake.in (subobjname): Use the length of %subobjvar
758         instead of $subobjnamenum.
759         (subobjnamenum): Remove.
760
761 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
762
763         For PR automake/307:
764         * lib/depcomp: Never compute dependencies in the background, this
765         can cause races with libtool.  Compute the dependencies after
766         the actual compilation.  Don't make libtool silent now that
767         it's run in the foreground.
768         * tests/pr307.test: New file.
769         * tests/Makefile.am (TESTS): Add pr307.test.
770         Reported by Laurent Morichetti.
771
772 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
773
774         * lib/am/check.am: Show skipped tests.  Display the
775         $(PACKAGE_BUGREPORT) address on failure.
776
777 2002-04-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
778
779         Fix PR automake/315:
780         * automake.in (subobjname): Rewrite to generate variable name
781         unique for each content.
782         (%substnums): Remove.
783         (%subobjvar): New hash.
784         (initialize_per_input): Clear %subobjvar.
785         (define_objects_from_sources): Return the name of the variable
786         defined, in addition to the linker.  Call subobjname only once
787         the content of the variable to define is known.
788         (handle_source_transform): Adjust call to define_objects_from_sources.
789         * tests/specflags8.test: Mention PR 315.
790         * tests/subobjname.test: New file.
791         * tests/Makefile.am (XFAIL_TESTS): Remove specflags8.test.
792         (TESTS): Add subobjname.test.
793
794 2002-04-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
795
796         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep
797         the whole file for 'generated by automake', not only the
798         first line.  This accounts for post-processed Makefile.in's.
799         * tests/postproc.test: New file.
800         * tests/Makefile.am (TESTS): Add postproc.test.
801
802 2002-04-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
803
804         For PR automake/151 and PR automake/314:
805         * automake.texi (A Program): Split into
806         (Program Sources, Linking, Conditional Sources, Conditional
807         Programs): ... these subsections; moving the Linking node
808         before the Conditional discussions.
809         (Conditional Sources): More details.  Notably, mention
810         hello_DEPENDENCIES.
811         (Conditionals): Adjust reference to Conditional Programs.
812
813 2002-04-19  Paul Eggert  <eggert@twinsun.com>
814
815         Fix some bugs when using "$@" when there might be zero positional
816         arguments in cases where this matters.  Zsh doesn't support
817         the workaround ${1+"$@"} that has been used by Automake since
818         the Mon Dec  4 11:55:36 1995 change.
819
820         * aclocal.in: Use 'case' statement to work around problem.
821         * automake.in: Likewise.
822         * lib/ylwrap: Likewise.
823         * lib/missing: No need for workaround, as the command is never
824         invoked with zero arguments.
825         * tests/ccnoco.test: Likewise.
826         * missing: Update from lib/missing.
827
828 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
829
830         * automake.in (initialize_per_input): Clear %require_file_found.
831         (%require_file_found): Group the declaration with the other
832         variables initialized by initialize_per_input.
833         * tests/required.test: New file.
834         * tests/Makefile.am (TESTS): Add it.
835         Reported by Marius Vollmer.
836
837 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
838
839         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): New function,
840         override AC_CONFIG_HEADERS with AM_CONFIG_HEADER.
841         (_AM_CONFIG_HEADER): Use _AM_AC_CONFIG_HEADERS.
842         * m4/init.m4: Call _AM_CONFIG_HEADER_INSINUATE.
843         * tests/stamph2.test: Use AC_CONFIG_HEADERS for some of the config
844         files.
845         * tests/confh5.test: New file.
846         * tests/Makefile.am (TESTS): Add confh5.test.
847         * automake.texi (Optional, Public macros): Update descriptions
848         of AC_CONFIG_HEADERS and AM_CONFIG_HEADER.
849
850 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
851
852         * tests/man2.test: New file.
853         * tests/Makefile.am (TESTS): Add man2.test.
854         * lib/am/mans.am (install-man%SECTION%): Change the extension
855         of the man pages being installed, as documented.
856
857 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
858
859         Enable traces; wipe out the old configure.in parser.
860
861         * automake.in (scan_autoconf_traces): Use '$ENF{AUTOCONF}' of
862         'autoconf'.  Honnor the $filename argument.
863         (scan_autoconf_files): Don't call scan_one_autoconf_file.
864         Always call scan_autoconf_traces.
865         (scan_one_autoconf_file): Remove, with it associated regexes.
866         (obsolete, obsolete_rx): Remove.
867         (register_language, handle_languages): Remove the 'define_flag'
868         support.  Remove it from the struct and language definitions too.
869         (unquote_m4_arg): Remove.
870         * lib/am/header-vars.am, lib/am/compile.am, lib/am/lisp.am: Remove
871         the `FOO = @FOO@' definitions for all AC_SUBST'ed variables.  They
872         are now generated automatically.
873         * aclocal.in (obsolete_macros): Don't mention obsolete_macros in
874         automake.in.
875         * automake.texi (Invoking Automake): Mention the AUTOCONF envvar.
876
877 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
878
879         * tests/version6.test: New file.
880         * tests/Makefile.am (TESTS): Add tests/version6.test.
881         * automake.in (version_check): Return 0 on equality.
882
883 2002-04-13  Andreas Schwab  <schwab@suse.de>
884
885         * THANKS: Update my mail address.
886
887 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
888
889         * tests/discover.test: Use a full configure.in that calls AC_INIT.
890         Use AC_LIBOBJ.  Grep the error message.
891         * test/ldadd.test: Don't use LIBOBJS.  Use a full configure.in.
892         Grep the error message.  Require libtool.
893         * tests/ldflags.test:  Don't use LIBOBJS.
894         * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the
895         error messages for CC and CXX.
896
897 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
898
899         * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
900         and AMDEPBACKSLASH.
901         * tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
902         * tests/ext.test: Enable dependencies for OBJC.
903         * tests/libobj.test, tests/libobj6.test, tests/libobj9.test:
904         Delete.  They tests for different flavors of $LIBOBJS assignments
905         that wont be supported anymore.
906         * tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ.
907         * tests/obsolete.test: Don't test Automake.
908         * tests/suffix5.test: Require libtool.
909         * tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and
910         libobj9.test.
911
912 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
913
914         * configure.in (APIVERSION): Fix definition.
915
916 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
917
918         * NEWS: Catch up with changes since 1.6.
919
920 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
921
922         * tests/yacc8.test: Don't assume GNU make, run config.status
923         to regenerate the Makefile.
924
925 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
926
927         * Makefile.am (maintainer-check): Make sure `$MAKE -e' is
928         always followed by a SHELL setting.
929         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set
930         SHELL when calling `$MAKE -e'.
931
932 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
933
934         * tests/subobj9.test: Use configure.in, not configure.ac,
935         otherwise this fails with old libtool versions.
936
937 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
938
939         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
940         versions.
941
942 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
943
944         * ChangeLog.2001: New file, extracted from ChangeLog.
945         * Makefile.am (EXTRA_DIST): Add it.
946
947 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
948
949         * automake.texi (Canonicalization): The sources for libmumble++.a
950         go into libmumble___a_SOURCES.
951
952 2002-04-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
953
954         * Makefile.am (maintainer-check): Check for `sleep 1' uses in the
955         test suite.  Suggest `sleep 2' instead.
956         * tests/confsub.test: Use `sleep 2'.
957
958 2002-04-04  Paul Eggert  <eggert@twinsun.com>
959
960         * lib/am/subdirs.am:
961         ($(RECURSIVE_TARGETS), maintainer-clean-recursive):
962         $(MAKEFLAGS) -> $$MAKEFLAGS, so that we don't run into problems if
963         MAKEFLAGS contains '$(...)'.
964
965 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
966
967         * tests/specflags8.test: Typo.
968
969 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
970
971         * tests/specflags6.test: Run aclocal.
972         * tests/Makefile.am (TESTS): Add specflags6.test.
973
974 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
975
976         * tests/specflags7.test, tests/specflags8.test: New files.
977         * tests/Makefile.am (TESTS): Add them.
978         (XFAIL_TESTS): Add specflags8.test.
979
980 2002-03-29  Tom Tromey  <tromey@redhat.com>
981
982         * automake.in (check_typos): Examine AM_LDFLAGS.
983         Fixes PR automake/311.
984
985         For PR automake/312:
986         * lib/am/libtool.am (clean-libtool): Use LTRMS.
987         * automake.in (handle_single_transform_list): When processing a
988         libtool object, clean the ordinary object and register the
989         directory.
990         (libtool_clean_directories): New global.
991         (initialize_per_input): Initialize it.
992         (generate_makefile): Call handle_libtool later.
993         (handle_libtool): Handle libtool_clean_directories.
994         * tests/subobj9.test: New file.
995         * tests/Makefile.am (TESTS): Added subobj9.test.
996
997 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
998
999         * tests/extra6.test, tests/subdir5.test: Require GNU make.
1000
1001 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1002
1003         * tests/dup3.test (ACLOCAL): s/srcdir/testsrcdir/.
1004
1005 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1006
1007         * tests/extra7.test: New file.
1008         * tests/Makefile.am: Add it.
1009         * lib/am/distdir.an (distdir): When a distribuable directory
1010         exists both in `.' and $(srcdir), merge both directories.  This
1011         works around a failure of extra6.test on Tru64 reported by
1012         Nicolas Joly.
1013
1014 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1015
1016         * tests/pr87.test, tests/yaccvpath.test: Require GNU make.
1017
1018 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1019
1020         * Makefile.am (maintainer-check): Catch occurrences of
1021         `$MAKE foo=bar' in the testsuite.  Suggest using
1022         `foo=bar $MAKE -e' instead.
1023         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test:
1024         Use $MAKE -e.  This fixes a ansi5.test failure with Solaris make.
1025         * tests/defs: Unset $srcdir, and set $testsrcdir to its old value.
1026         * tests/installsh.test (AUTOMAKE, ACLOCAL): Use $testsrcdir.
1027
1028 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1029
1030         Fix for PR automake/310:
1031         * lib/am/depend2.am, lib/am/lex.am, lib/am/yacc.am: Quote %SOURCE%
1032         so it never appears as a plain word.
1033
1034 2002-03-25  Angus Leeming  <a.leeming@ic.ac.uk>
1035
1036         * lib/depcomp (tru64): Correctly compute `base'.
1037
1038 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1039
1040         * tests/pr211.test: s/requires/required/, otherwise the test fails
1041         if libtool is not installed.
1042
1043 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1044
1045         * tests/dirname.test: Don't use $SHELL when calling ./configure.
1046
1047 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1048
1049         * tests/dirname.test: Use --quiet to fix failure on installations
1050         using a site script.
1051         Reported by Nicolas Joly.
1052
1053 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1054
1055         * Makefile.am (maintainer-check): Check for misuses of make,
1056         autoconf, automake, aclocal, and perl in the testsuite.  Suggest
1057         using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
1058         * tests/confsub.test: Use $AUTOCONF and $MAKE.
1059         * tests/extra5.test, tests/extra6.test, tests/lex5.test,
1060         tests/nobase.test, tests/nodist2.test, tests/pr204.test,
1061         tests/pr224.test, tests/pr287.test, tests/strip.test,
1062         tests/yacc8.test: Use $MAKE.
1063
1064 2002-03-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
1065
1066         Add support for two-dot versions.
1067
1068         * tests/version5.test: New file.
1069         * tests/Makefile.am (TESTS): Add it.
1070         * automake.in (version_split, version_compare): New functions.
1071         (version_check): Rewrite using version_split and version_compare.
1072         (process_option_list): Adjust regex.
1073
1074 2002-03-18  Richard Boulton <richard@tartarus.org>
1075
1076         Fix for PR automake/306:
1077         * automake.texi (Generalities): Document +=.
1078         (Conditionals): Document limitations of += with conditionals.
1079
1080 2002-03-17  Tom Tromey  <tromey@redhat.com>
1081
1082         Fix for PR automake/295:
1083         * automake.texi (Invoking Automake): Deprecate --output-dir.
1084         * automake.in (usage): Don't document --output-dir.
1085         (output_directory): Don't initialize.
1086         (parse_arguments): Deprecate --output-dir.
1087
1088         * m4/init.m4 (AUTOMAKE, ACLOCAL): Removed extra quotes.
1089         Fixes PR automake/304.
1090
1091 2002-03-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1092
1093         * tests/dirforbid.test: Workaround for NetBSD sh bug.
1094         Fixes PR automake/305.
1095
1096 2002-03-11  Richard Boulton <richard@tartarus.org>
1097
1098         * automake.in (check_typos): Allow variables with reserved
1099         suffices (such as _LDFLAGS) and prefixes which aren't
1100         recognised if the variable is defined in configure.ac.
1101         Fixes acsubst.test.
1102
1103 2002-03-11  Richard Boulton <richard@tartarus.org>
1104
1105         * tests/acsubst.test: New test, by Alexandre Duret-Lutz
1106         * tests/acsubst2.test: New test, by Alexandre Duret-Lutz
1107         * tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test
1108
1109 2002-03-11  Peter Breitenlohner  <peb@mppmu.mpg.de>
1110
1111         * tests/defs: Unset DESTDIR, otherwise `make DESTDIR=/foo check'
1112         causes failures.
1113
1114 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1115
1116         Fix for PR automake/303:
1117         * automake.in (version_check): Move the error message ...
1118         (process_option_list): ... here, so we can distinguish between
1119         global and local options.
1120
1121 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1122
1123         * tests/pr300-lib.test, tests/pr300-ltlib.test,
1124         tests/pr300-prog.test: Use AC_OUTPUT, not AC_OUTPUT(Makefile), so
1125         Autoconf doesn't complain about Makefile being output twice.
1126
1127 2002-03-06  Tom Tromey  <tromey@redhat.com>
1128
1129         * configure.in: Upped version to 1.6a.
1130
1131 2002-03-05  Tom Tromey  <tromey@redhat.com>
1132
1133         * configure.in: Released 1.6.
1134
1135 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1136
1137         Fix for PR automake/300:
1138         * tests/pr300-lib.test, tests/pr300-ltlib.test,
1139         tests/pr300-prog.test: New files.
1140         * tests/Makefile.am (TESTS): Add them.
1141         * automake.in (handle_ltlibraries): Strip nobase_ prefix to
1142         compute the directory.
1143         * lib/am/header-vars.am (install_sh_PROGRAM): New variable.
1144         * lib/am/libs.am (%DIR%LIBRARIES_INSTALL): New variable.
1145         (install-%DIR%LIBRARIES): Use it.  Honor nobase_.
1146         (uninstall-%DIR%LIBRARIES): Honor nobase_.
1147         * lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): New variable.
1148         (install-%DIR%LTLIBRARIES): Use it.  Honor nobase_.
1149         (uninstall-%DIR%LTLIBRARIES): Honor nobase_.
1150         * lib/am/progs.am (%DIR%PROGRAMS_INSTALL): New variable.
1151         (install-%DIR%PROGRAMS): Use it.  Honor nobase_.
1152         (uninstall-%DIR%PROGRAMS): Honor nobase_.
1153         See also the fix for nobase.test on 2001-11-09.
1154
1155 2002-03-05  Tom Tromey  <tromey@redhat.com>
1156
1157         * lib/config.sub, lib/config.guess, lib/texinfo.tex: Updated.
1158
1159 2002-03-05  Pavel Roskin  <proski@gnu.org>
1160
1161         * tests/yacc8.test: Add a command between "test" and "cd" to
1162         work around a bug in bash-2.05.
1163
1164 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1165
1166         Fix for PR automake/294:
1167         * tests/dirforbid.test: New file.
1168         * tests/Makefile.am (TESTS): Add it.
1169         * automake.in (standard_prefix): New hash.
1170         (am_primary_prefixes): Forbid standard_prefixes which are not
1171         explicitely allowed.
1172         * automake.texi (Uniform): Remove FIXME.
1173
1174 2002-03-05  Jim Meyering  <meyering@lucent.com>
1175
1176         * automake.in (@common_files): Add config.rpath.
1177
1178 2002-03-05  Kevin Ryde  <user42@zip.com.au>
1179
1180         For PR automake/297:
1181         * lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until
1182         after AC_PROG_LEX, since it will try to run it and fail (in autoconf
1183         2.52 at least).
1184
1185 2002-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1186
1187         * automake.in (scan_one_autoconf_file): Declare
1188         LEX_OUTPUT_ROOT and LEXLIB as configure variables when
1189         AM_PROG_LEX or AC_PROG_LEX are seen.  This allows to ...
1190         * lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB
1191         definitions.  Search %SOURCE% in $(srcdir).  Use s||| instead
1192         of s/// in the sed invocation, to support filenames containing
1193         slashes.
1194         * lib/am/yacc.am: Search %SOURCE% in $(srcdir).  Use s||| too.
1195         * tests/lex5.test, tests/yacc8.test: New files.
1196         * tests/Makefile.am (TESTS): Add them.
1197
1198 2002-02-23  Per Bothner  <per@bothner.com>
1199
1200         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Set `dirpart' to
1201         `.' in else branch.
1202
1203 2002-02-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
1204
1205         * tests/make.test: Revert the grep logic to work around a bug
1206         in NetBSD sh (see NetBSD Problem Report #11542).
1207         Reported by Patrick Welche.
1208
1209 2002-02-20  Tim Van Holder  <tim.van.holder@pandora.be>
1210
1211         * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
1212         to try and prevent a non-lisp emacs from starting in interactive
1213         mode.
1214         * automake.texi: Document this change.
1215
1216 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1217
1218         * automake.texi (Macros): Split into ...
1219         (Public Macros, Private Macros): ... these.
1220
1221 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1222
1223         * tests/insthook.test: Use sed instead of "tail +X".
1224
1225 2002-02-18  Paul Eggert  <eggert@twinsun.com>
1226
1227         * lib/depcomp: Don't use "tail +3"; it's not portable to
1228         POSIX 1003.1-2001 hosts.
1229
1230 2002-02-18  Jim Meyering  <meyering@lucent.com>
1231
1232         * tests/cond12.test: Use sed 1q, not `head -n 1'.
1233         The latter is not portable to some old systems.
1234         * m4/depout.m4: Don't use `head -1'; it's no longer portable.
1235         Use `sed 1q' instead.
1236         * tests/insthook.test: Likewise.
1237
1238 2002-02-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1239
1240         * automake.in (handle_lib_objects_cond): Tell the user to put
1241         global linker flags in AM_LDFLAGS, not LDFLAGS.
1242
1243         * automake.texi (General Operation): AC_SUBST'ed variables
1244         override Automake's variables.
1245         (Uniform): More words and @refs.
1246         (Auxiliary Programs) <config.sub, config.guess>: Add URL.
1247         (etags): More explanations about the first example.
1248         (Invoking Automake): Mention autoreconf.  More @refs.
1249         (Requirements): Mention AC_CONFIG_FILES.
1250         (Optional): AC_CHECK_TOOL will no longer install config.sub and
1251         config.guess.  Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
1252         (Invoking aclocal): aclocal no longer warn about duplicates.
1253         (Macros) <AM_INIT_AUTOMAKE>: More explanations.
1254         (Extending aclocal): Suggest using the output of
1255         `aclocal --print-ac-dir` to install third-party macros.
1256         (Alternative): Specify ordering of dist_, nodist_, and nobase_
1257         prefixes.
1258         (A Program): Mention scripts.  The global LDADD variable is not
1259         meant to hold link flags, suggest using AM_LDFLAGS instead.
1260         (Program and Library Variables) <maude_LIBADD, maude_LDADD>:
1261         _LIBADD and _LDADD are subject to the same restriction wrt to
1262         link flags.
1263         (Program and Library Variables) <maude_DEPENDECIES>: Is also
1264         derived from maude_LIBADD.
1265         (Program variables): Define AM_LDFLAGS.
1266         (Dependencies): Passing the no-dependencies option to
1267         AM_INIT_AUTOMAKE is prefered.
1268         (Scripts): Explain why automake is magically cleaned.
1269         Mention noinst_SCRIPTS and check_SCRIPTS.
1270         (Data): Use dist_ in Automake's example.
1271         (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
1272         Mention AC_CONFIG_FILES instead of AC_OUTPUT.
1273
1274 2002-02-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
1275
1276         * Makefile.am (FETCHFILES): Add Automake/XFile.pm.
1277         (fetch): Fetch XFile.pm.  Update the files in $(srcdir) instead
1278         of asking the maintainer to do it manually.
1279         * lib/config.guess, lib/config.sub, lib/texinfo.tex,
1280         Automake/XFile.pm: New upstream versions.
1281
1282 2002-02-02  Tom Tromey  <tromey@redhat.com>
1283
1284         * automake.texi (Macros): Warn about upgrading.
1285
1286 2002-02-01  Tom Tromey  <tromey@redhat.com>
1287
1288         Change per GNU coding standards:
1289         * aclocal.in (parse_arguments): Only mention most recent year in
1290         copyright output.
1291         * automake.in (version): Only mention most recent year.
1292
1293 2002-01-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
1294
1295         * automake.texi (API versioning): New Node.
1296         (Extending): Use $(DESTDIR) in examples.
1297
1298 2002-01-28  Akim Demaille  <akim@epita.fr>
1299
1300         * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5.
1301         Respect the --help layout.
1302
1303 2002-01-27  Tom Tromey  <tromey@redhat.com>
1304
1305         * configure.in: Bumped to 1.5e.
1306
1307         * lib/am/yacc.am: Use `rm -f'.
1308
1309         * configure.in: Released 1.5d.
1310
1311         * lib/config.guess: New version from FSF.
1312
1313         * Makefile.am (uninstall-hook): New target.
1314
1315 2002-01-24  Akim Demaille  <akim@epita.fr>
1316
1317         * lib/install-sh: Update, from Autoconf.
1318
1319 2002-01-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1320
1321         * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
1322         as AC_CANONICAL_HOST (the former does not require the latter since
1323         Autoconf 2.50).
1324         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
1325         * automake.texi (Requirements): Do not require STRIP to be
1326         defined by the user.
1327
1328 2002-01-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
1329
1330         * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
1331         * automake.in (handle_languages): Compute and substitute %DEPDIRS%.
1332         * tests/pr224.test: Make sure .deps subdirectories are
1333         erased by distclean.
1334
1335 2002-01-22  Tom Tromey  <tromey@redhat.com>
1336
1337         * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
1338         no-dependencies option is set.
1339         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
1340         no-dependencies option is set.  Don't call AM_DEP_TRACK or
1341         AM_SET_DEPDIR.
1342
1343 2002-01-22  Pavel Roskin  <proski@gnu.org>
1344
1345         * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and
1346         ASFLAGS.
1347
1348 2002-01-22  Akim Demaille  <akim@epita.fr>
1349
1350         * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex.
1351         (fetch): Adjust.
1352
1353 2002-01-21  Tom Tromey  <tromey@redhat.com>
1354
1355         * Makefile.am (fetch): Don't fetch ansi2knr.
1356
1357         * automake.texi (Macros): Updated for new variable names.
1358         (Program and Library Variables): Likewise.
1359         (Assembly Support): Likewise.
1360         * m4/as.m4: Use CCAS and CCASFLAGS.
1361         * automake.in (asm): Use CCAS and CCASFLAGS.
1362
1363 2002-01-21  Akim Demaille  <akim@epita.fr>
1364
1365         * automake.in (&parse_arguments): Use a more GNUish error message
1366         on wrong options.
1367
1368 2002-01-20  Tom Tromey  <tromey@redhat.com>
1369
1370         Fix for PR automake/231:
1371         * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ).
1372         * m4/depend.m4: Document `GCJ'.
1373
1374         For PR automake/224:
1375         * tests/Makefile.am (TESTS): Added pr224.test.
1376         * tests/pr224.test: New file.
1377         * lib/depcomp: Fixed computation of depfile.
1378         * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
1379         * automake.in (handle_single_transform_list): Only reject `..'
1380         component for Java.  Put dependencies in directory near object.
1381         (handle_languages): Set DEPBASE.  Handle de-ansi-fication.
1382
1383 2002-01-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
1384
1385         * tests/defs: Export AUTOMAKE and ACLOCAL.
1386
1387 2002-01-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1388
1389         Fix for PR automake/204:
1390         * tests/pr204.test: New file.
1391         * tests/Makefile.am (TESTS): Add it.
1392         * automake.in (handle_single_transform_list): Don't distribute
1393         sources derived from non-distributed sources.
1394
1395 2002-01-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
1396
1397         Fix for PR automake/229:
1398         * tests/pr229.test: New file.
1399         * tests/Makefile.am (TESTS): Add it.
1400         * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN,
1401         AC_EMXOS2, and AC_MINGW32.
1402
1403 2002-01-18  Tom Tromey  <tromey@redhat.com>
1404
1405         * tests/cond7.test: Fix test bug exposed by copyright update.
1406
1407         For PR automake/288:
1408         * automake.in (lang_c_rewrite): Don't prepend directory to base if
1409         directory is `.'.  Also, properly compute de_ansi_files entry in
1410         subdir-objects case
1411         * tests/Makefile.am (TESTS): Added ansi7.test.
1412         * tests/ansi7.test: New file.
1413
1414         * aclocal.in (parse_arguments): Added 2002.
1415         (write_aclocal): Likewise.
1416         (parse_arguments): Updated my email address.
1417         * automake.in (gen_copyright): Added 2002.
1418         (version): Likewise.  Also, changed my email address.
1419
1420         * configure.in (APIVERSION): Refined definition.
1421
1422 2002-01-18  Tom Tromey  <tromey@redhat.com>
1423
1424         * missing: Updated.
1425         * lib/missing: Accept versioned aclocal.
1426         * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
1427
1428 2002-01-17  Pavel Roskin  <proski@gnu.org>
1429
1430         * m4/Makefile.am (m4datadir): Use APIVERSION.
1431
1432 2002-01-16  Tom Tromey  <tromey@redhat.com>
1433
1434         * Makefile.am (install-exec-hook): Use APIVERSION.
1435         * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
1436         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
1437         APIVERSION.
1438         * automake.in (perllibdir): Use APIVERSION.
1439         (libdir): Likewise.
1440         * aclocal.in (perllibdir): Use APIVERSION.
1441         (APIVERSION): New global.
1442         (parse_arguments): Use APIVERSION.
1443         * configure.in (APIVERSION): New subst.
1444         (pkgvdatadir): Use APIVERSION.
1445
1446 2002-01-15  Tom Tromey  <tromey@redhat.com>
1447
1448         * missing: Updated.
1449         * lib/missing: Match against `automake*' to pick up versioned
1450         automake.
1451         * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name.
1452         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version
1453         variable.
1454         * lib/am/Makefile.am (amdir): Use pkgvdatadir.
1455         * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use
1456         pkgvdatadir.
1457         (scriptdir): Use pkgvdatadir.
1458         (installcheck-local): Likewise.
1459         * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir.
1460         * automake.in (perllibdir): Added VERSION.
1461         (libdir): Likewise.
1462         * aclocal.in (parse_arguments): Search versioned directory.  Don't
1463         push unversioned directory unless it exists.
1464         (perllibdir): Added VERSION.
1465         (default_acdir): New global.
1466         * m4/Makefile.am (m4datadir): Added $(VERSION).
1467         * Makefile.am (install-exec-hook): New target.
1468         * configure.in (ACLOCAL): Search build directory.
1469         (pkgvdatadir): New subst.
1470
1471 2002-01-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
1472
1473         * lib/config.sub, lib/config.guess: New versions from FSF.
1474
1475 2002-01-13  Tom Tromey  <tromey@redhat.com>
1476
1477         For PR automake/288:
1478         * automake.in (lang_c_rewrite): Set value for de_ansi_files entry
1479         to directory.
1480         (lang_c_finish): Likewise.  Also, use directory information from
1481         de_ansi_files.
1482
1483 2002-01-13  Kevin Ryde  <user42@zip.com.au>
1484
1485         For PR automake/288:
1486         * tests/Makefile.am (TESTS): Added ansi6.test.
1487         * tests/ansi6.test: New file.
1488
1489 2002-01-13  Tom Tromey  <tromey@redhat.com>
1490
1491         For PR automake/287:
1492         * lib/am/distdir.am (distdir): Use `$$list' trick when looping
1493         over subdirs.
1494         * tests/Makefile.am (TESTS): Added pr287.test.
1495         * tests/pr287.test: New file.
1496
1497 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1498
1499         * lib/am/distdir.am (distdir): Handle subdirectories.
1500         * tests/extra6.test: New file.
1501         * tests/Makefile.am (TESTS): Add it.
1502
1503 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1504
1505         * tests/extra2.test: Run $ACLOCAL.
1506
1507 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
1508
1509         * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
1510         AM_INIT_AUTOMAKE arguments when using the old-style call.
1511         Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
1512         Suggested by Pavel Roskin.
1513
1514 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
1515
1516         * test/nodefine.test, test/nodefine2.test: Check that no-define
1517         works, not the contrary...
1518         * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
1519         * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
1520         not the contrary.
1521
1522 2002-01-12  Jim Meyering  <meyering@lucent.com>
1523
1524         * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
1525         * tests/libobj11.test: New file.
1526         * tests/Makefile.am (TESTS): Add libobj11.test.
1527
1528 2002-01-09  Ryan T. Sammartino  <ryants@shaw.ca>
1529
1530         * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options.
1531
1532 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1533
1534         * automake.in (file_contents_internal): Introduce two variables,
1535         $is_rule and $discard_rules to track rules spanning across multiple
1536         paragraphs.  This fixes a very nasty bug reported by Dmitry Mikhin
1537         where only the first paragraph of such a multi-paragraph rule was
1538         discarded; but it leaves many similar latent bugs (see the FIXMEs).
1539
1540 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1541
1542         * tests/dup3.test: Remove all -I from $ACLOCAL before using it.
1543         * tests/error.test: Use some macro names which are not defined by
1544         Automake itself.
1545
1546 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1547
1548         * automake.texi (Complete, Macros, Options): Document the new style
1549         AM_INIT_AUTOMAKE.  Remove AM_AUTOMAKE_OPTIONS documentaion.
1550         * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
1551         AC_INIT if they are available there.  Support a new call form
1552         where the only argument is an optional space-separated list of
1553         Automake options.
1554         * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
1555         (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
1556         _AM_IF_OPTION): New functions.
1557         * automake.in (AC_INIT_PATTERN): New variable.
1558         (global_options_line): Remove, use $seen_init_automake instead.
1559         (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
1560         from AC_INIT if available.  Support the new style AM_INIT_AUTOMAKE.
1561         Remove the AM_AUTOMAKE_OPTIONS handling.
1562         * configure.in: Modernize.
1563         * tests/defs (configure.in): Modernize.  One third of the tests
1564         still overwrite the default configure.in and use an old
1565         AM_INIT_AUTOMAKE call,  so that makes testing for both.
1566         * tests/nodefine.test, tests/nodefine2.test: New files.
1567         * tests/Makefile.am (TESTS): Add them.
1568
1569 2002-01-08  Raja R Harinath  <harinath@cs.umn.edu>
1570
1571         * automake.in (define_configure_variable): Propagate line numbers.
1572
1573 2002-01-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1574
1575         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2.
1576
1577 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1578
1579         * configure.in: Run the Autoconf test in a subdirectory, then
1580         erase this directory.
1581
1582 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1583
1584         * configure.in (AUTOMAKE): Create m4/amversion.m4.
1585         * m4/amversion.in: New file.
1586         * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
1587         (dist_m4data_DATA): ... this.
1588         (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4.
1589         * m4/init.m4 (AM_INIT_AUTOMAKE): Require
1590         AM_SET_CURRENT_AUTOMAKE_VERSION.
1591         * automake.in (seen_automake_version): New variable.
1592         (scan_autoconf_traces, scan_one_autoconf_file,
1593         scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain
1594         when the version used in aclocal.m4 differs from Automake's.
1595         * tests/defs (ACLOCAL): Look in ../m4 too.
1596         * tests/installsh.test (ACLOCAL): Likewise.
1597         * tests/installdir.test (installdirs-local): Run $ACLOCAL.
1598
1599 2002-01-06  Raja R Harinath  <harinath@cs.umn.edu>
1600
1601         * automake.in (handle_languages): Emit an automake
1602         internal variable 'am__depfiles_maybe'.
1603         * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe.
1604
1605         * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to
1606         config.status.
1607
1608 2002-01-06  Tom Tromey  <tromey@redhat.com>
1609
1610         * automake.texi (Tags): Document new variables.
1611         * lib/am/tags.am (ETAGS): New macro.
1612         (ETAGSFLAGS): Likewise.
1613         (TAGS): Use them.
1614
1615 2002-01-04  Tom Tromey  <tromey@redhat.com>
1616
1617         * configure.in (ACLOCAL): Set perllibdir.  From Nicolas Joly.
1618
1619 2002-01-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
1620
1621         * automake.in (read_am_file): Thinko in "comment following
1622         trailing backslash" detection.
1623         * tests/comment5.test: Test for this too.
1624
1625 2002-01-02  Tom Tromey  <tromey@redhat.com>
1626
1627         * automake.texi (Extending): Added index for uninstall-hook.
1628
1629 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1630
1631         Fix for PR automake/278:
1632         * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
1633         with versions such as '2.2c1'.  Also, use `int' instead of the
1634         obsoleted `string.atoi'.
1635         Reported by Enrico Scholz.
1636
1637 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1638
1639         Fix for PR automake/280:
1640         * automake.in (read_am_file): Warn about trailing backslashes
1641         in comments.
1642         * tests/comment5.test: New file.
1643         * tests/Makefile.am (TESTS): Add comment5.test.
1644         Reported by Enrico Scholz.
1645
1646 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1647
1648         * tests/comment4.test: New file.
1649         * tests/Makefile.am (TESTS): Add comment4.test.
1650
1651         Fix for comment4.test:
1652         * automake.in (read_am_file): Output leading comments only when
1653         encountering white lines.
1654
1655 2002-01-01  Tom Tromey  <tromey@redhat.com>
1656
1657         For PR automake/234:
1658         * tests/Makefile.am (TESTS): Added strip.test.
1659         * tests/strip.test: New file.
1660
1661         * automake.texi (Extending): Mention uninstall-hook.
1662         (Install): Likewise.
1663         * automake.in (handle_factored_dependencies): Allow
1664         uninstall-hook.
1665
1666 2002-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
1667
1668         * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
1669         it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
1670         This fixes a bug introduced on 2001-01-28.
1671         Reported by Jared Davis.
1672
1673 -----
1674
1675 Copyright (C) 2002 Free Software Foundation, Inc.
1676
1677 This file is part of GNU Automake.
1678
1679 GNU Automake is free software; you can redistribute it and/or modify
1680 it under the terms of the GNU General Public License as published by
1681 the Free Software Foundation; either version 2, or (at your option)
1682 any later version.
1683
1684 GNU Automake is distributed in the hope that it will be useful,
1685 but WITHOUT ANY WARRANTY; without even the implied warranty of
1686 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1687 GNU General Public License for more details.
1688
1689 You should have received a copy of the GNU General Public License
1690 along with autoconf; see the file COPYING.  If not, write to
1691 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1692 Boston, MA 02111-1307, USA.