734ba27684fac4816629bc789df748163e6f70cf
[platform/upstream/automake.git] / ChangeLog
1 2001-05-20  Tom Tromey  <tromey@redhat.com>
2
3         * Makefile.am (EXTRA_DIST): Added ChangeLog.2000.
4
5         * lib/ansi2knr.c: New version.
6
7         * Makefile.am (FETCHFILES): Added ansi2knr.c.
8         (fetch): Likewise.
9
10 2001-05-19  Tom Tromey  <tromey@redhat.com>
11
12         * config.guess, config.sub: New versions from FSF.
13
14         * Makefile.am (fetch): Compare against files in srcdir.
15
16         For for ansi2knr report from Harlan Stenn:
17         * automake.in (generate_makefile): Run handle_compile before
18         handle_languages.
19
20 2001-05-18  Tom Tromey  <tromey@redhat.com>
21
22         * automake.in: Reverted erroneous checkin.
23
24 2001-05-18  Akim Demaille  <akim@epita.fr>
25
26         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Be robust
27         to missing `install-info'.
28
29 2001-05-17  Tom Tromey  <tromey@redhat.com>
30
31         * automake.in (lang_c_finish): Use `rm -f'.
32
33         * automake.in (lang_c_finish): Remove _.c file if ansi2knr fails.
34         * tests/Makefile.am (TESTS): Added new file.
35         * tests/ansi5.test: New file.
36
37 2001-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
38
39         * lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
40         STRIP is not empty.
41         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
42         to install-sh unconditionally.  Don't set INSTALL_STRIP_PROGRAM_ENV.
43         * automake.texi (Requirements): Document the use of the STRIP
44         variable in cross-compilation environments.
45
46 2001-05-17  Tom Tromey  <tromey@redhat.com>
47
48         * m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
49         to no dependency tracking.
50         * tests/Makefile.am (TESTS): Added depcomp2.test.
51         * tests/depcomp2.test: New file.  From Pavel Roskin.
52
53         * lib/depcomp (aix): Bug fix and simplification from Larry Jones.
54
55         * lib/depcomp (tru64): New dependency tracking mode.
56
57         Fix for PR automake/159:
58         * lib/depcomp (aix): Rewrote.
59         (sgi): Likewise.
60
61         Fix for PR automake/174:
62         * tests/Makefile.am (XFAIL_TESTS): Removed comment3.test.
63         * automake.in (read_am_file): Warn if `#' is at start of rule.
64
65 2001-05-16  Tom Tromey  <tromey@redhat.com>
66
67         For PR automake/174:
68         * tests/Makefile.am (TESTS): Added comment3.test.
69         (XFAIL_TESTS): Likewise.
70         * tests/comment3.test: New file.
71
72         Fix for PR automake/175:
73         * tests/Makefile.am (XFAIL_TESTS): Removed make.test.
74         * m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
75         `Leaving directory' messages.
76
77         For PR automake/175:
78         * tests/Makefile.am (XFAIL_TESTS): Added make.test.
79         * tests/make.test: Run test with `make -w'.
80
81         * tests/Makefile.am (TESTS): Removed maintclean.test.
82         * lib/am/clean.am (maintainer-clean-generic): Don't remove
83         Makefile.in.
84         * lib/am/configure.am (maintainer-clean-am): Removed.
85         (maintainer-clean-conf): Removed.
86         * tests/maintclean.test: Removed.
87
88 2001-05-15  Tom Tromey  <tromey@redhat.com>
89
90         Fix for PR automake/177:
91         * Makefile.am (maintainer-clean): Set perllibdir before invoking
92         automake or aclocal.
93
94         Fix for maintclean.test:
95         * tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
96         * lib/am/clean.am (distclean-generic): Don't remove config.cache
97         or config.log.
98         (distclean, maintainer-clean): Moved to...
99         * lib/am/configure.am: ... here.
100         (distclean): Remove config.cache and config.log.
101         (maintainer-clean): Removed.
102         (maintainer-clean-conf): New target.
103         (maintainer-clean-am): New target.
104
105         * tests/Makefile.am (TESTS): Added maintclean.test.
106         (XFAIL_TESTS): Likewise.
107         * tests/maintclean.test: New file.
108
109         Fixes PR automake/175:
110         * tests/target-cflags.test: Use $needs_gnu_make.
111         * tests/exsource.test: Use $needs_gnu_make.
112         * tests/make.test: Require GNU make.
113         * tests/defs (needs_gnu_make): Compute.
114
115 2001-05-14  Tom Tromey  <tromey@redhat.com>
116
117         * lib/ylwrap: Fixed quoting on regular expression.  Fixes
118         yacc4.test.
119
120         Fix for texinfo10.test.
121         * tests/Makefile.am (XFAIL_TESTS): Remove texinfo10.test.
122         * lib/am/texinfos.am: Use LOCAL-TEXIS liberally.
123         * automake.in (handle_texinfo_helper): New sub.
124         (handle_texinfo): Rewrote.  Now defines LOCAL-TEXIS.
125         * tests/texinfo10.test: Added more cases.
126
127         Fix for yaccvpath.test:
128         * tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
129         * lib/am/distdir.am (distdir): Always look for file in build
130         directory first.
131         * lib/ylwrap: Quote the `#line' regular expression.
132         * lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
133         change; don't run sed on the generated file.
134         * tests/yaccvpath.test: Create new parser in srcdir.  Added test
135         to make sure parser will be rebuilt at dist time.
136
137 2001-05-13  Pavel Roskin  <proski@gnu.org>
138
139         * automake.in ($IGNORE_PATTERN): Allow spaces before comments
140         beginning with `##'.
141         * automake.texi (General Operation): Document it.
142
143 2001-05-13  Tom Tromey  <tromey@redhat.com>
144
145         Reported by Rainer Orth:
146         * lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
147         TOPDIR_P.
148         * tests/Makefile.am (TESTS): Added distname.test.
149         * tests/distname.test: New file.
150
151         * Makefile.am (dist_pkgdata_DATA): Removed.
152
153         * tests/defs: Find files to copy in lib/.
154         * automake.in (perllibdir): Set to Automake directory.
155         * ansi2knr.c, ansi2knr.1: Removed.
156         * Makefile.am (dist_am_DATA): Removed.
157         (amdir): Removed.
158         (maintainer-check): Look for lib/am/*.am.  Expect 28 lines of
159         diffs.
160         (scriptdir): Removed.
161         (dist_script_DATA): Likewise.
162         (install-data-hook): Likewise.
163         (installcheck-local): Likewise.
164         (TAGS_FILES): Removed amfiles.
165         (dist_pkgdata_DATA): Removed ansi2knr.c and ansi2knr.1.
166         * tests/installsh.test (AUTOMAKE): Use --libdir, not --amdir, and
167         point it to the right directory.
168         * ansi2knr.am, check.am, clean-hdr.am, clean.am, comp-vars.am,
169         compile.am, configure.am, data.am, dejagnu.am, depend.am,
170         depend2.am, distdir.am, footer.am, header-vars.am, header.am,
171         install.am, java.am, lang-compile.am, lex.am, library.am, libs.am,
172         libtool.am, lisp.am, ltlib.am, ltlibrary.am, mans-vars.am,
173         mans.am, multilib.am, program.am, progs.am, python.am,
174         remake-hdr.am, scripts.am, subdirs.am, tags.am, texi-vers.am,
175         texibuild.am, texinfos.am, yacc.am: Moved to lib/am/.
176         * configure.in (AC_OUTPUT): Added lib/am/Makefile.
177         (AUTOMAKE): Use --libdir, not --amdir.
178         Ues AC_CONFIG_AUX_DIR.
179         * lib/Makefile.am (SUBDIRS): Added `am'.
180         (scriptdir): New macro.
181         (dist_script_DATA): Likewise.
182         (dist_pkgdata_DATA): Likewise.
183         (install-data-hook): New target.
184         (installcheck-local): Likewise.
185         * lib/am/Makefile.in: New file.
186         * lib/am/Makefile.am: Removed everything except amdir and
187         dist_am_DATA.
188
189 2001-05-13  Akim Demaille  <akim@epita.fr>
190
191         * automake.in ($pkgdata_dir): Rename as...
192         ($libdir): this.
193         ($am_dir): Remove, replace its uses with $libdir.
194         (&parse_arguments): Replace --amdir with --libdir.
195         * automake.texi (Invoking Automake): Document --libdir, not
196         --amdir.
197         * tests/defs (AUTOMAKE): Use --libdir, not --amdir.
198
199 2001-05-13  Tom Tromey  <tromey@redhat.com>
200
201         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
202         not AMDEP.
203         * m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
204         Correctly look at AMDEP_TRUE, not AMDEP.
205
206         Report from Robert Boehne:
207         * tests/Makefile.am (TESTS): Added depend2.test.
208         * tests/depend2.test: New file.
209
210 2001-05-13  James Henstridge  <james@daa.com.au>
211
212         * m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
213         Point pythondir at site-packages directory.  Rename
214         PYTHON_SITE_PACKAGE to pkgpythondir.  Rename PYTHON_SITE_EXEC to
215         pyexecdir.  Removed package/module argument.  Removed
216         PYTHON_SITE_INSTALL.  Added version checking.
217
218 2001-05-14  Jim Meyering  <meyering@lucent.com>
219
220         * automake.in (macro_define): Change one remaining use of
221         `variable_dump' to `macro_dump'.
222
223 2001-05-13  Tom Tromey  <tromey@redhat.com>
224
225         * m4/depend.m4 (AM_DEPENDENCIES): Prefer gcc3 over gcc for objc
226         and gcj.
227
228 2001-05-13  Akim Demaille  <akim@epita.fr>
229
230         * automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext)
231         (&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp)
232         (&am_primary_prefixes): Use `map' rather than `grep'.
233
234 2001-05-13  Akim Demaille  <akim@epita.fr>
235
236         * automake.in (Language): Set config_vars for yacc, yaccxx, lex,
237         lexxx, asm.
238         (&lang_c_finish, &lang_yacc_finish, &lang_lex_finish): Simplify.
239         (&lang_asm_finish): Remove, set asm's finisher to C's one.
240
241 2001-05-13  Akim Demaille  <akim@epita.fr>
242
243         * lang-compile.am: New file, loaded once per language.
244         * depend2.am: Move definitions loaded once per language in the
245         aforementioned file.
246         * automake.in (&handle_languages): Load it.
247         (&lang_ppf77_finish, &lang_ratfor_finish): Remove as it's now
248         handled by lang-compile.am.
249
250 2001-05-13  Tom Tromey  <tromey@redhat.com>
251
252         * tests/Makefile.am (TESTS): Added python.test.
253         * tests/python.test: New file.
254         * automake.in (handle_languages): Use
255         config_aux_dir_set_in_configure_in.
256         (handle_python): Correctly mention AM_PATH_PYTHON.  Use
257         py-compile, not py_comp.  Define py_compile macro.
258
259 2001-05-13  Derek Price  <dprice@openavenue.com>
260
261         * automake.in (require_file_with_conf_line,
262         require_file_with_line, require_file): Pass a @require_file_path
263         of $relative_dir instead of '.' to require_file_internal so that
264         all the special casing of '.' can be removed elsewhere.
265         (require_config_file, require_conf_file_with_line,
266         require_conf_file_with_conf_line): Remove special casing for '.'
267         and make sure $config_aux_dir is maintained properly.
268         (require_file_internal): Remove special casing of '.' and set
269         @require_file_path when missing files are added.
270         (maybe_push_required_file): Remove special casing of '.'
271         (handle_dependencies): Remove a workaround for a bug now fixed
272         and remove $config_aux_dir special casing.
273         (handle_configure): Remove special casing for $config_aux_dir
274         (handle_python): Ditto.
275         (yacc_lex_finish_helper): Change $config_aux_dir switch to
276         switch on the value of $config_aux_dir_set_in_configure_in.
277         (handle_texinfo): Ditto.
278         (scan_one_configure_file): Set $config_aux_dir and
279         $config_aux_dir_set_in_configure_in properly so special casing
280         on the value of $config_aux_dir can be removed elsewhere.
281         * tests/depcomp.test: New file.
282         * tests/confsub.test: Look for depcomp in $(top_srcdir) instead of the
283         first subdir containing a C file.
284         * tests/libobj2.test: Ditto.
285         * tests/Makefile.am (TESTS): Added 'depcomp.test'.
286
287 2001-05-12  Tom Tromey  <tromey@redhat.com>
288
289         * tests/gcj.test: Updated for gcj dependency tracking.
290         * tests/gcj2.test: Likewise.
291
292         Fixes PR automake/169.
293         * m4/depend.m4 (AM_DEPENDENCIES): Handle GCJ.  Don't assume gcc
294         style for OBJC.
295         * automake.in (java): Added autodep entry.
296         * tests/Makefile.am (TESTS): Added gcj3.test.
297         * tests/gcj3.test: New file.
298
299 2001-05-12  Raja R Harinath  <harinath@cs.umn.edu>
300
301         * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
302         stop at the first '='.
303         * tests/Makefile.am (TESTS): Added vars.test.
304         * tests/vars.test: New file.
305
306 2001-05-12  Akim Demaille  <akim@epita.fr>
307
308         * automake.in (&handle_single_transform_list): Simplify
309         computation of $object and $this_obj_ext.
310         * tests/lex3.test: Merge into...
311         * tests/lex.test: here.
312         * tests/pr19.test: Improve and rename as...
313         * tests/lex3.test: this.
314
315 2001-05-09  Tom Tromey  <tromey@redhat.com>
316
317         * automake.in (read_am_file): Correctly compute $saw_bk.
318         (scan_autoconf_files): Ensure configure_dist_common is always
319         set.
320         * tests/defs (AUTOMAKE): Added --Werror.
321
322 2001-05-09  Pavel Roskin  <proski@gnu.org>
323
324         * automake.in (define_compiler_variable): Escape $(LIBTOOL) in
325         double quotes.
326
327 2001-05-09  Tom Tromey  <tromey@redhat.com>
328
329         * tests/werror.test: Use `rm -f'.
330
331 2001-05-09  Akim Demaille  <akim@epita.fr>
332
333         * automake.in (&am_line_warning): Invoke `am_line_error', not itself.
334
335 2001-05-09  Akim Demaille  <akim@epita.fr>
336
337         * automake.in: Remove some code left from bad patches.
338         (&handle_dependency): Remove, for the same reason.
339
340 2001-05-09  Akim Demaille  <akim@epita.fr>
341
342         * automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET.
343         (&handle_tests_dejagnu, &define_standard_variables): Don't.
344         (&define_standard_variables): Don't transform %top_builddir% since...
345         * header-vars.am: Use %TOPDIR% instead.
346
347 2001-05-09  Akim Demaille  <akim@epita.fr>
348
349         * automake.in (@objects): Remove, unused.
350         Remove all the code related to it, and to former `$(OBJECTS)'.
351
352 2001-05-08  Tom Tromey  <tromey@redhat.com>
353
354         For PR automake/29:
355         * ylwrap: Handle arguments to program.  Remove old code that tried
356         to avoid absolute paths and add new code to do it in all cases.
357         Removed ancient logic that tried to deal with relative path.
358         * tests/Makefile.am (TESTS): Added yacc4.test.
359         * tests/yacc4.test: New file.
360
361         Fix for PR automake/149 and werror.test:
362         * automake.in (require_file_internal): Use am_line_warning or
363         am_conf_line_warning when suppressing error.
364         (am_line_warning): New sub.
365         (am_conf_line_warning): Save and restore warning signal.
366         * tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
367
368         Fix for PR automake/36:
369         * tests/Makefile.am (TESTS): Added asm.test.
370         * tests/asm.test: New file.
371         * automake.in (asm): Use ASFLAGS and AS.
372         (lang_asm_finish): New sub.
373
374         * automake.in (read_am_file): Removed debugging code.
375
376         For PR automake/149:
377         * tests/Makefile.am (TESTS): Added werror.test.
378         (XFAIL_TESTS): Likewise.
379         * tests/werror.test: New file.
380
381         * automake.in (conditional_true_when): Don't return if we see
382         `TRUE'.
383
384         * tests/objc.test: Removed.
385         * tests/Makefile.am (XFAIL_TESTS): Removed objc.test.
386         (TESTS): Likewise.
387
388         * automake.in (subst): New sub.
389         (handle_languages): Use it.
390         (output_lex_build_rule): Likewise; also use _am_quote.
391         (check_libobjs_sources): Likewise.
392         (make_paragraphs): Use subst.
393
394         * automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
395         problem.
396
397         * automake.in (file_contents_internal): Prototype now `$$%'.
398         (register_language): Prototype now `%'.
399
400         Fixes test subobj6.test and PR automake/160:
401         * tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
402         * compile.am (mostlyclean-compile): Added MOSTLYRMS.
403         (distclean-compile): Added DISTRMS.
404         * tests/subobj6.test (wish_SOURCES): Updated to reflect
405         `mostlyclean' use; added test for non-subdir case.
406         * automake.in (compile_clean_files): New global.
407         (MOSTLY_CLEAN, DIST_CLEAN): New constants.
408         (initialize_per_input): Initialize compile_clean_files.
409         (handle_single_transform_list): Set compile_clean_files entries.
410         (handle_compile): Handle compilation cleanups.
411
412 2001-05-08  Lars J. Aas  <larsa@sim.no>
413
414         * automake.texi (Canonicalizing Automake macros): Document not
415         canonicalizing strudels (@) anymore.
416
417 2001-05-08  Akim Demaille  <akim@epita.fr>
418
419         * distdir.am (dist-all): Build all the flavors using a single
420         distdir.
421
422 2001-05-08  Akim Demaille  <akim@epita.fr>
423
424         * automake.in (&file_contents_internal): Apply the @cond_stack to
425         the rules and assignments.
426         Don't rely on `$.' as it's biased by &make_paragraphs.
427         Don't remove backslashes in variable values.
428
429 2001-05-08  Akim Demaille  <akim@epita.fr>
430
431         * automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
432         ($RULE_PATTERN): Use that from `&make_paragraphs'.
433         ($MACRO_PATTERN): Just catch the name of a macro.
434         ($BOGUS_MACRO_PATTERN): Remove.
435         ($ASSIGNMENT_PATTERN): New.
436         (&file_contents_internal, &make_paragraphs): Adjust.
437         (&macro_define): Catch bad macro names.
438         (&cond_stack_endif): Better error message.
439         (&file_contents_internal): Don't remove backslashes in variable
440         values.
441         (&macro_define): Do it for `+=' user variables.
442         (&define_standard_variables): Use `undef' instead of a dummy
443         variable.
444         (&make_paragraph): Be sure not to chop the trail of hash only
445         lines: adjust the `##' regexp.
446         (&rule_define): Fix a bug: don't read $1 but $target.
447         * tests/condincl.test: Strengthen.
448
449 2001-05-08  Akim Demaille  <akim@epita.fr>
450
451         * automake.in (Language): Add attributes `Name' and `config_vars'.
452         (&finish): Work properly if there is no _finish.
453         (Automake): Register language Names and AC_SUBST dependencies.
454         Register Fortran 77 variables upon which ratfor and ppf77 depend.
455         (&handle_languages): Once per language, invoke
456         `define_linker_variables', and check its config_vars.
457         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
458         (&lang_java_finish): Remove.
459         (&lang_ppf77_finish, &lang_ratfor_finish): Adjust.
460
461 2001-05-08  Akim Demaille  <akim@epita.fr>
462
463         * automake.in (&file_contents_internal): Accept $IS_AM.
464         (&handle_compile, &define_standard_variables, &file_contents): Adjust.
465
466 2001-05-08  Akim Demaille  <akim@epita.fr>
467
468         * automake.in (am_install_var): Use `next' instead of `if' on the
469         body of $X loop.
470
471 2001-05-08  Akim Demaille  <akim@epita.fr>
472
473         * automake.in (Language): Add attributes `lder' and `ld'.
474         (&register_language): Specify for cxx, objc, f77, gcj.
475         (&define_linker_variable): New.
476         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
477         (&lang_java_finish): Adjust.
478         (&libtool_compiler): Remove.
479
480 2001-05-08  Akim Demaille  <akim@epita.fr>
481
482         * automake.in (&handle_lib_objects_cond): Don't take $LEX_SEEN as
483         argument, as you don't use it.
484         Hence...
485         (&handle_lib_objects): Don't take $LEX_SEEN as argument, as you
486         don't use it.
487         Hence...
488         (&handle_programs): Don't mess with %lex_sources, as you don't use
489         it.
490
491 2001-05-08  Akim Demaille  <akim@epita.fr>
492
493         * automake.in (Language): Add attribute `link'.
494         (&register_language): Specify for cxx, objc, f77, gcj.
495         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
496         (&lang_java_finish): Adjust.
497
498 2001-05-08  Akim Demaille  <akim@epita.fr>
499
500         * automake.in (&define_compiler_variables): Use only $LANG as
501         argument.
502         (&handle_languages): Adjust.
503
504 2001-05-08  Akim Demaille  <akim@epita.fr>
505
506         * automake.in (&define_program_variable): Remove.
507         (&scan_one_autoconf_file): Skip MAKEINFO when found in an
508         AM_MISSING_PROG.
509         (&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
510         * texinfos.am: Do it.
511
512 2001-05-08  Akim Demaille  <akim@epita.fr>
513
514         * automake.in (&handle_tests_dejagnu): Don't define EXPECT and
515         RUNTEST.
516         * dejagnu.am: Do it.
517         (site.exp): Use `if'.
518
519 2001-05-08  Akim Demaille  <akim@epita.fr>
520
521         * automake.in: Formatting changes.
522         (variable_dump, variables_dump): Rename as...
523         (macro_dump, macros_dump): these.
524
525 2001-05-08  Akim Demaille  <akim@epita.fr>
526
527         Support `if !COND', `else COND', `end COND'.
528
529         * automake.texi (Conditionals): Document it.
530         * automake.in ($WHITE_PATTERN, $MACRO_PATTERN, $BOGUS_MACRO_PATTERN)
531         ($GNITS_VERSION_PATTERN, $INCLUDE_PATTERN): Use `\d' and `\s'.
532         ($IF_PATTERN, $ELSE_PATTERN, $ENDIF_PATTERN): Likewise, and accept
533         a leading `!' before the condition.
534         (&handle_options): Use `\d'.
535         (&cond_stack_if, &cond_stack_else, &&cond_stack_endif): New.
536         (&read_am_file, &file_contents_internal): Use them.
537         (&transform): No longer substitute `%!COND%', forcing the use of
538         `! %?COND%'.
539         * ansi2knr.am, lex.am, tags.am, texinfos.am, yacc.am: Adjust.
540
541 2001-05-08  Akim Demaille  <akim@epita.fr>
542
543         Uniform handling of per-object compilation rules.
544         Note: Automake is repaired.
545
546         * automake.in (&handle_languages): Output per object rules for all
547         the objects, not only for those which language supports dependency
548         tracking.
549         Fix Automake: when outputting per-object rules, use `-o' if the
550         language has no `output_flag', as it's really needed.
551         (&handle_single_transform_list): Instead of special casing files
552         which need per object rules but which language don't support
553         dependency tracking, keep them in the queue for processing by
554         `&handle_languages'.
555
556 2001-05-08  Akim Demaille  <akim@epita.fr>
557
558         * automake.in (&handle_languages): `ext-compile.am' and
559         `depend2.am' are now equivalent for generic rules: output only the
560         latter.
561         * ext-compile.am: Remove.
562
563 2001-05-08  Akim Demaille  <akim@epita.fr>
564
565         Note: This patch breaks Automake.  Repaired within two patches.
566
567         * automake.in (Language): Replace the attribute `output_arg' with
568         `compile_flag' and `output_flag'.
569         (Automake): Adjust language registrations.
570         (&handle_languages): Transform `-c' and `-o' for both suffix and
571         per object rules, instead of `OUTARG' and `LTOUTARG' only for
572         generic rules.
573         (&handle_single_transform_list): Adjust to `compile_flag' and
574         `output_flag'.
575         * depend2.am, ext-compile.am: Use `%-c%' and `%-o%'.
576
577 2001-05-08  Akim Demaille  <akim@epita.fr>
578
579         * automake.in (&handle_languages): Don't transform %COMPILER%.
580         Use `$lang->compiler' instead of `$pfx' to transform generic
581         %COMPILE% and %LTCOMPILE%.
582         * ext-compile.am: Use %COMPILE%, %LTCOMPILE% and %SOURCE% instead
583         of %COMPILER% and $<.
584
585 2001-05-07  Akim Demaille  <akim@epita.fr>
586
587         * automake.in (&handle_languages): Use the same `%transform' for
588         both `depend2.am' and `ext-compile.am'.
589         Delay the definition of `$flag' so it is right before the first use,
590         and rename as `$flags'.
591
592 2001-05-07  Akim Demaille  <akim@epita.fr>
593
594         * automake.in (&handle_languages): Compute `$ltoutarg' and
595         `$outarg' independently of dependency code.
596         There is no use looping on a language's possible extensions since
597         we loop over used extensions.
598         Therefore, there is no use for a local `%transform'.
599
600 2001-05-07  Akim Demaille  <akim@epita.fr>
601
602         * automake.in (&handle_languages): Don't use $comp.
603
604 2001-05-07  Akim Demaille  <akim@epita.fr>
605
606         * automake.in (&handle_languages): Merge the two loops over
607         %extension_seen/%languages into one and group code to be run once
608         per language together.
609
610 2001-05-07  Akim Demaille  <akim@epita.fr>
611
612         * automake.in (&handle_languages): Move the `if
613         ($use_dependencies)' block so that loops over extensions and
614         languages are next to each other.
615
616 2001-05-07  Akim Demaille  <akim@epita.fr>
617
618         * automake.in (&depend2): Remove, merged into...
619         (&handle_languages): here.
620
621 2001-05-07  Akim Demaille  <akim@epita.fr>
622
623         * automake.in (&finish_languages): Rename as...
624         (&handle_languages): this.
625         Include the body of...
626         (&handle_dependency): this.
627         Remove.
628
629 2001-05-06  Tom Tromey  <tromey@redhat.com>
630
631         For PR automake/46:
632         * tests/Makefile.am (TESTS): Add subdir5.test.
633         (XFAIL_TESTS): Likewise.
634         * tests/subdir5.test: New file.
635
636         * tests/subobj6.test (wish_SOURCES): Use $MAKE.
637         * tests/subobj5.test (wish_SOURCES): Use $MAKE.
638
639         * automake.in (GNITS_VERSION_PATTERN): Document.  Add `fork
640         identifier'.
641         (handle_options): Handle fork identifier in version number.
642
643         * automake.texi (Dist): Document distcheck-hook.
644
645         * tests/confh4.test: Update to reflect DEFS change.
646         For PR automake/132.
647
648         Fix for PR automake/132:
649         * automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to
650         compilation.
651         (java): Remove INCLUDES and DEFS from compilation.
652         (lang_c_finish): Add DEFAULT_INCLUDES to compilation.
653         * compile.am (DEFS): Don't include %DEFAULT_INCLUDES%.
654         (DEFAULT_INCLUDES): New macro.
655
656         * automake.in (usage): Re-align explanatory text.
657         Fixes PR automake/148.
658
659         * automake.texi (Uniform): Don't use @PROGRAMS@.
660         Fixes PR automake/154.
661
662         For PR automake/160:
663         * tests/Makefile.am (TESTS): Add subobj5.test and subobj6.test.
664         (XFAIL_TESTS): Add subobj6.test.
665         * tests/subobj6.test: New file.
666
667         * automake.texi (Uniform): Mention dist_, nodist_, and nobase_.
668         (Top level): Don't mention `flat'.
669         (Extending): Likewise.
670         (User Variables): New node.
671
672         * distdir.am (distdir): Make subdirectory for each file.
673         Fixes test subobj5.test.
674
675         * tests/Makefile.am (TESTS): Add new file.
676         (XFAIL_TESTS): Likewise.
677         * tests/texinfo10.test: New file.
678
679 2001-05-05  Pavel Roskin <proski@gnu.org>
680
681         * automake.in (scan_texinfo_file): Treat @defindex and @synindex
682         in the same way as @defcodeindex and @syncodeindex respectively.
683
684 2001-05-05  Tom Tromey  <tromey@redhat.com>
685
686         * mans.am (install-man%SECTION%): Minor cleanup.
687         (uninstall-man%SECTION%): Likewise.
688
689         * tests/Makefile.am (XFAIL_TESTS): Removed man.test.
690         * mans.am (install-man%SECTION%): Handle dist_ and nodist_
691         prefixes.
692         (uninstall-man%SECTION%): Likewise.
693         * automake.in (handle_man_pages): Handle dist_ and nodist_
694         prefixes.
695
696         * automake.texi (Future): Removed.
697         (Depth): Removed.
698         (Hello): Don't mention `deep'.
699         (Top level): Likewise.
700
701         * automake.in (conditional_true_when): Use a hash, not index().
702         Also, a TRUE component always results in a true return.
703         Fixes test cond10.test.  For PR automake/164.
704         * tests/Makefile.am (XFAIL_TESTS): Removed cond10.test.
705
706 2001-05-05  Raja R Harinath  <harinath@cs.umn.edu>
707
708         For PR automake/164:
709         * tests/Makefile.am (TESTS): Added new file.
710         (XFAIL_TESTS): Likewise.
711         * tests/cond10.test: New file.
712
713 2001-05-05  Tom Tromey  <tromey@redhat.com>
714
715         * texinfos.am (uninstall-info-am): Debian install-info v1.8.3
716         prints to stderr.
717         (install-info-am): Likewise.
718
719 2001-05-05  Pavel Roskin <proski@gnu.org>
720
721         * automake.in (scan_texinfo_file): Don't push undefined values
722         to @clean_suffixes.
723
724 2001-05-05  Richard Boulton  <richard@tartarus.org>
725
726         * automake.in (handle_dist): Check for existence of DIST_SUBDIRS
727         first.
728
729 2001-05-05  Robert Collins  <robert.collins@itdomain.com.au>
730
731         * automake.in (required_targets): Added uninstall-am.
732
733 2001-05-05  Tom Tromey  <tromey@redhat.com>
734
735         Fix bug reported by Robert Boehne:
736         * automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be
737         substituted.
738         (handle_dependencies): Likewise.
739         * Makefile.am (maintainer-check): Look for AMDEP_TRUE
740         substitution.  Correct diff now has 30 lines.  Look for space
741         after losing `undef'.
742
743 2001-05-04  Peter Eisentraut  <peter_e@gmx.net>
744
745         * m4/sanity.m4: Remove the temp file before possible error exits.
746
747 2001-05-04  Akim Demaille  <akim@epita.fr>
748
749         * configure.in: Set perllibdir.
750         From Dave Morrison.
751
752 2001-05-04  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
753
754         * automake.in ($pkgdata_dir): New.
755         (&require_file_internal): Use it.
756
757 2001-05-03  Akim Demaille  <akim@epita.fr>
758
759         Case insensitive FS choke on Automake/ vs automake.
760         Reported by Tim Van Holder.
761
762         * Automake/: Move into...
763         * lib/: this new directory.
764
765 2001-05-03  Raja R Harinath  <harinath@cs.umn.edu>
766
767         * data.am (install-%DIR%%PRIMARY%): Execute the same command as
768         echoed.
769
770 2001-04-30  Jim Meyering  <meyering@lucent.com>
771
772         * automake.in: Remove `/lib' from include directory.
773
774 2001-04-27  Akim Demaille  <akim@epita.fr>
775
776         AM_INIT_AUTOMAKE is no longer optional.
777
778         * automake.in ($seen_make_set, $seen_prog_install)
779         ($seen_arg_prog): Remove.
780         (&handle_programs, &handle_scripts, &scan_one_autoconf_file):
781         Remove related code.
782
783 2001-04-27  Akim Demaille  <akim@epita.fr>
784
785         * tests/specflags4.test, tests/specflags5.test: Remove, merged
786         into...
787         * tests/specflags3.test: here.
788
789 2001-04-27  Akim Demaille  <akim@epita.fr>
790
791         * automake.in ($seen_path_xtra): Remove.
792         (&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables.
793         (&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra.
794
795 2001-04-27  Akim Demaille  <akim@epita.fr>
796
797         * automake.in (&file_contents_internal): Declare it.
798
799 2001-04-27  Akim Demaille  <akim@epita.fr>
800
801         * automake.in (&read_am_file, &file_contents_internal): Don't
802         define macros when `FALSE', to avoid errors on doubly defined
803         variables but under condition `FALSE'.  In order to allow...
804         (&am_install_var): When reading the associated file for the first
805         time, enable `%?FIRST%'.
806         (&handle_libraries): Let libs.am define $(AR) and $(RANLIB).
807         * libs.am: Do it when `%?FIRST%'.
808
809 2001-04-27  Akim Demaille  <akim@epita.fr>
810
811         * automake.in (handle_compile): Let ansi2knr.am define $(ANSI2KNR).
812         * ansi2knr.am: Do it.
813         Prefer `if %?FOO%' to `if %!FOO%'.
814
815 2001-04-27  Akim Demaille  <akim@epita.fr>
816
817         * automake.in (&register_language, &finish_languages): Use `pure'
818         as a Boolean.
819         (&register_language): Use %done properly with objects, not names.
820         (&finish_languages): Replace `$non_c' with `$needs_c'.
821
822 2001-04-27  Akim Demaille  <akim@epita.fr>
823
824         Unify LISP, PYTHON and JAVA primaries.
825
826         * automake.in (&handle_emacs_lisp): Be like &handle_python, i.e.,
827         return if there are no files, hook elisp-comp on the Autoconf
828         macro, rely on lisp.am to define variables.
829         (&handle_python, &handle_java): Likewise.
830         (&scan_one_autoconf_file): Pseudo AC_SUBST of `pythondir' and
831         `PYTHON' must be handled here, not in `&handle_python'.
832         * java.am: Define needed variables and rules.
833
834 2001-04-27  Akim Demaille  <akim@epita.fr>
835
836         * automake.in (&am_install_var): Transform `ONE_PRIMARY'.
837         * data.am: Use it.
838         * header.am: Include data.am.
839
840 2001-04-27  Akim Demaille  <akim@epita.fr>
841
842         * automake.in (&am_install_var): Transform `PRIMARY'.
843         * data.am: Equip with %PRIMARY%.
844
845 2001-04-27  Akim Demaille  <akim@epita.fr>
846
847         * automake.in (@conditional_stack): Rename as...
848         (@cond_stack): this.
849         (&file_contents_internal): Support inclusion of files.
850
851 2001-04-27  Akim Demaille  <akim@epita.fr>
852
853         * automake.in (&lang_extensions): Remove.
854         (&add_depend2, &saw_sources_p): Adjust.
855         * depend2.am: `%EXT%' no longer includes the dot.
856
857 2001-04-27  Akim Demaille  <akim@epita.fr>
858
859         * automake.in (&finish_languages, &handle_single_transform_list)
860         (&add_depend2, &handle_dependencies): No longer use the language
861         name in `$lang'.  Rename `$lang_obj' as `$lang'.
862
863 2001-04-27  Akim Demaille  <akim@epita.fr>
864
865         * automake.in (&register_language): Use `new Language' with a hash.
866
867 2001-04-27  Akim Demaille  <akim@epita.fr>
868
869         * automake.in (&register_language): Rename `output-arg' and
870         `derived-autodep' as `output_arg' and `derived_autodep' to match
871         the Language attribute.
872         Set the defaults in %option instead of $lang.
873
874 2001-04-27  Akim Demaille  <akim@epita.fr>
875
876         * Automake/: New directory.
877         * Automake/Struct.pm: New file, based on Perl 5.6's Class::Struct.
878         * automake.in (Language): Use Automake::Struct.
879         * tests/defs: Adjust to find Struct.
880
881 2001-04-23  Pavel Roskin <proski@gnu.org>
882
883         * automake.in: Add forward declaration for register_language().
884         * tests/Makefile.am (XFAIL_TESTS): Remove installsh.test - it
885         passes now.
886
887 2001-04-20  Akim Demaille  <akim@epita.fr>
888
889         * automake.in (%required_targets): Add `uninstall'.
890         From Robert Collins.
891
892 2001-04-12  Akim Demaille  <akim@epita.fr>
893
894         * automake.in (Language): Add attribute `name'.
895         (&register_language): The name of the language is now given in the
896         hash.
897         No longer use `$lang' as the name of the language.
898         Rename `$lang_obj' as `$lang'.
899
900 2001-04-12  Akim Demaille  <akim@epita.fr>
901
902         * automake.in (Language): Add attribute `_finish'.
903         (&finish): New.
904         (Automake): Adjust.
905         (&lang_header_finish, &lang_yaccxx_finish, &lang_lexxx_finish)
906         (&lang_asm_finish): Remove.
907
908 2001-04-12  Akim Demaille  <akim@epita.fr>
909
910         * automake.in (Language): Add attribute `extensions'.
911         (Automake): Pass a hash to `&register_language' instead of a
912         list of pseudo assignments.
913         (&register_language): Adjust.
914         (&finish_languages): Initialize `$ltoutarg'.
915
916 2001-04-12  Akim Demaille  <akim@epita.fr>
917
918         * automake.in (Language): Add attribute `output_arg'.
919         (%language_map): Remove.
920         (&register_language): Build only the object, and store in
921         %languages only.
922         (&finish_languages, &handle_single_transform_list): Adjust.
923
924 2001-04-12  Akim Demaille  <akim@epita.fr>
925
926         * automake.in (Language): Add attributes `flags', `compile' and
927         `compiler'.
928         (&finish_languages, &handle_single_transform_list, &handle_dist)
929         (&add_depend2, &register_language): Use them and the `linker' and
930         `pure' attributes.
931
932 2001-04-12  Akim Demaille  <akim@epita.fr>
933
934         * automake.in (&handle_single_transform_list, &finish_languages)
935         (&handle_dist, &handle_dependencies): Use the language object for
936         autodep and derived-autodep too.
937
938 2001-04-12  Akim Demaille  <akim@epita.fr>
939
940         * automake.in (&macro_define): Ignore Automake definition for
941         ($var, $cond) if there is already a user definition for ($var, $cond).
942
943 2001-04-12  Akim Demaille  <akim@epita.fr>
944
945         * automake.in (&scan_texinfo_file): Catch @cindex and the like,
946         but also @deffn and so on which push data in indexes.
947         Reported by Derek R. Price.
948
949 2001-04-12  Akim Demaille  <akim@epita.fr>
950
951         * automake.in (Language): New package, temporarily in this file.
952         Use Class::Struct.
953         (Automake): New package.
954         (%languages): New.
955         (&handle_single_transform_list): Use the language object's `ansi'
956         attribute instead of `$language_map{"$lang-ansi-p"}'.
957         (&register_language): Build and register the language too.
958
959 2001-04-11  Tom Tromey  <tromey@redhat.com>
960
961         Fixes report from Larry Jones:
962         * automake.in (handle_dependencies): Add `@_am_quote@' where
963         appropriate.
964         * m4/make.m4 (AM_MAKE_INCLUDE): Handle BSD-style make.
965
966 2001-04-11  Akim Demaille  <akim@epita.fr>
967
968         * depend2.am: Fix the `if' condition for Libtool.
969         Reported by Robert Boehne.
970
971 2001-04-10  Robert Collins  <robert.collins@itdomain.com.au>
972
973         * tests/subobj5.test: New file.
974
975 2001-04-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
976
977         * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make.
978         * tests/Makefile.am (TESTS): Added make.test.
979         * tests/make.test: New file.
980
981 2001-04-10  Tom Tromey  <tromey@redhat.com>
982
983         * tests/defs: Changed how ACLOCAL and AUTOMAKE are set.
984
985 2001-04-10  Derek R. Price  <dprice@collab.net>
986
987         * tests/defs: Allow user to override AUTOMAKE and ACLOCAL.
988
989 2001-04-10  Akim Demaille  <akim@epita.fr>
990
991         * distdir.am: Add a missing backslash.
992
993 2001-04-10  Akim Demaille  <akim@epita.fr>
994
995         * automake.in (&scan_aclocal_m4): Handle $relative_dir and special
996         variables.
997         Specify to the caller whether $regen_aclocal_m4.
998         (&handle_configure): Adjust.
999         Transform `REGEN-ACLOCAL-M4'.
1000         Reported by Tom.
1001         * configure.am: Use it.
1002         * tests/defs (me): New.
1003         * tests/confdeps.test: New.
1004
1005 2001-04-09  Tom Tromey  <tromey@redhat.com>
1006
1007         * m4/missing.m4 (AM_MISSING_HAS_RUN): Use `true', not `:'.
1008         Fixes report from Jim Meyering.
1009
1010 2001-04-09  Akim Demaille  <akim@epita.fr>
1011
1012         * automake.in (&handle_configure): Don't bother with optimizing
1013         macro uses.
1014
1015 2001-04-09  Akim Demaille  <akim@epita.fr>
1016
1017         * tests/cond3.test (expected): Adjust.
1018
1019 2001-04-09  Akim Demaille  <akim@epita.fr>
1020
1021         * automake.in (&handle_single_transform_list): Remove $xbase,
1022         unused.
1023         (&handle_source_transform): All the variables have conditions now,
1024         simplify.
1025         (&variable_delete): Admit an argument @conds.
1026
1027 2001-04-09  Akim Demaille  <akim@epita.fr>
1028
1029         * automake.in ($source_suffix_pattern): Remove, unused.
1030         %extension_map seems to have replaced it.
1031
1032 2001-04-09  Akim Demaille  <akim@epita.fr>
1033
1034         * ext-compile.am: New file.
1035         * automake.in (&finish_languages): Output it.
1036         Require a C linker if there are several registered source suffixes.
1037         (&handle_compile): No longer push the `.c', `.o', `.obj', `.lo'
1038         extensions, which are discovered in ext-compile.am.
1039         With the help from Robert Boehne.
1040
1041 2001-04-09  Akim Demaille  <akim@epita.fr>
1042
1043         * automake.in (&handle_compile): Extract from...
1044         (&get_object_extension): here.
1045         (&read_am_file): Call it.
1046         ($included_generic_compile, $included_knr_compile)
1047         ($included_libtool_compile): Remove.
1048         ($get_object_extension_was_run): New.
1049
1050 2001-04-09  Akim Demaille  <akim@epita.fr>
1051
1052         Use AM_CONDITIONAL and if/endif for AMDEP.
1053
1054         * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
1055         * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
1056         to a configure time if/endif), or to `FALSE' (static removal of
1057         the code).
1058         (&handle_dependencies): Adjust to use `AMDEP_TRUE'.
1059         * depend2.am: Use if/endif.
1060
1061         Adjust the 101 tests that use dependencies so that they
1062         properly invoke aclocal before automake.  They need to `see'
1063         `AM_CONDITIONAL([AMDEP], ...)'.
1064
1065 2001-04-09  Akim Demaille  <akim@epita.fr>
1066
1067         * tags.am: Fix missing leading tabs.
1068
1069 2001-04-09  Akim Demaille  <akim@epita.fr>
1070
1071         * automake.in: Use simple quotes to define the _PATTERN variables
1072         to unobfuscate the regexps.
1073         ($AM_CONDITIONAL_PATTERN): Let the user quote the variable.
1074
1075 2001-04-09  Akim Demaille  <akim@epita.fr>
1076
1077         * automake.in (&rule_define): When you discover a suffix rules,
1078         register the extensions for .SUFFIXES.
1079         (&handle_texinfo): Don't register the suffixes.
1080         (&get_object_extension): Don't register suffixes, let them be
1081         discovered in depend2.am.
1082         (&handle_emacs_lisp): Depend on your lisp.am.
1083         * lisp.am: Include the rule &handle_emacs_lisp used to output.
1084
1085 2001-04-09  Akim Demaille  <akim@epita.fr>
1086
1087         * subdirs.am: Don't define info related recursive targets.
1088         * texinfos.am: Do.
1089
1090 2001-04-09  Akim Demaille  <akim@epita.fr>
1091
1092         * subdirs.am (RECURSIVE_TARGETS): New variable.
1093         Use it.
1094         * automake.in (&handle_subdirs): Output it.
1095         (&file_contents_internal): Support value spread on several lines.
1096
1097 2001-04-09  Akim Demaille  <akim@epita.fr>
1098
1099         * automake.in (&handle_man_pages): Rely on mans.am to define
1100         man%SECTION%dir and MANS.
1101         * mans.am: Do it.
1102
1103 2001-04-09  Akim Demaille  <akim@epita.fr>
1104
1105         * automake.in (&variable_dump): Use %var_type properly.
1106         (&macro_define): Enforce better overriding rules.
1107         Handle the special case that used to handle...
1108         (&define_pretty_variable): this.
1109         Hence, don't.
1110         The variables you define are owned by Automake.
1111         (&generate_makefile): PRE_INSTALL and co must not be defined *by
1112         the user*.
1113         (&variable_defined): Now independent of the owner.
1114         (&variable_output, &variable_pretty_output): Adjust to %var_type.
1115
1116 2001-04-09  Akim Demaille  <akim@epita.fr>
1117
1118         * automake.in (%var_was_plus_eq): Rename as...
1119         (%var_type): this.
1120         (%def_type): Remove.
1121         (&macro_define): %var_type may now hold `', `+', or `:'.
1122         (%conditional, %am_vars, %content_lines): Rename as...
1123         (%var_value, %var_comment, %var_line): these.
1124
1125 2001-04-09  Akim Demaille  <akim@epita.fr>
1126
1127         * automake.in (&variable_output): Admit a list of @CONDS.
1128         (&variable_pretty_output): New.
1129         (&define_pretty_variable): Use it.
1130         (&read_am_file, &file_contents_internal): Prepend a separator to
1131         $am_vars only if there is none yet.
1132         (&file_contents_internal): Rename $separator as $spacing to
1133         harmonize with &read_am_file.
1134
1135 2001-04-09  Akim Demaille  <akim@epita.fr>
1136
1137         * automake.in (&am_install_var): Transform DIST, and let the *.am
1138         files handle DIST_COMMON.
1139         * data.am, header.am, java.am, list.am, python.am, script.am: Set
1140         DIST_COMMON.
1141
1142 2001-04-09  Akim Demaille  <akim@epita.fr>
1143
1144         * automake.in (%dist_common): Remove.
1145         (%configure_dist_common): Replace with...
1146         ($configure_dist_common): this.
1147         (&generate_makefile): Read the user file before using
1148         push_dist_common, as it sets DIST_COMMON, and read_am_file checks
1149         that no variable is defined before it is run.
1150         (&handle_texinfo): Don't handle DIST_COMMON, let your file do it.
1151         (&dist_cmp): Rename as...
1152         (&for_dist_common): this.
1153         (&handle_dist): Don't handle DIST_COMMON, let `configure.am' do
1154         it.
1155         Adjust to $configure_dist_common.
1156         * configure.am, texi-vers.am: Set DIST_COMMON.
1157
1158 2001-04-09  Akim Demaille  <akim@epita.fr>
1159
1160         * automake.in (&handle_aclocal_m4): Rename as...
1161         (&scan_aclocal_m4): this.
1162         Return the list of aclocal.m4 dependencies.
1163         (&handle_configure): Invoke it, and use it when loading...
1164         * configure.am: Template the rules to recreate aclocal.m4.
1165
1166 2001-04-09  Akim Demaille  <akim@epita.fr>
1167
1168         * automake.in (&get_object_extension): Use ansi2knr.am.
1169         * clean-kr.am, kr-extra.am: Remove, merged into...
1170         * ansi2knr.am: this new file.
1171
1172 2001-04-09  Akim Demaille  <akim@epita.fr>
1173
1174         * automake.in (&transform): Fix an incredible bug which was
1175         breaking the if/endif system.
1176         ($ELSE_PATTERN): Admit an optional argument.
1177
1178 2001-04-09  Akim Demaille  <akim@epita.fr>
1179
1180         * comp-vars.am: Remove, merged into...
1181         * compile.am: here.
1182         * automake.in (&get_object_extension): Adjust.
1183
1184 2001-04-09  Akim Demaille  <akim@epita.fr>
1185
1186         * remake.am: Merge into...
1187         * configure.am: ... here.
1188         * automake.in (&handle_configure): Adjust.
1189
1190 2001-04-09  Akim Demaille  <akim@epita.fr>
1191
1192         * automake.in (&output_lex_build_rule): Output this...
1193         * lex.am: New file.
1194
1195 2001-04-09  Akim Demaille  <akim@epita.fr>
1196
1197         * automake.in (&condition_negate): New.
1198         (&variable_conditions_permutations): Use it.
1199         (&read_am_file, &file_contents): Use it on `else' clauses to
1200         support `if FALSE'.
1201         (&output_yacc_build_rule): Output this...
1202         * yacc.am: New file.
1203
1204 2001-04-09  Akim Demaille  <akim@epita.fr>
1205
1206         * automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR.
1207         (&handle_dist): Don't.
1208         (&handle_clean): Don't handle config.status here, let...
1209         * clean.am: ... do it.
1210         * distdir.am: Adjust.
1211
1212 2001-04-09  Akim Demaille  <akim@epita.fr>
1213
1214         * automake.in: Use strict vars and subs.
1215         Declare `%require_file_found'.
1216         (&handle_source_transform, &make_paragraphs): Declare my variables.
1217
1218 2001-04-09  Akim Demaille  <akim@epita.fr>
1219
1220         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
1221         * progs.am, python.am: Use if/endif instead of ?INSTALL?.
1222         * java.am (_am_installdirs): Be sure to set it.
1223
1224 2001-04-09  Akim Demaille  <akim@epita.fr>
1225
1226         * automake.in (&make_condition): Return '#' when FALSE.
1227         (&conditional_string): Return FALSE, not '#' in the corresponding
1228         cases.
1229         (&file_contents_internal): Adjust.
1230         (&check_variable_defined_unconditional): Dump the guilty variable.
1231
1232 2001-04-09  Akim Demaille  <akim@epita.fr>
1233
1234         * distdir.am: Use and abuse of if/endif.
1235         * scripts.am: Using if/endif with variables is fine.
1236
1237 2001-04-09  Akim Demaille  <akim@epita.fr>
1238
1239         * automake.in (&make_paragraphs):  Extract from &file_contents.
1240         Make it more robust than the previous RE based scheme.
1241         (&file_contents): Use it.
1242
1243 2001-04-09  Akim Demaille  <akim@epita.fr>
1244
1245         * automake.in (&make_paragraphs):  Extract from &file_contents.
1246         Make it more robust than the previous RE based scheme.
1247         (&file_contents): Use it.
1248
1249 2001-04-09  Akim Demaille  <akim@epita.fr>
1250
1251         * tests/yacc2.test: Don't define several times a variable, as
1252         automake complains.
1253
1254 2001-04-09  Akim Demaille  <akim@epita.fr>
1255
1256         * automake.in (&handle_source_transform): Fix pr72: don't define
1257         $linker if there are no @files.
1258
1259 2001-04-09  Akim Demaille  <akim@epita.fr>
1260
1261         Avoid reading twice header-vars.am as now macro_define
1262         complains.
1263
1264         * automake.in (&define_standard_variables): Don't output the
1265         variables.
1266         (&read_main_am_file): Output first user variables, then Automake
1267         variables.
1268         Don't call twice &define_standard_variables.
1269         Save variable comments in $am_vars.
1270         (&variable_output): New.
1271         (&file_contents_internal): New.
1272         Save variable comments in $am_vars.
1273         (&file_contents): Use it.
1274
1275 2001-04-09  Akim Demaille  <akim@epita.fr>
1276
1277         * automake.in (&macro_define): The user is allowed to override
1278         a value if it was set by Automake, or if it was found in AC_SUBST.
1279
1280 2001-04-09  Akim Demaille  <akim@epita.fr>
1281
1282         * automake.in (&handle_source_transform): Better locality of the
1283         variables.
1284         Use `next' to skip nonexistent variables.
1285
1286 2001-04-09  Akim Demaille  <akim@epita.fr>
1287
1288         * automake.in (&variable_dump): If a variable is undefined, say
1289         it.
1290         (&check_ambiguous_conditional): Give finer error messages.
1291         (&macro_define): Check that a `+=' variable is not set with `='.
1292         Check for ambiguous definitions each time you _set_ (even with `+=')
1293         a variable.
1294         (&read_main_am_file): Perform a deep copy of %conditional.
1295
1296 2001-04-09  Akim Demaille  <akim@epita.fr>
1297
1298         * automake.in (&variable_defined): Some callers, e.g.,
1299         &am_primary_prefixes, really want to know if the variable is
1300         defined for any condition, not `TRUE' by default.
1301         (&am_primary_prefixes): Give a more precise error message.
1302
1303 2001-04-09  Akim Demaille  <akim@epita.fr>
1304
1305         (&variable_conditions): Don't include `FALSE' in the result.
1306
1307 2001-04-09  Akim Demaille  <akim@epita.fr>
1308
1309         * automake.in (&variable_conditions_reduce): FALSE is absorbent.
1310         (&variable_conditions): Don't include `FALSE' in the result.
1311
1312 2001-04-09  Akim Demaille  <akim@epita.fr>
1313
1314         * tests/defs, tests/depend3.test: Remove useless code.
1315
1316 2001-04-09  Akim Demaille  <akim@epita.fr>
1317
1318         * automake.in (&handle_source_transform):  Use
1319         &variable_conditions, don't read $conditional{$var}.
1320         (&variable_conditions_sub): When the call is the top level call,
1321         generate all the permutations of the conditions.
1322
1323 2001-04-09  Akim Demaille  <akim@epita.fr>
1324
1325         * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
1326         that it does not get noticed twice by automake, which now
1327         complains for multiple definitions.
1328         * tests/vartar.test: s/INSTALL/install/g, automake now complains
1329         because we defined INSTALL.
1330
1331 2001-04-09  Akim Demaille  <akim@epita.fr>
1332
1333         * automake.in (&generate_makefile) Use macro_define to define
1334         SOURCES and OBJECTS.
1335         (&variable_defined): Don't check for $conditional{VAR}{COND} as
1336         this would make perl create $condition{VAR}, which we don't want.
1337
1338 2001-04-09  Akim Demaille  <akim@epita.fr>
1339
1340         * automake.in (&variable_defined, &define_pretty_variable):
1341         Simplify code which used to handle the cases where not all
1342         variables were in %conditional.
1343         (&define_variable): Use &define_pretty_variable.
1344         (&variable_conditions_sub, &variable_value_as_list_worker)
1345         (&variable_value_as_list, &rule_define): Simplify syntax.
1346         (&read_main_am_file): Dump the guilty predefined variables.
1347
1348 2001-04-09  Akim Demaille  <akim@epita.fr>
1349
1350         * automake.in (&variable_conditions_sub)
1351         (&variable_value_as_list_worker): Remove dead code which used to
1352         handle the cases where not all variables were in %conditional.
1353
1354 2001-04-09  Akim Demaille  <akim@epita.fr>
1355
1356         * automake.in (&handle_source_transform, &read_main_am_file):
1357         Simplify loops which were split in two parts, conditional vs
1358         unconditional variables.
1359
1360 2001-04-09  Akim Demaille  <akim@epita.fr>
1361
1362         Handle unconditional values of variables as conditioned by
1363         `TRUE'.
1364
1365         * automake.in (%contents): Remove.
1366         (&generate_makefile, &handle_ltlibraries, &macro_define)
1367         (&read_am_file, &variable_defined, &variable_conditions_sub)
1368         (&variable_value, &variable_value_as_list_worker)
1369         (&variable_value_as_list, &define_pretty_variable)
1370         (&read_main_am_file): Use
1371         $conditional, not %contents.
1372         (&variable_conditions_permutations): Don't return TRUE and FALSE.
1373         (&variable_conditionally_defined): New.
1374         (&handle_dist): Use it.
1375         (&check_ambiguous_conditional): When multiply defined, specify
1376         under which condition.
1377         (&macro_define): Use it.
1378         (&variable_delete): New.
1379         (&read_am_file): Use it.
1380         (&am_install_var): Simplify, as all the variables are in
1381         %conditional now.
1382
1383 2001-04-07  Tom Tromey  <tromey@redhat.com>
1384
1385         * tests/Makefile.am (XFAIL_TESTS): Added man.test.
1386         (TESTS): Likewise.
1387         * tests/man.test: New file.
1388
1389 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
1390
1391         * depcomp (gcc3): Invert test condition.
1392
1393 2001-04-07  Tom Tromey  <tromey@redhat.com>
1394
1395         * depcomp (gcc3, gcc): Don't assume $? will be set in `if'
1396         statement.  Report from Larry Jones.
1397
1398 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
1399
1400         * depcomp (sgi): Fix sed expression.  Report from Robert Boehne.
1401
1402 2001-04-01  Tom Tromey  <tromey@redhat.com>
1403
1404         * java.am (.PHONY clean-am): Removed trailing ":".
1405         From Per Bothner.  Fixes PR automake/139.
1406
1407 2001-03-28  Akim Demaille  <akim@epita.fr>
1408
1409         * program.am: Fix a stupid typo: now *all* (not none) the programs
1410         use `$(EXEEXT)'.
1411         Reported by Robert Boehne.
1412
1413 2001-03-23  Akim Demaille  <akim@epita.fr>
1414
1415         * automake.in (&read_am_file, &file_contents): Avoid name clashes
1416         on $cond.
1417
1418 2001-03-23  Akim Demaille  <akim@epita.fr>
1419
1420         * automake.in (&variable_conditionally_defined): Rename as...
1421         (&check_variable_unconditionally_defined): this.
1422         (&variable_dump): Fix the output.
1423         (&variable_defined, &macro_define): Since conditions are
1424         canonicalized, don't use a loop to look for a condition: read the
1425         hash.
1426         (&macro_define, &rule_define, &read_am_file, &file_contents):
1427         Rename $cond_string as $cond.
1428         * distdir.am (PACKAGE, VERSION): Remove; since they are already
1429         discovered via AC_SUBST, they now trigger a `defined twice' error.
1430
1431 2001-03-23  Akim Demaille  <akim@epita.fr>
1432
1433         * automake.in (&handle_footer, &handle_installdirs)
1434         (&read_main_am_file): Don't read %contents directly, use
1435         &variable_value.
1436
1437 2001-03-23  Akim Demaille  <akim@epita.fr>
1438
1439         * automake.in (&read_am_file): Define the variables in a single
1440         shot.
1441         Factor the $saw_bk code.
1442
1443 2001-03-23  Akim Demaille  <akim@epita.fr>
1444
1445         * automake.in (&read_am_file): Keep $cond_string up to date.
1446
1447 2001-03-23  Akim Demaille  <akim@epita.fr>
1448
1449         * automake.in (&define_variable): Use &macro_define.
1450
1451 2001-03-23  Akim Demaille  <akim@epita.fr>
1452
1453         * automake.in (&macro_define): Don't lose the location if we
1454         redefine a variable.
1455         Don't push all the variables in @var_list, let...
1456         (&read_am_file, &file_contents): ... do it.
1457         (&define_pretty_variable): Use macro_define.
1458         (&am_install_var): Delete the value of variables being redefined
1459         to pacify &macro_define which checks that variables are not
1460         doubly defined.
1461
1462 2001-03-23  Akim Demaille  <akim@epita.fr>
1463
1464         * automake.in (&conditional_dump): Rename as...
1465         (&variables_dump): this.  Use...
1466         (&variable_dump): this new sub.
1467
1468 2001-03-23  Akim Demaille  <akim@epita.fr>
1469
1470         * automake.in (&file_contents): Maintain $cond_string sync with
1471         @cond_stack.
1472         Output rules only if not under `FALSE'.
1473         Define variables under $cond_string.
1474         * scripts.am: For the time being if/endif does not work properly
1475         with macros.
1476
1477 2001-03-23  Akim Demaille  <akim@epita.fr>
1478
1479         * automake.in (IF_PATTERN): Unobfuscate the parens.
1480         (ENDIF_PATTERN): Allow a condition to be specified.
1481         (&file_contents): Use a @cond_stack.
1482         (&transform): At least for an easy transition, also transform
1483         %?FOO% and %!FOO%, as suggested by Lars.
1484         * scripts.am: First test bed for static if/endif use.
1485
1486 2001-03-23  Akim Demaille  <akim@epita.fr>
1487
1488         * automake.in (&file_contents): Use rule_define.
1489
1490 2001-03-23  Akim Demaille  <akim@epita.fr>
1491
1492         * automake.in (&macro_define): Don't rely on $1.
1493         Initialize the variable.
1494         Set its Automakism only if not defined or if given to the user.
1495         When concatenating values, insert a separator only if the value
1496         was not empty.
1497         (&read_am_file): When dumping the @var_list, skip Automake
1498         variables.
1499         (&file_contents): Use macro_define.
1500
1501 2001-03-23  Akim Demaille  <akim@epita.fr>
1502
1503         * automake.in (&rule_define): Extract from...
1504         (&read_am_file): here.
1505
1506 2001-03-23  Akim Demaille  <akim@epita.fr>
1507
1508         * automake.in (&macro_define, &read_am_file): More work for the
1509         former from the latter.  Reorganize the latter.
1510
1511 2001-03-23  Akim Demaille  <akim@epita.fr>
1512
1513         * automake.in (&macro_define): Extract from...
1514         (&read_am_file): here.
1515
1516 2001-03-23  Akim Demaille  <akim@epita.fr>
1517
1518         * automake.in (%am_var_defs): Replace with...
1519         (%var_is_am): this.
1520         (&handle_installdirs, &variable_value_as_list_worker, &read_am_file)
1521         (&file_contents, am_primary_&prefixes): Adjust.
1522         (&variable_defined, &define_variable): The actual semantics is
1523         `user defined'.
1524         (&read_main_am_file): Assert the var is user defined when
1525         outputting @var_list.
1526
1527 2001-03-23  Akim Demaille  <akim@epita.fr>
1528
1529         * automake.in (read_am_file): TRUE and FALSE are predefined
1530         conditionals.
1531         (&by_condition): Adjust.
1532         (&conditional_string): Recognize `TRUE' and `FALSE'.
1533         (&make_condition): Use it.
1534         * m4/cond.m4: Reject TRUE and FALSE as conditionals.
1535         * automake.texi (Conditionals): Adjust.
1536         * tests/cond9.test: s/FALSE/WRONG/.
1537
1538 2001-03-12  Pavel Roskin  <proski@gnu.org>
1539
1540         * tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
1541         now.
1542
1543 2001-03-12  Akim Demaille  <akim@epita.fr>
1544
1545         * automake.in (&variable_conditions_permutations): Separate the
1546         conditions.
1547         * tests/cond3.test: Improve the sed expression.
1548
1549 2001-03-09  Pavel Roskin  <proski@gnu.org>
1550
1551         * Makefile.am (maintainer-check): Scan all *.am files and tests
1552         for invocations of `rm' without `-f'.
1553         * tests/mclean.test: Adjusted to prevent triggering the above
1554         test.
1555
1556 2001-03-09  Tom Tromey  <tromey@redhat.com>
1557
1558         * automake.in (scan_one_autoconf_file): Fixed comment to avoid
1559         maintainer-check failure.
1560
1561 2001-03-09  Akim Demaille  <akim@epita.fr>
1562
1563         * tests/cond3.test: Strengthen.
1564
1565 2001-03-09  Akim Demaille  <akim@epita.fr>
1566
1567         * automake.in (&conditional_string): Produce a unique string
1568         characterizing a condition stack.
1569         (&conditional_same): Remove, comparing two strings is now enough.
1570         (&variable_defined): Adjust.
1571         (&read_am_file): Use conditional_string.
1572
1573 2001-03-08  Akim Demaille  <akim@epita.fr>
1574
1575         * automake.in: Use -w.
1576         Normalize all use of `$lang . '-foo'' into `"$lang-foo"'.
1577         (&parse_arguments): Support --Werror and --Wno-error as a
1578         temporary hack until --warning/-W is properly implemented.
1579         (&handle_single_transform_list): Prototype.
1580         Be sure to define $directory.
1581         Use `exists' instead of testing the value of a maybe undefined
1582         hash value.
1583         (&add_depend2, &handle_configure, &handle_footer, &file_contents)
1584         (&handle_factored_dependencies): Use defined values.
1585         (&scan_one_autoconf_file): Save $_.
1586         * tests/lex2.test, tests/sinclude.test, tests/suffix3.test:
1587         Run automake with --Wno-error.
1588
1589 2001-03-07  Akim Demaille  <akim@epita.fr>
1590
1591         * automake.in (&handle_all): Use an array instead of a scalar for
1592         local_headers.
1593         Get rid of all-redirect: let `all' be that target.
1594
1595 2001-03-07  Akim Demaille  <akim@epita.fr>
1596
1597         * automake.in (&handle_merge_targets): Ventilate its non `all'
1598         related content into...
1599         (&generate_makefile): here.
1600         (&handle_merge_targets): Rename as...
1601         (&handle_all): this.
1602         Remove a useless `if': `@all' is obviously not empty, since it
1603         contains at least the `basename ($makefile)' which has just been
1604         unshifted.
1605
1606 2001-03-07  Akim Demaille  <akim@epita.fr>
1607
1608         * automake.in, aclocal.in: Backquote is inert in double quotes.
1609
1610 2001-03-06  Akim Demaille  <akim@epita.fr>
1611
1612         * Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
1613         into `grep -v ...'.
1614
1615 2001-03-06  Pavel Roskin  <proski@gnu.org>
1616
1617         * java.am: Use `rm -f' instead of `rm'.
1618
1619 2001-03-06  Akim Demaille  <akim@epita.fr>
1620
1621         * automake.in (&push_dist_common): Simplify.
1622
1623 2001-03-06  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
1624
1625         * ltlib.am: Replaced spaces with tab.
1626
1627 2001-03-06  Pavel Roskin  <proski@gnu.org>
1628
1629         * tests/Makefile.am (XFAIL_TESTS): noinstdir.test removed, it's
1630         fixed now.
1631
1632 2001-03-05  Pavel Roskin  <proski@gnu.org>
1633
1634         * header.am, scripts.am: Use ?INSTALL? in the install and
1635         uninstall rules.
1636
1637 2001-03-05  Pavel Roskin  <proski@gnu.org>
1638
1639         * tests/copy.test: Never use `rm' without `-f' - it may ask
1640         questions, notably for read-only files during `make distcheck'.
1641         * tests/insh.test: Likewise.
1642         * tests/installsh.test: Likewise.
1643         * tests/symlink.test: Likewise.
1644         * tests/symlink2.test: Likewise.
1645         * tests/symlink3.test: Likewise.
1646
1647 2001-03-05  Pavel Roskin  <proski@gnu.org>
1648
1649         * noinstdir.test: New test.
1650         * tests/Makefile.am (TESTS): Add noinstdir.test.
1651         (XFAIL_TESTS): Likewise.
1652
1653 2001-03-05  Akim Demaille  <akim@epita.fr>
1654
1655         * automake.in (&handle_options): Change the RE so that the third
1656         part of the versions always exist.
1657         (&file_contents): Don't pass uninitialized values to &transform.
1658
1659 2001-03-05  Akim Demaille  <akim@epita.fr>
1660
1661         * automake.in (&file_contents): Require a hash as second argument.
1662         Adjust callers.
1663
1664 2001-03-05  Akim Demaille  <akim@epita.fr>
1665
1666         Always use hashes with &file_contents.
1667
1668         * automake.in (&handle_texinfo): texibuild.am does not need
1669         TEXINFODIR.
1670         texinfos.am wants only TEXICLEANS.
1671         (&handle_dist, &add_depend2, &handle_clean): Replace $xform with
1672         %transform.
1673         * texinfos.am: Adjust.
1674
1675 2001-03-05  Akim Demaille  <akim@epita.fr>
1676
1677         * automake.in (&handle_programs, &handle_libraries, &handle_tags)
1678         (&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust.
1679         (&am_install_var): Forget about `-clean'.
1680         Transform ?INSTALL?.
1681         Always output the *.am file.
1682         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
1683         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
1684         Remove, merged into the corresponding *.am file.
1685         * data.am, libs.am, ltlib.am, progs.am, python.am: Equip with
1686         ?INSTALL?.
1687
1688 2001-03-05  Pavel Roskin  <proski@gnu.org>
1689
1690         * Makefile.am (amfiles): Add configure.am. Sort alphabetically.
1691
1692 2001-03-05  Akim Demaille  <akim@epita.fr>
1693
1694         If OBJEXT and EXEEXT are not set, provide a default value, and use
1695         them unconditionally.
1696
1697         * automake.in (&generate_makefile): Provide default values for
1698         EXEEXT and OBJEXT.
1699         (&get_object_extension, &finish_languages)
1700         (&handle_single_transform_list, &handle_programs, &add_depend2)
1701         (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
1702         them, they are defined.
1703         * compile.am, depend2.am, program.am, progs.am: Likewise.
1704         * remake-hdr.am: Fix a typo.
1705         * tests/cxxo.test, tests/fo.test, tests/implicit.test,
1706         * tests/interp.test, tests/subobj.test, tests/subobj2.test,
1707         * tests/suffix2.test: Adjust.
1708
1709 2001-03-05  Akim Demaille  <akim@epita.fr>
1710
1711         * automake.in (&file_contents): Map MAINTAINER-MODE to
1712         @MAINTAINER_MODE_TRUE@ or nothing.
1713         * configure.am, remake-hdr.am, remake.am, texi-vers.am: Adjust.
1714         Suggested by Tom.
1715
1716 2001-03-05  Akim Demaille  <akim@epita.fr>
1717
1718         * automake.in (&do_one_merge_target): Remove, was only called from...
1719         (&handle_merge_targets): here for `all'.
1720         Adjust.
1721
1722 2001-03-05  Akim Demaille  <akim@epita.fr>
1723
1724         Make the installation/uninstallation of Info pages follow the
1725         regular am/recursive scheme.
1726
1727         * automake.in (%required_targets, %dependencies): Add
1728         install-info.
1729         (%dependencies): Add install-info, install-info-am, and
1730         unstall-info.
1731         (&handle_subdirs): Don't transform INSTALLINFO, which mapping was
1732         reversed BTW.  Does anybody use the option `no-installinfo'?
1733         (&handle_merge_targets): Let the handling of info related targets
1734         to...
1735         (&handle_factored_dependencies): this.
1736         * subdirs.am: Use ?INSTALL-INFO?.
1737         * texinfos.am: Define the install-info, uninstall-info and
1738         uninstall-info-am targets.
1739
1740 2001-03-05  Akim Demaille  <akim@epita.fr>
1741
1742         * automake.in (%required_targets, %dependencies): Add dvi, info,
1743         dvi-am, info-am.
1744         (@info, @dvi): Remove.
1745         (&handle_texinfo, &handle_merge_targets): Adjust.
1746         (&handle_factored_dependencies): Required targets are phony.
1747         * texinfos.am: Build info, dvi, and the corresponding -am or
1748         -recursive targets.
1749
1750 2001-03-05  Akim Demaille  <akim@epita.fr>
1751
1752         * automake.in (&am_install_var): Remove $cygxform, unused.
1753
1754 2001-03-05  Akim Demaille  <akim@epita.fr>
1755
1756         * automake.in (&file_contents): Transform LIBTOOL.
1757         (&am_install_var): Remove $ltxform.
1758         * ltlib.am, progs.am: Adjust.
1759
1760 2001-03-05  Akim Demaille  <akim@epita.fr>
1761
1762         * automake.in: Require AC_PROG_INSTALL in...
1763         (&scan_autoconf_files): here.
1764
1765 2001-03-05  Akim Demaille  <akim@epita.fr>
1766
1767         * configure.am: New file.
1768         * automake.in (&file_contents): Transform CONFIGURE-AC.
1769         (&handle_texinfo, &handle_configure): Don't transform
1770         CONFIGURE_AM.
1771         (&handle_configure): Use `configure.am'.
1772         * remake-hdr.am, remake.am, texi-vers.am: Adjust to
1773         MAINTAINER-MODE and CONFIGURE-AC.
1774
1775 2001-03-05  Akim Demaille  <akim@epita.fr>
1776
1777         * automake.in (&pretty_print_internal): Don't output useless
1778         spaces.
1779         (define_pretty_variable): Don't issue the space after the `=' sign
1780         to avoid trailing spaces in Makefile.ins.
1781
1782 2001-03-05  Akim Demaille  <akim@epita.fr>
1783
1784         * automake.in (&generate_makefile): Invoke &initialize_per_input
1785         *before* setting $am_file_name and $in_file_name.
1786
1787 2001-03-05  Akim Demaille  <akim@epita.fr>
1788
1789         * automake.in ($in_file_name, $am_file_name, $relative_dirs):
1790         Globals, initialized...
1791         (&initialize_per_input): here.
1792
1793 2001-03-05  Akim Demaille  <akim@epita.fr>
1794
1795         * automake.in ($am_relative_dir): Global.
1796         (&initialize_per_input): Init it.
1797         (%make_list, @make_input_list): My them from
1798         (&scan_autoconf_files): here.
1799         (&require_file_internal): Mying changes.
1800
1801 2001-03-05  Akim Demaille  <akim@epita.fr>
1802
1803         * automake.in (%am_vars, @var_list, %def_type): Globals.
1804         (&initialize_per_input): Initialize them.
1805         (&read_main_am_file): Don't local them.
1806         (&get_object_extension): $objext is private.
1807         (&handle_single_transform_list): $lang is.
1808         (&handle_ltlibraries): $libname_rx is.
1809         (&scan_autoconf_config_files): How about actually paying attention
1810         to your arguments, instead of working on $_? (this is no Perl
1811         variable, it's a Perl variable followed by a question mark).
1812         (&file_contents): $contents and $separator are private.
1813         (&am_install_var): Declare @condvals, not $condvals.
1814         (%make_dirs): My.
1815
1816 2001-03-05  Akim Demaille  <akim@epita.fr>
1817
1818         * automake.in (&initialize_per_input): Move to the top.
1819         Precede with the `my' list of its variables.
1820
1821 2001-03-05  Akim Demaille  <akim@epita.fr>
1822
1823         * automake.in ($am_file): Use vars.
1824         ($am_file_name, $in_file_name): Private to &generate_makefile.
1825
1826 2001-03-05  Akim Demaille  <akim@epita.fr>
1827
1828         * automake.in: Preparation for `use strict': Move the
1829         initialization of the constants to the top, from...
1830         (&initialize_global_constants): here.
1831
1832 2001-03-05  Akim Demaille  <akim@epita.fr>
1833
1834         * automake.in (&handle_single_transform_list, &add_depend2): Let
1835         $lang_specific_files{$lang} be a list instead of a string.
1836
1837 2001-03-05  Akim Demaille  <akim@epita.fr>
1838
1839         Let's make it run ten times faster...
1840
1841         * automake.in (&transform): Be sure to remove the `\n' with ?FOO?
1842         transformations.
1843         (&file_contents): Let `$command' remove the Automake commands, and
1844         normalize the series of `\n'.
1845         Slurp the file and apply $command in a single step.
1846         No longer apply the `@MAINTAINER_MODE_TRUE@' transformation which
1847         is already normalized to be handled by &transform.
1848
1849 2001-03-05  Tom Tromey  <tromey@redhat.com>
1850
1851         * automake.in (register_language): Add entry for `-pure'.
1852         Added `pure=yes' entries for cxx, objc, f77, ppf77, ratfor, java.
1853         (finish_languages): Use `-pure' field of language map.
1854
1855 2001-03-03  Tom Tromey  <tromey@redhat.com>
1856
1857         * tests/yaccvpath.test: No need to remove dummy files.
1858         * tests/subobj3.test: No need to remove dummy files.
1859         * tests/pr9.test: No need to remove dummy files.
1860         * tests/pr87.test: No need to remove dummy files.
1861         * tests/pr19.test: No need to remove dummy files.
1862         * tests/install2.test: No need to remove dummy files.
1863         * tests/defs: Actually copy in install-sh, mkinstalldirs, missing,
1864         and depcomp.
1865
1866 2001-02-27  Pavel Roskin  <proski@gnu.org>
1867
1868         * tests/yaccvpath.test: Add a delay to make parse.c really out
1869         of date. Detect the problem earlier, after `make distdir'. Drop
1870         dependency on flex. Always use the `-y' flag for bison. Comment
1871         changes.
1872         * tests/Makefile.am: Add yaccvpath.test to XFAIL_TESTS.
1873
1874 2001-03-02  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
1875
1876         * depend2.am (?!GENERIC??LIBTOOL?%LTOBJ%): Add `%' to fix typo.
1877
1878 2001-02-28  Akim Demaille  <akim@epita.fr>
1879
1880         * automake.in (&add_depend2): Transform `GENERIC'.
1881         Get rid of the ad hoc transformation of `@EXT@.o:' which in
1882         addition was broken by the `@ -> %' patch.
1883         * depend2.am: Adjust to use ?GENERIC?.
1884
1885 2001-02-28  Akim Demaille  <akim@epita.fr>
1886
1887         * Makefile.am (maintainer-check): `undef $/' is OK.
1888
1889 2001-02-28  Akim Demaille  <akim@epita.fr>
1890
1891         * automake.in (&handle_configure): Fortunately, $top_reldir,
1892         the definition of which was highly suspicious, was unused.
1893
1894 2001-02-27  Akim Demaille  <akim@epita.fr>
1895
1896         * automake.in (%exec_dir_p): Move to the top so that it is visible
1897         to all routines.
1898
1899 2001-02-27  Pavel Roskin  <proski@gnu.org>
1900
1901         * tests/yaccvpath.test: Prevent automake from looking into ..
1902         and ../.. by using AC_CONFIG_AUX_DIR in configure.in.
1903
1904 2001-02-27  Akim Demaille  <akim@epita.fr>
1905
1906         * automake.in (%exec_dir_p): Pulled out from...
1907         (&am_primary_prefixes): here.
1908
1909 2001-02-27  Akim Demaille  <akim@epita.fr>
1910
1911         * automake.in (&usage): Display $0, not $me.
1912
1913 2001-02-27  Akim Demaille  <akim@epita.fr>
1914
1915         * mans.am: s/INSTALL_MAN/INSTALL-MAN/.
1916         * automake.in (&handle_clean): Don't escape what's given to
1917         &transform.
1918
1919 2001-02-27  Akim Demaille  <akim@epita.fr>
1920
1921         Distinguish automake substitutions from config.status
1922         substitutions.
1923
1924         * automake.in (&add_depend2): Transform AMDEP.
1925         (&handle_clean): Transform MCFILES and MFILES.
1926         (&file_contents): Transform MAINTAINER_MODE.
1927         (&transform, &am_install_var): Use `%', not `@'.
1928         Adjust all the *.am files.
1929         * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN.
1930         * depend2.am: Display the double dependency on both ?AMDEP? and
1931         @AMDEP@.
1932
1933 2001-02-27  Tom Tromey  <tromey@redhat.com>
1934
1935         * distdir.am (distcheck): Fixed new code.
1936
1937         * tests/yaccvpath.test: Fail gracefully if bison/flex not found.
1938         Only configure once.
1939
1940         * distdir.am (distcheck): Print error message if distclean failed
1941         to fully clean.
1942
1943 2001-02-27  Pavel Roskin  <proski@gnu.org>
1944
1945         * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/.
1946
1947 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1948
1949         * tests/Makefile.am (TESTS): Added yaccvpath.test.
1950         * tests/yaccvpath.test: New file.
1951
1952 2001-02-26  Akim Demaille  <akim@epita.fr>
1953
1954         * automake.in (&am_install_var): Recognize whether predefined
1955         directories are `data' or `exec'.
1956         * libs.am, ltlib.am, progs.am, python.am, scripts.am: Install
1957         ?EXEC?.
1958         * tests/instdata2.test: Update.
1959
1960 2001-02-26  Akim Demaille  <akim@epita.fr>
1961
1962         * texinfos.am: No ?EXEC? hook as currently installing TEXINFOS is
1963         necessarily in infodir.
1964
1965 2001-02-26  Akim Demaille  <akim@epita.fr>
1966
1967         * automake.in ($am_file): Be `local', as my'd variables used in
1968         `foreach' loops are always private to the loop.
1969
1970 2001-02-26  Pavel Roskin  <proski@gnu.org>
1971
1972         * Makefile.am: Add install.am.
1973
1974 2001-02-26  Akim Demaille  <akim@epita.fr>
1975
1976         * automake.in (&target_cmp, &dist_cmp): Do not prototype comparing
1977         routines, otherwise the elements to compare are passed in @_
1978         instead of $a and $b.
1979
1980 2001-02-26  Akim Demaille  <akim@epita.fr>
1981
1982         * automake.in (%required_targets): `installcheck-am' is needed.
1983
1984 2001-02-26  Akim Demaille  <akim@epita.fr>
1985
1986         * automake.in (&transform_cond): Merge into...
1987         (&transform): this.
1988         Adjust all uses.
1989
1990 2001-02-26  Akim Demaille  <akim@epita.fr>
1991
1992         * automake.in (&handle_dist): Use &transform instead of dedicated
1993         magic for DISTDIRS.
1994         But be sure to always do it.
1995         * distdir.am: Adjust.
1996
1997 2001-02-26  Akim Demaille  <akim@epita.fr>
1998
1999         * automake.in: Use File::Basename.
2000         (&dirname, &basename): Remove.
2001
2002 2001-02-26  Akim Demaille  <akim@epita.fr>
2003
2004         * automake.in ($me): New.
2005         Use it.
2006         (&usage): Display your full name.
2007
2008 2001-02-26  Akim Demaille  <akim@epita.fr>
2009
2010         * automake.texi (Invoking Automake): Remove dead options.
2011
2012 2001-02-26  Akim Demaille  <akim@epita.fr>
2013
2014         * automake.in (&scan_texinfo_file): Also compute the list of files
2015         to clean.
2016         Handle local errors.
2017         (&handle_texinfo): Use it.
2018
2019 2001-02-26  Akim Demaille  <akim@epita.fr>
2020
2021         * automake.in: Don't pass arguments to...
2022         (&parse_arguments): Work on @ARGV.
2023         Use Getopt.
2024         Add support for `-f'.
2025         (&version): New.
2026         (&usage): Update.
2027
2028 2001-02-26  Akim Demaille  <akim@epita.fr>
2029
2030         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
2031         handle installcheck and installcheck-am.
2032         * install.am: Do it.
2033
2034 2001-02-26  Akim Demaille  <akim@epita.fr>
2035
2036         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
2037         handle install and install-am.
2038         * install.am: Do it.
2039
2040 2001-02-26  Akim Demaille  <akim@epita.fr>
2041
2042         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
2043         work on targets handled by %dependencies.
2044         (&handle_factored_dependencies): Do it.
2045         * install.am: Install install-exec, install-data and uninstall's
2046         suites.
2047
2048 2001-02-26  Akim Demaille  <akim@epita.fr>
2049
2050         * automake.in (&handle_merge_targets): Move `install-strip' from
2051         here...
2052         * install.am: to here.
2053
2054 2001-02-26  Akim Demaille  <akim@epita.fr>
2055
2056         * automake.in (@installdirs): Remove.
2057         (&file_contents): Be able to grow Automake macros with `+='.
2058         (&handle_texinfo, &handle_man_pages, &am_install_var): Let your
2059         files define _am_installdirs.
2060         (&handle_installdirs): Remove the code, just output `install.am'.
2061         * install.am: New.
2062         * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
2063         * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
2064
2065 2001-02-26  Akim Demaille  <akim@epita.fr>
2066
2067         * tests/instdata2.test (libexec_DATA): Exercise more
2068         possibilities.
2069
2070 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2071
2072         * header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete).
2073
2074 2001-02-25  Tom Tromey  <tromey@redhat.com>
2075
2076         * tests/instdata2.test: Added `sbin_DATA' check.
2077
2078         * tests/Makefile.am (TESTS): Added subdircond.test.
2079         * tests/subdircond.test: New file.
2080         * automake.in (handle_gettext): Don't fail if SUBDIRS
2081         conditionally defined.
2082
2083         * automake.in: Use IO::File.
2084         (generate_makefile): Use IO::File.
2085         (scan_texinfo_file): Likewise.
2086         (handle_aclocal_m4): Likewise.
2087         (scan_autoconf_traces): Likewise.
2088         (scan_one_autoconf_file): Likewise.
2089         (read_am_file): Likewise.
2090         (file_contents): Likewise.
2091         (create): Likewise.
2092
2093 2001-02-25  Akim Demaille  <akim@epita.fr>
2094
2095         * automake.in (handle_texinfo): Remove code handled by texinfos.am.
2096
2097 2001-02-25  Akim Demaille  <akim@epita.fr>
2098
2099         * automake.in (&transform): Also call &transform_cond on your
2100         arguments.
2101         (&handle_dist): Adjust.
2102         (&handle_factored_dependencies): Uniq dependencies.
2103
2104 2001-02-25  Akim Demaille  <akim@epita.fr>
2105
2106         * automake.in (&handle_gettext): Simplify redundant `if'.
2107         Used &variable_value, don't read %contents directly.
2108
2109 2001-02-25  Akim Demaille  <akim@epita.fr>
2110
2111         * automake.in ($install_recursive): Remove, replaced with calls to
2112         `&variable_defined ('SUBDIRS')'.
2113         (&handle_dist, &handle_clean): Don't transform_cond SUBDIRS since...
2114         (&file_contents): now does.
2115
2116 2001-02-25  Akim Demaille  <akim@epita.fr>
2117
2118         * automake.in (&handle_man_pages): $found is dead.
2119
2120 2001-02-25  Akim Demaille  <akim@epita.fr>
2121
2122         Internally just store the conditionals as space separated lists of
2123         CONDITIONS (instead of @CONDITIONS@).
2124
2125         * automake.in (&conditional_true_when, &variable_conditions_sub):
2126         Split conditions at spaces.
2127         (&handle_dependencies, &variable_conditions_permutations): Don't
2128         put @ around conditions.
2129         (&variable_conditions_cmp): There are no @ to strip.
2130         (&make_condition): New.
2131         (&define_pretty_variable, &read_main_am_file, &read_am_file): Use
2132         it.
2133         (&read_main_am_file, &read_am_file): Stop playing with @ by hand.
2134         Join @conditional_stack with spaces.
2135         (&read_main_am_file): Adjust the output of variables.
2136         Output `TRUE = true' under the condition `TEST' as `@TEST@TRUE =
2137         true' and no longer `@TEST@TRUE = @TEST@true'.
2138         (&variable_conditions_cmp): Rename as...
2139         (&by_condition): this.
2140         Sort in a human pleasant order.
2141         Use it everywhere a human can see conditions.
2142         (&variable_conditions_reduce): Don't sort conditions, that's
2143         pointless.
2144         * tests/cond.test, ctarget1.test, pluseq3.test: Strengthen.
2145
2146 2001-02-25  Akim Demaille  <akim@epita.fr>
2147
2148         * automake.in: `my' the globals.
2149
2150 2001-02-25  Akim Demaille  <akim@epita.fr>
2151
2152         * automake.in (&initialize_per_input): %targets_conditionals is
2153         new.
2154         (&read_am_file): When slurping a rule, set the target related
2155         variable, and no variable related variable.
2156         (&file_contents): Likewise.
2157         * tests/vartar.test, tests/ctarget1.test: New.
2158
2159 2001-02-25  Akim Demaille  <akim@epita.fr>
2160
2161         * automake.in (&variable_defined, &variable_value_as_list_worker):
2162         If $VAR is effectively a variable, don't die if it's also a
2163         target.
2164         Plus some formatting changes.
2165
2166 2001-02-25  Akim Demaille  <akim@epita.fr>
2167
2168         * automake.in: Mying changes.
2169         * Makefile.am (maintainer-check): Check the stability of the
2170         number of uses of `local'.
2171
2172 2001-02-25  Akim Demaille  <akim@epita.fr>
2173
2174         * automake.in: Mying changes.
2175
2176 2001-02-25  Akim Demaille  <akim@epita.fr>
2177
2178         * automake.in: Mying changes.
2179
2180 2001-02-25  Akim Demaille  <akim@epita.fr>
2181
2182         * automake.in: Mying changes.
2183         (&handle_tags): Fix a bug uncovered by the previous mying changes:
2184         transform CONFIG into $config, not $xform.
2185
2186 2001-02-25  Akim Demaille  <akim@epita.fr>
2187
2188         * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var):
2189         Don't deal with install-data-am, install-exec-am and unstall-am.
2190         (&initialize_per_input): Add them to %dependencies.
2191         Remove %exec_dir_p since the *.am files are now in charge of it.
2192         Remove @uninstall, @install_data, @install_exec.
2193         (&handle_merge_targets): Adjust to these removals.
2194         (&file_contents): Also &transform_cond for --no-installman and
2195         --no-installinfo.
2196         (&do_one_merge_target): Add some magic to install hooks on
2197         %dependencies' targets.
2198         (%required_targets): New.
2199         (&handle_factored_dependencies): Output required targets.
2200         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
2201         * mans-vars.am, mans.am, progs.am, python.am, scripts.am,
2202         * texinfos.am: Declare your dependencies on install-data-am,
2203         install-exec-am and uninstall-am.
2204         * tests/instdata2.test (incldata_HEADERS): New test.
2205
2206 2001-02-24  Tom Tromey  <tromey@redhat.com>
2207
2208         * Makefile.am (amfiles): Added texibuild.am.
2209         * texibuild.am: New file.
2210         * tests/Makefile.am (TESTS): Added texinfo9.test.
2211         * tests/texinfo9.test: New file.
2212         * automake.in (handle_texinfo): Keep track of suffixes used.  Give
2213         error if suffix unrecognized.  Removed extraneous newline.
2214
2215 2001-02-23  Akim Demaille  <akim@epita.fr>
2216
2217         * automake.in (&am_install_var): Don't hook on the clean targets
2218         and .PHONY.
2219         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
2220         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
2221         Do it.
2222
2223 2001-02-23  Akim Demaille  <akim@epita.fr>
2224
2225         * automake.in: Promote local `my' over `local'.
2226
2227 2001-02-23  Akim Demaille  <akim@epita.fr>
2228
2229         * automake.in: Formatting and mying changes.
2230
2231 2001-02-23  Akim Demaille  <akim@epita.fr>
2232
2233         * automake.in: Formatting and mying changes.
2234
2235 2001-02-23  Akim Demaille  <akim@epita.fr>
2236
2237         * automake.in (&handle_man_pages): Let install-man and
2238         uninstall-man be handled by the dependency tracker.
2239         (&initialize_per_input): Let %dependencies track them.
2240         * mans.am: Add the needed hooks with the proper dependencies.
2241
2242 2001-02-22  Pavel Roskin  <proski@gnu.org>
2243
2244         * tests/target-cflags.test: Don't use subshell to configure in
2245         subdirectory. Typo fix - run `./foo', not `/foo'.
2246
2247 2001-02-22  Akim Demaille  <akim@epita.fr>
2248
2249         * automake.in: Formatting and mying changes.
2250
2251 2001-02-21  Tom Tromey  <tromey@redhat.com>
2252
2253         * automake.in (handle_dist): Introduce new variable to avoid extra
2254         keys in %dist_dirs.  Fixes distdir.test.
2255
2256         * automake.in (handle_texinfo): Only remove suffixes we can
2257         handle.
2258
2259         * tests/distdir.test: Check to make sure directory isn't made in
2260         build directory.
2261
2262         * automake.in (handle_dist): Do nothing in Cygnus mode.
2263
2264 2001-02-21  Pavel Roskin  <proski@gnu.org>
2265
2266         * header-vars.am: Remove tabs before variable definitions.
2267
2268 2001-02-21  Akim Demaille  <akim@epita.fr>
2269
2270         * tests/distdir.test (EXTRA_DIST): Use a finer pattern to avoid
2271         false diagnostics.
2272
2273 2001-02-21  Akim Demaille  <akim@epita.fr>
2274
2275         * automake.in (&dist_cmp, &target_cmp): Be sure to return a
2276         numeric value as required by Perl 5.6.
2277
2278 2001-02-21  Akim Demaille  <akim@epita.fr>
2279
2280         * dist-vars.am: Remove, merge into...
2281         * distdir.am: this.
2282         * automake.in (dirname, basename, backname): Move to the top of
2283         the file so that prototypes are checked,
2284         Use them without `&'.
2285         (&handle_dist): Adjust.
2286
2287 2001-02-21  Akim Demaille  <akim@epita.fr>
2288
2289         * automake.in (&check_ambiguous_conditional, &read_main_am_file):
2290         Use a uniform naming scheme.
2291         (&quote_cond_val, &unquote_cond_val): Delete, dead code.
2292         (&read_am_file): Fix conditional definition of backslash continued
2293         items.
2294
2295 2001-02-21  Akim Demaille  <akim@epita.fr>
2296
2297         Change the handling of conditionals: instead of using an ad-hoc
2298         encoding to store a hash in a string, use hashes.
2299
2300         * automake.in (&conditional_dump): New.
2301         (&check_ambiguous_conditional, &variable_defined)
2302         (&variable_conditions_sub, &variable_value_as_list_worker)
2303         (&define_variable, read_am_file, &read_main_am_file): Be sure to
2304         handle `$conditional{$vars}' as a hash instead of a plain string.
2305
2306 2001-02-21  Akim Demaille  <akim@epita.fr>
2307
2308         * automake.in (&conditional_true_when): Modernize, simplify.
2309         Warning: `$comp' is now private (my), while it used to be
2310         `inherited' from a `local' elsewhere in the code.  AFAICT it was
2311         wrong, but some dirty side effect might show up.
2312         (&conditionals_true_when): New.
2313         (&variable_conditions_sub, &variable_conditions_reduce): Use it.
2314
2315 2001-02-21  Akim Demaille  <akim@epita.fr>
2316
2317         * automake.in ($top_builddir): Remove, used in one place.
2318         (&define_standard_variables): Adjust.
2319         Move the definition of triplet variables into...
2320         * header-vars.am: here.
2321
2322 2001-02-21  Akim Demaille  <akim@epita.fr>
2323
2324         * automake.in (&initialize_global_constants): Don't define $USAGE.
2325         (&usage): Handle the former content of $USAGE.
2326         Don't pretend autoconf cares about Makefile.in.
2327         Classify the options.
2328         (&handle_tests): Formatting and mying changes.
2329
2330 2001-02-21  Akim Demaille  <akim@epita.fr>
2331
2332         * automake.in (&handle_tests_dejagnu): Move the definition of a
2333         default `site.exp' into...
2334         * dejagnu.am (site.exp): here.
2335         Use DOS compliant file names.
2336
2337 2001-02-21  Akim Demaille  <akim@epita.fr>
2338
2339         * automake.in (&dist_cmp): New.
2340         (&handle_dist): Use it.
2341         Promote `my' over `local'.
2342
2343 2001-02-21  Akim Demaille  <akim@epita.fr>
2344
2345         * dist.am: Remove, merge into...
2346         * distdir.am: here.  Use the neat sed snippet for banners.
2347         BTW, distcheck is phony.
2348         * automake.in (&handle_dist_worker): Remove, merge into...
2349         (&handle_dist): this.
2350         (&file_contents): Strip leading new lines.
2351         Be sure to end comments with new lines.
2352
2353 2001-02-21  Akim Demaille  <akim@epita.fr>
2354
2355         * distdir.am (GZIP_ENV): Define.
2356         * automake.in (&handle_dist): Don't.
2357         (&uniq): New.
2358         (&handle_dist_worker, &am_install_var): Use it.
2359
2360 2001-02-21  Akim Demaille  <akim@epita.fr>
2361
2362         * distdir.am (distdir): Handle the DIST-TARGETS.
2363         * automake.in (&handle_dist_worker): Don't.
2364
2365 2001-02-21  Akim Demaille  <akim@epita.fr>
2366
2367         * automake.in (&file_contents): Transform the global options (such
2368         as CYGNUS).
2369         (&handle_texinfo, &handle_dist_worker, &handle_tests_dejagnu): Don't.
2370
2371 2001-02-21  Akim Demaille  <akim@epita.fr>
2372
2373         * distdir.am (distdir): Be sure to have permissive rights on its
2374         contents.
2375         (dist-all, dist-bzip2, dist-zip, dist-tarZ): New conditional
2376         targets.
2377         And BTW, all these guys are phony.
2378         * automake.in (&handle_dist_worker): As its name doesn't indicate,
2379         output distributions.
2380         (&handle_dist): As its name doesn't indicate, don't.
2381         (&initialize_global_constants): Don't define variables which
2382         content is now handled by distdir.am.
2383         But register `dist-all' as a factored target.
2384         (&handle_factored_dependencies): Don't output empty targets.
2385
2386 2001-02-20  Tom Tromey  <tromey@redhat.com>
2387
2388         * m4/init.m4 (AM_INIT_AUTOMAKE): Simplify m4_pattern_allow
2389         invocation.
2390
2391 2001-02-18  Tom Tromey  <tromey@redhat.com>
2392
2393         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Don't call AM_PROG_STRIP.
2394         Set INSTALL_STRIP_PROGRAM_ENV to `$(STRIP)', not `$STRIP'.
2395         (AM_PROG_STRIP): Commented out.
2396
2397 2001-02-17  Raja R Harinath  <harinath@cs.umn.edu>
2398
2399         * depcomp (gcc3): Protect against the compiler deleting
2400         the dependency output file.
2401
2402 2001-02-17  Tom Tromey  <tromey@redhat.com>
2403
2404         * automake.in (handle_merge_targets): Use double quotes around
2405         setting of INSTALL_STRIP_PROGRAM.
2406         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
2407         to absolute path at runtime.
2408         (AM_PROG_STRIP): Don't explicitly test $STRIP.
2409
2410 2001-01-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
2411
2412         * m4/strip.m4: New file.
2413         * m4/Makefile.am (m4data_DATA): Add strip.m4.
2414         * m4/init.m4: Call AM_PROG_INSTALL_STRIP.
2415         * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function.
2416         * automake.in (handle_merge_targets): In the install-strip rule,
2417         set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV
2418         to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG.
2419         * progs.am (install-@DIR@PROGRAMS): Adapt to use INSTALL_PROGRAM_ENV,
2420         don't use INSTALL_STRIP_FLAG any longer.
2421
2422 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
2423
2424         * automake.in (scan_one_configure_file): Unquote AC_CONFIG_AUX_DIR's
2425         argument.
2426
2427 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
2428
2429         * automake.in (unquote_m4_arg): New function.
2430         (scan_one_configure_file): Call unquote_m4_arg on
2431         AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h])
2432         works.
2433
2434 2001-02-15  Tom Tromey  <tromey@redhat.com>
2435
2436         * config.guess, config.sub: New versions from FSF.
2437
2438         * Makefile.am (WGET): New macro.
2439         (FETCHFILES): New macro.
2440         (fetch): New target.
2441
2442         * tests/subobj3.test: Exit with status 77 if gcc not found.
2443         * tests/pr9.test: Exit with status 77 if gzip not found.
2444         * tests/pr87.test: Exit with status 77 if gcc not found.
2445         * tests/pr19.test: Exit with status 77 if gzip or gcc not found.
2446         * tests/install2.test: Exit with status 77 if gzip not found.
2447         * tests/exsource.test: Exit with status 77 if GNU make not found.
2448         * tests/ansi3.test: Exit with status 77 if gcc not found.
2449
2450         * tests/target-cflags.test: Require GNU make.  Exit with status 77
2451         if gcc or make not found.  Fixes PR automake/121.
2452
2453         * configure.in: Require Perl 5.005.
2454         * automake.in: Require 5.005.
2455
2456         * automake.texi (Top): Conditionalize on `nottex', not `info'.
2457         Fixes PR automake/122.
2458
2459 2001-02-14  Tom Tromey  <tromey@redhat.com>
2460
2461         * automake.in (add_depend2): Only emit a given object rule once.
2462         Fixes specflags6.test.
2463
2464 2001-02-14  Richard Boulton  <richard@tartarus.org>
2465
2466         * tests/specflags6.test: New file.
2467
2468 2001-02-14  Tom Tromey  <tromey@redhat.com>
2469
2470         * automake.texi (A Shared Library): Mention -module.
2471
2472 2001-02-13  Tom Tromey  <tromey@redhat.com>
2473
2474         * automake.in (do_one_merge_target): Always register $name and
2475         $name-am as phony.
2476
2477         * automake.in (do_one_merge_target): Register `all' as phony
2478         target.
2479
2480         * configure.in: Updated to 1.4e for cvs.
2481
2482 2001-02-12  Tom Tromey  <tromey@redhat.com>
2483
2484         * configure.in: Updated to 1.4d and released.
2485
2486         * m4/init.m4 (AM_INIT_AUTOMAKE): Explicitly allow various AM_*
2487         names through autoconf.
2488
2489         Fix for subdirbuiltsources.test:
2490         * automake.in (initialize_per_input): [all_target] Initialize to
2491         empty string.
2492         (handle_merge_targets): Use all-redirect target to handle built
2493         sources.
2494         (do_one_merge_target): Don't generate all-redirect rule.
2495
2496 2001-02-11  Peter Muir  <iyhi@yahoo.com>
2497
2498         * tests/subdirbuiltsources.test: New file.
2499         * tests/Makefile.am (TESTS): Added new file.
2500
2501 2001-02-10  Tom Tromey  <tromey@redhat.com>
2502
2503         * tests/condlib.test: New file.
2504         * tests/Makefile.am (TESTS): Added new file.
2505
2506 2001-02-10  Lars J. Aas  <larsa@sim.no>
2507
2508         * automake.in ($MACRO_PATTERN): Include '@' in name regex.
2509         (&canonicalize): New. Includes '@' in canonical range.
2510         (&check_canonical_spelling, &handle_programs, &handle_libraries,
2511         &handle_ltlibraries, &handle_texinfo): Use &canonicalize.
2512
2513 2001-02-10  Raja R Harinath  <harinath@cs.umn.edu>
2514
2515         * automake.in (handle_configure): Revert part of
2516         '2001-02-04  Kevin Ryde <user42@zip.com.au>'.  Don't
2517         set CONFIG_COMMANDS explicitly.
2518
2519 2001-02-09  Raja R Harinath  <harinath@cs.umn.edu>
2520
2521         * depcomp (gcc3): Propagate exit code.
2522
2523 2001-02-09  Lars J. Aas  <larsa@sim.no>
2524
2525         * header.am (install-@DIR@HEADERS): s,?!NOBASE?,?!BASE?, (typo)
2526
2527 2001-02-09  Tom Tromey  <tromey@redhat.com>
2528
2529         Clean up maintainer-check warnings:
2530         * Makefile.am (maintainer-check): Ignore comment lines in CDPATH
2531         check.
2532         * automake.in (handle_dist_worker): Removed redundant `my $xform'.
2533
2534 2001-02-09  Akim Demaille  <akim@epita.fr>
2535
2536         * automake.in (&file_contents): Remove a dead branch.
2537
2538 2001-02-09  Akim Demaille  <akim@epita.fr>
2539
2540         * automake.in (&transform): Use `my', not `local'.
2541         (&transform_cond): New.
2542         (&get_object_extension, &handle_texinfo, &handle_tags)
2543         (&handle_dist_worker, &handle_dist, &add_depend2, &handle_clean)
2544         (&handle_tests_dejagnu): Use it.
2545         * texinfos.am, lisp.am, header.am, dist.am, distdir.am, depend2.am
2546         * dejagnu.am, data.am, clean.am: Adjust to the new syntax.
2547
2548 2001-02-09  Akim Demaille  <akim@epita.fr>
2549
2550         * automake.in: Various formatting changes, and modernization of
2551         Perl constructs.
2552         (&backname): New.
2553         (&handle_configure, define_standard_variables): Use it.
2554
2555 2001-02-08  Tom Tromey  <tromey@redhat.com>
2556
2557         * automake.in (file_contents): Only add $actions if any are
2558         found.  Fixes new failure in pr87.test.
2559
2560 2001-02-08  Pavel Roskin  <proski@gnu.org>
2561
2562         * tests/pr87.test: Check foo/Makfile.in after it is created.
2563
2564 2001-02-08  Tom Tromey  <tromey@redhat.com>
2565
2566         * tests/pr87.test: Added check for blank line after `.c.o' rule.
2567         Report from Lars J. Aas.
2568
2569 2001-02-07  Lars J. Aas  <larsa@sim.no>
2570
2571         * lisp.am (install-@DIR@LISP): Removed extra space.
2572         * header.am (install-@DIR@HEADERS): Removed extra space.
2573         * data.am (install-@DIR@DATA): Removed extra space.
2574
2575 2001-02-07  Tom Tromey  <tromey@redhat.com>
2576
2577         * m4/init.m4 (AM_INIT_AUTOMAKE): Use \", not ".
2578
2579         * automake.in (handle_dependencies): Use _am_include, not
2580         AMINCLUDE.
2581         * tests/exsource.test: Use _am_include, not AMINCLUDE.
2582         * m4/make.m4 (AM_MAKE_INCLUDE): Use _am_include, not AMINCLUDE.
2583
2584         * tests/Makefile.am (XFAIL_TESTS): Removed distcommon.test.
2585
2586         * tests/Makefile.am (EXTRA_DIST): Added ChangeLog-old.
2587
2588         * automake.in (handle_configure): Handle case where output file is
2589         in subdir with no Makefile of its own.  Fixes remake3.test,
2590         distcommon.test.
2591
2592 2001-02-06  Pavel Roskin  <proski@gnu.org>
2593
2594         * automake.in (handle_dependencies): Rename AM_INCLUDE to
2595         AMINCLUDE.
2596         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
2597         * tests/exsource.test: Likewise.
2598
2599 2001-02-06  Derek Price  <derek.price@openavenue.com>
2600
2601         * automake.in (handle_configure): Fix syntax error.
2602
2603 2001-02-06  Akim Demaille  <akim@epita.fr>
2604
2605         * subdirs.am: This file is the exception: clean recursive targets
2606         are called by the clean targets, not the clean-am targets.
2607         Otherwise we have a circular dependency: clean -> clean-am ->
2608         clean-recursive -> clean.
2609         * automake.in (handle_clean): Bind `-local' targets to `-am'
2610         targets, not top targets.
2611         Don't declare -recursive dependencies of the clean targets:
2612         `subdirs.am' did it.  Less hard coded knowledge, transfered
2613         into...
2614         * clean.am: here.
2615
2616 2001-02-06  Akim Demaille  <akim@epita.fr>
2617
2618         Monstro unsplitable patch.
2619
2620         The aim is to remove hard coded knowledge about clean targets from
2621         automake.in, leaving them in the *.am files.
2622         In addition to the mechanic needed to factor some dependencies, it
2623         appears some rules (most notably distclean and maintainer-clean)
2624         need factored actions.  So first, be ready to catch factored
2625         rules.
2626
2627         * automake.in (&file_contents): For the time being, use an extended
2628         $RULE_PATTERN which is able to match any kind of rules, with or
2629         without dependency, with or without actions.
2630         Handle all the rules uniformly, storing in %actions the factored
2631         actions.
2632         (&flatten, &target_cmp): New.
2633         (&handle_factored_dependencies): Output the %actions.
2634         No longer special case `clean'.
2635         Output the rules in alphabetical order, but keeping `.PHONY' last.
2636
2637         Now we must not use &push_phony_cleaners, which is doing all sort
2638         of magic to push a bit of everything in all the clean targets.
2639         The biggest problem being that, making a Cartesian product, it
2640         requires many useless targets.  The `*.am' file know better.
2641         But first, register the new factored rules.
2642
2643         * automake.in (&initialize_per_input): Include clean, mostlyclean,
2644         maintainer-clean, distclean and their `*-am' counterpart in
2645         %dependencies.
2646         Initialize %actions.
2647         (get_object_extension, handle_texinfo, handle_tags, handle_multilib)
2648         handle_dependencies, handle_subdirs, handle_configure, handle_clean)
2649         (handle_emacs_lisp, handle_python): Don't play with
2650         &push_phony_cleaners nor &depend and `clean'.
2651         * texinfos.am, texi-vers.am, tags-clean.am:
2652         * subdirs.am,python-clean.am, multilib.am, lisp-clean.am:
2653         * libtool.am, kr-extra.am, depend.am, compile.am, clean.am:
2654         * clean-kr.am, clean-hdr.am: Do it.
2655         Whenever a target is empty, just remove it, it will no longer be
2656         called.
2657
2658         There is still some magic about clean to hard code.  But really,
2659         that's the end of &do_one_clean_target.
2660
2661         * automake.in (&do_one_clean_target): Kaboom out.
2662         (&handle_clean): Rewrite the magic code.
2663         (&am_install_var): No longer use &push_phony_cleaners, nor depend
2664         on `clean'.
2665         (&push_phony_cleaners): Kaboom too.
2666
2667 2001-02-06  Akim Demaille  <akim@epita.fr>
2668
2669         * automake.in (do_one_clean_target): Don't hard code knowledge
2670         about libtool, and maintainer-clean.
2671         * clean.am, libtool.am: Handle these.
2672
2673 2001-02-05  Akim Demaille  <akim@epita.fr>
2674
2675         * automake.in (handle_texinfo): No longer hard code the clean
2676         targets.
2677         (texinfos.am): Include them.
2678
2679 2001-02-05  Akim Demaille  <akim@epita.fr>
2680
2681         * Makefile.am (perl4-check): Remove, we now require Perl 5.
2682         (maintainer-check): Don't be silent when you find a problem, and
2683         actually, even specify the locations.
2684         Also check that @_ is assigned to arrays.
2685
2686 2001-02-05  Akim Demaille  <akim@epita.fr>
2687
2688         * m4/regex.m4: Use AC_LIBSOURCES.
2689         * automake.in (scan_autoconf_traces): Trace AC_LIBSOURCE, not
2690         _AC_LIBOBJ_DECL.
2691
2692 2001-02-04  Tom Tromey  <tromey@redhat.com>
2693
2694         * m4/Makefile.am (m4data_DATA): Added make.m4.
2695         * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
2696         dependency files.
2697         * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
2698         Copy depcomp to subdir.
2699         * m4/make.m4: New file.
2700
2701 2001-02-04  Pavel Roskin  <proski@gnu.org>
2702
2703         * automake.in (handle_dist_worker): Remove a line that is now
2704         in distdir.am.
2705
2706 2001-02-04  Kevin Ryde  <user42@zip.com.au>
2707
2708         * automake.in (handle_configure): Call config.status with empty
2709         CONFIG_LINKS and CONFIG_COMMANDS when regenerating a file.
2710
2711 2001-02-04  Tom Tromey  <tromey@redhat.com>
2712
2713         * depcomp (ddashmd): Removed case.
2714         (sgi): Handle failure exit correctly
2715         (aix): Likewise.  Also, add dummy `.h' targets.
2716
2717 2001-02-04  Akim Demaille  <akim@epita.fr>
2718
2719         * distdir.am (distdir): New file, extracted from...
2720         * automake.in (handle_dist_worker): here.
2721         Adjust.
2722
2723 2001-02-04  Akim Demaille  <akim@epita.fr>
2724
2725         * automake.in (@clean): Remove, replaced by...
2726         ($dependencies{'clean'}): this.
2727         Use `&depend' instead of push'ing into @clean.
2728         (handle_factored_dependencies): For the time being, skip 'clean'.
2729         (do_one_clean_target): Don't ask for argument 1 and 4 as they are
2730         always `clean', and `@clean'.
2731
2732 2001-02-04  Akim Demaille  <akim@epita.fr>
2733
2734         * automake.in (%dependencies): Don't be initialize globally for
2735         all the files, but in...
2736         (&initialize_per_input): here.
2737         (&depend): New.
2738         (@phony): Replace all occurrences with the corresponding &depend
2739         invocation.
2740
2741 2001-02-03  Tom Tromey  <tromey@redhat.com>
2742
2743         * header.am (install-@DIR@HEADERS): Use INSTALL_HEADER.
2744         * header-vars.am (INSTALL_HEADER): New macro.
2745
2746         * automake.texi (Rebuilding): New node.