* m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
[platform/upstream/automake.git] / ChangeLog
1 2002-02-20  Tim Van Holder  <tim.van.holder@pandora.be>
2
3         * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
4         to try and prevent a non-lisp emacs from starting in interactive
5         mode.
6         * automake.texi: Document this change.
7
8 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
9
10         * automake.texi (Macros): Split into ...
11         (Public Macros, Private Macros): ... these.
12
13 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
14
15         * tests/insthook.test: Use sed instead of "tail +X".
16
17 2002-02-18  Paul Eggert  <eggert@twinsun.com>
18
19         * lib/depcomp: Don't use "tail +3"; it's not portable to
20         POSIX 1003.1-2001 hosts.
21
22 2002-02-18  Jim Meyering  <meyering@lucent.com>
23
24         * tests/cond12.test: Use sed 1q, not `head -n 1'.
25         The latter is not portable to some old systems.
26         * m4/depout.m4: Don't use `head -1'; it's no longer portable.
27         Use `sed 1q' instead.
28         * tests/insthook.test: Likewise.
29
30 2002-02-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
31
32         * automake.in (handle_lib_objects_cond): Tell the user to put
33         global linker flags in AM_LDFLAGS, not LDFLAGS.
34
35         * automake.texi (General Operation): AC_SUBST'ed variables
36         override Automake's variables.
37         (Uniform): More words and @refs.
38         (Auxiliary Programs) <config.sub, config.guess>: Add URL.
39         (etags): More explanations about the first example.
40         (Invoking Automake): Mention autoreconf.  More @refs.
41         (Requirements): Mention AC_CONFIG_FILES.
42         (Optional): AC_CHECK_TOOL will no longer install config.sub and
43         config.guess.  Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
44         (Invoking aclocal): aclocal no longer warn about duplicates.
45         (Macros) <AM_INIT_AUTOMAKE>: More explanations.
46         (Extending aclocal): Suggest using the output of
47         `aclocal --print-ac-dir` to install third-party macros.
48         (Alternative): Specify ordering of dist_, nodist_, and nobase_
49         prefixes.
50         (A Program): Mention scripts.  The global LDADD variable is not
51         meant to hold link flags, suggest using AM_LDFLAGS instead.
52         (Program and Library Variables) <maude_LIBADD, maude_LDADD>:
53         _LIBADD and _LDADD are subject to the same restriction wrt to
54         link flags.
55         (Program and Library Variables) <maude_DEPENDECIES>: Is also
56         derived from maude_LIBADD.
57         (Program variables): Define AM_LDFLAGS.
58         (Dependencies): Passing the no-dependencies option to
59         AM_INIT_AUTOMAKE is prefered.
60         (Scripts): Explain why automake is magically cleaned.
61         Mention noinst_SCRIPTS and check_SCRIPTS.
62         (Data): Use dist_ in Automake's example.
63         (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
64         Mention AC_CONFIG_FILES instead of AC_OUTPUT.
65
66 2002-02-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
67
68         * Makefile.am (FETCHFILES): Add Automake/XFile.pm.
69         (fetch): Fetch XFile.pm.  Update the files in $(srcdir) instead
70         of asking the maintainer to do it manually.
71         * lib/config.guess, lib/config.sub, lib/texinfo.tex,
72         Automake/XFile.pm: New upstream versions.
73
74 2002-02-02  Tom Tromey  <tromey@redhat.com>
75
76         * automake.texi (Macros): Warn about upgrading.
77
78 2002-02-01  Tom Tromey  <tromey@redhat.com>
79
80         Change per GNU coding standards:
81         * aclocal.in (parse_arguments): Only mention most recent year in
82         copyright output.
83         * automake.in (version): Only mention most recent year.
84
85 2002-01-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
86
87         * automake.texi (API versioning): New Node.
88         (Extending): Use $(DESTDIR) in examples.
89
90 2002-01-28  Akim Demaille  <akim@epita.fr>
91
92         * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5.
93         Respect the --help layout.
94
95 2002-01-27  Tom Tromey  <tromey@redhat.com>
96
97         * configure.in: Bumped to 1.5e.
98
99         * lib/am/yacc.am: Use `rm -f'.
100
101         * configure.in: Released 1.5d.
102
103         * lib/config.guess: New version from FSF.
104
105         * Makefile.am (uninstall-hook): New target.
106
107 2002-01-24  Akim Demaille  <akim@epita.fr>
108
109         * lib/install-sh: Update, from Autoconf.
110
111 2002-01-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
112
113         * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
114         as AC_CANONICAL_HOST (the former does not require the latter since
115         Autoconf 2.50).
116         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
117         * automake.texi (Requirements): Do not require STRIP to be
118         defined by the user.
119
120 2002-01-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
121
122         * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
123         * automake.in (handle_languages): Compute and substitute %DEPDIRS%.
124         * tests/pr224.test: Make sure .deps subdirectories are
125         erased by distclean.
126
127 2002-01-22  Tom Tromey  <tromey@redhat.com>
128
129         * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
130         no-dependencies option is set.
131         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
132         no-dependencies option is set.  Don't call AM_DEP_TRACK or
133         AM_SET_DEPDIR.
134
135 2002-01-22  Pavel Roskin  <proski@gnu.org>
136
137         * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and
138         ASFLAGS.
139
140 2002-01-22  Akim Demaille  <akim@epita.fr>
141
142         * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex.
143         (fetch): Adjust.
144
145 2002-01-21  Tom Tromey  <tromey@redhat.com>
146
147         * Makefile.am (fetch): Don't fetch ansi2knr.
148
149         * automake.texi (Macros): Updated for new variable names.
150         (Program and Library Variables): Likewise.
151         (Assembly Support): Likewise.
152         * m4/as.m4: Use CCAS and CCASFLAGS.
153         * automake.in (asm): Use CCAS and CCASFLAGS.
154
155 2002-01-21  Akim Demaille  <akim@epita.fr>
156
157         * automake.in (&parse_arguments): Use a more GNUish error message
158         on wrong options.
159
160 2002-01-20  Tom Tromey  <tromey@redhat.com>
161
162         Fix for PR automake/231:
163         * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ).
164         * m4/depend.m4: Document `GCJ'.
165
166         For PR automake/224:
167         * tests/Makefile.am (TESTS): Added pr224.test.
168         * tests/pr224.test: New file.
169         * lib/depcomp: Fixed computation of depfile.
170         * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
171         * automake.in (handle_single_transform_list): Only reject `..'
172         component for Java.  Put dependencies in directory near object.
173         (handle_languages): Set DEPBASE.  Handle de-ansi-fication.
174
175 2002-01-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
176
177         * tests/defs: Export AUTOMAKE and ACLOCAL.
178
179 2002-01-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
180
181         Fix for PR automake/204:
182         * tests/pr204.test: New file.
183         * tests/Makefile.am (TESTS): Add it.
184         * automake.in (handle_single_transform_list): Don't distribute
185         sources derived from non-distributed sources.
186
187 2002-01-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
188
189         Fix for PR automake/229:
190         * tests/pr229.test: New file.
191         * tests/Makefile.am (TESTS): Add it.
192         * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN,
193         AC_EMXOS2, and AC_MINGW32.
194
195 2002-01-18  Tom Tromey  <tromey@redhat.com>
196
197         * tests/cond7.test: Fix test bug exposed by copyright update.
198
199         For PR automake/288:
200         * automake.in (lang_c_rewrite): Don't prepend directory to base if
201         directory is `.'.  Also, properly compute de_ansi_files entry in
202         subdir-objects case
203         * tests/Makefile.am (TESTS): Added ansi7.test.
204         * tests/ansi7.test: New file.
205
206         * aclocal.in (parse_arguments): Added 2002.
207         (write_aclocal): Likewise.
208         (parse_arguments): Updated my email address.
209         * automake.in (gen_copyright): Added 2002.
210         (version): Likewise.  Also, changed my email address.
211
212         * configure.in (APIVERSION): Refined definition.
213
214 2002-01-18  Tom Tromey  <tromey@redhat.com>
215
216         * missing: Updated.
217         * lib/missing: Accept versioned aclocal.
218         * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
219
220 2002-01-17  Pavel Roskin  <proski@gnu.org>
221
222         * m4/Makefile.am (m4datadir): Use APIVERSION.
223
224 2002-01-16  Tom Tromey  <tromey@redhat.com>
225
226         * Makefile.am (install-exec-hook): Use APIVERSION.
227         * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
228         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
229         APIVERSION.
230         * automake.in (perllibdir): Use APIVERSION.
231         (libdir): Likewise.
232         * aclocal.in (perllibdir): Use APIVERSION.
233         (APIVERSION): New global.
234         (parse_arguments): Use APIVERSION.
235         * configure.in (APIVERSION): New subst.
236         (pkgvdatadir): Use APIVERSION.
237
238 2002-01-15  Tom Tromey  <tromey@redhat.com>
239
240         * missing: Updated.
241         * lib/missing: Match against `automake*' to pick up versioned
242         automake.
243         * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name.
244         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version
245         variable.
246         * lib/am/Makefile.am (amdir): Use pkgvdatadir.
247         * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use
248         pkgvdatadir.
249         (scriptdir): Use pkgvdatadir.
250         (installcheck-local): Likewise.
251         * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir.
252         * automake.in (perllibdir): Added VERSION.
253         (libdir): Likewise.
254         * aclocal.in (parse_arguments): Search versioned directory.  Don't
255         push unversioned directory unless it exists.
256         (perllibdir): Added VERSION.
257         (default_acdir): New global.
258         * m4/Makefile.am (m4datadir): Added $(VERSION).
259         * Makefile.am (install-exec-hook): New target.
260         * configure.in (ACLOCAL): Search build directory.
261         (pkgvdatadir): New subst.
262
263 2002-01-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
264
265         * lib/config.sub, lib/config.guess: New versions from FSF.
266
267 2002-01-13  Tom Tromey  <tromey@redhat.com>
268
269         For PR automake/288:
270         * automake.in (lang_c_rewrite): Set value for de_ansi_files entry
271         to directory.
272         (lang_c_finish): Likewise.  Also, use directory information from
273         de_ansi_files.
274
275 2002-01-13  Kevin Ryde  <user42@zip.com.au>
276
277         For PR automake/288:
278         * tests/Makefile.am (TESTS): Added ansi6.test.
279         * tests/ansi6.test: New file.
280
281 2002-01-13  Tom Tromey  <tromey@redhat.com>
282
283         For PR automake/287:
284         * lib/am/distdir.am (distdir): Use `$$list' trick when looping
285         over subdirs.
286         * tests/Makefile.am (TESTS): Added pr287.test.
287         * tests/pr287.test: New file.
288
289 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
290
291         * lib/am/distdir.am (distdir): Handle subdirectories.
292         * tests/extra6.test: New file.
293         * tests/Makefile.am (TESTS): Add it.
294
295 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
296
297         * tests/extra2.test: Run $ACLOCAL.
298
299 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
300
301         * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
302         AM_INIT_AUTOMAKE arguments when using the old-style call.
303         Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
304         Suggested by Pavel Roskin.
305
306 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
307
308         * test/nodefine.test, test/nodefine2.test: Check that no-define
309         works, not the contrary...
310         * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
311         * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
312         not the contrary.
313
314 2002-01-12  Jim Meyering  <meyering@lucent.com>
315
316         * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
317         * tests/libobj11.test: New file.
318         * tests/Makefile.am (TESTS): Add libobj11.test.
319
320 2002-01-09  Ryan T. Sammartino  <ryants@shaw.ca>
321
322         * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options.
323
324 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
325
326         * automake.in (file_contents_internal): Introduce two variables,
327         $is_rule and $discard_rules to track rules spanning across multiple
328         paragraphs.  This fixes a very nasty bug reported by Dmitry Mikhin
329         where only the first paragraph of such a multi-paragraph rule was
330         discarded; but it leaves many similar latent bugs (see the FIXMEs).
331
332 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
333
334         * tests/dup3.test: Remove all -I from $ACLOCAL before using it.
335         * tests/error.test: Use some macro names which are not defined by
336         Automake itself.
337
338 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
339
340         * automake.texi (Complete, Macros, Options): Document the new style
341         AM_INIT_AUTOMAKE.  Remove AM_AUTOMAKE_OPTIONS documentaion.
342         * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
343         AC_INIT if they are available there.  Support a new call form
344         where the only argument is an optional space-separated list of
345         Automake options.
346         * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
347         (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
348         _AM_IF_OPTION): New functions.
349         * automake.in (AC_INIT_PATTERN): New variable.
350         (global_options_line): Remove, use $seen_init_automake instead.
351         (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
352         from AC_INIT if available.  Support the new style AM_INIT_AUTOMAKE.
353         Remove the AM_AUTOMAKE_OPTIONS handling.
354         * configure.in: Modernize.
355         * tests/defs (configure.in): Modernize.  One third of the tests
356         still overwrite the default configure.in and use an old
357         AM_INIT_AUTOMAKE call,  so that makes testing for both.
358         * tests/nodefine.test, tests/nodefine2.test: New files.
359         * tests/Makefile.am (TESTS): Add them.
360
361 2002-01-08  Raja R Harinath  <harinath@cs.umn.edu>
362
363         * automake.in (define_configure_variable): Propagate line numbers.
364
365 2002-01-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
366
367         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2.
368
369 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
370
371         * configure.in: Run the Autoconf test in a subdirectory, then
372         erase this directory.
373
374 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
375
376         * configure.in (AUTOMAKE): Create m4/amversion.m4.
377         * m4/amversion.in: New file.
378         * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
379         (dist_m4data_DATA): ... this.
380         (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4.
381         * m4/init.m4 (AM_INIT_AUTOMAKE): Require
382         AM_SET_CURRENT_AUTOMAKE_VERSION.
383         * automake.in (seen_automake_version): New variable.
384         (scan_autoconf_traces, scan_one_autoconf_file,
385         scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain
386         when the version used in aclocal.m4 differs from Automake's.
387         * tests/defs (ACLOCAL): Look in ../m4 too.
388         * tests/installsh.test (ACLOCAL): Likewise.
389         * tests/installdir.test (installdirs-local): Run $ACLOCAL.
390
391 2002-01-06  Raja R Harinath  <harinath@cs.umn.edu>
392
393         * automake.in (handle_languages): Emit an automake
394         internal variable 'am__depfiles_maybe'.
395         * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe.
396
397         * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to
398         config.status.
399
400 2002-01-06  Tom Tromey  <tromey@redhat.com>
401
402         * automake.texi (Tags): Document new variables.
403         * lib/am/tags.am (ETAGS): New macro.
404         (ETAGSFLAGS): Likewise.
405         (TAGS): Use them.
406
407 2002-01-04  Tom Tromey  <tromey@redhat.com>
408
409         * configure.in (ACLOCAL): Set perllibdir.  From Nicolas Joly.
410
411 2002-01-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
412
413         * automake.in (read_am_file): Thinko in "comment following
414         trailing backslash" detection.
415         * tests/comment5.test: Test for this too.
416
417 2002-01-02  Tom Tromey  <tromey@redhat.com>
418
419         * automake.texi (Extending): Added index for uninstall-hook.
420
421 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
422
423         Fix for PR automake/278:
424         * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
425         with versions such as '2.2c1'.  Also, use `int' instead of the
426         obsoleted `string.atoi'.
427         Reported by Enrico Scholz.
428
429 2001-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
430
431         Fix for PR automake/280:
432         * automake.in (read_am_file): Warn about trailing backslashes
433         in comments.
434         * tests/comment5.test: New file.
435         * tests/Makefile.am (TESTS): Add comment5.test.
436         Reported by Enrico Scholz.
437
438 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
439
440         * tests/comment4.test: New file.
441         * tests/Makefile.am (TESTS): Add comment4.test.
442
443         Fix for comment4.test:
444         * automake.in (read_am_file): Output leading comments only when
445         encountering white lines.
446
447 2002-01-01  Tom Tromey  <tromey@redhat.com>
448
449         For PR automake/234:
450         * tests/Makefile.am (TESTS): Added strip.test.
451         * tests/strip.test: New file.
452
453         * automake.texi (Extending): Mention uninstall-hook.
454         (Install): Likewise.
455         * automake.in (handle_factored_dependencies): Allow
456         uninstall-hook.
457
458 2002-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
459
460         * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
461         it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
462         This fixes a bug introduced on 2001-01-28.
463         Reported by Jared Davis.
464
465 2001-12-31  Tom Tromey  <tromey@redhat.com>
466
467         * automake.texi (Extending): Document installcheck-local.  Added
468         installdirs-local index entry.
469         (Tests): Document installcheck-local.
470
471         * automake.in (handle_single_transform_list): Indentation fix.
472
473 2001-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
474
475         * automake.in (common_files): Add COPYING.DOC.
476         Suggested by Karl Berry.
477
478 2001-12-30  Tom Tromey  <tromey@redhat.com>
479
480         * automake.in (define_configure_variable): Define a user macro,
481         not an automake macro.
482         * tests/Makefile.am (TESTS): Added ar.test.
483         * tests/ar.test: New file.
484
485         For PR automake/211:
486         * automake.in (object_compilation_map): New global.
487         (initialize_per_input): Initialize it.
488         (COMPILE_LIBTOOL): New constant.
489         (COMPILE_ORDINARY): Likewise.
490         * tests/Makefile.am (TESTS): Added pr211.test.
491         * tests/pr211.test: New file.
492
493         For PR automake/215:
494         * configure.in: Use AM_AUTOMAKE_OPTIONS.
495         * Makefile.am (AUTOMAKE_OPTIONS): Removed.
496         * automake.texi (Macros): Document AM_AUTOMAKE_OPTIONS.
497         (Options): Mention AM_AUTOMAKE_OPTIONS.
498         * automake.in (global_options): New global.
499         (global_options_line): Likewise.
500         (scan_autoconf_traces): Trace AM_AUTOMAKE_OPTIONS.
501         (scan_one_autoconf_file): Likewise.
502         (process_option_list): New function.
503         (handle_options): Use it.  Also, handle global options.
504         * m4/Makefile.am (m4data_DATA): Added options.m4.
505         * m4/options.m4: New file.
506
507         * lib/am/install.am (?SUBDIRS?installdirs-am): Handle
508         installdirs-local.
509         (?!SUBDIRS?installdirs): Likewise.
510         * automake.in (handle_installdirs): Handle installdirs-local.
511         * automake.texi (Extending): Mention installdirs.
512         * tests/Makefile.am (TESTS): Added installdir.test.
513         * tests/installdir.test: New file.
514
515 2001-12-30  Akim Demaille  <akim@epita.fr>
516
517         * lib/am/yacc.am: Also rename the possible y.output file.
518         Remove the trailing y.tab.h.
519
520 2001-12-30  Paolo Bonzini  <bonzini@gnu.org>
521
522         * automake.texi (Install): Remove mention of nonexistent
523         uninstall-hook.
524
525 2001-12-30  Alan Modra  <amodra@bigpond.net.au>
526
527         * automake.in (generate_makefile): Unlink output file before
528         opening so that any hard links are not changed.
529
530 2001-12-30  Tom Tromey  <tromey@redhat.com>
531
532         * tests/pr220.test: Use `required' to pick up gcc.
533
534         For PR automake/243:
535         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Strip everything
536         after `:'.
537         * tests/Makefile.am (TESTS): Added pr243.test.
538         * tests/pr243.test: New file.
539
540         For PR automake/220:
541         * tests/Makefile.am (TESTS): Added pr220.test.
542         * tests/pr220.test: New file.
543         * m4/cond.m4 (AM_CONDITIONAL): Cause creation of config.status to
544         fail if conditional was never run.
545
546         For PR automake/260:
547         * lib/depcomp (tru64): Correctly handle libtool case.
548         From doreille@smr.ch.
549
550 2001-12-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
551
552         * lib/am/distdir.am (distcleancheck_listfiles): Unquote.
553         Reported by Yann Droneaud.
554
555 2001-12-29  Tom Tromey  <tromey@redhat.com>
556
557         For PR automake/266:
558         * tests/Makefile.am (TESTS): Added pr266.test.
559         * tests/pr266.test: New file.
560         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Handle
561         non-standard name for makefile.
562
563         For PR automake/279:
564         * automake.in (conditional_ambiguous_p): New sub.
565         (handle_lib_objects_cond): Use it.
566         (check_ambiguous_conditional): Use it.
567         * tests/Makefile.am (TESTS): Added pr279.test, pr279-2.test.
568         * tests/pr279.test: New file.
569         * tests/pr279-2.test: New file.
570
571 2001-12-26  Tom Tromey  <tromey@redhat.com>
572
573         For PR automake/249:
574         * tests/Makefile.am (TESTS): Added nodist2.test.
575         * tests/nodist2.test: New file
576
577 2001-12-26  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
578
579         * m4/multi.m4: Fix quoting in AC_OUTPUT_COMMANDS.
580
581 2001-12-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
582
583         * configure.in: Test for Autoconf >= 2.52.
584         * tests/defs (needs_autoconf, has_autoconf): Delete definition.
585         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
586         tests/cond4.test, tests/cond9.test, tests/cond16.test,
587         tests/cond18.test, tests/cond19.test, tests/cond20.test,
588         tests/confsub.test, tests/depcomp2.test, tests/depdist.test,
589         tests/depend2.test, tests/dirname.test, tests/distname.test,
590         tests/extra5.test, tests/install2.test, tests/lex3.test,
591         tests/make.test, tests/nobase.test, tests/pr9.test,
592         tests/pr87.test, tests/stamph2.test, tests/subdir5.test,
593         tests/subdirbuiltsources.test, tests/subobj3.test,
594         tests/subobj5.test, tests/subobj6.test, tests/substref.test,
595         tests/target-cflags.test, tests/yacc4.test, tests/yacc7.test,
596         tests/yaccvpath.test: Do not use $needs_autoconf.
597
598 2001-12-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
599
600         * configure.in: Bump version to 1.5c.
601
602 2001-12-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
603
604         * configure.in: Bump version to 1.5b.
605
606         * lib/config.sub, lib/config.guess: New versions from FSF.
607
608         * lib/am/lex.am, lib/am/yacc.am: Use `rm -f', not `rm'.
609
610 2001-12-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
611
612         * automake.in (check_gnu_standards, check_gnits_standards): Pass
613         "$am_file.am" as WHERE argument to require_file.
614
615 2001-12-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
616
617         * m4/python.m4 (AM_PATH_PYTHON): Check all known Python interpreters
618         in loop until we find one the satisfies the user supplied version.
619         Add python2 to the list of known interpreters.  Don't use
620         changequote.  Cache the calculation of PYTHON_VERSION and
621         PYTHON_PLATFORM.
622         (AM_PYTHON_CHECK_VERSION): New function, extracted from
623         AM_PATH_PYTHON and modernized.
624         * m4/runlog.m4: New file.
625         * m4/Makefile.am (m4data_DATA): Add it.
626
627 2001-12-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
628
629         * tests/confsub.test, tests/depdist.test, tests/extra5.test,
630         tests/nobase.test, tests/stamph2.test,
631         tests/subdirbuiltsources.test: Require Autoconf.
632
633 2001-12-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
634
635         * automake.texi (Dist): Document $(DISTCHECK_CONFIGURE_FLAGS).
636         * lib/am/distdir.am (distcheck): Honnor $(DISTCHECK_CONFIGURE_FLAGS).
637         Suggested by Merijn de Jonge.
638
639 2001-12-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
640
641         * lib/am/tags.am (ID): Search $(LISP) files in $(srcdir),
642         like other ID dependencies.
643         Suggested by Christian Cornelssen.
644
645 2001-12-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
646
647         * automake.in (handle_dist): Distribute common files which
648         do not exist but are target of a Makefile rule.
649         * automake.texi (Dist): Update.
650         * test/builtcommon3.test: New file.
651         * test/Makefile.am (TESTS): Add distcommon3.test.
652
653 2001-12-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
654
655         * automake.in (macro_define): Fix misuse of chomp introduced on
656         2001-11-28.
657
658 2001-11-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
659
660         * automake.in (append_comments): New.  Extracted from
661         read_am_file.  Match '\n' with a regexp, don't use substr (the
662         perlport man page says '\n' is not always one byte wide).
663         (read_am_file):  Use it.  Always chomp $_.
664         (file_contents_internal):  Use append_comments.
665         (macro_define): Don't treat the trailing '\n' with substr, use
666         a regexp or chomp.
667
668 2001-11-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
669
670         * tests/defs: Turn on shell traces when VERBOSE=x.
671
672 2001-11-26  Tom Tromey  <tromey@redhat.com>
673
674         * automake.texi (Assembly Support): Mention .s and .S as only
675         suffixes.
676
677 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
678
679         * tests/subdirbuiltsources.test: Set -e after sourcing defs, not
680         before.
681
682 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
683
684         * tests/lex3.test: Require GNU Make.
685
686 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
687
688         * tests/defs (ACLOCAL): Add -I $srcdir/../m4 before any other
689         directory.
690
691 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
692
693         * lib/am/tags.am (TAGS): Search %CONFIG% and $(LISP) files
694         in $(srcdir), like other TAGS dependencies.
695         Suggested by Christian Cornelssen.
696
697 2001-11-26  Akim Demaille  <akim@epita.fr>
698
699         * automake.in (&macro_define): Use $where when reporting an error,
700         not the place where the macro was first defined since (i) if this
701         is the first definition, then obviously it was not defined before,
702         and (ii) anyway, the error is with the new definition, not the
703         first.
704
705 2001-11-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
706
707         * lib/am/distdir.am (distcheck): Call distcleancheck.
708         (distcleancheck_listfiles, distcleancheck): New, extracted from
709         distcheck.
710         * automake.texi (Checking the distribution): Document
711         distcleancheck_listfiles and distcleancheck.
712
713 2001-11-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
714
715         * automake.in (scan_one_autoconf_file): Parenthesize qw// in
716         foreach invocation, otherwise Perl5.005_03 complains about a
717         syntax error.  Reported by Yann Droneaud.
718
719 2001-11-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
720
721         * automake.in (scan_texinfo_file): Suppress FIXME about strange
722         map behavior.
723
724 2001-11-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
725
726         * tests/defs (aclocaldir): Check for existence of libtool.m4 and
727         gettext.m4 if required.
728
729 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
730
731         * automake.in (define_objects_from_sources,
732         handle_lib_objects_cond, value_to_list): Use quotemeta instead of
733         the equivalant substitution.
734
735 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
736
737         * automake.in (SUFFIX_RULE_PATTERN): Add '_(){}$@' to the
738         set of accepted characters in extensions.
739         (rule_define): Convert '.o' and '.obj' into '$(OBJEXT)' for
740         internall use.
741         * tests/suffix6.test: Ensure that `.o' is handled like `.$(OBJEXT)'.
742
743 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
744
745         * automake.texi (Suffixes): Don't require SUFFIXES, but document
746         its use for the "extreme" cases.
747
748 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
749
750         * automake.in (rule_define): Use $KNOWN_EXTENSIONS_PATTERN
751         to match suffix rules for known extensions, or call
752         accept_extensions on suffixe rules for unknown extensions.
753         (var_SUFFIXES_trigger): New function.
754         (macro_define): Call var_VAR_trigger when $VAR is updated.
755         * tests/suffix6.test, tests/suffix7.test: New files.
756         * tests/Makefile.am (TESTS): Add suffix6.test and suffix7.test.
757
758 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
759
760         * automake.in (KNOWN_EXTENSIONS_PATTERN, known_extensions_list):
761         New variables.
762         (handle_single_transform_list, lang_yacc_target_hook): Use
763         KNOWN_EXTENSIONS_PATTERN.
764         (accept_extension): New function.
765         (register_language): Call it.
766
767 2001-11-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
768
769         At every place where an "$extension" is used, include the leading
770         dot in the extension, don't hardcode it when building the filename.
771         That will make any support for a dot-less extension easier to add.
772
773         * automake.in (SUFFIX_RULE_PATTERN): Include extension dots in
774         backref groups.
775         ("main"): Prepend a '.' to the supported extensions of all
776         languages (e.g. 'c' becomes '.c').
777         (handle_languages, handle_single_transform_list,
778         handle_lib_objects_cond, handle_headers, derive_suffix,
779         rule_define): Do not add a dot
780         before extensions, and include dots in matching groups.
781         * lib/am/depend2.am (.%EXT%.o, .%EXT%.obj, .%EXT%.lo): Rename as ...
782         (%EXT%.o, %EXT%.obj, %EXT%.lo): ... these.
783         * lib/am/lex.am (.%EXT%.%DERIVED-EXT%): Rename as ...
784         (%EXT%%DERIVED-EXT%): ... this.
785         * lib/am/yacc.am: Likewise.
786
787 2001-11-12  Akim Demaille  <akim@epita.fr>
788
789         * m4/make.m4 (AM_MAKE_INCLUDE): Serial 2.
790         Use `"#"' and `"\""', which
791         Autoconf mode prefers over `'#'' and `'"''.
792         * m4/missing.m4 (AM_MISSING_HAS_RUN): Serial 3.
793         Rely on AC_MSG 2.50's quotation.
794
795 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
796
797         * automake.in (scan_texinfo_file): Typo from 2001-11-05.
798
799 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
800
801         * lib/am/distdir.am (distdir): Also look for directory in build
802         directory first. (See 2001-05-14.)
803         * tests/Makefile.am (TESTS): Add extra5.test.
804         * tests/extra5.test: New file.
805         From Dean Povey.
806
807 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
808
809         Fix for distcommon2.test:
810         * automake.in (automake_needs_to_reprocess_all_files): New
811         variable.
812         ("main"): Process all Makefiles a second time if
813         $automake_needs_to_reprocess_all_files is set.
814         (maybe_push_required_file): Return 1 or 0 whether the file is
815         pushed or not.
816         (require_file_internal): Set $automake_needs_to_reprocess_all_files
817         if an added file can't be pushed.
818
819         * test/distcommon2.test: New file.
820         * test/Makefile.am (TESTS): Add distcommon2.test.
821         From Pavel Roskin.
822
823 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
824
825         * automake.in (exec_dir_p): Remove.  Replace by...
826         (EXEC_DIR_PATTERN):... this.
827         (am_install_var): Adjust to use EXEC_DIR_PATTERN.
828
829 2001-11-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
830
831         Fix for nobase.test:
832         * lib/am/header-vars.am (install_sh_DATA): New.
833         * lib/am/data.am (install-%DIR%%PRIMARY%): Declare and use
834         %DIR%%PRIMARY%_INSTALL, and set it to $(install_sh_DATA) instead
835         of $(INSTALL_DATA) for nobase_ targets.
836         * lib/am/lisp.am (install-%DIR%LISP): Likewise.
837         * lib/am/python.am (install-%DIR%PYTHON): Likewise.
838         * tests/nobase.test (configure.in): Append AC_OUTPUT.
839         * tests/Makefile.am (XFAIL_TESTS): Remove nobase.test.
840
841 2001-11-08  Akim Demaille  <akim@epita.fr>
842
843         * automake.texi: Remove references to stamp-h.in, which no longer
844         exists.
845         * tests/stamph2.test: Formatting change.
846
847 2001-11-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
848
849         * tests/suffix3.test: Check for foo.$(OBJEXT) in Makefile.in.
850         Don't use -Wno-error.
851
852 2001-11-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
853
854         * tests/suffix4.test ($AUTOMAKE): Don't use -Wno-error.
855         * tests/suffix5.test ($AUTOMAKE): Likewise.
856
857 2001-11-07  Akim Demaille  <akim@epita.fr>
858
859         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't escape quotes in
860         AC_MSG_ERROR.
861         Reported by Jim Meyering.
862
863 2001-11-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
864
865         * lib/am/distdir.am (am__remove_distdir): Define in topdir only.
866
867 2001-11-05  Paul Eggert  <eggert@twinsun.com>
868
869         * lib/am/distdir.am (am__remove_distdir):
870         New macro.  Do not change permission of non-directories.
871         Change only user permission, as there's no point to changing group
872         or other permission.
873         (distdir, dist, dist-bzip2, dist-tarZ, dist-shar, dist-zip, dist-all,
874          distcheck): Use it.
875
876 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
877
878         * lib/am/python.am: Cleanup the cleaning section.
879         * automake.texi (Python): Remove documentation for PYCFILES
880         and PYOFILES.  Update the first paragraphes.
881
882 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
883
884         * automake.in (FOREIGN, GNU, GNITS, AC_CANONICAL_HOST,
885         AC_CANONICAL_SYSTEM, MOSTLY_CLEAN, DIST_CLEAN): Define as constants.
886         Adjust usage everywhere.
887
888 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
889
890         * automake.in (libtool_files, libtool_sometimes, common_files,
891         common_sometimes, config_aux_path): Use qw to simplify definition.
892         (scan_texinfo_file) <clean_suffixes, predefined_index,
893         hidden_index>: Likewise.
894         (scan_autoconf_traces) <traced>: Likewise.
895         (scan_one_autoconf_file, check_gnu_standards, resolve_linker):
896         Likewise.
897
898 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
899
900         * automake.in (handle_single_transform_list): Pass $nonansi_obj to
901         derive_suffix.  Don't use an hardcoded 'o' for object extensions.
902         (derive_suffix): Accept $OBJ as a second argument, don't
903         hardcode 'o'.
904         * tests/suffix5.test: New test.
905         * tests/Makefile.am (TESTS): Add suffix5.test.
906         Reported by Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
907
908 2001-11-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
909
910         * automake.in (handle_single_transform_list): Don't call
911         $lang->target_hook for undefinied langages.
912         * tests/suffix4.test: New test.
913         * tests/Makefile.am (TESTS): Add suffix4.test.
914         Reported by Dmitry Mikhin <dmitrym@acres.com.au>.
915
916 2001-11-05  Akim Demaille  <akim@epita.fr>
917
918         * automake.in (@common_sometimes, &handle_configure): No longer
919         use stamp-hin.
920         * lib/am/remake-hdr.am: Adjust.
921         * tests/confh.test: There is no stamp.hin.
922
923 2001-11-01  Akim Demaille  <akim@epita.fr>
924
925         * lib/am/lex.am, lib/am/yacc.am: Use the output file name in
926         `#line' and multiple inclusion guards.
927         * lib/ylwrap: Remove debugging code.
928         (input_dir, input_rx): Move where used.
929         Use the output file name in `#line'.
930
931 2001-10-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
932
933         * automake.in (transform): Update documentation.
934
935 2001-10-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
936
937         * m4/gcj.m4 (AM_PROG_GCJ): Define GCJFLAGS if unset.
938         Reported by Olivier Louchart-Fletcher <olivier@zipworld.com.au>.
939
940 2001-10-30  Akim Demaille  <akim@epita.fr>
941
942         * automake.in (&create): Reinstall.
943
944 2001-10-30  Akim Demaille  <akim@epita.fr>
945
946         * automake.in (&append_exeext): Use macro_delete.
947
948 2001-10-30  Akim Demaille  <akim@epita.fr>
949
950         * automake.in ($verbose): Remove, inherited from
951         Automake::General.
952         (&variable_delete): Rename as...
953         (&macro_delete): this, for consistency.
954         (&variable_assert): New.
955         (&variable_value_as_list, &variable_value_as_list_recursive_worker):
956         Use it.
957
958 2001-10-29  Akim Demaille  <akim@epita.fr>
959
960         * m4/lispdir.m4 (AM_PATH_LISPDIR): Use AC_RUN_LOG to avoid
961         cluttering configure's stdout.
962
963 2001-10-28  Akim Demaille  <akim@epita.fr>
964
965         * automake.in: Various formatting changes.
966         (create): Remove, unused.
967
968 2001-10-28  Akim Demaille  <akim@epita.fr>
969
970         * automake.in (&append_exeext): New.
971         (&am_primary_prefixes): Use it.
972
973 2001-10-28  Akim Demaille  <akim@epita.fr>
974
975         * automake.in (am_primary_prefixes): Now, in accordance with its
976         comment, return the list of prefixes actually used, not all the
977         possible prefixes for a primary.
978         (&handle_libraries, &handle_ltlibraries, &handle_java)
979         (&am_install_var): Adjust.
980         * Makefile.am (maintainer-check): Allow `local $_;'.
981
982 2001-10-28  Akim Demaille  <akim@epita.fr>
983
984         * automake.in: Various formatting changes.
985         (&variable_defined): Second argument is optional.
986
987 2001-10-28  Akim Demaille  <akim@epita.fr>
988
989         * automake.in (&am_primary_prefixes): Now returns a list, not a
990         hash.
991         (&handle_libraries, &handle_ltlibraries, &handle_java)
992         (&am_install_var): Adjust.
993
994 2001-10-28  Akim Demaille  <akim@epita.fr>
995
996         * automake.in (@libtoolize_files, @libtoolize_sometimes): Rename
997         as...
998         (@libtool_files, @libtool_sometimes): these.
999         ($libtool_location): Remove, completely replaced by $seen_libtool.
1000         (&require_file_internal): Do not run libtoolize, that's
1001         autoreconf's job.
1002
1003 2001-10-28  Akim Demaille  <akim@epita.fr>
1004
1005         * tests/acoutnoq.test, tests/acoutput.test, tests/acoutqnl.test,
1006         * tests/acouttbs.test, tests/auxdir.test, tests/colon.test,
1007         * tests/colon2.test, tests/colon3.test, tests/colon4.test,
1008         * tests/colon5.test, tests/colon6.test, tests/colon7.test,
1009         * tests/conf2.test, tests/config.test, tests/depcomp.test,
1010         * tests/depcomp2.test, tests/discover.test, tests/fpinst2.test,
1011         * tests/fpinstall.test, tests/ldadd.test, tests/libobj7.test,
1012         * tests/libobj8.test, tests/output.test, tests/output2.test,
1013         * tests/output3.test, tests/output4.test, tests/output5.test,
1014         * tests/pr2.test, tests/remake.test, tests/remake2.test,
1015         * tests/remake3.test, tests/scripts.test, tests/stamph.test,
1016         * tests/subdir.test, tests/subdir2.test, tests/subdir4.test,
1017         * tests/tagsub.test, tests/texinfo8.test: Remove PACKAGE and VERSION
1018         assignments.
1019
1020 2001-10-28  Akim Demaille  <akim@epita.fr>
1021
1022         * automake.in (&scan_autoconf_traces): Use eq for equality.
1023         Anchor regexps.
1024         Remove dead comment.
1025         (&initialize_per_input): Don't initialize several times the same
1026         vars.
1027
1028 2001-10-28  Akim Demaille  <akim@epita.fr>
1029
1030         * automake.in (scan_one_autoconf_file): When using %generalize, be
1031         sure to replace only words.  AC_FUNC_OBSTACK was matching
1032         M4_AC_FUNC_OBSTACK.
1033
1034 2001-10-26  Akim Demaille  <akim@epita.fr>
1035
1036         * tests/stamph2.test: Strengthen.
1037         * tests/confh2.test, tests/confh3.test: Remove.
1038         These are bad tests: they don't check the effects, but some
1039         internal details in Makefile.
1040         And they are covered by stamph2.test.
1041
1042 2001-10-26  Akim Demaille  <akim@epita.fr>
1043
1044         Now that stamp-h's are created by config.status, we don't need to
1045         handle them in Makefile's.
1046
1047         * lib/am/remake-hdr.am (%STAMP%): Just run config.status.
1048         * m4/header.m4 (_AM_STAMP): New.
1049         (_AM_CONFIG_HEADER): Use it.
1050
1051 2001-10-26  Akim Demaille  <akim@epita.fr>
1052
1053         * automake.in (&generate_makefile, &handle_texinfo_helper)
1054         (&handle_man_pages, &handle_dist, &handle_configure, &handle_all)
1055         (&define_pretty_variable, &read_am_file, &file_contents_internal)
1056         (&am_install_var, &push_dist_common, &unquote_m4_arg): Simplify
1057         `join (' ', @list)' into `"@list"'.
1058
1059 2001-10-26  Akim Demaille  <akim@epita.fr>
1060
1061         * automake.in (@config_fullnames, @config_names): Remove.
1062         (@config_headers): Now contains the actual spec used in
1063         AC_CONFIG_HEADERS.
1064         (&split_config_file_spec): New.
1065         (&handle_tags, &handle_configure, &handle_all, &scan_autoconf_traces)
1066         (&scan_one_autoconf_file): Adjust.
1067         (&scan_one_autoconf_file): Pff, don't think _AM_CONFIG_HEADER is
1068         AM_CONFIG_HEADER.
1069
1070 2001-10-26  Akim Demaille  <akim@epita.fr>
1071
1072         * m4/header.m4 (_AM_CONFIG_HEADER): New.
1073         (AM_CONFIG_HEADER): Use it.
1074
1075 2001-10-26  Akim Demaille  <akim@epita.fr>
1076
1077         * automake.in (&handle_configure): Use the config.status 2.50
1078         invocation syntax for config files and headers.
1079         autoheader needs the name of the file to create, not from what it
1080         must be created, hence CONFIG_HEADER_FULL is $one_name, not
1081         $one_fullname.
1082         * lib/am/configure.am, lib/am/remake-hdr.am: Likewise.
1083         * tests/confsub.test (SUBDIRS): Adjust to the new config.status
1084         invocation.
1085         Strengthen: Use the non-default config.hin source.
1086         Strengthen: Make sure config.h is properly updated when config.hin
1087         is changed.
1088
1089 2001-10-26  Akim Demaille  <akim@epita.fr>
1090
1091         * automake.in (&handle_configure): Seeing Automake files in
1092         @other_input_files is a programming error, not merely something to
1093         ignore.
1094         Factor slightly the code.
1095
1096 2001-10-26  Akim Demaille  <akim@epita.fr>
1097
1098         * automake.in ($canonical_location): New.
1099         Use it.
1100         (&require_config_file, $line_error): Remove.
1101
1102 2001-10-24  Akim Demaille  <akim@epita.fr>
1103
1104         * automake.in: Use &verbose.
1105         (&generate_makefile, &scan_texinfo_file, &scan_aclocal_m4): Use
1106         Automake::XFile.
1107
1108 2001-10-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1109
1110         * lib/am/python.am (install-%DIR%PYTHON, uninstall-%DIR%PYTHON):
1111         Have the basename step optional and use %NDIR% instead of %DIR% in
1112         filenames in order to support 'nobase_'.
1113
1114 2001-10-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1115
1116         * automake.in (handle_languages, handle_single_transform_list,
1117         lang_c_rewrite): Use require_conf_file instead of
1118         require_config_file to require depcomp or compile from
1119         Makefile.am.  (This is a part of my patch of 2001-10-15 which got
1120         mistakenly reverted.)
1121
1122 2001-10-24  Akim Demaille  <akim@epita.fr>
1123
1124         * tests/confh.test: Since 2001-10-20 Kevin Ryde, stamp-h is
1125         stamp-h1.
1126
1127 2001-10-24  Akim Demaille  <akim@epita.fr>
1128
1129         Since the ansi2knr patch from 2001-10-20 Kevin Ryde, `$U' can
1130         appear in Makefile.in in the clean rule.
1131
1132         * tests/cxxansi.test: Adjust.
1133
1134 2001-10-24  Akim Demaille  <akim@epita.fr>
1135
1136         * automake.in (&am_print_error, &am_file_error, &am_macro_error)
1137         (&am_target_error, &am_line_error, &am_conf_error, &am_file_warning):
1138         Rename as...
1139         (&print_error, &file_error, &macro_error, &target_error, &line_error)
1140         (&conf_error, &file_warning): these.
1141         (&file_warning): Fix the prototype and argument handling.
1142         (&am_line_warning): Remove, unused.
1143
1144         Also, repair the misapplication of previous patches.
1145
1146 2001-10-21  Akim Demaille  <akim@epita.fr>
1147
1148         * automake.in ($ac_output_location): Replace with...
1149         ($ac_config_files_location): this.
1150         (&scan_autoconf_traces): We don't need $file and $line, $here is
1151         enough.
1152         (&scan_one_autoconf_file): Use `$in_ac_output' to store the macro
1153         name (AC_OUTPUT or AC_CONFIG_FILES) for error messages.
1154
1155 2001-10-21  Akim Demaille  <akim@epita.fr>
1156
1157         * automake.in (&require_file_with_macro): Use &require_file.
1158         (&read_am_file): Move the definition of $here at its proper place.
1159
1160 2001-10-21  Akim Demaille  <akim@epita.fr>
1161
1162         * automake.in ($libtool_line, $seen_pythondir): Replace with...
1163         ($libtool_location, $pythondir_location): these.
1164         (&require_conf_file_with_line, &require_conf_file_with_line):
1165         Remove, unused.
1166         (&require_file): Don't forget $where.
1167         (&require_conf_file): Ahem...  Fix the name.
1168         (&require_config_file): Invoke &require_conf_file, not yourself.
1169         (&am_line_error): Fix the default am_file_error invocation.
1170
1171 2001-10-21  Akim Demaille  <akim@epita.fr>
1172
1173         * automake.in ($seen_lispdir): Replace with...
1174         ($am_lispdir_location): this.
1175         (&require_conf_file): New.
1176         (&require_config_file, &require_conf_file_with_line,
1177         (&require_conf_file_with_conf_line): Use it.
1178         (&require_conf_file_with_macro): New.
1179
1180 2001-10-21  Akim Demaille  <akim@epita.fr>
1181
1182         * automake.in ($config_header_line, $ac_output_line)
1183         ($ac_gettext_line, $package_version_line): Replace with...
1184         ($config_header_location, $ac_output_location)
1185         ($ac_gettext_location, $package_version_location): these.
1186         (&require_file_with_conf_line, &require_file_with_line): Remove,
1187         no longer used.
1188
1189 2001-10-21  Akim Demaille  <akim@epita.fr>
1190
1191         * automake.in (&require_file_internal): Instead of $file and $line,
1192         take $where as first argument.
1193         Adjust all callers.
1194         (&require_file_with_macro): New.
1195         Use it where internal black magic was used to recover the location
1196         of a macro definition.
1197
1198 2001-10-21  Akim Demaille  <akim@epita.fr>
1199
1200         * automake.in (&read_am_file): Define and use `$here'.
1201         Avoid using am_line_error.
1202
1203 2001-10-21  Akim Demaille  <akim@epita.fr>
1204
1205         * automake.in (&am_target_error): New.
1206         Use it where appropriate instead of...
1207         (&am_line_error): this.
1208         Using it for a target is a croak error.
1209
1210 2001-10-21  Akim Demaille  <akim@epita.fr>
1211
1212         * automake.in (&am_macro_error): New.
1213         Use it where appropriate instead of...
1214         (&am_line_error): this.
1215         Using it for a macro is a croak error.
1216
1217 2001-10-21  Akim Demaille  <akim@epita.fr>
1218
1219         * tests/asm.test: s/AC_PROG_AS/AM_PROG_AS/.
1220         AC_OUTPUT a Makefile.
1221
1222 2001-10-21  Akim Demaille  <akim@epita.fr>
1223
1224         * automake.in (%var_line): Rename as...
1225         (%var_location): this.
1226         Use it consistently as the location where the macro is defined,
1227         file and line when possible, otherwise just file.
1228         (&read_am_file): Rules have their own location tracking, don't
1229         pollute %var_location.
1230
1231 2001-10-21  Akim Demaille  <akim@epita.fr>
1232
1233         * automake.in (am_line_error): Clarify.
1234
1235 2001-10-21  Akim Demaille  <akim@epita.fr>
1236
1237         * automake.in (&am_print_error): Set $exit_status since all your
1238         users do.
1239         (&am_error, &am_file_error, &am_line_error, &am_conf_error):
1240         Don't.
1241         (&am_conf_line_error, &am_conf_line_warning): Remove.
1242         Adjust callers to use &am_file_error and...
1243         (&am_file_warning): new.
1244
1245 2001-10-21  Akim Demaille  <akim@epita.fr>
1246
1247         * m4/regex.m4: Use AC_LIBOBJ.
1248         Require 2.50, and use AC_LIBSOURCES freely.
1249         * tests/asm.tests: Formatting changes.
1250         Exercise AM_PROG_AS.
1251
1252 2001-10-21  Akim Demaille  <akim@epita.fr>
1253
1254         * tests/install.test: This test is an empty shell, do not run
1255         automake.
1256         * tests/Makefile.am (TESTS): Don't run it.
1257         * tests/defs (ACLOCAL): When using gettext, pass in the installed
1258         aclocaldir.
1259         * tests/subdircond.test (SUBDIRS): AM_GNU_GETTEXT needs automake
1260         --add--missing.
1261         * tests/obsolete2.test: Remove, merged into...
1262         * tests/obsolete.test: here.
1263         Both aclocal and automake should complain.
1264
1265 2001-10-21  Akim Demaille  <akim@epita.fr>
1266
1267         * automake.in (scan_autoconf_traces): Don't recognize AC_SUBSTs
1268         for symbols which cannot be Make macro names.
1269         (scan_one_autoconf_file): `$here' is new.
1270         Use it consistently instead of `1' to remember a token was seen.
1271
1272 2001-10-21  Akim Demaille  <akim@epita.fr>
1273
1274         * tests/subdircond.test: Requires gettext.
1275         * tests/libobj.test, tests/libobj10.test, tests/libobj2.test,
1276         * tests/libobj6.test, tests/libobj9.test, tests/libtool.test,
1277         * tests/libtool2.test, tests/ltdeps.test, tests/ltlibobjs.test,
1278         * tests/nolink.test, tests/obsolete.test, tests/pr72.test,
1279         * tests/sinclude.test, tests/subdircond.test, tests/subobj4.test:
1280         Produce valid configure.in, use aclocal appropriately, declare
1281         when libtool is required.
1282
1283 2001-10-21  Akim Demaille  <akim@epita.fr>
1284
1285         * m4/lex.m4: Don't run AC_DECL_YYTEXT, Autoconf does.
1286         * automake.texi (Macros, Yacc and Lex): Adjust.
1287         * automake.in ($seen_decl_yytext): Rename as...
1288         ($seen_prog_lex): this.
1289         (&scan_autoconf_traces): Add AC_PROG_LEX support.
1290         (&scan_one_autoconf_file, &lang_lex_finish): Adjust.
1291
1292 2001-10-21  Akim Demaille  <akim@epita.fr>
1293
1294         * automake.in (&scan_autoconf_traces): Add support for
1295         AM_PATH_LISPDIR and AM_PATH_PYTHON.
1296
1297 2001-10-21  Akim Demaille  <akim@epita.fr>
1298
1299         * tests/defs (ACLOCAL): Point to the installed aclocaldir is
1300         libtool is required.
1301         * tests/lex.test: Run AC_INIT once.
1302         * tests/ldflags.test, tests/listval.test, tests/suffix2.test:
1303         Libtool is required.
1304         * tests/header.test: Built a correct configure.in.
1305         * tests/defun2.test (configure.in): Be a bit respectful with
1306         Autoconf, close the macro invocations.
1307         * tests/confdeps.test: Even when not using aclocal, aclocal.m4
1308         must be correct.
1309
1310         * automake.in (scan_autoconf_traces): Add support for
1311         AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM, A[CM]_PROG_LIBTOOL,
1312         AM_CONFIG_HEADER, AM_MAINTAINER_MODE.
1313         * tests/condincl.test (target): Better pattern, to avoid matching
1314         the definition of `target_alias' which is now properly discovered
1315         as an AC_SUBST by traces.
1316         * cond4.test: Better grep pattern: After all, why shouldn't
1317         TWO_FALSE be AC_SUBST properly.
1318         * tests/installsh.test (AUTOMAKE, ACLOCAL): Adjust.
1319
1320 2001-10-20  Kevin Ryde <user42@zip.com.au>
1321
1322         * lib/am/ansi2knr.am (mostlyclean-kr): Only rm *_.c when
1323         actually using ansi2knr.
1324
1325         * automake.in (handle_configure): Always put a number on $stamp_name,
1326         to match AM_CONFIG_HEADER.
1327
1328 2001-10-20  Tom Tromey  <tromey@redhat.com>
1329
1330         * tests/Makefile.am (TESTS): Added condd.test.
1331         (XFAIL_TESTS): Added condd.test.
1332         * tests/condd.test: New file.
1333
1334 2001-10-20  Akim Demaille  <akim@epita.fr>
1335
1336         * automake.in (&scan_autoconf_traces): Add support for
1337         AM_C_PROTOTYPES, AM_GNU_GETTEXT, AM_PROG_CC_C_O, and
1338         AC_CONFIG_AUX_DIR.
1339         * tests/alpha.test (configure.in): Automake wants a Makefile.
1340
1341 2001-10-20  Akim Demaille  <akim@epita.fr>
1342
1343         * automake.in (scan_autoconf_traces): Use an unlikely to be used
1344         separator between trace arguments, in particular not `:' as it is
1345         within AC_CONFIG_FILES's $1.
1346
1347 2001-10-20  Akim Demaille  <akim@epita.fr>
1348
1349         * tests/alpha.test (configure.in): Create, don't append.  A single
1350         AC_INIT is enough.
1351
1352 2001-10-20  Akim Demaille  <akim@epita.fr>
1353
1354         * tests/acoutnoq.test, tests/acoutput.test, tests/acoutput2.test,
1355         * tests/acoutqnl.test, tests/acouttbs.test, tests/all.test,
1356         * tests/alpha.test, tests/ansi.test, tests/asm.test,
1357         * tests/auxdir.test, tests/auxdir2.test, tests/backsl2.test,
1358         * tests/badline.test, tests/block.test, tests/canon2.test,
1359         * tests/check.test, tests/checkall.test, tests/clean.test,
1360         * tests/colneq.test, tests/colneq2.test, tests/colon.test,
1361         * tests/colon2.test, tests/colon3.test, tests/colon4.test,
1362         * tests/colon5.test, tests/colon6.test, tests/colon7.test,
1363         * tests/comment.test, tests/comment3.test, tests/cond.test,
1364         * tests/cond2.test, tests/cond6.test, tests/cond7.test,
1365         * tests/condincl.test, tests/condincl2.test, tests/condman.test,
1366         * tests/condman2.test, tests/confdist.test, tests/confh.test,
1367         * tests/confh2.test, tests/confh3.test, tests/confvar.test,
1368         * tests/confvar2.test, tests/copy.test, tests/ctarget1.test,
1369         * tests/cxxcpp.test, tests/dash.test, tests/dejagnu.test,
1370         * tests/dejagnu2.test, tests/distcommon.test, tests/distdir.test,
1371         * tests/else.test, tests/empty.test, tests/exdir.test,
1372         * tests/exdir2.test, tests/extra3.test, tests/extra4.test,
1373         * tests/flibs.test, tests/fnoc.test, tests/fo.test,
1374         * tests/fonly.test, tests/fortdep.test, tests/fpinst2.test,
1375         * tests/fpinstall.test, tests/gcj2.test, tests/gnits.test,
1376         * tests/include.test, tests/info.test, tests/insh.test,
1377         * tests/insh2.test, tests/install.test, tests/installsh.test,
1378         * tests/instdata.test, tests/instdata2.test, tests/instexec.test,
1379         * tests/insthook.test, tests/instman.test, tests/instman2.test,
1380         * tests/java.test, tests/javaprim.test, tests/javasubst.test,
1381         * tests/libobj3.test, tests/link_f_only.test, tests/lisp.test,
1382         * tests/man.test, tests/mclean.test, tests/mdate.test,
1383         * tests/mdate2.test, tests/mdate3.test, tests/mdate4.test,
1384         * tests/mkinst2.test, tests/mkinstall.test, tests/nodepcomp.test,
1385         * tests/noinst.test, tests/obsolete.test, tests/obsolete2.test,
1386         * tests/outdir.test, tests/output.test, tests/output2.test,
1387         * tests/output3.test, tests/output4.test, tests/output5.test,
1388         * tests/package.test, tests/pluseq.test, tests/pluseq2.test,
1389         * tests/pluseq3.test, tests/pluseq5.test, tests/pluseq6.test,
1390         * tests/pluseq8.test, tests/ppf77.test, tests/pr2.test,
1391         * tests/primary.test, tests/proginst.test, tests/python.test,
1392         * tests/remake.test, tests/remake2.test, tests/remake3.test,
1393         * tests/rulepat.test, tests/scripts.test, tests/seenc.test,
1394         * tests/sinclude.test, tests/spell.test, tests/spell3.test,
1395         * tests/spelling.test, tests/stamph.test, tests/subdir.test,
1396         * tests/subdir2.test, tests/subdircond.test, tests/subst.test,
1397         * tests/symlink.test, tests/symlink2.test, tests/symlink3.test,
1398         * tests/syntax.test, tests/tags.test, tests/tagsub.test,
1399         * tests/texinfo.test, tests/texinfo10.test, tests/texinfo2.test,
1400         * tests/texinfo3.test, tests/texinfo4.test, tests/texinfo5.test,
1401         * tests/texinfo6.test, tests/texinfo7.test, tests/texinfo8.test,
1402         * tests/texinfo9.test, tests/vars.test, tests/vartar.test,
1403         * tests/version.test, tests/version2.test, tests/version3.test,
1404         * tests/version4.test, tests/vpath.test, tests/vtexi.test,
1405         * tests/vtexi2.test, tests/werror.test: Run aclocal before automake.
1406
1407 2001-10-20  Akim Demaille  <akim@epita.fr>
1408
1409         * tests/acoutnoq.test, tests/acoutput.test, tests/acoutqnl.test,
1410         * tests/acouttbs.test, tests/asm.test, tests/colon.test,
1411         * tests/colon2.test, tests/colon3.test, tests/colon4.test,
1412         * tests/colon5.test, tests/colon6.test, tests/colon7.test,
1413         * tests/conf2.test, tests/confh.test, tests/confh2.test,
1414         * tests/confh3.test, tests/confh4.test, tests/config.test,
1415         * tests/confsub.test, tests/depend3.test, tests/discover.test,
1416         * tests/fpinst2.test, tests/fpinstall.test, tests/gnits.test,
1417         * tests/header.test, tests/ldadd.test, tests/ldflags.test,
1418         * tests/libobj.test, tests/libobj10.test, tests/libobj2.test,
1419         * tests/libobj6.test, tests/libobj7.test, tests/libobj8.test,
1420         * tests/libobj9.test, tests/mdate4.test, tests/obsolete.test,
1421         * tests/output.test, tests/output2.test, tests/output3.test,
1422         * tests/output4.test, tests/output5.test, tests/package.test,
1423         * tests/parse.test, tests/pr2.test, tests/remake.test,
1424         * tests/remake2.test, tests/remake3.test, tests/scripts.test,
1425         * tests/stamph.test, tests/subdir.test, tests/subdir2.test,
1426         * tests/subdir4.test, tests/subdirbuiltsources.test,
1427         * tests/subobj4.test, tests/tagsub.test, tests/texinfo8.test,
1428         * tests/yacc5.test, tests/yacc6.test, tests/yacc7.test: Remove
1429         AC_ARG_PROGRAM, AC_PROG_INSTALL and AC_PROG_MAKE_SET invocation
1430         since AM_INIT_AUTOMAKE requires them.
1431
1432 2001-10-20  Akim Demaille  <akim@epita.fr>
1433
1434         * tests/defs (configure.in): Use credible AM_INIT_AUTOMAKE
1435         arguments.
1436         Don't run AC_ARG_PROGRAM another time, it is required by
1437         AM_INIT_AUTOMAKE.
1438         * tests/aclocal.test: Work on the default configure.in
1439         * tests/config.test (configure.in): Don't AC_ARG_PROGRAM.
1440         First AM_INIT_AUTOMAKE, then AM_CONFIG_HEADER.
1441
1442         Be realistic in testing: AC_INIT is required for Autoconf.
1443         Broken so called optimized tests break trace handling.
1444
1445         * tests/aclibobj.test, tests/aclocal.test, tests/acoutnoq.test,
1446         * tests/acoutput.test, tests/acoutput2.test, tests/acoutqnl.test,
1447         * tests/acouttbs.test, tests/acsilent.test, tests/alpha.test,
1448         * tests/colon.test, tests/colon2.test, tests/colon3.test,
1449         * tests/colon4.test, tests/colon5.test, tests/colon6.test,
1450         * tests/colon7.test, tests/cond.test, tests/cond2.test,
1451         * tests/cond3.test, tests/cond5.test, tests/conf2.test,
1452         * tests/confh.test, tests/confh2.test, tests/confh3.test,
1453         * tests/confh4.test, tests/config.test, tests/confsub.test,
1454         * tests/ctarget1.test, tests/depcomp.test, tests/depend3.test,
1455         * tests/distcommon.test, tests/dup3.test, tests/fpinst2.test,
1456         * tests/fpinstall.test, tests/header.test, tests/ldflags.test,
1457         * tests/libobj.test, tests/libobj10.test, tests/libobj2.test,
1458         * tests/libobj6.test, tests/libobj7.test, tests/libobj8.test,
1459         * tests/libobj9.test, tests/output.test, tests/output2.test,
1460         * tests/output3.test, tests/output4.test, tests/parse.test,
1461         * tests/pr2.test, tests/recurs.test, tests/recurs2.test,
1462         * tests/remake.test, tests/remake2.test, tests/remake3.test,
1463         * tests/req.test, tests/scripts.test, tests/subdir.test,
1464         * tests/subdir2.test, tests/subdir4.test, tests/subobj4.test,
1465         * tests/tagsub.test, tests/texinfo8.test, tests/version.test,
1466         * tests/version2.test: Add AC_INIT in `configure.in'.
1467
1468 2001-10-20  Akim Demaille  <akim@epita.fr>
1469
1470         * automake.in (&scan_autoconf_traces): Add support for
1471         AM_INIT_AUTOMAKE, AM_CONDITIONAL.
1472         Let @args have a more natural M4 correspondence: $1 is args[1], no
1473         args[0] etc.
1474         (&scan_autoconf_files): Using autoconf traces is no longer a
1475         complement of the previous ad hoc scheme: use either.
1476
1477 2001-10-20  Akim Demaille  <akim@epita.fr>
1478
1479         * automake.in (&scan_one_autoconf_file): `%generalize' is new, and
1480         factors dedicated $libsources assignments.
1481
1482 2001-10-20  Akim Demaille  <akim@epita.fr>
1483
1484         * m4/error.m4, m4/obstack.m4, m4/ptrdiff.m4, m4/strtod.m4:
1485         Remove, since Autoconf 2.52 has them.
1486         * automake.in, aclocal.in, automake.texi: Adjust.
1487
1488 2001-10-19  Akim Demaille  <akim@epita.fr>
1489
1490         * automake.in (&read_main_am_file): s/generated automatically/
1491         generated/.
1492         Insert @configure_input@, since 2.50 no longer output this
1493         automatically for Makefiles.
1494
1495 2001-10-19  Kevin Ryde <user42@zip.com.au>
1496
1497         * lib/am/check.am (check-TESTS): Add an "else true" to work with
1498         Ultrix 4.5 /bin/sh when $(TESTS) is empty.
1499
1500 2001-10-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1501
1502         * tests/Makefile.am (TESTS, XFAIL_TESTS): Add nobase.test.
1503         * tests/nobase.test: New file.  Based on a bug report
1504         from Martin Frydl <martin@idoox.com>.
1505
1506 2001-10-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1507
1508         * automake.in (am_install_var): Don't strip nobase_ from $X, do
1509         this with $nodir_name only.  Use $nodir_name where appropriate.
1510
1511 2001-10-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
1512
1513         * automake.in (handle_languages, handle_single_transform_list,
1514         lang_c_rewrite): Use require_conf_file instead of
1515         require_config_file to require depcomp or compile from Makefile.am.
1516         (require_aux_file_with_line): New function, adapted from
1517         require_conf_gile_with_line.
1518         (require_conf_file_with_line, require_conf_file_with_conf_line):
1519         Simplify using require_aux_file_with_line.
1520         (require_config_file): Simplify using require_conf_file_with_conf_line.
1521         (require_conf_file): New function.
1522
1523 2001-10-15  Akim Demaille  <akim@epita.fr>
1524
1525         * m4/depend.m4 (AM_DEP_TRACK): Use AC_SUBST([AMDEPBACKSLASH])
1526         normally, what is wrong is that automake outputs a variable
1527         definition for it, hence...
1528         * automake.in (scan_one_autoconf_file): don't.
1529
1530         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): New, extracted
1531         from...
1532         (AM_OUTPUT_DEPENDENCY_COMMANDS): here.  Adjust.
1533         Use AC_CONFIG_COMMANDS.
1534         (_AM_OUTPUT_DEPENDENCY_COMMANDS): Use AS_DIRNAME and AS_MKDIR_P.
1535
1536 2001-10-15  Akim Demaille  <akim@epita.fr>
1537
1538         * m4/header.m4 (AM_CONFIG_HEADER): Don't use m4_patsubst.
1539
1540 2001-10-15  Akim Demaille  <akim@epita.fr>
1541
1542         * automake.in (&variable_conditions): Be deterministic and Perl
1543         version independent: sort the result.
1544         (&variable_output, &variable_pretty_output): Sort all the @conds,
1545         not only when defaulted.
1546         * tests/cond3.test: Adjust.
1547
1548 2001-10-15  Akim Demaille  <akim@epita.fr>
1549
1550         * automake.in: Formatting changes.
1551
1552 2001-10-15  Akim Demaille  <akim@epita.fr>
1553
1554         * aclocal.in: Use Automake::General and Automake::XFile.
1555         Use find_configure_ac.
1556         Output the Emacs tags for Autoconf mode selection.
1557
1558 2001-10-10  Akim Demaille  <akim@epita.fr>
1559
1560         * lib/COPYING, COPYING, lib/config.guess, lib/config.sub: Update
1561         from master copies.
1562
1563 2001-10-09  Akim Demaille  <akim@epita.fr>
1564
1565         Do not use Autoconf internals.
1566
1567         * tests/dirname.test: Don't use AC_PLAIN_SCRIPT.
1568         * m4/header.m4 (_AM_DIRNAME): Use regexp and patsubst, not
1569         m4_regexp and m4_patsubst, since the latter are reserved for ERE
1570         macro in GNU M4 1.5.
1571
1572 2001-10-08  Akim Demaille  <akim@epita.fr>
1573
1574         * m4/cond.m4 (AM_CONDITIONAL): Don't use m4_match as Autoconf
1575         changed its name.
1576
1577 2001-10-05  Akim Demaille  <akim@epita.fr>
1578
1579         * automake.in (scan_autoconf_files): Use find_configure_ac from
1580         General.
1581
1582 2001-10-02  Akim Demaille  <akim@epita.fr>
1583
1584         * lib/Automake/Struct.pm: Update from Autoconf.
1585         * lib/Automake/General.pm, lib/Automake/XFile.pm: New, from CVS
1586         Autoconf.
1587         * automake.in: Use them.
1588         (&uniq, $me): Remove, as they are provided by Automake::General.
1589
1590 2001-10-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1591
1592         * Makefile.am (maintainer-check): Don't check for 'cd' calls in m4.
1593         * lib/am/tags.am (GTAGS): Use $(am__cd) instead of 'CDPATH=: && cd'.
1594         * lib/am/dejagnu.am (check-DEJAGNU): Likewise.
1595         * lib/am/distdir.am (distcheck): Likewise.
1596         * lib/am/texinfos.am (install-info-am, dist-info): Rewrite without
1597         using cd so we don't have to fiddle with CDPATH.
1598         * lib/am/header-vars.am (am__cd): Define so as to support Zsh and
1599         DOSish path separator.
1600
1601 2001-10-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1602
1603         * lib/am/python.am (install-%DIR%PYTHON,
1604         uninstall-%DIR%PYTHON): Strip path of source file.
1605         (clean-python): Comment out.
1606
1607 2001-10-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1608
1609         * automake.in (handle_python): Use require_conf_file_with_conf_line
1610         instead of require_file_with_conf_line, so that elisp-comp and
1611         py-compile are installed in the aux-directory.
1612         (handle_emacs_lisp): Likewise.  Define elisp_comp.
1613         * lib/am/lisp.am (.el.elc): Use elisp_comp.
1614
1615 2001-10-01  Akim Demaille  <akim@epita.fr>
1616
1617         * lib/am/distdir.am (distcheck): Report the trailing files.
1618         Run `dist-gzip', not `dist', as it may leave other distribution
1619         flavors.
1620
1621 2001-09-29  Paul Eggert  <eggert@twinsun.com>
1622
1623         * lib/mkinstalldirs: Use "mkdir -p" if it works, as that fixes
1624         bugs when making file names with unusual characters.  Quote chmod
1625         arg "$dirmode", in case it contains white space.
1626
1627         Incorporate the following change from autoconf mkinstalldirs:
1628
1629         1999-04-10  Ben Elliston  <bje@cygnus.com>
1630
1631         Add `-m' flag to specify the mode of a newly created
1632         directory.  Add command line usage and `-h', `--help' options.
1633         Contributed by Jeff Garzik.
1634
1635 2001-09-27  Akim Demaille  <akim@epita.fr>
1636
1637         * m4/cond.m4, m4/init.m4, m4/header.m4: Remove Autoconf 2.13 code.
1638
1639 2001-09-27  Akim Demaille  <akim@epita.fr>
1640
1641         * lib/am/distdir.am (dist): Rename as...
1642         (dist-gzip): this.
1643         (dist): Additional name for dist-all.
1644         * automake.texi (Options, Dist): Adjust.
1645
1646 2001-09-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1647
1648         * aclocal.in (obsolete_macros): Update AM_EXEEXT message.
1649         * automake.in (obsolete_macros): Likewise.
1650         (seen_objext): Remove (unused).
1651         (scan_one_autoconf_file): Don't handle AC_OBJEXT.
1652         * lib/am/header-vars.am (EXEEXT, OBJEXT,
1653         PATH_SEPARATOR): New variables.
1654         * tests/obsolete2.test: Use AM_FUNC_FNMATCH instead of AM_EXEEXT.
1655
1656 2001-09-23  Tim Van Holder  <tim.van.holder@pandora.be>
1657
1658         * m4/auxdir.m4, m4/init.m4: Require autoconf 2.50 and rely on it to
1659         neutralize CDPATH for us.
1660         * m4/init.m4: Don't substitute EXEEXT or OBJEXT anymore.
1661         * lib/am/texibuild.am: Use $(PATH_SEPARATOR), not ':' to build
1662         TEXINPUTS.
1663
1664 2001-09-22  Akim Demaille  <akim@epita.fr>
1665
1666         * configure.in, NEWS: Bump to 1.5a.
1667         Require 2.52.
1668
1669 2001-09-22   Paul Eggert  <eggert@twinsun.com>
1670
1671         * ChangeLog, ChangeLog.1996, ChangeLog.1998, ChangeLog.2000,
1672         Makefile.am, NEWS, README, TODO, configure.in, lib/Makefile.am,
1673         lib/acinstall, lib/am/Makefile.am, m4/Makefile.am, m4/as.m4,
1674         m4/auxdir.m4, m4/ccstdc.m4, m4/cond.m4, m4/depend.m4,
1675         m4/depout.m4, m4/dmalloc.m4, m4/error.m4, m4/gcj.m4, m4/header.m4,
1676         m4/init.m4, m4/install-sh.m4, m4/lex.m4, m4/lispdir.m4,
1677         m4/maintainer.m4, m4/make.m4, m4/minuso.m4, m4/missing.m4,
1678         m4/multi.m4, m4/obstack.m4, m4/protos.m4, m4/ptrdiff.m4,
1679         m4/python.m4, m4/regex.m4, m4/sanity.m4, m4/strip.m4,
1680         m4/termios.m4, m4/winsz.m4: Add copyright notice.
1681
1682         * INSTALL, lib/INSTALL: Upgrade to latest autoconf version,
1683         which has a copyright notice.
1684
1685         * m4/strtod.m4: Correct the dates on the copyright notice.
1686
1687 2001-09-17  Akim Demaille  <akim@epita.fr>
1688
1689         * lib/missing (autom4te): New.
1690         (aclocal, autoconf, automake, autoheader, help2man): Propagate
1691         actual failures.
1692
1693 2001-08-27  Tom Tromey  <tromey@redhat.com>
1694
1695         * automake.texi (A Shared Library): Clarify installation
1696         requirement.
1697         (Install): Typo.  From Adrian Bunk.
1698
1699 2001-08-27  Tom Tromey  <tromey@redhat.com>
1700
1701         * automake.texi (Macros): Typo fix.
1702         From Christian Cornelssen
1703
1704 2001-08-27  Tom Tromey  <tromey@redhat.com>
1705
1706         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
1707         tests/cond4.test, tests/cond16.test, tests/cond18.test,
1708         tests/cond19.test, tests/depcomp2.test, tests/depend2.test,
1709         tests/lex3.test, tests/pr87.test, tests/subobj3.test,
1710         tests/substref.test: Clear CFLAGS.
1711
1712         * automake.texi (Yacc and Lex): Mention lex, not yacc.
1713         From Alexey Mahotkin.
1714
1715 2001-08-27  Tom Tromey  <tromey@redhat.com>
1716
1717         * tests/yacc7.test: Use test -f, not test -e.
1718
1719 2001-08-27  Adrian Bunk  <bunk@fs.tum.de>
1720
1721         * automake.texi (etags): Typo fix.
1722
1723 2001-08-27  Guido Draheim <guidod@gmx.de>
1724
1725         * automake.in : restrict ansi2knr option to be a filepath
1726
1727 2001-08-23  Richard Boulton <richard@tartarus.org>
1728
1729         * tests/yacc7.test: Actually add this file: was accidentally omitted.
1730
1731 2001-08-22  Tom Tromey  <tromey@redhat.com>
1732
1733         * automake.texi (Conditionals): Mention that conditionals must
1734         always be invoked.  For PR automake/220.
1735
1736 2001-08-22  Richard Boulton <richard@tartarus.org>
1737             Tom Tromey  <tromey@redhat.com>
1738
1739         * automake.in (lang_yacc_target_hook): Make header file depend on
1740         .c file, not .y file.
1741         * lib/am/yacc.am: Non-generic rule changed to depend on %OBJ% (the
1742         .c file) rather than %SOURCE% (the .y file)  Removed `.y.h' rule.
1743         * tests/yacc7.test: New file.
1744         * tests/Makefile.am (TESTS): Added yacc7.test.
1745
1746 2001-08-22  Tim Van Holder  <tim.van.holder@pandora.be>
1747
1748         * m4/missing.m4: Require AM_AUX_DIR_EXPAND and use $am_aux_dir.
1749
1750 2001-08-18  Tom Tromey  <tromey@redhat.com>
1751
1752         * automake.texi (Dist): Mention dist-all.
1753
1754 2001-08-18  Tom Tromey  <tromey@redhat.com>
1755
1756         * tests/cond3.test: Use portable sed expression.
1757         From Richard Boulton.
1758
1759 2001-08-13  Richard Boulton <richard@tartarus.org>
1760
1761         * automake.in (handle_source_transform): Call
1762         define_objects_from_sources() instead of calling
1763         variable_value_as_list(), handle_single_transform_list() and
1764         define_pretty_variable() directly.
1765         (handle_single_transform_list): Add $topparent parameter, used for
1766         error messages.  Improved error message.
1767         (define_objects_from_sources): New function.
1768         (subobjname): New function.
1769         (variable_conditions_recursive): New name for variable conditions.
1770         (variable_value_as_list_recursive): New name for variable_value_as_list.
1771         (variable_value_as_list_worker): Renamed to ...
1772         (variable_value_as_list_recursive_worker): ... this.
1773         (variable_conditions_sub): Renamed to ...
1774         (variable_conditions_recursive_sub): ... this.
1775         (variable_conditions): Rewritten: now doesn't recurse subvariables.
1776         (variable_value_as_list): Rewritten: now doesn't recurse subvariables.
1777         (substfroms): New global.
1778         (substtos): New global.
1779         (substnums): New global.
1780         * tests/cond3.test: Update to work with new method of defining _OBJECTS.
1781         * tests/cond4.test: Update to work with new method of defining _OBJECTS.
1782         * tests/sourcesub2.test: New test.
1783         * tests/Makefile.am (TEST): Added sourcesub2.test.
1784
1785 2001-08-11  Tom Tromey  <tromey@redhat.com>
1786
1787         * configure.in: Upped to 1.4s.
1788
1789 2001-08-09  Richard Boulton <richard@tartarus.org>
1790
1791         * automake.in (handle_single_transform_list): Use new global,
1792         `%linkers_used', to store the linkers used, rather than an internal
1793         variable.  Enables correct linker to be calculated across a group
1794         of calls to &handle_single_transform_list.  Return only list of
1795         objects, since linker to be used is now externally determined.
1796         (handle_source_transform): adapted for new calling conventions of
1797         handle_single_transform_list.  Calls resolve_linker() on a set of
1798         all the linkers used for any prefix, rather than for each prefix in
1799         turn.
1800         (linkers_used): New global.
1801         * tests/link_dist.test: New test.
1802         * tests/Makefile.am (TESTS): Added link_dist.test.
1803
1804 2001-08-08  Raja R Harinath  <harinath@cs.umn.edu>
1805
1806         Dissociate testsuite 'make' invocations from outer 'make'.
1807         * tests/defs: Unset the MFLAGS, MAKEFLAGS and MAKELEVEL
1808         environment variables.
1809         * tests/cond16.test: Use '$MAKE -s', and avoid GNU make
1810         dependency.
1811         * tests/substref.test: Likewise.
1812
1813 2001-08-08  Richard Boulton <richard@tartarus.org>
1814
1815         * tests/cond18.test: New file.
1816         * tests/cond19.test: New file.
1817         * tests/cond20.test: New file.
1818         * tests/cond4.test: Updated to check the generated _OBJECTS more
1819         thoroughly.
1820         * tests/Makefile.am (TESTS): Added cond18.test, cond19.test and
1821         cond20.test
1822
1823 2001-08-08  Richard Boulton <richard@tartarus.org>
1824
1825         * automake.in (file_contents_internal): if a rule is conditionally
1826         defined, define the standard automake definition for it for those
1827         conditions which are not conditionally defined.
1828         (invert_conditions): New function: invert a list of conditionals.
1829
1830         * tests/cond14.test: New file.
1831         * tests/cond15.test: New file.
1832         * tests/Makefile.am (TESTS): Added cond14.test and cond15.test.
1833
1834 2001-08-05  Tom Tromey  <tromey@redhat.com>
1835
1836         * tests/Makefile.am (TESTS): Added dejagnu2.test.
1837         * tests/dejagnu2.test: New file.
1838         * lib/am/dejagnu.am (site.exp): Don't conditionalize.
1839         * automake.in (handle_scripts): Removed dead code.
1840         (handle_tests_dejagnu): Don't handle site.exp generation
1841         specially.
1842
1843 2001-08-04  Richard Boulton <richard@tartarus.org>
1844
1845         * tests/cond17.test: New file: test for being able to define an
1846         object to be generated in different ways according to a
1847         conditional.
1848         * tests/Makefile.am (XFAIL_TESTS): Add cond17.test.
1849         (TESTS): Added cond17.test.
1850
1851 2001-08-02  Richard Boulton <richard@tartarus.org>
1852
1853         * automake.in (variable_conditions_sub): Handle variable
1854         substitution refs when computing conditions based on subvariable
1855         conditions.  Fixes substitution refs of system variables when sub
1856         variable is conditional.
1857         (SUBST_REF_PATTERN): New global.
1858         * tests/cond16.test: New file: regression test for variable
1859         substitution refs.
1860         * test/Makefile.am (TESTS): Added cond16.test.
1861
1862 2001-08-03  Tom Tromey  <tromey@redhat.com>
1863
1864         * tests/substref.test: Require GNU make; backed out previous
1865         change.
1866
1867         * tests/substref.test: Handle entering/leaving directory
1868         messages.
1869
1870 2001-08-03  Richard Boulton <richard@tartarus.org>
1871
1872         * automake.in (value_to_list): Check for whether $from is defined,
1873         rather than whether it is true, so that empty $froms are allowed in
1874         substitution reference patterns.
1875
1876         * tests/substref.test: New file: test behavior of substitution
1877         references when the $from side of the substitution is empty.
1878         * tests/Makefile.am (TESTS): Added substref.test.
1879
1880 2001-08-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
1881
1882         * m4/install-sh.m4: New file.
1883         * m4/Makefile.am (m4data_DATA): Add install-sh.m4.
1884         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Move ...
1885         * m4/install-sh.m4 (AM_PROG_INSTALL_SH): ... here.  Don't check
1886         for install.sh any longer, always use install-sh, don't even
1887         fall back to missing.  Use $am_aux_dir, making $install_sh absolute.
1888         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Simplify, since $install_sh
1889         is absolute.
1890         * m4/init.m4: Adjust call to AM_PROG_INSTALL_SH.
1891
1892 2001-08-02  Tim Van Holder  <tim.van.holder@pandora.be>
1893
1894         * automake.texi (EXEEXT): Clarify.
1895
1896 2001-08-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
1897
1898         * m4/missing.m4 (AM_MISSING_HAS_RUN): Typo.
1899
1900         * m4/auxdir.m4: More comments.
1901
1902 2001-07-31  Richard Boulton <richard@tartarus.org>
1903             Raja R Harinath <harinath@cs.umn.edu>
1904
1905         * automake.in (variable_conditions_sub): Remove @parent_conds
1906         argument.  This was old logic - duplicate or impossible
1907         conditionals are removed later by &variable_conditions_reduce().
1908         Fixes tests/cond13.test.
1909         (conditionals_true_when): Removed.
1910         * tests/Makefile.am (XFAIL_TESTS): Removed cond13.test.
1911
1912 2001-07-31  Tom Tromey  <tromey@redhat.com>
1913
1914         * tests/Makefile.am (TESTS): Added cond13.test.
1915         (XFAIL_TESTS): Likewise.
1916         * tests/cond13.test: New file.
1917
1918         * configure.in: Upped to version 1.4k.
1919
1920         * configure.in: Released 1.4j.
1921
1922         * lib/config.guess: Updated from master sources.
1923         * lib/config.sub: Likewise.
1924
1925 2001-07-30  Tom Tromey  <tromey@redhat.com>
1926
1927         * automake.texi (A Program): Typo.  Added subsections and more
1928         text about conditional compilation.
1929         (A Shared Library): Moved earlier.
1930         (Program variables): Updated LINK text.  Added AM_CFLAGS.
1931         (C++ Support): Added AM_CXXFLAGS.
1932         (Fortran 77 Support): Added AM_FFLAGS and AM_RFLAGS.
1933         (EXEEXT): New node.
1934
1935         * tests/Makefile.am (TESTS): Added aclibobj.test.
1936         * tests/aclibobj.test: New file.
1937         * automake.in (handle_lib_objects_cond): Avoid undefined variable
1938         error.
1939         (scan_one_autoconf_file): Handle AC_LIBSOURCE and AC_LIBSOURCES.
1940
1941         * automake.texi (Dist): Mention other distribution types.
1942         (Install): Updates.
1943
1944 2001-07-29  Tom Tromey  <tromey@redhat.com>
1945
1946         * automake.texi (Program and Library Variables): Texinfo fix.
1947         From Alexey Mahotkin.
1948
1949 2001-07-28  Tom Tromey  <tromey@redhat.com>
1950
1951         * automake.texi (Strictness): Mention Cygnus mode.
1952         (Cygnus): Updated.
1953         (Uniform): Likewise.
1954         (Canonicalization): Likewise.
1955         (Install): Add `nobase_' to example; typo fix.
1956         (Clean): Typo.
1957         (Dist): Expand on putting a directory into EXTRA_DIST.  Insert
1958         section markers.
1959         (Options): Texinfo fixes; some text updates.
1960         (Tags): Update.
1961
1962 2001-07-27  Tom Tromey  <tromey@redhat.com>
1963
1964         * automake.texi (Invoking Automake): Document --Werror and
1965         --Wno-error.
1966
1967 2001-07-26  Tom Tromey  <tromey@redhat.com>
1968
1969         * tests/nolink.test: Added no-exeext.
1970
1971         * automake.in (check_variable_defined_unconditionally): Don't call
1972         macro_dump.
1973
1974         * automake.texi (Optional): Don't mention ALL_LINGUAS.
1975         (gettext): Likewise.
1976         * automake.in (seen_linguas, all_linguas, all_linguas_line):
1977         Removed.
1978         (handle_gettext): Don't do any checking of the languages.
1979         (scan_one_autoconf_file): Don't look for ALL_LINGUAS.
1980
1981         * automake.in (am_print_error): New function.
1982         (am_error): Use it.
1983         (am_file_error): Likewise.
1984         (am_line_error): Likewise.
1985         (am_conf_error): Likewise.
1986         (am_conf_line_error): Likewise.
1987
1988         * automake.texi (Options): Document no-exeext.
1989         * automake.in (handle_options): Recognize no-exeext.
1990         (rule_define): Handle no-exeext.
1991         * tests/Makefile.am (TESTS): Added new file.
1992         * tests/exeext2.test: New file.
1993
1994         * automake.in (make_input_list): Removed.
1995         (scan_autoconf_config_files): Don't add to make_input_list.
1996         (scan_one_autoconf_file): Don't use make_input_list.
1997         (scan_autoconf_files): Use make_list, not make_input_list.
1998         (scan_autoconf_files): Likewise.
1999
2000         * automake.in (seen_exeext): Removed.
2001         (generate_makefile): Don't define EXEEXT or OBJEXT.
2002         (scan_one_autoconf_file): Don't check for AC_EXEEXT.
2003         (am_install_var): Don't check $seen_exeext.
2004         (handle_programs): Likewise.
2005         (rule_define): Allow x to override x$(EXEEXT), for now.
2006         (file_contents_internal): Only define rule if rule_define allows
2007         us to.
2008         * m4/init.m4 (AM_INIT_AUTOMAKE): Define EXEEXT and OBJEXT.
2009
2010 2001-07-25  Tom Tromey  <tromey@redhat.com>
2011
2012         From Nicolas Joly:
2013         * tests/pr9.test: Require GNU make.
2014         * tests/dirname.test: Don't use `-u'.
2015
2016 2001-07-22  Tom Tromey  <tromey@redhat.com>
2017
2018         * tests/Makefile.am (TESTS): Added auxdir2.test.
2019         (XFAIL_TESTS): Likewise.
2020         * tests/auxdir2.test: New file.
2021
2022         * tests/Makefile.am (XFAIL_TESTS): Removed substtarg.test.
2023         * automake.in (TARGET_PATTERN): Add `@' as allowable character.
2024
2025         * tests/Makefile.am (XFAIL_TESTS): Removed exeext.test.
2026         * automake.in (am_install_var): Add $(EXEEXT) even if program name
2027         holds `.'.  Don't add $(EXEEXT) if program name already has it.
2028         (handle_programs): Don't add $(EXEEXT) if user already did.
2029         (make_paragraphs): Don't compute EXEEXT.
2030
2031         * tests/Makefile.am (TESTS): Added exeext.test.
2032         (XFAIL_TESTS): Likewise.
2033         * tests/exeext.test: New file.
2034
2035 2001-07-22  Tom Tromey  <tromey@redhat.com>
2036
2037         * lib/am/progs.am (install-%DIR%PROGRAMS): Test for `prog', not
2038         `prog.exe' on Cygwin with libtool.  From Robert Collins.
2039
2040 2001-07-21  Tim Van Holder  <tim.van.holder@pandora.be>
2041
2042         * tests/dirname.test: Explicitly use $SHELL to run the
2043         script; this avoids failures on DJGPP.
2044         * tests/install2.test: Skip if 'chmod 000' doesn't make
2045         a file unreadable.
2046
2047 2001-07-21  Tom Tromey  <tromey@redhat.com>
2048
2049         * tests/libtool2.test: Check for libtoolize.
2050
2051         * tests/Makefile.am (TESTS): Added substtarg.test.
2052         (XFAIL_TESTS): Likewise.
2053         * tests/substtarg.test: New file.
2054
2055         * automake.in (handle_dist): Handle case where aux dir doesn't
2056         have a Makefile.  Fixes depdist.test.
2057         * tests/Makefile.am (XFAIL_TESTS): Removed depdist.test.
2058         * tests/depdist.test: Look for config/depcomp.
2059
2060         * tests/Makefile.am (TESTS): Added depdist.test.
2061         (XFAIL_TESTS): Likewise.
2062         * tests/depdist.test: New file.  From Eric Magnien.
2063
2064         * tests/ccnoco.test: Removed `configure.2' test; in autoconf 2.50
2065         AC_PROG_CC_C_O does require AC_PROG_CC.
2066
2067         From Erik Lindahl:
2068         * lib/depcomp (tru64): Some Tru64 compilers use `foo.d' and not
2069         `foo.o.d'.
2070         * m4/depend.m4 (_AM_DEPENDENCIES): Check to make sure compilation
2071         output is suitable for make.
2072
2073         * automake.texi (Macros): Document AM_PROG_AS.
2074         (Assembly Support): New node.
2075         * m4/Makefile.am (m4data_DATA): Added as.m4.
2076         * m4/as.m4: New file.
2077
2078         * automake.texi (Tags): Added uref to global tags.
2079
2080 2001-07-21  Tim Van Holder  <tim.van.holder@pandora.be>
2081
2082         * automake.in (handle_single_transform_list): Use $(DEPDIR)
2083         instead of hardcoding '.deps'.
2084         * m4/depend.m4 (AM_SET_DEPDIR): Sync with libtool's libdir check.
2085
2086 2001-07-20  Derek Price  <dprice@collab.net>
2087
2088         * m4/header.m4 (AM_CONFIG_HEADER): Create stamp-h files in the correct
2089         locations.
2090         * tests/dirname.test: New test.
2091         * tests/stamph2.test: New test.
2092         * tests/Makefile.am: Add new tests.
2093         * tests/Makefile.in: Regenerated.
2094
2095 2001-07-19  Tom Tromey  <tromey@redhat.com>
2096
2097         * automake.texi (Tags): Document GTAGS_ARGS.
2098         * lib/am/tags.am (GTAGS): Added GTAGS_ARGS.  From Shigio Yamaguchi.
2099
2100 2001-07-19  Tom Tromey  <tromey@redhat.com>
2101             Alexandre Duret-Lutz  <duret_g@epita.fr>
2102
2103         Fix for ccnoco.test, subobj8.test:
2104         * m4/Makefile.am (m4data_DATA): Added auxdir.m4.
2105         * tests/Makefile.am (XFAIL_TESTS): Removed ccnoco.test,
2106         subobj8.test.
2107         * m4/minuso.m4 (AM_PROG_CC_C_O): Use absolute path to compile.
2108         Use AM_AUX_DIR_EXPAND.
2109         * lib/compile: Handle case where `-o' argument is the name of an
2110         executable, not an object file.
2111         * m4/auxdir.m4: New file, from...
2112         * m4/missing.m4: ... here.  Moved AM_AUX_DIR_EXPAND.
2113         * automake.in (handle_single_transform_list, lang_c_rewrite):
2114         Require compile using `require_config_file'.
2115
2116 2001-07-19  Tom Tromey  <tromey@redhat.com>
2117
2118         * automake.texi (Program and Library Variables): Added X example
2119         for _LDADD.
2120
2121 2001-07-19  Tom Tromey  <tromey@redhat.com>
2122
2123         * automake.texi (Distributing): Updated to reflect new license.
2124
2125 2001-07-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
2126
2127         * automake.in (require_build_directory): New function, extracted
2128         from ...
2129         (handle_single_transform_list): ... here.
2130         (require_build_directory_maybe): New function.
2131         (handle_prograns, handle_libraries, handle_ltlibraries): Call
2132         require_build_directory_maybe() to ensure the subdirectory
2133         in which a target may lie will exist when the target is created.
2134         (handle_libraries, handle_ltlibraries): Use basename before
2135         checking library name.
2136         * lib/am/library.am (%LIBRARY%): Depend on %DIRSTAMP%.
2137         * lib/am/ltlibrary.am (%LTLIBRARY%): Likewise.
2138         * lib/am/program.am (%PROGRAM%): Likewise.
2139
2140 2001-07-18  Tim Van Holder  <tim.van.holder@pandora.be>
2141
2142         * m4/missing.m4: Reword comment.
2143
2144 2001-07-18  Pavel Roskin  <proski@gnu.org>
2145
2146         * automake.texi: Rename AM_DEPENDENCIES to _AM_DEPENDENCIES.
2147         * tests/gcj.test: Likewise.
2148         * tests/gcj2.test: Likewise.
2149         * tests/gcj3.test: Likewise.
2150
2151 2001-07-18  Tom Tromey  <tromey@redhat.com>
2152
2153         * lib/compile: Change how lockdir is computed.  If linking or
2154         compiling without `-o', just run the compiler.
2155
2156         * tests/Makefile.am (TESTS): Added ccnoco.test.
2157         (XFAIL_TESTS): Likewise.
2158         * tests/ccnoco.test: New file.
2159
2160 2001-07-17  Tom Tromey  <tromey@redhat.com>
2161
2162         * lib/ylwrap: Added special exception.
2163         * lib/py-compile: Added license.
2164         * lib/mdate-sh: Added special exception.
2165         * lib/elisp-comp: Added special exception.
2166         * lib/compile: Added special exception.
2167         * lib/depcomp: Added special exception.
2168
2169         Report from Motoyuki Kasahara:
2170         * tests/make.test: Use am__include.
2171         * tests/exsource.test: Use am__include.
2172         * m4/make.m4 (AM_MAKE_INCLUDE): Use am__include and am__quote.
2173         * automake.in (handle_languages): Use am__include and am__quote.
2174
2175         * m4/depend.m4 (AM_DEPENDENCIES): Renamed to _AM_DEPENDENCIES.
2176         * m4/init.m4: Updated callers.
2177
2178 2001-06-10  Tim Mooney  <mooney@dogbert.cc.ndsu.NoDak.edu>
2179
2180         * aclocal.in (parse_arguments, write_aclocal): Update Copyrights.
2181         * aclocal.in (scan_configure, add_file): Handle the full macro
2182         name even if it contains numbers, such as I18N.
2183
2184 2001-07-16  Tom Tromey  <tromey@redhat.com>
2185
2186         * automake.texi (Dependencies): Link to dependency tracking page.
2187         (Data): Mention dist_.
2188         (Clean): Mention clean heuristics.
2189         (Install): Mention nobase_.
2190
2191         * automake.texi (Program and Library Variables): Document _LINK.
2192
2193 2001-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
2194
2195         * automake.in (handle_libraries): Allow libraries to lie in
2196         a subdirectory by constraining only the basename to start
2197         with 'lib', not the whole path.
2198
2199 2001-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
2200
2201         * tests/subobj8.test: New file.
2202         * tests/Makefile.am (XFAIL_TESTS, TESTS): Add subobj8.test.
2203
2204 2001-07-16  Tom Tromey  <tromey@redhat.com>
2205
2206         Fix for PR automake/212:
2207         * lib/am/lisp.am (install-%DIR%LISP): Added missing `\'.
2208         (uninstall-%DIR%LISP): Likewise.
2209
2210 2001-07-15  Tom Tromey  <tromey@redhat.com>
2211
2212         * automake.in (usage): Rewrote code to handle columnization.
2213         From Alexey Mahotkin and Maxim Sinev.
2214
2215         Report from Ralf Corsepius:
2216         * automake.in (TARGET_PATTERN): Add `+' as valid character.
2217         (SUFFIX_RULE_PATTERN): Likewise.
2218         * tests/Makefile.am (TESTS): Added cxx.test.
2219         * tests/cxx.test: New file.
2220
2221         * lib/am/tags.am (distclean-tags): Remove files for gtags.
2222         From Shigio Yamaguchi.
2223
2224 2001-07-14  Steve M. Robbins  <steve@nyongwa.montreal.qc.ca>
2225
2226         * lib/am/distdir.am (distcheck): Emit diagnostic when files
2227         remain after "make uninstall".
2228
2229 2001-07-14  Tom Tromey  <tromey@redhat.com>
2230
2231         * lib/am/tags.am (.PHONY): Depend on GTAGS.  From Shigio Yamaguchi.
2232
2233         * lib/missing (makeinfo): Redirect stdout and stderr outside
2234         subshell.  From Alexandre Oliva.
2235
2236 2001-07-14  Akim Demaille  <akim@epita.fr>
2237
2238         * automake.in ($obsolete_rx): No need for `\b(foo\b|\bbar)\b',
2239         `\b(foo|bar)\b' is what we want.
2240         * aclocal.in: Likewise.
2241
2242 2001-07-14  Akim Demaille  <akim@epita.fr>
2243
2244         * m4/depend.m4 (AM_DEPENDENCIES): Don't define `depcpp' which is
2245         not used.
2246         Do not require the corresponding AC_PROG_CC as AC_PROG_CC is
2247         actually modified to require AM_DEPENDENCIES.
2248         Rename `confdir' as `conftest.dir' so that the configure trap
2249         remove it.
2250
2251 2001-07-04  Tom Tromey  <tromey@redhat.com>
2252
2253         Fix for nolink.test:
2254         * tests/Makefile.am (XFAIL_TESTS): Removed nolink.test.
2255         * lib/am/program.am (%PROGRAM%%EXEEXT%): Use %EXEEXT%.
2256         * automake.in (am_install_var): Only rewrite PROGRAMS if
2257         $seen_exeext.
2258         (make_paragraphs): Always define %EXEEXT%.
2259
2260 2001-07-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
2261
2262         * tests/nolink.test: New file.
2263         * tests/Makefile.am (TEST, XFAIL_TESTS): Add nolink.test.
2264
2265 2001-07-04  OKUJI Yoshinori  <okuji@gnu.org>
2266
2267         * automake.in (scan_texinfo_file): Add the second argument to
2268         `@syncodeindex' into @CLEAN_SUFFIXES, because the combined index
2269         itself may not be used directly.
2270
2271 2001-07-04  Tom Tromey  <tromey@redhat.com>
2272
2273         * missing: Updated.
2274         * lib/missing (makeinfo): Use subshell, not explicit sh
2275         invocation.
2276
2277         * automake.texi (Headers): Mention that we prefer uninstalled
2278         headers in _SOURCES.
2279         (ANSI): Mention cross-compilation limitation.
2280
2281 2001-07-03  Tom Tromey  <tromey@redhat.com>
2282
2283         * configure.in: Upped to 1.4i.
2284
2285         * configure.in: Released 1.4h.
2286
2287         * lib/config.guess, lib/config.sub: Updated.
2288
2289 2001-07-02  Tom Tromey  <tromey@redhat.com>
2290
2291         Fix for libtool2.test:
2292         * tests/libtool2.test: Use `rm -f' to placate maintainer-check.
2293         * lib/am/libtool.am (distclean-libtool): Conditional on TOPDIR.
2294         * automake.in (generate_makefile): Call handle_libtool
2295         unconditionally.
2296         * tests/Makefile.am (XFAIL_TESTS): Removed libtool2.test.
2297
2298         * tests/libtool2.test: Look for `.lo' files to be removed.
2299
2300         * tests/Makefile.am (XFAIL_TESTS): Added libtool2.test.
2301
2302         * tests/Makefile.am (TESTS): Removed dup.test.
2303         * tests/dup.test: Removed.
2304         * aclocal.in (scan_file): Don't give error for duplicate macro.
2305
2306 2001-07-01  Tom Tromey  <tromey@redhat.com>
2307
2308         * automake.texi (Program and Library Variables): Document
2309         subdir-objects.  Document fact that per-object flags override AM_
2310         flags.
2311         (Options): Likewise.
2312         (Yacc and Lex): Document YFLAGS, AM_YFLAGS, LFLAGS, AM_LFLAGS.
2313         (Multilibs): New node.
2314         (Macros): Documented missing macros.
2315         (Auxiliary Programs): New node.
2316
2317         * lib/missing (makeinfo): If makeinfo exists, and we're in --run
2318         mode, then simply fail.
2319
2320 2001-07-01  Tim Van Holder  <tim.van.holder@pandora.be>
2321
2322         * lib/ylwrap: Improve support for DOS paths (and paths
2323         containing backslashes in general).
2324
2325 2001-07-01  Tom Tromey  <tromey@redhat.com>
2326
2327         * lib/missing: Added special exception to license.
2328
2329         * missing: Updated.
2330         * lib/missing: Updated.  Added comment explaining configure.ac
2331         oddity.
2332
2333         * lib/depcomp: Reorder arguments to gcc3.
2334         From Per Oyvind Hvidsten.
2335
2336         * tests/Makefile.am (TESTS): Added libtool2.test.
2337         * tests/libtool2.test: New file.
2338
2339         * automake.texi (Program and Library Variables): Added example for
2340         _AR.
2341
2342 2001-06-29  Tom Tromey  <tromey@redhat.com>
2343
2344         * tests/cond11.test: Use `=', not `=='.
2345         * tests/cond12.test: Look for automake in build directory, not
2346         source directory.
2347
2348 2001-06-29  Richard Boulton  <richard@tartarus.org>
2349
2350         * automake.in (conditionals_true_when): Pass first parameters by
2351         reference, avoiding bug which put all parameters in @CONDS instead
2352         of @WHENS.  Report by Kalle Olavi Niemitalo.
2353         Take a single WHEN instead of an array of WHENS.
2354         Remove FIXME; can't now have an empty @WHENS.
2355         (conditional_is_redundant): New sub.
2356         (variable_conditions_reduce): Check whether each condition is
2357         implied by any of the other conditions (other those already
2358         discarded), rather than checking only against those already
2359         considered (and kept).  Also, fix sense of check: was keeping
2360         tautologous terms instead of discarding them.  Use
2361         conditional_is_redundant instead of conditionals_true_when.
2362         * tests/Makefile.am (TESTS): Added cond11.test and cond12.test.
2363         * tests/cond11.test: New file.
2364         * tests/cond12.test: New file.
2365
2366 2001-06-29  Raja R Harinath  <harinath@cs.umn.edu>
2367
2368         * automake.in (saw_sources_p): Work even if there are more
2369         than one header files, and more than of one type of header.
2370         * tests/Makefile.am (TESTS): Added new file.
2371         * tests/depend4.test: New file.
2372
2373 2001-06-28  Tom Tromey  <tromey@redhat.com>
2374
2375         * lib/am/libs.am (RANLIB): Don't define.
2376
2377 2001-06-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
2378
2379         * automake.in (am_install_var): Assign 1 to $first on
2380         first interation.
2381
2382 2001-06-23  Tom Tromey  <tromey@redhat.com>
2383
2384         Fix for yacc5.test:
2385         * lib/ylwrap: Changed usage.
2386         * lib/am/yacc.am: Rewrote to use new substitutions.
2387         * lib/am/lex.am: Likewise.
2388         * automake.in (handle_languages): Skip files whose language
2389         doesn't have a compiler.  Handle `define_flag' attribute.
2390         Changed '$' to "\$" to aid Emacs fontification.
2391         (struct): Added `rule_file'.  Removed `derived_autodep'.  Added
2392         `_target_hook' and `define_flag'.
2393         (yacc, yaccxx, lex, lexxx): Set `rule_file', `flags', `compile',
2394         and `compiler' attributes.  Removed `linker', `derived_autodep',
2395         and `ansi' attributes.  Added `define_flag'.
2396         (yacc, yaccxx): Added `_target_hook'.
2397         (saw_extension): Count number of times extension seen.
2398         (count_files_for_language): New sub.
2399         (saw_sources_p): Use it.
2400         (handle_single_transform_list): Allow language rewrite function
2401         to return a new source extension.  Call target_hook.
2402         (yacc_sources, lex_sources): Removed.
2403         (initialize_per_input): Don't initialize yacc_sources or
2404         lex_sources.
2405         (lang_yacc_rewrite): Rewrote.
2406         (lang_yaccxx_rewrite): Likewise.
2407         (lang_lex_rewrite): Likewise.
2408         (lang_lexxx_rewrite): Likewise.
2409         (output_yacc_build_rule): Removed.
2410         (output_lex_build_rule): Removed.
2411         (lang_yacc_finish): Removed build rule generation.
2412         (lang_lex_finish): Likewise.
2413         (DASH_D_PATTERN): New global.
2414         (lang_yacc_target_hook): New function.
2415         (_target_hook): New function.
2416         (register_language): Default `define_flag'.
2417         * tests/yacc5.test: Updated test.
2418         * tests/yacc4.test: Exit with status 77 if bison doesn't work.
2419         * tests/yacc3.test: Remove bogus `make' invocation.  Added test
2420         for all YFLAGS variables.
2421
2422 2001-06-20  Tom Tromey  <tromey@redhat.com>
2423
2424         * tests/yacc5.test: Check for per-executable YFLAGS.
2425
2426 2001-06-19  Tom Tromey  <tromey@redhat.com>
2427
2428         * tests/Makefile.am (TESTS): Added yacc5.test.
2429         * tests/yacc5.test: New file.
2430
2431 2001-06-17  Tom Tromey  <tromey@redhat.com>
2432
2433         * automake.in (require_file_internal): Check for already-required
2434         file after searching for it, and only if it is not found.  Don't
2435         use `readlink' when checking for dangling symlink.  Work if
2436         --force-missing specified.
2437         * tests/acoutput2.test: Also test --force-missing.
2438
2439         Fix for libtool.test:
2440         * automake.in (generate_makefile): Call handle_libtool.
2441         (handle_libtool): New sub.
2442         (handle_compile): Don't read `libtool' file.
2443
2444         * tests/acoutput2.test: New file.
2445         * tests/Makefile.am (TESTS): Added acoutput2.test.
2446
2447 2001-06-15  Tom Tromey  <tromey@redhat.com>
2448
2449         * tests/Makefile.am (TESTS): Added libtool.test.
2450         * tests/libtool.test: New file.
2451
2452 2001-06-14  Tom Tromey  <tromey@redhat.com>
2453
2454         Fix some lisp bugs reported by Bruno Haible:
2455         * lib/am/lisp.am (uninstall-%DIR%LISP): Added DESTDIR to the
2456         echo.
2457         (install-%DIR%LISP): Handle case where lispdir is not defined.
2458         (uninstall-%DIR%LISP): Likewise.
2459         (.el.elc): Added `else' clause.
2460
2461         Fix for bug reported by Steve M. Robbins:
2462         * automake.in (handle_single_transform_list): When building a file
2463         from a subdirectory, continue to use `AM_' prefix.
2464         * tests/Makefile.am (TESTS): Added subobj7.test.
2465         * tests/subobj7.test: New file.
2466
2467         * lib/am/configure.am ($(top_builddir)/config.status): Added
2468         $(top_builddir) prefix to work around problems with some vendor
2469         makes.  From Nicolas Joly.
2470
2471         * automake.in (yacc_lex_finish_helper): Find ylwrap in
2472         top_srcdir.  From Tim Van Holder.
2473         * tests/Makefile.am (TESTS): Added yacc6.test.
2474         * tests/yacc6.test: New file.
2475
2476 2001-06-14  Tim Van Holder  <tim.van.holder@pandora.be>
2477
2478         * tests/defs, tests/installsh.test: Properly support
2479         DOS-style paths.
2480
2481 2001-06-14  Tom Tromey  <tromey@redhat.com>
2482
2483         * tests/Makefile.am (TESTS): Added mdate4.test.
2484         * tests/mdate4.test: New file.
2485
2486         * aclocal.in (scan_m4_files): Removed unused variable.
2487
2488 2001-06-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
2489
2490         * aclocal.in (scan_m4_files): Tweak the building of &search so
2491         that multiple macro names can be found on the same line.  Ensure
2492         we match whole macro name, not only substrings.
2493
2494 2001-06-12  Tom Tromey  <tromey@redhat.com>
2495
2496         * automake.texi (ANSI): Minor clarification.
2497         (Other GNU Tools): Don't mention Guile.
2498         (Guile): Removed.
2499         (Java Support): Mention file extensions.
2500         (Man pages): Mention dist_.  Don't mention info pages.
2501
2502 2001-06-11  Tom Tromey  <tromey@redhat.com>
2503
2504         * automake.texi (Program variables): Document AM_CPPFLAGS.
2505         Deprecate INCLUDES.
2506         (Java Support): Document AM_GCJFLAGS.
2507         (Support for Other Languages): Removed `fixme'; added link to
2508         suffix rule handling.
2509
2510         * automake.texi (Program and Library Variables): Document _LIBADD,
2511         _LDADD, _LDFLAGS, _AR, and _DEPENDENCIES.
2512
2513 2001-06-11  Kevin Dalley  <kevind@rahul.net>
2514
2515         * missing: Support configure.ac.
2516
2517 2001-06-08  Tom Tromey  <tromey@redhat.com>
2518
2519         * tests/version4.test: New file.
2520         * automake.in (version_check): New sub.
2521         (handle_options): Use it.
2522         * tests/Makefile.am (AUTOMAKE_OPTIONS): Removed.
2523         (TESTS): Added version4.test.
2524         * m4/Makefile.am (AUTOMAKE_OPTIONS): Removed.
2525         * Makefile.am (AUTOMAKE_OPTIONS): Remove `gnits'.
2526
2527 2001-06-04  Kevin Dalley  <kevind@rahul.net>
2528
2529         * lib/am/dejagnu.am (site.exp): Fix typo.
2530
2531 2001-06-02  Tom Tromey  <tromey@redhat.com>
2532
2533         * automake.in (variable_conditions_sub): Move parent-only code
2534         from here...
2535         (variable_conditions): ... to here.
2536         (variable_conditions_sub): Include this variable's conditions in
2537         the resulting condition list.
2538         * tests/Makefile.am (XFAIL_TESTS): Removed ltdeps.test.
2539
2540 2001-06-01  Tom Tromey  <tromey@redhat.com>
2541
2542         * tests/Makefile.am (XFAIL_TESTS): Added ltdeps.test.
2543         (TESTS): Likewise.
2544         * tests/ltdeps.test: New file.  Report from Lars J. Aas.
2545
2546 2001-05-31  Tom Tromey  <tromey@redhat.com>
2547
2548         * automake.texi (Alternative): New node.
2549         (Macros): Use new name for gcc.
2550         (Java Support): Likewise.
2551         (Dependencies): Rewrote.
2552         (Invoking Automake): (Re-)document -i, --ignore-deps, and
2553         --include-deps.
2554
2555         * automake.texi (Top level): Removed erroneous spaces.  Documented
2556         MAKE and MAKEFLAGS.
2557
2558 2001-05-29  Tom Tromey  <tromey@redhat.com>
2559
2560         * m4/init.m4 (AM_INIT_AUTOMAKE): Allow any AM_*FLAGS variable.
2561
2562         * automake.texi (Include): Rewrote.
2563         (Suffixes): Remove Java example.
2564         (Java): Added more explanation.  Document variables.
2565         (Uniform): Mention JAVA as a primary.
2566         (Python): Updated for new Python support.
2567         (Sources): Added a weak example.
2568
2569         * lib/am/java.am (class%DIR%.stamp): Use AM_JAVACFLAGS.
2570
2571         * automake.texi (A Program): Mention `check' prefix.
2572         (Program and Library Variables): New node.
2573         (Texinfo): Document UPDATED-MONTH, MAKEINFOFLAGS, and
2574         AM_MAKEINFOFLAGS.
2575         (etags): Mention per-program flags.
2576         (Tests): Document AM_RUNTESTFLAGS; added sectioning; more
2577         updates.
2578
2579         * lib/am/texinfos.am (.PHONY): Always list uninstall-info-am and
2580         install-info-am.
2581
2582 2001-05-28  Tom Tromey  <tromey@redhat.com>
2583
2584         * m4/Makefile.am (MAINT_CHARSET): Removed.
2585         * Makefile.am (MAINT_CHARSET): Removed.
2586         * automake.in (maint_charset, dist_charset): Removed.
2587         (local_maint_charset): Removed.
2588         (initialize_per_input): Don't use maint_charset.
2589         (handle_dist): Don't compute maint_charset or check DIST_CHARSET.
2590
2591         * lib/am/texibuild.am (.%SUFFIX%.info): Use MAKEINFOFLAGS and
2592         AM_MAKEINFOFLAGS.
2593         (.%SUFFIX%.dvi): Likewise.
2594         (.%SUFFIX%): Likewise.
2595
2596 2001-05-27  Tom Tromey  <tromey@redhat.com>
2597
2598         * automake.in (handle_multilib): Only add multilib support code at
2599         top level.
2600         * lib/am/multilib.am: Handle invocation of *-multi targets
2601         differently for SUBDIRS and non-SUBDIRS Makefiles.
2602         * m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
2603         Only add multilib code when the Makefile in question is actually
2604         rebuilt.
2605
2606         * lib/am/dejagnu.am (check-DEJAGNU): Added AM_RUNTESTFLAGS.
2607
2608 2001-05-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
2609
2610         * automake.in (handle_single_transform_list): Skip unknown
2611         extensions.
2612
2613 2001-05-25  Tom Tromey  <tromey@redhat.com>
2614
2615         * m4/init.m4 (AM_INIT_AUTOMAKE): Ignore AM_RUNTESTFLAGS.
2616
2617 2001-05-24  Tom Tromey  <tromey@redhat.com>
2618
2619         * automake.in (handle_texinfo_helper): Find mdate-sh in current
2620         directory in some situations.
2621
2622         * automake.in (generate_makefile): Better explanation for ansi2knr
2623         fix.
2624
2625 2001-05-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
2626
2627         * automake.in (handle_languages): Skip unknown extensions.
2628         (derive_suffix): Check whether $extension_map{$source_ext}
2629         is undefined, not empty.
2630
2631 2001-05-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
2632
2633         * automake.in (read_am_file): Ignore trailing backslash on
2634         comment lines.
2635
2636 2001-05-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
2637
2638         * automake.in (ASSIGNMENT_PATTERN): Forbid : and + in variable names.
2639
2640 2001-05-21  Akim Demaille  <akim@epita.fr>
2641
2642         * automake.texi (Macros): Explain the ``AC_PROG_LEX invoked
2643         multiple times'' warning.
2644
2645 2001-05-20  Tom Tromey  <tromey@redhat.com>
2646
2647         * configure.in: Updated to 1.4g.
2648
2649         * configure.in: Updated to 1.4f.
2650
2651         * Makefile.am (EXTRA_DIST): Added ChangeLog.2000.
2652
2653         * lib/ansi2knr.c: New version.
2654
2655         * Makefile.am (FETCHFILES): Added ansi2knr.c.
2656         (fetch): Likewise.
2657
2658 2001-05-19  Tom Tromey  <tromey@redhat.com>
2659
2660         * config.guess, config.sub: New versions from FSF.
2661
2662         * Makefile.am (fetch): Compare against files in srcdir.
2663
2664         For for ansi2knr report from Harlan Stenn:
2665         * automake.in (generate_makefile): Run handle_compile before
2666         handle_languages.
2667
2668 2001-05-18  Tom Tromey  <tromey@redhat.com>
2669
2670         * automake.in: Reverted erroneous checkin.
2671
2672 2001-05-18  Akim Demaille  <akim@epita.fr>
2673
2674         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Be robust
2675         to missing `install-info'.
2676
2677 2001-05-17  Tom Tromey  <tromey@redhat.com>
2678
2679         * automake.in (lang_c_finish): Use `rm -f'.
2680
2681         * automake.in (lang_c_finish): Remove _.c file if ansi2knr fails.
2682         * tests/Makefile.am (TESTS): Added new file.
2683         * tests/ansi5.test: New file.
2684
2685 2001-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2686
2687         * lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
2688         STRIP is not empty.
2689         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
2690         to install-sh unconditionally.  Don't set INSTALL_STRIP_PROGRAM_ENV.
2691         * automake.texi (Requirements): Document the use of the STRIP
2692         variable in cross-compilation environments.
2693
2694 2001-05-17  Tom Tromey  <tromey@redhat.com>
2695
2696         * m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
2697         to no dependency tracking.
2698         * tests/Makefile.am (TESTS): Added depcomp2.test.
2699         * tests/depcomp2.test: New file.  From Pavel Roskin.
2700
2701         * lib/depcomp (aix): Bug fix and simplification from Larry Jones.
2702
2703         * lib/depcomp (tru64): New dependency tracking mode.
2704
2705         Fix for PR automake/159:
2706         * lib/depcomp (aix): Rewrote.
2707         (sgi): Likewise.
2708
2709         Fix for PR automake/174:
2710         * tests/Makefile.am (XFAIL_TESTS): Removed comment3.test.
2711         * automake.in (read_am_file): Warn if `#' is at start of rule.
2712
2713 2001-05-16  Tom Tromey  <tromey@redhat.com>
2714
2715         For PR automake/174:
2716         * tests/Makefile.am (TESTS): Added comment3.test.
2717         (XFAIL_TESTS): Likewise.
2718         * tests/comment3.test: New file.
2719
2720         Fix for PR automake/175:
2721         * tests/Makefile.am (XFAIL_TESTS): Removed make.test.
2722         * m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
2723         `Leaving directory' messages.
2724
2725         For PR automake/175:
2726         * tests/Makefile.am (XFAIL_TESTS): Added make.test.
2727         * tests/make.test: Run test with `make -w'.
2728
2729         * tests/Makefile.am (TESTS): Removed maintclean.test.
2730         * lib/am/clean.am (maintainer-clean-generic): Don't remove
2731         Makefile.in.
2732         * lib/am/configure.am (maintainer-clean-am): Removed.
2733         (maintainer-clean-conf): Removed.
2734         * tests/maintclean.test: Removed.
2735
2736 2001-05-15  Tom Tromey  <tromey@redhat.com>
2737
2738         Fix for PR automake/177:
2739         * Makefile.am (maintainer-clean): Set perllibdir before invoking
2740         automake or aclocal.
2741
2742         Fix for maintclean.test:
2743         * tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
2744         * lib/am/clean.am (distclean-generic): Don't remove config.cache
2745         or config.log.
2746         (distclean, maintainer-clean): Moved to...
2747         * lib/am/configure.am: ... here.
2748         (distclean): Remove config.cache and config.log.
2749         (maintainer-clean): Removed.
2750         (maintainer-clean-conf): New target.
2751         (maintainer-clean-am): New target.
2752
2753         * tests/Makefile.am (TESTS): Added maintclean.test.
2754         (XFAIL_TESTS): Likewise.
2755         * tests/maintclean.test: New file.
2756
2757         Fixes PR automake/175:
2758         * tests/target-cflags.test: Use $needs_gnu_make.
2759         * tests/exsource.test: Use $needs_gnu_make.
2760         * tests/make.test: Require GNU make.
2761         * tests/defs (needs_gnu_make): Compute.
2762
2763 2001-05-14  Tom Tromey  <tromey@redhat.com>
2764
2765         * lib/ylwrap: Fixed quoting on regular expression.  Fixes
2766         yacc4.test.
2767
2768         Fix for texinfo10.test.
2769         * tests/Makefile.am (XFAIL_TESTS): Remove texinfo10.test.
2770         * lib/am/texinfos.am: Use LOCAL-TEXIS liberally.
2771         * automake.in (handle_texinfo_helper): New sub.
2772         (handle_texinfo): Rewrote.  Now defines LOCAL-TEXIS.
2773         * tests/texinfo10.test: Added more cases.
2774
2775         Fix for yaccvpath.test:
2776         * tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
2777         * lib/am/distdir.am (distdir): Always look for file in build
2778         directory first.
2779         * lib/ylwrap: Quote the `#line' regular expression.
2780         * lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
2781         change; don't run sed on the generated file.
2782         * tests/yaccvpath.test: Create new parser in srcdir.  Added test
2783         to make sure parser will be rebuilt at dist time.
2784
2785 2001-05-13  Pavel Roskin  <proski@gnu.org>
2786
2787         * automake.in ($IGNORE_PATTERN): Allow spaces before comments
2788         beginning with `##'.
2789         * automake.texi (General Operation): Document it.
2790
2791 2001-05-13  Tom Tromey  <tromey@redhat.com>
2792
2793         Reported by Rainer Orth:
2794         * lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
2795         TOPDIR_P.
2796         * tests/Makefile.am (TESTS): Added distname.test.
2797         * tests/distname.test: New file.
2798
2799         * Makefile.am (dist_pkgdata_DATA): Removed.
2800
2801         * tests/defs: Find files to copy in lib/.
2802         * automake.in (perllibdir): Set to Automake directory.
2803         * ansi2knr.c, ansi2knr.1: Removed.
2804         * Makefile.am (dist_am_DATA): Removed.
2805         (amdir): Removed.
2806         (maintainer-check): Look for lib/am/*.am.  Expect 28 lines of
2807         diffs.
2808         (scriptdir): Removed.
2809         (dist_script_DATA): Likewise.
2810         (install-data-hook): Likewise.
2811         (installcheck-local): Likewise.
2812         (TAGS_FILES): Removed amfiles.
2813         (dist_pkgdata_DATA): Removed ansi2knr.c and ansi2knr.1.
2814         * tests/installsh.test (AUTOMAKE): Use --libdir, not --amdir, and
2815         point it to the right directory.
2816         * ansi2knr.am, check.am, clean-hdr.am, clean.am, comp-vars.am,
2817         compile.am, configure.am, data.am, dejagnu.am, depend.am,
2818         depend2.am, distdir.am, footer.am, header-vars.am, header.am,
2819         install.am, java.am, lang-compile.am, lex.am, library.am, libs.am,
2820         libtool.am, lisp.am, ltlib.am, ltlibrary.am, mans-vars.am,
2821         mans.am, multilib.am, program.am, progs.am, python.am,
2822         remake-hdr.am, scripts.am, subdirs.am, tags.am, texi-vers.am,
2823         texibuild.am, texinfos.am, yacc.am: Moved to lib/am/.
2824         * configure.in (AC_OUTPUT): Added lib/am/Makefile.
2825         (AUTOMAKE): Use --libdir, not --amdir.
2826         Ues AC_CONFIG_AUX_DIR.
2827         * lib/Makefile.am (SUBDIRS): Added `am'.
2828         (scriptdir): New macro.
2829         (dist_script_DATA): Likewise.
2830         (dist_pkgdata_DATA): Likewise.
2831         (install-data-hook): New target.
2832         (installcheck-local): Likewise.
2833         * lib/am/Makefile.in: New file.
2834         * lib/am/Makefile.am: Removed everything except amdir and
2835         dist_am_DATA.
2836
2837 2001-05-13  Akim Demaille  <akim@epita.fr>
2838
2839         * automake.in ($pkgdata_dir): Rename as...
2840         ($libdir): this.
2841         ($am_dir): Remove, replace its uses with $libdir.
2842         (&parse_arguments): Replace --amdir with --libdir.
2843         * automake.texi (Invoking Automake): Document --libdir, not
2844         --amdir.
2845         * tests/defs (AUTOMAKE): Use --libdir, not --amdir.
2846
2847 2001-05-13  Tom Tromey  <tromey@redhat.com>
2848
2849         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
2850         not AMDEP.
2851         * m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
2852         Correctly look at AMDEP_TRUE, not AMDEP.
2853
2854         Report from Robert Boehne:
2855         * tests/Makefile.am (TESTS): Added depend2.test.
2856         * tests/depend2.test: New file.
2857
2858 2001-05-13  James Henstridge  <james@daa.com.au>
2859
2860         * m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
2861         Point pythondir at site-packages directory.  Rename
2862         PYTHON_SITE_PACKAGE to pkgpythondir.  Rename PYTHON_SITE_EXEC to
2863         pyexecdir.  Removed package/module argument.  Removed
2864         PYTHON_SITE_INSTALL.  Added version checking.
2865
2866 2001-05-14  Jim Meyering  <meyering@lucent.com>
2867
2868         * automake.in (macro_define): Change one remaining use of
2869         `variable_dump' to `macro_dump'.
2870
2871 2001-05-13  Tom Tromey  <tromey@redhat.com>
2872
2873         * m4/depend.m4 (AM_DEPENDENCIES): Prefer gcc3 over gcc for objc
2874         and gcj.
2875
2876 2001-05-13  Akim Demaille  <akim@epita.fr>
2877
2878         * automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext)
2879         (&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp)
2880         (&am_primary_prefixes): Use `map' rather than `grep'.
2881
2882 2001-05-13  Akim Demaille  <akim@epita.fr>
2883
2884         * automake.in (Language): Set config_vars for yacc, yaccxx, lex,
2885         lexxx, asm.
2886         (&lang_c_finish, &lang_yacc_finish, &lang_lex_finish): Simplify.
2887         (&lang_asm_finish): Remove, set asm's finisher to C's one.
2888
2889 2001-05-13  Akim Demaille  <akim@epita.fr>
2890
2891         * lang-compile.am: New file, loaded once per language.
2892         * depend2.am: Move definitions loaded once per language in the
2893         aforementioned file.
2894         * automake.in (&handle_languages): Load it.
2895         (&lang_ppf77_finish, &lang_ratfor_finish): Remove as it's now
2896         handled by lang-compile.am.
2897
2898 2001-05-13  Tom Tromey  <tromey@redhat.com>
2899
2900         * tests/Makefile.am (TESTS): Added python.test.
2901         * tests/python.test: New file.
2902         * automake.in (handle_languages): Use
2903         config_aux_dir_set_in_configure_in.
2904         (handle_python): Correctly mention AM_PATH_PYTHON.  Use
2905         py-compile, not py_comp.  Define py_compile macro.
2906
2907 2001-05-13  Derek Price  <dprice@openavenue.com>
2908
2909         * automake.in (require_file_with_conf_line,
2910         require_file_with_line, require_file): Pass a @require_file_path
2911         of $relative_dir instead of '.' to require_file_internal so that
2912         all the special casing of '.' can be removed elsewhere.
2913         (require_config_file, require_conf_file_with_line,
2914         require_conf_file_with_conf_line): Remove special casing for '.'
2915         and make sure $config_aux_dir is maintained properly.
2916         (require_file_internal): Remove special casing of '.' and set
2917         @require_file_path when missing files are added.
2918         (maybe_push_required_file): Remove special casing of '.'
2919         (handle_dependencies): Remove a workaround for a bug now fixed
2920         and remove $config_aux_dir special casing.
2921         (handle_configure): Remove special casing for $config_aux_dir
2922         (handle_python): Ditto.
2923         (yacc_lex_finish_helper): Change $config_aux_dir switch to
2924         switch on the value of $config_aux_dir_set_in_configure_in.
2925         (handle_texinfo): Ditto.
2926         (scan_one_configure_file): Set $config_aux_dir and
2927         $config_aux_dir_set_in_configure_in properly so special casing
2928         on the value of $config_aux_dir can be removed elsewhere.
2929         * tests/depcomp.test: New file.
2930         * tests/confsub.test: Look for depcomp in $(top_srcdir) instead of the
2931         first subdir containing a C file.
2932         * tests/libobj2.test: Ditto.
2933         * tests/Makefile.am (TESTS): Added 'depcomp.test'.
2934
2935 2001-05-12  Tom Tromey  <tromey@redhat.com>
2936
2937         * tests/gcj.test: Updated for gcj dependency tracking.
2938         * tests/gcj2.test: Likewise.
2939
2940         Fixes PR automake/169.
2941         * m4/depend.m4 (AM_DEPENDENCIES): Handle GCJ.  Don't assume gcc
2942         style for OBJC.
2943         * automake.in (java): Added autodep entry.
2944         * tests/Makefile.am (TESTS): Added gcj3.test.
2945         * tests/gcj3.test: New file.
2946
2947 2001-05-12  Raja R Harinath  <harinath@cs.umn.edu>
2948
2949         * automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
2950         stop at the first '='.
2951         * tests/Makefile.am (TESTS): Added vars.test.
2952         * tests/vars.test: New file.
2953
2954 2001-05-12  Akim Demaille  <akim@epita.fr>
2955
2956         * automake.in (&handle_single_transform_list): Simplify
2957         computation of $object and $this_obj_ext.
2958         * tests/lex3.test: Merge into...
2959         * tests/lex.test: here.
2960         * tests/pr19.test: Improve and rename as...
2961         * tests/lex3.test: this.
2962
2963 2001-05-09  Tom Tromey  <tromey@redhat.com>
2964
2965         * automake.in (read_am_file): Correctly compute $saw_bk.
2966         (scan_autoconf_files): Ensure configure_dist_common is always
2967         set.
2968         * tests/defs (AUTOMAKE): Added --Werror.
2969
2970 2001-05-09  Pavel Roskin  <proski@gnu.org>
2971
2972         * automake.in (define_compiler_variable): Escape $(LIBTOOL) in
2973         double quotes.
2974
2975 2001-05-09  Tom Tromey  <tromey@redhat.com>
2976
2977         * tests/werror.test: Use `rm -f'.
2978
2979 2001-05-09  Akim Demaille  <akim@epita.fr>
2980
2981         * automake.in (&am_line_warning): Invoke `am_line_error', not itself.
2982
2983 2001-05-09  Akim Demaille  <akim@epita.fr>
2984
2985         * automake.in: Remove some code left from bad patches.
2986         (&handle_dependency): Remove, for the same reason.
2987
2988 2001-05-09  Akim Demaille  <akim@epita.fr>
2989
2990         * automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET.
2991         (&handle_tests_dejagnu, &define_standard_variables): Don't.
2992         (&define_standard_variables): Don't transform %top_builddir% since...
2993         * header-vars.am: Use %TOPDIR% instead.
2994
2995 2001-05-09  Akim Demaille  <akim@epita.fr>
2996
2997         * automake.in (@objects): Remove, unused.
2998         Remove all the code related to it, and to former `$(OBJECTS)'.
2999
3000 2001-05-08  Tom Tromey  <tromey@redhat.com>
3001
3002         For PR automake/29:
3003         * ylwrap: Handle arguments to program.  Remove old code that tried
3004         to avoid absolute paths and add new code to do it in all cases.
3005         Removed ancient logic that tried to deal with relative path.
3006         * tests/Makefile.am (TESTS): Added yacc4.test.
3007         * tests/yacc4.test: New file.
3008
3009         Fix for PR automake/149 and werror.test:
3010         * automake.in (require_file_internal): Use am_line_warning or
3011         am_conf_line_warning when suppressing error.
3012         (am_line_warning): New sub.
3013         (am_conf_line_warning): Save and restore warning signal.
3014         * tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
3015
3016         Fix for PR automake/36:
3017         * tests/Makefile.am (TESTS): Added asm.test.
3018         * tests/asm.test: New file.
3019         * automake.in (asm): Use ASFLAGS and AS.
3020         (lang_asm_finish): New sub.
3021
3022         * automake.in (read_am_file): Removed debugging code.
3023
3024         For PR automake/149:
3025         * tests/Makefile.am (TESTS): Added werror.test.
3026         (XFAIL_TESTS): Likewise.
3027         * tests/werror.test: New file.
3028
3029         * automake.in (conditional_true_when): Don't return if we see
3030         `TRUE'.
3031
3032         * tests/objc.test: Removed.
3033         * tests/Makefile.am (XFAIL_TESTS): Removed objc.test.
3034         (TESTS): Likewise.
3035
3036         * automake.in (subst): New sub.
3037         (handle_languages): Use it.
3038         (output_lex_build_rule): Likewise; also use _am_quote.
3039         (check_libobjs_sources): Likewise.
3040         (make_paragraphs): Use subst.
3041
3042         * automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
3043         problem.
3044
3045         * automake.in (file_contents_internal): Prototype now `$$%'.
3046         (register_language): Prototype now `%'.
3047
3048         Fixes test subobj6.test and PR automake/160:
3049         * tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
3050         * compile.am (mostlyclean-compile): Added MOSTLYRMS.
3051         (distclean-compile): Added DISTRMS.
3052         * tests/subobj6.test (wish_SOURCES): Updated to reflect
3053         `mostlyclean' use; added test for non-subdir case.
3054         * automake.in (compile_clean_files): New global.
3055         (MOSTLY_CLEAN, DIST_CLEAN): New constants.
3056         (initialize_per_input): Initialize compile_clean_files.
3057         (handle_single_transform_list): Set compile_clean_files entries.
3058         (handle_compile): Handle compilation cleanups.
3059
3060 2001-05-08  Lars J. Aas  <larsa@sim.no>
3061
3062         * automake.texi (Canonicalizing Automake macros): Document not
3063         canonicalizing strudels (@) anymore.
3064
3065 2001-05-08  Akim Demaille  <akim@epita.fr>
3066
3067         * distdir.am (dist-all): Build all the flavors using a single
3068         distdir.
3069
3070 2001-05-08  Akim Demaille  <akim@epita.fr>
3071
3072         * automake.in (&file_contents_internal): Apply the @cond_stack to
3073         the rules and assignments.
3074         Don't rely on `$.' as it's biased by &make_paragraphs.
3075         Don't remove backslashes in variable values.
3076
3077 2001-05-08  Akim Demaille  <akim@epita.fr>
3078
3079         * automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
3080         ($RULE_PATTERN): Use that from `&make_paragraphs'.
3081         ($MACRO_PATTERN): Just catch the name of a macro.
3082         ($BOGUS_MACRO_PATTERN): Remove.
3083         ($ASSIGNMENT_PATTERN): New.
3084         (&file_contents_internal, &make_paragraphs): Adjust.
3085         (&macro_define): Catch bad macro names.
3086         (&cond_stack_endif): Better error message.
3087         (&file_contents_internal): Don't remove backslashes in variable
3088         values.
3089         (&macro_define): Do it for `+=' user variables.
3090         (&define_standard_variables): Use `undef' instead of a dummy
3091         variable.
3092         (&make_paragraph): Be sure not to chop the trail of hash only
3093         lines: adjust the `##' regexp.
3094         (&rule_define): Fix a bug: don't read $1 but $target.
3095         * tests/condincl.test: Strengthen.
3096
3097 2001-05-08  Akim Demaille  <akim@epita.fr>
3098
3099         * automake.in (Language): Add attributes `Name' and `config_vars'.
3100         (&finish): Work properly if there is no _finish.
3101         (Automake): Register language Names and AC_SUBST dependencies.
3102         Register Fortran 77 variables upon which ratfor and ppf77 depend.
3103         (&handle_languages): Once per language, invoke
3104         `define_linker_variables', and check its config_vars.
3105         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
3106         (&lang_java_finish): Remove.
3107         (&lang_ppf77_finish, &lang_ratfor_finish): Adjust.
3108
3109 2001-05-08  Akim Demaille  <akim@epita.fr>
3110
3111         * automake.in (&file_contents_internal): Accept $IS_AM.
3112         (&handle_compile, &define_standard_variables, &file_contents): Adjust.
3113
3114 2001-05-08  Akim Demaille  <akim@epita.fr>
3115
3116         * automake.in (am_install_var): Use `next' instead of `if' on the
3117         body of $X loop.
3118
3119 2001-05-08  Akim Demaille  <akim@epita.fr>
3120
3121         * automake.in (Language): Add attributes `lder' and `ld'.
3122         (&register_language): Specify for cxx, objc, f77, gcj.
3123         (&define_linker_variable): New.
3124         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
3125         (&lang_java_finish): Adjust.
3126         (&libtool_compiler): Remove.
3127
3128 2001-05-08  Akim Demaille  <akim@epita.fr>
3129
3130         * automake.in (&handle_lib_objects_cond): Don't take $LEX_SEEN as
3131         argument, as you don't use it.
3132         Hence...
3133         (&handle_lib_objects): Don't take $LEX_SEEN as argument, as you
3134         don't use it.
3135         Hence...
3136         (&handle_programs): Don't mess with %lex_sources, as you don't use
3137         it.
3138
3139 2001-05-08  Akim Demaille  <akim@epita.fr>
3140
3141         * automake.in (Language): Add attribute `link'.
3142         (&register_language): Specify for cxx, objc, f77, gcj.
3143         (&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
3144         (&lang_java_finish): Adjust.
3145
3146 2001-05-08  Akim Demaille  <akim@epita.fr>
3147
3148         * automake.in (&define_compiler_variables): Use only $LANG as
3149         argument.
3150         (&handle_languages): Adjust.
3151
3152 2001-05-08  Akim Demaille  <akim@epita.fr>
3153
3154         * automake.in (&define_program_variable): Remove.
3155         (&scan_one_autoconf_file): Skip MAKEINFO when found in an
3156         AM_MISSING_PROG.
3157         (&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
3158         * texinfos.am: Do it.
3159
3160 2001-05-08  Akim Demaille  <akim@epita.fr>
3161
3162         * automake.in (&handle_tests_dejagnu): Don't define EXPECT and
3163         RUNTEST.
3164         * dejagnu.am: Do it.
3165         (site.exp): Use `if'.
3166
3167 2001-05-08  Akim Demaille  <akim@epita.fr>
3168
3169         * automake.in: Formatting changes.
3170         (variable_dump, variables_dump): Rename as...
3171         (macro_dump, macros_dump): these.
3172
3173 2001-05-08  Akim Demaille  <akim@epita.fr>
3174
3175         Support `if !COND', `else COND', `end COND'.
3176
3177         * automake.texi (Conditionals): Document it.
3178         * automake.in ($WHITE_PATTERN, $MACRO_PATTERN, $BOGUS_MACRO_PATTERN)
3179         ($GNITS_VERSION_PATTERN, $INCLUDE_PATTERN): Use `\d' and `\s'.
3180         ($IF_PATTERN, $ELSE_PATTERN, $ENDIF_PATTERN): Likewise, and accept
3181         a leading `!' before the condition.
3182         (&handle_options): Use `\d'.
3183         (&cond_stack_if, &cond_stack_else, &&cond_stack_endif): New.
3184         (&read_am_file, &file_contents_internal): Use them.
3185         (&transform): No longer substitute `%!COND%', forcing the use of
3186         `! %?COND%'.
3187         * ansi2knr.am, lex.am, tags.am, texinfos.am, yacc.am: Adjust.
3188
3189 2001-05-08  Akim Demaille  <akim@epita.fr>
3190
3191         Uniform handling of per-object compilation rules.
3192         Note: Automake is repaired.
3193
3194         * automake.in (&handle_languages): Output per object rules for all
3195         the objects, not only for those which language supports dependency
3196         tracking.
3197         Fix Automake: when outputting per-object rules, use `-o' if the
3198         language has no `output_flag', as it's really needed.
3199         (&handle_single_transform_list): Instead of special casing files
3200         which need per object rules but which language don't support
3201         dependency tracking, keep them in the queue for processing by
3202         `&handle_languages'.
3203
3204 2001-05-08  Akim Demaille  <akim@epita.fr>
3205
3206         * automake.in (&handle_languages): `ext-compile.am' and
3207         `depend2.am' are now equivalent for generic rules: output only the
3208         latter.
3209         * ext-compile.am: Remove.
3210
3211 2001-05-08  Akim Demaille  <akim@epita.fr>
3212
3213         Note: This patch breaks Automake.  Repaired within two patches.
3214
3215         * automake.in (Language): Replace the attribute `output_arg' with
3216         `compile_flag' and `output_flag'.
3217         (Automake): Adjust language registrations.
3218         (&handle_languages): Transform `-c' and `-o' for both suffix and
3219         per object rules, instead of `OUTARG' and `LTOUTARG' only for
3220         generic rules.
3221         (&handle_single_transform_list): Adjust to `compile_flag' and
3222         `output_flag'.
3223         * depend2.am, ext-compile.am: Use `%-c%' and `%-o%'.
3224
3225 2001-05-08  Akim Demaille  <akim@epita.fr>
3226
3227         * automake.in (&handle_languages): Don't transform %COMPILER%.
3228         Use `$lang->compiler' instead of `$pfx' to transform generic
3229         %COMPILE% and %LTCOMPILE%.
3230         * ext-compile.am: Use %COMPILE%, %LTCOMPILE% and %SOURCE% instead
3231         of %COMPILER% and $<.
3232
3233 2001-05-07  Akim Demaille  <akim@epita.fr>
3234
3235         * automake.in (&handle_languages): Use the same `%transform' for
3236         both `depend2.am' and `ext-compile.am'.
3237         Delay the definition of `$flag' so it is right before the first use,
3238         and rename as `$flags'.
3239
3240 2001-05-07  Akim Demaille  <akim@epita.fr>
3241
3242         * automake.in (&handle_languages): Compute `$ltoutarg' and
3243         `$outarg' independently of dependency code.
3244         There is no use looping on a language's possible extensions since
3245         we loop over used extensions.
3246         Therefore, there is no use for a local `%transform'.
3247
3248 2001-05-07  Akim Demaille  <akim@epita.fr>
3249
3250         * automake.in (&handle_languages): Don't use $comp.
3251
3252 2001-05-07  Akim Demaille  <akim@epita.fr>
3253
3254         * automake.in (&handle_languages): Merge the two loops over
3255         %extension_seen/%languages into one and group code to be run once
3256         per language together.
3257
3258 2001-05-07  Akim Demaille  <akim@epita.fr>
3259
3260         * automake.in (&handle_languages): Move the `if
3261         ($use_dependencies)' block so that loops over extensions and
3262         languages are next to each other.
3263
3264 2001-05-07  Akim Demaille  <akim@epita.fr>
3265
3266         * automake.in (&depend2): Remove, merged into...
3267         (&handle_languages): here.
3268
3269 2001-05-07  Akim Demaille  <akim@epita.fr>
3270
3271         * automake.in (&finish_languages): Rename as...
3272         (&handle_languages): this.
3273         Include the body of...
3274         (&handle_dependency): this.
3275         Remove.
3276
3277 2001-05-06  Tom Tromey  <tromey@redhat.com>
3278
3279         For PR automake/46:
3280         * tests/Makefile.am (TESTS): Add subdir5.test.
3281         (XFAIL_TESTS): Likewise.
3282         * tests/subdir5.test: New file.
3283
3284         * tests/subobj6.test (wish_SOURCES): Use $MAKE.
3285         * tests/subobj5.test (wish_SOURCES): Use $MAKE.
3286
3287         * automake.in (GNITS_VERSION_PATTERN): Document.  Add `fork
3288         identifier'.
3289         (handle_options): Handle fork identifier in version number.
3290
3291         * automake.texi (Dist): Document distcheck-hook.
3292
3293         * tests/confh4.test: Update to reflect DEFS change.
3294         For PR automake/132.
3295
3296         Fix for PR automake/132:
3297         * automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to
3298         compilation.
3299         (java): Remove INCLUDES and DEFS from compilation.
3300         (lang_c_finish): Add DEFAULT_INCLUDES to compilation.
3301         * compile.am (DEFS): Don't include %DEFAULT_INCLUDES%.
3302         (DEFAULT_INCLUDES): New macro.
3303
3304         * automake.in (usage): Re-align explanatory text.
3305         Fixes PR automake/148.
3306
3307         * automake.texi (Uniform): Don't use @PROGRAMS@.
3308         Fixes PR automake/154.
3309
3310         For PR automake/160:
3311         * tests/Makefile.am (TESTS): Add subobj5.test and subobj6.test.
3312         (XFAIL_TESTS): Add subobj6.test.
3313         * tests/subobj6.test: New file.
3314
3315         * automake.texi (Uniform): Mention dist_, nodist_, and nobase_.
3316         (Top level): Don't mention `flat'.
3317         (Extending): Likewise.
3318         (User Variables): New node.
3319
3320         * distdir.am (distdir): Make subdirectory for each file.
3321         Fixes test subobj5.test.
3322
3323         * tests/Makefile.am (TESTS): Add new file.
3324         (XFAIL_TESTS): Likewise.
3325         * tests/texinfo10.test: New file.
3326
3327 2001-05-05  Pavel Roskin <proski@gnu.org>
3328
3329         * automake.in (scan_texinfo_file): Treat @defindex and @synindex
3330         in the same way as @defcodeindex and @syncodeindex respectively.
3331
3332 2001-05-05  Tom Tromey  <tromey@redhat.com>
3333
3334         * mans.am (install-man%SECTION%): Minor cleanup.
3335         (uninstall-man%SECTION%): Likewise.
3336
3337         * tests/Makefile.am (XFAIL_TESTS): Removed man.test.
3338         * mans.am (install-man%SECTION%): Handle dist_ and nodist_
3339         prefixes.
3340         (uninstall-man%SECTION%): Likewise.
3341         * automake.in (handle_man_pages): Handle dist_ and nodist_
3342         prefixes.
3343
3344         * automake.texi (Future): Removed.
3345         (Depth): Removed.
3346         (Hello): Don't mention `deep'.
3347         (Top level): Likewise.
3348
3349         * automake.in (conditional_true_when): Use a hash, not index().
3350         Also, a TRUE component always results in a true return.
3351         Fixes test cond10.test.  For PR automake/164.
3352         * tests/Makefile.am (XFAIL_TESTS): Removed cond10.test.
3353
3354 2001-05-05  Raja R Harinath  <harinath@cs.umn.edu>
3355
3356         For PR automake/164:
3357         * tests/Makefile.am (TESTS): Added new file.
3358         (XFAIL_TESTS): Likewise.
3359         * tests/cond10.test: New file.
3360
3361 2001-05-05  Tom Tromey  <tromey@redhat.com>
3362
3363         * texinfos.am (uninstall-info-am): Debian install-info v1.8.3
3364         prints to stderr.
3365         (install-info-am): Likewise.
3366
3367 2001-05-05  Pavel Roskin <proski@gnu.org>
3368
3369         * automake.in (scan_texinfo_file): Don't push undefined values
3370         to @clean_suffixes.
3371
3372 2001-05-05  Richard Boulton  <richard@tartarus.org>
3373
3374         * automake.in (handle_dist): Check for existence of DIST_SUBDIRS
3375         first.
3376
3377 2001-05-05  Robert Collins  <robert.collins@itdomain.com.au>
3378
3379         * automake.in (required_targets): Added uninstall-am.
3380
3381 2001-05-05  Tom Tromey  <tromey@redhat.com>
3382
3383         Fix bug reported by Robert Boehne:
3384         * automake.in (output_lex_build_rule): Don't let AMDEP_TRUE be
3385         substituted.
3386         (handle_dependencies): Likewise.
3387         * Makefile.am (maintainer-check): Look for AMDEP_TRUE
3388         substitution.  Correct diff now has 30 lines.  Look for space
3389         after losing `undef'.
3390
3391 2001-05-04  Peter Eisentraut  <peter_e@gmx.net>
3392
3393         * m4/sanity.m4: Remove the temp file before possible error exits.
3394
3395 2001-05-04  Akim Demaille  <akim@epita.fr>
3396
3397         * configure.in: Set perllibdir.
3398         From Dave Morrison.
3399
3400 2001-05-04  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
3401
3402         * automake.in ($pkgdata_dir): New.
3403         (&require_file_internal): Use it.
3404
3405 2001-05-03  Akim Demaille  <akim@epita.fr>
3406
3407         Case insensitive FS choke on Automake/ vs automake.
3408         Reported by Tim Van Holder.
3409
3410         * Automake/: Move into...
3411         * lib/: this new directory.
3412
3413 2001-05-03  Raja R Harinath  <harinath@cs.umn.edu>
3414
3415         * data.am (install-%DIR%%PRIMARY%): Execute the same command as
3416         echoed.
3417
3418 2001-04-30  Jim Meyering  <meyering@lucent.com>
3419
3420         * automake.in: Remove `/lib' from include directory.
3421
3422 2001-04-27  Akim Demaille  <akim@epita.fr>
3423
3424         AM_INIT_AUTOMAKE is no longer optional.
3425
3426         * automake.in ($seen_make_set, $seen_prog_install)
3427         ($seen_arg_prog): Remove.
3428         (&handle_programs, &handle_scripts, &scan_one_autoconf_file):
3429         Remove related code.
3430
3431 2001-04-27  Akim Demaille  <akim@epita.fr>
3432
3433         * tests/specflags4.test, tests/specflags5.test: Remove, merged
3434         into...
3435         * tests/specflags3.test: here.
3436
3437 2001-04-27  Akim Demaille  <akim@epita.fr>
3438
3439         * automake.in ($seen_path_xtra): Remove.
3440         (&handle_compile): Don't handle `AC_PATH_XTRA' AC_SUBST variables.
3441         (&scan_one_autoconf_file): Do it, instead of setting $seen_path_xtra.
3442
3443 2001-04-27  Akim Demaille  <akim@epita.fr>
3444
3445         * automake.in (&file_contents_internal): Declare it.
3446
3447 2001-04-27  Akim Demaille  <akim@epita.fr>
3448
3449         * automake.in (&read_am_file, &file_contents_internal): Don't
3450         define macros when `FALSE', to avoid errors on doubly defined
3451         variables but under condition `FALSE'.  In order to allow...
3452         (&am_install_var): When reading the associated file for the first
3453         time, enable `%?FIRST%'.
3454         (&handle_libraries): Let libs.am define $(AR) and $(RANLIB).
3455         * libs.am: Do it when `%?FIRST%'.
3456
3457 2001-04-27  Akim Demaille  <akim@epita.fr>
3458
3459         * automake.in (handle_compile): Let ansi2knr.am define $(ANSI2KNR).
3460         * ansi2knr.am: Do it.
3461         Prefer `if %?FOO%' to `if %!FOO%'.
3462
3463 2001-04-27  Akim Demaille  <akim@epita.fr>
3464
3465         * automake.in (&register_language, &finish_languages): Use `pure'
3466         as a Boolean.
3467         (&register_language): Use %done properly with objects, not names.
3468         (&finish_languages): Replace `$non_c' with `$needs_c'.
3469
3470 2001-04-27  Akim Demaille  <akim@epita.fr>
3471
3472         Unify LISP, PYTHON and JAVA primaries.
3473
3474         * automake.in (&handle_emacs_lisp): Be like &handle_python, i.e.,
3475         return if there are no files, hook elisp-comp on the Autoconf
3476         macro, rely on lisp.am to define variables.
3477         (&handle_python, &handle_java): Likewise.
3478         (&scan_one_autoconf_file): Pseudo AC_SUBST of `pythondir' and
3479         `PYTHON' must be handled here, not in `&handle_python'.
3480         * java.am: Define needed variables and rules.
3481
3482 2001-04-27  Akim Demaille  <akim@epita.fr>
3483
3484         * automake.in (&am_install_var): Transform `ONE_PRIMARY'.
3485         * data.am: Use it.
3486         * header.am: Include data.am.
3487
3488 2001-04-27  Akim Demaille  <akim@epita.fr>
3489
3490         * automake.in (&am_install_var): Transform `PRIMARY'.
3491         * data.am: Equip with %PRIMARY%.
3492
3493 2001-04-27  Akim Demaille  <akim@epita.fr>
3494
3495         * automake.in (@conditional_stack): Rename as...
3496         (@cond_stack): this.
3497         (&file_contents_internal): Support inclusion of files.
3498
3499 2001-04-27  Akim Demaille  <akim@epita.fr>
3500
3501         * automake.in (&lang_extensions): Remove.
3502         (&add_depend2, &saw_sources_p): Adjust.
3503         * depend2.am: `%EXT%' no longer includes the dot.
3504
3505 2001-04-27  Akim Demaille  <akim@epita.fr>
3506
3507         * automake.in (&finish_languages, &handle_single_transform_list)
3508         (&add_depend2, &handle_dependencies): No longer use the language
3509         name in `$lang'.  Rename `$lang_obj' as `$lang'.
3510
3511 2001-04-27  Akim Demaille  <akim@epita.fr>
3512
3513         * automake.in (&register_language): Use `new Language' with a hash.
3514
3515 2001-04-27  Akim Demaille  <akim@epita.fr>
3516
3517         * automake.in (&register_language): Rename `output-arg' and
3518         `derived-autodep' as `output_arg' and `derived_autodep' to match
3519         the Language attribute.
3520         Set the defaults in %option instead of $lang.
3521
3522 2001-04-27  Akim Demaille  <akim@epita.fr>
3523
3524         * Automake/: New directory.
3525         * Automake/Struct.pm: New file, based on Perl 5.6's Class::Struct.
3526         * automake.in (Language): Use Automake::Struct.
3527         * tests/defs: Adjust to find Struct.
3528
3529 2001-04-23  Pavel Roskin <proski@gnu.org>
3530
3531         * automake.in: Add forward declaration for register_language().
3532         * tests/Makefile.am (XFAIL_TESTS): Remove installsh.test - it
3533         passes now.
3534
3535 2001-04-20  Akim Demaille  <akim@epita.fr>
3536
3537         * automake.in (%required_targets): Add `uninstall'.
3538         From Robert Collins.
3539
3540 2001-04-12  Akim Demaille  <akim@epita.fr>
3541
3542         * automake.in (Language): Add attribute `name'.
3543         (&register_language): The name of the language is now given in the
3544         hash.
3545         No longer use `$lang' as the name of the language.
3546         Rename `$lang_obj' as `$lang'.
3547
3548 2001-04-12  Akim Demaille  <akim@epita.fr>
3549
3550         * automake.in (Language): Add attribute `_finish'.
3551         (&finish): New.
3552         (Automake): Adjust.
3553         (&lang_header_finish, &lang_yaccxx_finish, &lang_lexxx_finish)
3554         (&lang_asm_finish): Remove.
3555
3556 2001-04-12  Akim Demaille  <akim@epita.fr>
3557
3558         * automake.in (Language): Add attribute `extensions'.
3559         (Automake): Pass a hash to `&register_language' instead of a
3560         list of pseudo assignments.
3561         (&register_language): Adjust.
3562         (&finish_languages): Initialize `$ltoutarg'.
3563
3564 2001-04-12  Akim Demaille  <akim@epita.fr>
3565
3566         * automake.in (Language): Add attribute `output_arg'.
3567         (%language_map): Remove.
3568         (&register_language): Build only the object, and store in
3569         %languages only.
3570         (&finish_languages, &handle_single_transform_list): Adjust.
3571
3572 2001-04-12  Akim Demaille  <akim@epita.fr>
3573
3574         * automake.in (Language): Add attributes `flags', `compile' and
3575         `compiler'.
3576         (&finish_languages, &handle_single_transform_list, &handle_dist)
3577         (&add_depend2, &register_language): Use them and the `linker' and
3578         `pure' attributes.
3579
3580 2001-04-12  Akim Demaille  <akim@epita.fr>
3581
3582         * automake.in (&handle_single_transform_list, &finish_languages)
3583         (&handle_dist, &handle_dependencies): Use the language object for
3584         autodep and derived-autodep too.
3585
3586 2001-04-12  Akim Demaille  <akim@epita.fr>
3587
3588         * automake.in (&macro_define): Ignore Automake definition for
3589         ($var, $cond) if there is already a user definition for ($var, $cond).
3590
3591 2001-04-12  Akim Demaille  <akim@epita.fr>
3592
3593         * automake.in (&scan_texinfo_file): Catch @cindex and the like,
3594         but also @deffn and so on which push data in indexes.
3595         Reported by Derek R. Price.
3596
3597 2001-04-12  Akim Demaille  <akim@epita.fr>
3598
3599         * automake.in (Language): New package, temporarily in this file.
3600         Use Class::Struct.
3601         (Automake): New package.
3602         (%languages): New.
3603         (&handle_single_transform_list): Use the language object's `ansi'
3604         attribute instead of `$language_map{"$lang-ansi-p"}'.
3605         (&register_language): Build and register the language too.
3606
3607 2001-04-11  Tom Tromey  <tromey@redhat.com>
3608
3609         Fixes report from Larry Jones:
3610         * automake.in (handle_dependencies): Add `@_am_quote@' where
3611         appropriate.
3612         * m4/make.m4 (AM_MAKE_INCLUDE): Handle BSD-style make.
3613
3614 2001-04-11  Akim Demaille  <akim@epita.fr>
3615
3616         * depend2.am: Fix the `if' condition for Libtool.
3617         Reported by Robert Boehne.
3618
3619 2001-04-10  Robert Collins  <robert.collins@itdomain.com.au>
3620
3621         * tests/subobj5.test: New file.
3622
3623 2001-04-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
3624
3625         * m4/make.m4 (AM_MAKE_INCLUDE): Pass `-s' to make.
3626         * tests/Makefile.am (TESTS): Added make.test.
3627         * tests/make.test: New file.
3628
3629 2001-04-10  Tom Tromey  <tromey@redhat.com>
3630
3631         * tests/defs: Changed how ACLOCAL and AUTOMAKE are set.
3632
3633 2001-04-10  Derek R. Price  <dprice@collab.net>
3634
3635         * tests/defs: Allow user to override AUTOMAKE and ACLOCAL.
3636
3637 2001-04-10  Akim Demaille  <akim@epita.fr>
3638
3639         * distdir.am: Add a missing backslash.
3640
3641 2001-04-10  Akim Demaille  <akim@epita.fr>
3642
3643         * automake.in (&scan_aclocal_m4): Handle $relative_dir and special
3644         variables.
3645         Specify to the caller whether $regen_aclocal_m4.
3646         (&handle_configure): Adjust.
3647         Transform `REGEN-ACLOCAL-M4'.
3648         Reported by Tom.
3649         * configure.am: Use it.
3650         * tests/defs (me): New.
3651         * tests/confdeps.test: New.
3652
3653 2001-04-09  Tom Tromey  <tromey@redhat.com>
3654
3655         * m4/missing.m4 (AM_MISSING_HAS_RUN): Use `true', not `:'.
3656         Fixes report from Jim Meyering.
3657
3658 2001-04-09  Akim Demaille  <akim@epita.fr>
3659
3660         * automake.in (&handle_configure): Don't bother with optimizing
3661         macro uses.
3662
3663 2001-04-09  Akim Demaille  <akim@epita.fr>
3664
3665         * tests/cond3.test (expected): Adjust.
3666
3667 2001-04-09  Akim Demaille  <akim@epita.fr>
3668
3669         * automake.in (&handle_single_transform_list): Remove $xbase,
3670         unused.
3671         (&handle_source_transform): All the variables have conditions now,
3672         simplify.
3673         (&variable_delete): Admit an argument @conds.
3674
3675 2001-04-09  Akim Demaille  <akim@epita.fr>
3676
3677         * automake.in ($source_suffix_pattern): Remove, unused.
3678         %extension_map seems to have replaced it.
3679
3680 2001-04-09  Akim Demaille  <akim@epita.fr>
3681
3682         * ext-compile.am: New file.
3683         * automake.in (&finish_languages): Output it.
3684         Require a C linker if there are several registered source suffixes.
3685         (&handle_compile): No longer push the `.c', `.o', `.obj', `.lo'
3686         extensions, which are discovered in ext-compile.am.
3687         With the help from Robert Boehne.
3688
3689 2001-04-09  Akim Demaille  <akim@epita.fr>
3690
3691         * automake.in (&handle_compile): Extract from...
3692         (&get_object_extension): here.
3693         (&read_am_file): Call it.
3694         ($included_generic_compile, $included_knr_compile)
3695         ($included_libtool_compile): Remove.
3696         ($get_object_extension_was_run): New.
3697
3698 2001-04-09  Akim Demaille  <akim@epita.fr>
3699
3700         Use AM_CONDITIONAL and if/endif for AMDEP.
3701
3702         * m4/depend.m4 (AM_DEP_TRACK): Use AM_CONDITIONAL to define AMDEP.
3703         * automake.in (&add_depend2): Transform %AMDEP% into `AMDEP' (leading
3704         to a configure time if/endif), or to `FALSE' (static removal of
3705         the code).
3706         (&handle_dependencies): Adjust to use `AMDEP_TRUE'.
3707         * depend2.am: Use if/endif.
3708
3709         Adjust the 101 tests that use dependencies so that they
3710         properly invoke aclocal before automake.  They need to `see'
3711         `AM_CONDITIONAL([AMDEP], ...)'.
3712
3713 2001-04-09  Akim Demaille  <akim@epita.fr>
3714
3715         * tags.am: Fix missing leading tabs.
3716
3717 2001-04-09  Akim Demaille  <akim@epita.fr>
3718
3719         * automake.in: Use simple quotes to define the _PATTERN variables
3720         to unobfuscate the regexps.
3721         ($AM_CONDITIONAL_PATTERN): Let the user quote the variable.
3722
3723 2001-04-09  Akim Demaille  <akim@epita.fr>
3724
3725         * automake.in (&rule_define): When you discover a suffix rules,
3726         register the extensions for .SUFFIXES.
3727         (&handle_texinfo): Don't register the suffixes.
3728         (&get_object_extension): Don't register suffixes, let them be
3729         discovered in depend2.am.
3730         (&handle_emacs_lisp): Depend on your lisp.am.
3731         * lisp.am: Include the rule &handle_emacs_lisp used to output.
3732
3733 2001-04-09  Akim Demaille  <akim@epita.fr>
3734
3735         * subdirs.am: Don't define info related recursive targets.
3736         * texinfos.am: Do.
3737
3738 2001-04-09  Akim Demaille  <akim@epita.fr>
3739
3740         * subdirs.am (RECURSIVE_TARGETS): New variable.
3741         Use it.
3742         * automake.in (&handle_subdirs): Output it.
3743         (&file_contents_internal): Support value spread on several lines.
3744
3745 2001-04-09  Akim Demaille  <akim@epita.fr>
3746
3747         * automake.in (&handle_man_pages): Rely on mans.am to define
3748         man%SECTION%dir and MANS.
3749         * mans.am: Do it.
3750
3751 2001-04-09  Akim Demaille  <akim@epita.fr>
3752
3753         * automake.in (&variable_dump): Use %var_type properly.
3754         (&macro_define): Enforce better overriding rules.
3755         Handle the special case that used to handle...
3756         (&define_pretty_variable): this.
3757         Hence, don't.
3758         The variables you define are owned by Automake.
3759         (&generate_makefile): PRE_INSTALL and co must not be defined *by
3760         the user*.
3761         (&variable_defined): Now independent of the owner.
3762         (&variable_output, &variable_pretty_output): Adjust to %var_type.
3763
3764 2001-04-09  Akim Demaille  <akim@epita.fr>
3765
3766         * automake.in (%var_was_plus_eq): Rename as...
3767         (%var_type): this.
3768         (%def_type): Remove.
3769         (&macro_define): %var_type may now hold `', `+', or `:'.
3770         (%conditional, %am_vars, %content_lines): Rename as...
3771         (%var_value, %var_comment, %var_line): these.
3772
3773 2001-04-09  Akim Demaille  <akim@epita.fr>
3774
3775         * automake.in (&variable_output): Admit a list of @CONDS.
3776         (&variable_pretty_output): New.
3777         (&define_pretty_variable): Use it.
3778         (&read_am_file, &file_contents_internal): Prepend a separator to
3779         $am_vars only if there is none yet.
3780         (&file_contents_internal): Rename $separator as $spacing to
3781         harmonize with &read_am_file.
3782
3783 2001-04-09  Akim Demaille  <akim@epita.fr>
3784
3785         * automake.in (&am_install_var): Transform DIST, and let the *.am
3786         files handle DIST_COMMON.
3787         * data.am, header.am, java.am, list.am, python.am, script.am: Set
3788         DIST_COMMON.
3789
3790 2001-04-09  Akim Demaille  <akim@epita.fr>
3791
3792         * automake.in (%dist_common): Remove.
3793         (%configure_dist_common): Replace with...
3794         ($configure_dist_common): this.
3795         (&generate_makefile): Read the user file before using
3796         push_dist_common, as it sets DIST_COMMON, and read_am_file checks
3797         that no variable is defined before it is run.
3798         (&handle_texinfo): Don't handle DIST_COMMON, let your file do it.
3799         (&dist_cmp): Rename as...
3800         (&for_dist_common): this.
3801         (&handle_dist): Don't handle DIST_COMMON, let `configure.am' do
3802         it.
3803         Adjust to $configure_dist_common.
3804         * configure.am, texi-vers.am: Set DIST_COMMON.
3805
3806 2001-04-09  Akim Demaille  <akim@epita.fr>
3807
3808         * automake.in (&handle_aclocal_m4): Rename as...
3809         (&scan_aclocal_m4): this.
3810         Return the list of aclocal.m4 dependencies.
3811         (&handle_configure): Invoke it, and use it when loading...
3812         * configure.am: Template the rules to recreate aclocal.m4.
3813
3814 2001-04-09  Akim Demaille  <akim@epita.fr>
3815
3816         * automake.in (&get_object_extension): Use ansi2knr.am.
3817         * clean-kr.am, kr-extra.am: Remove, merged into...
3818         * ansi2knr.am: this new file.
3819
3820 2001-04-09  Akim Demaille  <akim@epita.fr>
3821
3822         * automake.in (&transform): Fix an incredible bug which was
3823         breaking the if/endif system.
3824         ($ELSE_PATTERN): Admit an optional argument.
3825
3826 2001-04-09  Akim Demaille  <akim@epita.fr>
3827
3828         * comp-vars.am: Remove, merged into...
3829         * compile.am: here.
3830         * automake.in (&get_object_extension): Adjust.
3831
3832 2001-04-09  Akim Demaille  <akim@epita.fr>
3833
3834         * remake.am: Merge into...
3835         * configure.am: ... here.
3836         * automake.in (&handle_configure): Adjust.
3837
3838 2001-04-09  Akim Demaille  <akim@epita.fr>
3839
3840         * automake.in (&output_lex_build_rule): Output this...
3841         * lex.am: New file.
3842
3843 2001-04-09  Akim Demaille  <akim@epita.fr>
3844
3845         * automake.in (&condition_negate): New.
3846         (&variable_conditions_permutations): Use it.
3847         (&read_am_file, &file_contents): Use it on `else' clauses to
3848         support `if FALSE'.
3849         (&output_yacc_build_rule): Output this...
3850         * yacc.am: New file.
3851
3852 2001-04-09  Akim Demaille  <akim@epita.fr>
3853
3854         * automake.in (&make_paragraphs): Transform TOPDIR_P and TOPDIR.
3855         (&handle_dist): Don't.
3856         (&handle_clean): Don't handle config.status here, let...
3857         * clean.am: ... do it.
3858         * distdir.am: Adjust.
3859
3860 2001-04-09  Akim Demaille  <akim@epita.fr>
3861
3862         * automake.in: Use strict vars and subs.
3863         Declare `%require_file_found'.
3864         (&handle_source_transform, &make_paragraphs): Declare my variables.
3865
3866 2001-04-09  Akim Demaille  <akim@epita.fr>
3867
3868         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
3869         * progs.am, python.am: Use if/endif instead of ?INSTALL?.
3870         * java.am (_am_installdirs): Be sure to set it.
3871
3872 2001-04-09  Akim Demaille  <akim@epita.fr>
3873
3874         * automake.in (&make_condition): Return '#' when FALSE.
3875         (&conditional_string): Return FALSE, not '#' in the corresponding
3876         cases.
3877         (&file_contents_internal): Adjust.
3878         (&check_variable_defined_unconditional): Dump the guilty variable.
3879
3880 2001-04-09  Akim Demaille  <akim@epita.fr>
3881
3882         * distdir.am: Use and abuse of if/endif.
3883         * scripts.am: Using if/endif with variables is fine.
3884
3885 2001-04-09  Akim Demaille  <akim@epita.fr>
3886
3887         * automake.in (&make_paragraphs):  Extract from &file_contents.
3888         Make it more robust than the previous RE based scheme.
3889         (&file_contents): Use it.
3890
3891 2001-04-09  Akim Demaille  <akim@epita.fr>
3892
3893         * automake.in (&make_paragraphs):  Extract from &file_contents.
3894         Make it more robust than the previous RE based scheme.
3895         (&file_contents): Use it.
3896
3897 2001-04-09  Akim Demaille  <akim@epita.fr>
3898
3899         * tests/yacc2.test: Don't define several times a variable, as
3900         automake complains.
3901
3902 2001-04-09  Akim Demaille  <akim@epita.fr>
3903
3904         * automake.in (&handle_source_transform): Fix pr72: don't define
3905         $linker if there are no @files.
3906
3907 2001-04-09  Akim Demaille  <akim@epita.fr>
3908
3909         Avoid reading twice header-vars.am as now macro_define
3910         complains.
3911
3912         * automake.in (&define_standard_variables): Don't output the
3913         variables.
3914         (&read_main_am_file): Output first user variables, then Automake
3915         variables.
3916         Don't call twice &define_standard_variables.
3917         Save variable comments in $am_vars.
3918         (&variable_output): New.
3919         (&file_contents_internal): New.
3920         Save variable comments in $am_vars.
3921         (&file_contents): Use it.
3922
3923 2001-04-09  Akim Demaille  <akim@epita.fr>
3924
3925         * automake.in (&macro_define): The user is allowed to override
3926         a value if it was set by Automake, or if it was found in AC_SUBST.
3927
3928 2001-04-09  Akim Demaille  <akim@epita.fr>
3929
3930         * automake.in (&handle_source_transform): Better locality of the
3931         variables.
3932         Use `next' to skip nonexistent variables.
3933
3934 2001-04-09  Akim Demaille  <akim@epita.fr>
3935
3936         * automake.in (&variable_dump): If a variable is undefined, say
3937         it.
3938         (&check_ambiguous_conditional): Give finer error messages.
3939         (&macro_define): Check that a `+=' variable is not set with `='.
3940         Check for ambiguous definitions each time you _set_ (even with `+=')
3941         a variable.
3942         (&read_main_am_file): Perform a deep copy of %conditional.
3943
3944 2001-04-09  Akim Demaille  <akim@epita.fr>
3945
3946         * automake.in (&variable_defined): Some callers, e.g.,
3947         &am_primary_prefixes, really want to know if the variable is
3948         defined for any condition, not `TRUE' by default.
3949         (&am_primary_prefixes): Give a more precise error message.
3950
3951 2001-04-09  Akim Demaille  <akim@epita.fr>
3952
3953         (&variable_conditions): Don't include `FALSE' in the result.
3954
3955 2001-04-09  Akim Demaille  <akim@epita.fr>
3956
3957         * automake.in (&variable_conditions_reduce): FALSE is absorbent.
3958         (&variable_conditions): Don't include `FALSE' in the result.
3959
3960 2001-04-09  Akim Demaille  <akim@epita.fr>
3961
3962         * tests/defs, tests/depend3.test: Remove useless code.
3963
3964 2001-04-09  Akim Demaille  <akim@epita.fr>
3965
3966         * automake.in (&handle_source_transform):  Use
3967         &variable_conditions, don't read $conditional{$var}.
3968         (&variable_conditions_sub): When the call is the top level call,
3969         generate all the permutations of the conditions.
3970
3971 2001-04-09  Akim Demaille  <akim@epita.fr>
3972
3973         * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
3974         that it does not get noticed twice by automake, which now
3975         complains for multiple definitions.
3976         * tests/vartar.test: s/INSTALL/install/g, automake now complains
3977         because we defined INSTALL.
3978
3979 2001-04-09  Akim Demaille  <akim@epita.fr>
3980
3981         * automake.in (&generate_makefile) Use macro_define to define
3982         SOURCES and OBJECTS.
3983         (&variable_defined): Don't check for $conditional{VAR}{COND} as
3984         this would make perl create $condition{VAR}, which we don't want.
3985
3986 2001-04-09  Akim Demaille  <akim@epita.fr>
3987
3988         * automake.in (&variable_defined, &define_pretty_variable):
3989         Simplify code which used to handle the cases where not all
3990         variables were in %conditional.
3991         (&define_variable): Use &define_pretty_variable.
3992         (&variable_conditions_sub, &variable_value_as_list_worker)
3993         (&variable_value_as_list, &rule_define): Simplify syntax.
3994         (&read_main_am_file): Dump the guilty predefined variables.
3995
3996 2001-04-09  Akim Demaille  <akim@epita.fr>
3997
3998         * automake.in (&variable_conditions_sub)
3999         (&variable_value_as_list_worker): Remove dead code which used to
4000         handle the cases where not all variables were in %conditional.
4001
4002 2001-04-09  Akim Demaille  <akim@epita.fr>
4003
4004         * automake.in (&handle_source_transform, &read_main_am_file):
4005         Simplify loops which were split in two parts, conditional vs
4006         unconditional variables.
4007
4008 2001-04-09  Akim Demaille  <akim@epita.fr>
4009
4010         Handle unconditional values of variables as conditioned by
4011         `TRUE'.
4012
4013         * automake.in (%contents): Remove.
4014         (&generate_makefile, &handle_ltlibraries, &macro_define)
4015         (&read_am_file, &variable_defined, &variable_conditions_sub)
4016         (&variable_value, &variable_value_as_list_worker)
4017         (&variable_value_as_list, &define_pretty_variable)
4018         (&read_main_am_file): Use
4019         $conditional, not %contents.
4020         (&variable_conditions_permutations): Don't return TRUE and FALSE.
4021         (&variable_conditionally_defined): New.
4022         (&handle_dist): Use it.
4023         (&check_ambiguous_conditional): When multiply defined, specify
4024         under which condition.
4025         (&macro_define): Use it.
4026         (&variable_delete): New.
4027         (&read_am_file): Use it.
4028         (&am_install_var): Simplify, as all the variables are in
4029         %conditional now.
4030
4031 2001-04-07  Tom Tromey  <tromey@redhat.com>
4032
4033         * tests/Makefile.am (XFAIL_TESTS): Added man.test.
4034         (TESTS): Likewise.
4035         * tests/man.test: New file.
4036
4037 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
4038
4039         * depcomp (gcc3): Invert test condition.
4040
4041 2001-04-07  Tom Tromey  <tromey@redhat.com>
4042
4043         * depcomp (gcc3, gcc): Don't assume $? will be set in `if'
4044         statement.  Report from Larry Jones.
4045
4046 2001-04-07  Raja R Harinath  <harinath@cs.umn.edu>
4047
4048         * depcomp (sgi): Fix sed expression.  Report from Robert Boehne.
4049
4050 2001-04-01  Tom Tromey  <tromey@redhat.com>
4051
4052         * java.am (.PHONY clean-am): Removed trailing ":".
4053         From Per Bothner.  Fixes PR automake/139.
4054
4055 2001-03-28  Akim Demaille  <akim@epita.fr>
4056
4057         * program.am: Fix a stupid typo: now *all* (not none) the programs
4058         use `$(EXEEXT)'.
4059         Reported by Robert Boehne.
4060
4061 2001-03-23  Akim Demaille  <akim@epita.fr>
4062
4063         * automake.in (&read_am_file, &file_contents): Avoid name clashes
4064         on $cond.
4065
4066 2001-03-23  Akim Demaille  <akim@epita.fr>
4067
4068         * automake.in (&variable_conditionally_defined): Rename as...
4069         (&check_variable_unconditionally_defined): this.
4070         (&variable_dump): Fix the output.
4071         (&variable_defined, &macro_define): Since conditions are
4072         canonicalized, don't use a loop to look for a condition: read the
4073         hash.
4074         (&macro_define, &rule_define, &read_am_file, &file_contents):
4075         Rename $cond_string as $cond.
4076         * distdir.am (PACKAGE, VERSION): Remove; since they are already
4077         discovered via AC_SUBST, they now trigger a `defined twice' error.
4078
4079 2001-03-23  Akim Demaille  <akim@epita.fr>
4080
4081         * automake.in (&handle_footer, &handle_installdirs)
4082         (&read_main_am_file): Don't read %contents directly, use
4083         &variable_value.
4084
4085 2001-03-23  Akim Demaille  <akim@epita.fr>
4086
4087         * automake.in (&read_am_file): Define the variables in a single
4088         shot.
4089         Factor the $saw_bk code.
4090
4091 2001-03-23  Akim Demaille  <akim@epita.fr>
4092
4093         * automake.in (&read_am_file): Keep $cond_string up to date.
4094
4095 2001-03-23  Akim Demaille  <akim@epita.fr>
4096
4097         * automake.in (&define_variable): Use &macro_define.
4098
4099 2001-03-23  Akim Demaille  <akim@epita.fr>
4100
4101         * automake.in (&macro_define): Don't lose the location if we
4102         redefine a variable.
4103         Don't push all the variables in @var_list, let...
4104         (&read_am_file, &file_contents): ... do it.
4105         (&define_pretty_variable): Use macro_define.
4106         (&am_install_var): Delete the value of variables being redefined
4107         to pacify &macro_define which checks that variables are not
4108         doubly defined.
4109
4110 2001-03-23  Akim Demaille  <akim@epita.fr>
4111
4112         * automake.in (&conditional_dump): Rename as...
4113         (&variables_dump): this.  Use...
4114         (&variable_dump): this new sub.
4115
4116 2001-03-23  Akim Demaille  <akim@epita.fr>
4117
4118         * automake.in (&file_contents): Maintain $cond_string sync with
4119         @cond_stack.
4120         Output rules only if not under `FALSE'.
4121         Define variables under $cond_string.
4122         * scripts.am: For the time being if/endif does not work properly
4123         with macros.
4124
4125 2001-03-23  Akim Demaille  <akim@epita.fr>
4126
4127         * automake.in (IF_PATTERN): Unobfuscate the parens.
4128         (ENDIF_PATTERN): Allow a condition to be specified.
4129         (&file_contents): Use a @cond_stack.
4130         (&transform): At least for an easy transition, also transform
4131         %?FOO% and %!FOO%, as suggested by Lars.
4132         * scripts.am: First test bed for static if/endif use.
4133
4134 2001-03-23  Akim Demaille  <akim@epita.fr>
4135
4136         * automake.in (&file_contents): Use rule_define.
4137
4138 2001-03-23  Akim Demaille  <akim@epita.fr>
4139
4140         * automake.in (&macro_define): Don't rely on $1.
4141         Initialize the variable.
4142         Set its Automakism only if not defined or if given to the user.
4143         When concatenating values, insert a separator only if the value
4144         was not empty.
4145         (&read_am_file): When dumping the @var_list, skip Automake
4146         variables.
4147         (&file_contents): Use macro_define.
4148
4149 2001-03-23  Akim Demaille  <akim@epita.fr>
4150
4151         * automake.in (&rule_define): Extract from...
4152         (&read_am_file): here.
4153
4154 2001-03-23  Akim Demaille  <akim@epita.fr>
4155
4156         * automake.in (&macro_define, &read_am_file): More work for the
4157         former from the latter.  Reorganize the latter.
4158
4159 2001-03-23  Akim Demaille  <akim@epita.fr>
4160
4161         * automake.in (&macro_define): Extract from...
4162         (&read_am_file): here.
4163
4164 2001-03-23  Akim Demaille  <akim@epita.fr>
4165
4166         * automake.in (%am_var_defs): Replace with...
4167         (%var_is_am): this.
4168         (&handle_installdirs, &variable_value_as_list_worker, &read_am_file)
4169         (&file_contents, am_primary_&prefixes): Adjust.
4170         (&variable_defined, &define_variable): The actual semantics is
4171         `user defined'.
4172         (&read_main_am_file): Assert the var is user defined when
4173         outputting @var_list.
4174
4175 2001-03-23  Akim Demaille  <akim@epita.fr>
4176
4177         * automake.in (read_am_file): TRUE and FALSE are predefined
4178         conditionals.
4179         (&by_condition): Adjust.
4180         (&conditional_string): Recognize `TRUE' and `FALSE'.
4181         (&make_condition): Use it.
4182         * m4/cond.m4: Reject TRUE and FALSE as conditionals.
4183         * automake.texi (Conditionals): Adjust.
4184         * tests/cond9.test: s/FALSE/WRONG/.
4185
4186 2001-03-12  Pavel Roskin  <proski@gnu.org>
4187
4188         * tests/Makefile.am (XFAIL_TESTS): Remove cond3.test, it passes
4189         now.
4190
4191 2001-03-12  Akim Demaille  <akim@epita.fr>
4192
4193         * automake.in (&variable_conditions_permutations): Separate the
4194         conditions.
4195         * tests/cond3.test: Improve the sed expression.
4196
4197 2001-03-09  Pavel Roskin  <proski@gnu.org>
4198
4199         * Makefile.am (maintainer-check): Scan all *.am files and tests
4200         for invocations of `rm' without `-f'.
4201         * tests/mclean.test: Adjusted to prevent triggering the above
4202         test.
4203
4204 2001-03-09  Tom Tromey  <tromey@redhat.com>
4205
4206         * automake.in (scan_one_autoconf_file): Fixed comment to avoid
4207         maintainer-check failure.
4208
4209 2001-03-09  Akim Demaille  <akim@epita.fr>
4210
4211         * tests/cond3.test: Strengthen.
4212
4213 2001-03-09  Akim Demaille  <akim@epita.fr>
4214
4215         * automake.in (&conditional_string): Produce a unique string
4216         characterizing a condition stack.
4217         (&conditional_same): Remove, comparing two strings is now enough.
4218         (&variable_defined): Adjust.
4219         (&read_am_file): Use conditional_string.
4220
4221 2001-03-08  Akim Demaille  <akim@epita.fr>
4222
4223         * automake.in: Use -w.
4224         Normalize all use of `$lang . '-foo'' into `"$lang-foo"'.
4225         (&parse_arguments): Support --Werror and --Wno-error as a
4226         temporary hack until --warning/-W is properly implemented.
4227         (&handle_single_transform_list): Prototype.
4228         Be sure to define $directory.
4229         Use `exists' instead of testing the value of a maybe undefined
4230         hash value.
4231         (&add_depend2, &handle_configure, &handle_footer, &file_contents)
4232         (&handle_factored_dependencies): Use defined values.
4233         (&scan_one_autoconf_file): Save $_.
4234         * tests/lex2.test, tests/sinclude.test, tests/suffix3.test:
4235         Run automake with --Wno-error.
4236
4237 2001-03-07  Akim Demaille  <akim@epita.fr>
4238
4239         * automake.in (&handle_all): Use an array instead of a scalar for
4240         local_headers.
4241         Get rid of all-redirect: let `all' be that target.
4242
4243 2001-03-07  Akim Demaille  <akim@epita.fr>
4244
4245         * automake.in (&handle_merge_targets): Ventilate its non `all'
4246         related content into...
4247         (&generate_makefile): here.
4248         (&handle_merge_targets): Rename as...
4249         (&handle_all): this.
4250         Remove a useless `if': `@all' is obviously not empty, since it
4251         contains at least the `basename ($makefile)' which has just been
4252         unshifted.
4253
4254 2001-03-07  Akim Demaille  <akim@epita.fr>
4255
4256         * automake.in, aclocal.in: Backquote is inert in double quotes.
4257
4258 2001-03-06  Akim Demaille  <akim@epita.fr>
4259
4260         * Makefile.am (maintainer-check): Simplify `grep -v ... | grep .'
4261         into `grep -v ...'.
4262
4263 2001-03-06  Pavel Roskin  <proski@gnu.org>
4264
4265         * java.am: Use `rm -f' instead of `rm'.
4266
4267 2001-03-06  Akim Demaille  <akim@epita.fr>
4268
4269         * automake.in (&push_dist_common): Simplify.
4270
4271 2001-03-06  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
4272
4273         * ltlib.am: Replaced spaces with tab.
4274
4275 2001-03-06  Pavel Roskin  <proski@gnu.org>
4276
4277         * tests/Makefile.am (XFAIL_TESTS): noinstdir.test removed, it's
4278         fixed now.
4279
4280 2001-03-05  Pavel Roskin  <proski@gnu.org>
4281
4282         * header.am, scripts.am: Use ?INSTALL? in the install and
4283         uninstall rules.
4284
4285 2001-03-05  Pavel Roskin  <proski@gnu.org>
4286
4287         * tests/copy.test: Never use `rm' without `-f' - it may ask
4288         questions, notably for read-only files during `make distcheck'.
4289         * tests/insh.test: Likewise.
4290         * tests/installsh.test: Likewise.
4291         * tests/symlink.test: Likewise.
4292         * tests/symlink2.test: Likewise.
4293         * tests/symlink3.test: Likewise.
4294
4295 2001-03-05  Pavel Roskin  <proski@gnu.org>
4296
4297         * noinstdir.test: New test.
4298         * tests/Makefile.am (TESTS): Add noinstdir.test.
4299         (XFAIL_TESTS): Likewise.
4300
4301 2001-03-05  Akim Demaille  <akim@epita.fr>
4302
4303         * automake.in (&handle_options): Change the RE so that the third
4304         part of the versions always exist.
4305         (&file_contents): Don't pass uninitialized values to &transform.
4306
4307 2001-03-05  Akim Demaille  <akim@epita.fr>
4308
4309         * automake.in (&file_contents): Require a hash as second argument.
4310         Adjust callers.
4311
4312 2001-03-05  Akim Demaille  <akim@epita.fr>
4313
4314         Always use hashes with &file_contents.
4315
4316         * automake.in (&handle_texinfo): texibuild.am does not need
4317         TEXINFODIR.
4318         texinfos.am wants only TEXICLEANS.
4319         (&handle_dist, &add_depend2, &handle_clean): Replace $xform with
4320         %transform.
4321         * texinfos.am: Adjust.
4322
4323 2001-03-05  Akim Demaille  <akim@epita.fr>
4324
4325         * automake.in (&handle_programs, &handle_libraries, &handle_tags)
4326         (&handle_ltlibraries, &handle_emacs_lisp, &handle_python): Adjust.
4327         (&am_install_var): Forget about `-clean'.
4328         Transform ?INSTALL?.
4329         Always output the *.am file.
4330         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
4331         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
4332         Remove, merged into the corresponding *.am file.
4333         * data.am, libs.am, ltlib.am, progs.am, python.am: Equip with
4334         ?INSTALL?.
4335
4336 2001-03-05  Pavel Roskin  <proski@gnu.org>
4337
4338         * Makefile.am (amfiles): Add configure.am. Sort alphabetically.
4339
4340 2001-03-05  Akim Demaille  <akim@epita.fr>
4341
4342         If OBJEXT and EXEEXT are not set, provide a default value, and use
4343         them unconditionally.
4344
4345         * automake.in (&generate_makefile): Provide default values for
4346         EXEEXT and OBJEXT.
4347         (&get_object_extension, &finish_languages)
4348         (&handle_single_transform_list, &handle_programs, &add_depend2)
4349         (&check_cygnus, &lang_c_finish, am_install_var): Don't bother with
4350         them, they are defined.
4351         * compile.am, depend2.am, program.am, progs.am: Likewise.
4352         * remake-hdr.am: Fix a typo.
4353         * tests/cxxo.test, tests/fo.test, tests/implicit.test,
4354         * tests/interp.test, tests/subobj.test, tests/subobj2.test,
4355         * tests/suffix2.test: Adjust.
4356
4357 2001-03-05  Akim Demaille  <akim@epita.fr>
4358
4359         * automake.in (&file_contents): Map MAINTAINER-MODE to
4360         @MAINTAINER_MODE_TRUE@ or nothing.
4361         * configure.am, remake-hdr.am, remake.am, texi-vers.am: Adjust.
4362         Suggested by Tom.
4363
4364 2001-03-05  Akim Demaille  <akim@epita.fr>
4365
4366         * automake.in (&do_one_merge_target): Remove, was only called from...
4367         (&handle_merge_targets): here for `all'.
4368         Adjust.
4369
4370 2001-03-05  Akim Demaille  <akim@epita.fr>
4371
4372         Make the installation/uninstallation of Info pages follow the
4373         regular am/recursive scheme.
4374
4375         * automake.in (%required_targets, %dependencies): Add
4376         install-info.
4377         (%dependencies): Add install-info, install-info-am, and
4378         unstall-info.
4379         (&handle_subdirs): Don't transform INSTALLINFO, which mapping was
4380         reversed BTW.  Does anybody use the option `no-installinfo'?
4381         (&handle_merge_targets): Let the handling of info related targets
4382         to...
4383         (&handle_factored_dependencies): this.
4384         * subdirs.am: Use ?INSTALL-INFO?.
4385         * texinfos.am: Define the install-info, uninstall-info and
4386         uninstall-info-am targets.
4387
4388 2001-03-05  Akim Demaille  <akim@epita.fr>
4389
4390         * automake.in (%required_targets, %dependencies): Add dvi, info,
4391         dvi-am, info-am.
4392         (@info, @dvi): Remove.
4393         (&handle_texinfo, &handle_merge_targets): Adjust.
4394         (&handle_factored_dependencies): Required targets are phony.
4395         * texinfos.am: Build info, dvi, and the corresponding -am or
4396         -recursive targets.
4397
4398 2001-03-05  Akim Demaille  <akim@epita.fr>
4399
4400         * automake.in (&am_install_var): Remove $cygxform, unused.
4401
4402 2001-03-05  Akim Demaille  <akim@epita.fr>
4403
4404         * automake.in (&file_contents): Transform LIBTOOL.
4405         (&am_install_var): Remove $ltxform.
4406         * ltlib.am, progs.am: Adjust.
4407
4408 2001-03-05  Akim Demaille  <akim@epita.fr>
4409
4410         * automake.in: Require AC_PROG_INSTALL in...
4411         (&scan_autoconf_files): here.
4412
4413 2001-03-05  Akim Demaille  <akim@epita.fr>
4414
4415         * configure.am: New file.
4416         * automake.in (&file_contents): Transform CONFIGURE-AC.
4417         (&handle_texinfo, &handle_configure): Don't transform
4418         CONFIGURE_AM.
4419         (&handle_configure): Use `configure.am'.
4420         * remake-hdr.am, remake.am, texi-vers.am: Adjust to
4421         MAINTAINER-MODE and CONFIGURE-AC.
4422
4423 2001-03-05  Akim Demaille  <akim@epita.fr>
4424
4425         * automake.in (&pretty_print_internal): Don't output useless
4426         spaces.
4427         (define_pretty_variable): Don't issue the space after the `=' sign
4428         to avoid trailing spaces in Makefile.ins.
4429
4430 2001-03-05  Akim Demaille  <akim@epita.fr>
4431
4432         * automake.in (&generate_makefile): Invoke &initialize_per_input
4433         *before* setting $am_file_name and $in_file_name.
4434
4435 2001-03-05  Akim Demaille  <akim@epita.fr>
4436
4437         * automake.in ($in_file_name, $am_file_name, $relative_dirs):
4438         Globals, initialized...
4439         (&initialize_per_input): here.
4440
4441 2001-03-05  Akim Demaille  <akim@epita.fr>
4442
4443         * automake.in ($am_relative_dir): Global.
4444         (&initialize_per_input): Init it.
4445         (%make_list, @make_input_list): My them from
4446         (&scan_autoconf_files): here.
4447         (&require_file_internal): Mying changes.
4448
4449 2001-03-05  Akim Demaille  <akim@epita.fr>
4450
4451         * automake.in (%am_vars, @var_list, %def_type): Globals.
4452         (&initialize_per_input): Initialize them.
4453         (&read_main_am_file): Don't local them.
4454         (&get_object_extension): $objext is private.
4455         (&handle_single_transform_list): $lang is.
4456         (&handle_ltlibraries): $libname_rx is.
4457         (&scan_autoconf_config_files): How about actually paying attention
4458         to your arguments, instead of working on $_? (this is no Perl
4459         variable, it's a Perl variable followed by a question mark).
4460         (&file_contents): $contents and $separator are private.
4461         (&am_install_var): Declare @condvals, not $condvals.
4462         (%make_dirs): My.
4463
4464 2001-03-05  Akim Demaille  <akim@epita.fr>
4465
4466         * automake.in (&initialize_per_input): Move to the top.
4467         Precede with the `my' list of its variables.
4468
4469 2001-03-05  Akim Demaille  <akim@epita.fr>
4470
4471         * automake.in ($am_file): Use vars.
4472         ($am_file_name, $in_file_name): Private to &generate_makefile.
4473
4474 2001-03-05  Akim Demaille  <akim@epita.fr>
4475
4476         * automake.in: Preparation for `use strict': Move the
4477         initialization of the constants to the top, from...
4478         (&initialize_global_constants): here.
4479
4480 2001-03-05  Akim Demaille  <akim@epita.fr>
4481
4482         * automake.in (&handle_single_transform_list, &add_depend2): Let
4483         $lang_specific_files{$lang} be a list instead of a string.
4484
4485 2001-03-05  Akim Demaille  <akim@epita.fr>
4486
4487         Let's make it run ten times faster...
4488
4489         * automake.in (&transform): Be sure to remove the `\n' with ?FOO?
4490         transformations.
4491         (&file_contents): Let `$command' remove the Automake commands, and
4492         normalize the series of `\n'.
4493         Slurp the file and apply $command in a single step.
4494         No longer apply the `@MAINTAINER_MODE_TRUE@' transformation which
4495         is already normalized to be handled by &transform.
4496
4497 2001-03-05  Tom Tromey  <tromey@redhat.com>
4498
4499         * automake.in (register_language): Add entry for `-pure'.
4500         Added `pure=yes' entries for cxx, objc, f77, ppf77, ratfor, java.
4501         (finish_languages): Use `-pure' field of language map.
4502
4503 2001-03-03  Tom Tromey  <tromey@redhat.com>
4504
4505         * tests/yaccvpath.test: No need to remove dummy files.
4506         * tests/subobj3.test: No need to remove dummy files.
4507         * tests/pr9.test: No need to remove dummy files.
4508         * tests/pr87.test: No need to remove dummy files.
4509         * tests/pr19.test: No need to remove dummy files.
4510         * tests/install2.test: No need to remove dummy files.
4511         * tests/defs: Actually copy in install-sh, mkinstalldirs, missing,
4512         and depcomp.
4513
4514 2001-02-27  Pavel Roskin  <proski@gnu.org>
4515
4516         * tests/yaccvpath.test: Add a delay to make parse.c really out
4517         of date. Detect the problem earlier, after `make distdir'. Drop
4518         dependency on flex. Always use the `-y' flag for bison. Comment
4519         changes.
4520         * tests/Makefile.am: Add yaccvpath.test to XFAIL_TESTS.
4521
4522 2001-03-02  Jens Krüger <jens_krueger@physik.tu-muenchen.de>
4523
4524         * depend2.am (?!GENERIC??LIBTOOL?%LTOBJ%): Add `%' to fix typo.
4525
4526 2001-02-28  Akim Demaille  <akim@epita.fr>
4527
4528         * automake.in (&add_depend2): Transform `GENERIC'.
4529         Get rid of the ad hoc transformation of `@EXT@.o:' which in
4530         addition was broken by the `@ -> %' patch.
4531         * depend2.am: Adjust to use ?GENERIC?.
4532
4533 2001-02-28  Akim Demaille  <akim@epita.fr>
4534
4535         * Makefile.am (maintainer-check): `undef $/' is OK.
4536
4537 2001-02-28  Akim Demaille  <akim@epita.fr>
4538
4539         * automake.in (&handle_configure): Fortunately, $top_reldir,
4540         the definition of which was highly suspicious, was unused.
4541
4542 2001-02-27  Akim Demaille  <akim@epita.fr>
4543
4544         * automake.in (%exec_dir_p): Move to the top so that it is visible
4545         to all routines.
4546
4547 2001-02-27  Pavel Roskin  <proski@gnu.org>
4548
4549         * tests/yaccvpath.test: Prevent automake from looking into ..
4550         and ../.. by using AC_CONFIG_AUX_DIR in configure.in.
4551
4552 2001-02-27  Akim Demaille  <akim@epita.fr>
4553
4554         * automake.in (%exec_dir_p): Pulled out from...
4555         (&am_primary_prefixes): here.
4556
4557 2001-02-27  Akim Demaille  <akim@epita.fr>
4558
4559         * automake.in (&usage): Display $0, not $me.
4560
4561 2001-02-27  Akim Demaille  <akim@epita.fr>
4562
4563         * mans.am: s/INSTALL_MAN/INSTALL-MAN/.
4564         * automake.in (&handle_clean): Don't escape what's given to
4565         &transform.
4566
4567 2001-02-27  Akim Demaille  <akim@epita.fr>
4568
4569         Distinguish automake substitutions from config.status
4570         substitutions.
4571
4572         * automake.in (&add_depend2): Transform AMDEP.
4573         (&handle_clean): Transform MCFILES and MFILES.
4574         (&file_contents): Transform MAINTAINER_MODE.
4575         (&transform, &am_install_var): Use `%', not `@'.
4576         Adjust all the *.am files.
4577         * clean.am: Use ?MFILES? instead of ad hoc MAINTAINERCLEAN.
4578         * depend2.am: Display the double dependency on both ?AMDEP? and
4579         @AMDEP@.
4580
4581 2001-02-27  Tom Tromey  <tromey@redhat.com>
4582
4583         * distdir.am (distcheck): Fixed new code.
4584
4585         * tests/yaccvpath.test: Fail gracefully if bison/flex not found.
4586         Only configure once.
4587
4588         * distdir.am (distcheck): Print error message if distclean failed
4589         to fully clean.
4590
4591 2001-02-27  Pavel Roskin  <proski@gnu.org>
4592
4593         * tests/Makefile.am (TESTS): s/yaccpvath/yaccvpath/.
4594
4595 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
4596
4597         * tests/Makefile.am (TESTS): Added yaccvpath.test.
4598         * tests/yaccvpath.test: New file.
4599
4600 2001-02-26  Akim Demaille  <akim@epita.fr>
4601
4602         * automake.in (&am_install_var): Recognize whether predefined
4603         directories are `data' or `exec'.
4604         * libs.am, ltlib.am, progs.am, python.am, scripts.am: Install
4605         ?EXEC?.
4606         * tests/instdata2.test: Update.
4607
4608 2001-02-26  Akim Demaille  <akim@epita.fr>
4609
4610         * texinfos.am: No ?EXEC? hook as currently installing TEXINFOS is
4611         necessarily in infodir.
4612
4613 2001-02-26  Akim Demaille  <akim@epita.fr>
4614
4615         * automake.in ($am_file): Be `local', as my'd variables used in
4616         `foreach' loops are always private to the loop.
4617
4618 2001-02-26  Pavel Roskin  <proski@gnu.org>
4619
4620         * Makefile.am: Add install.am.
4621
4622 2001-02-26  Akim Demaille  <akim@epita.fr>
4623
4624         * automake.in (&target_cmp, &dist_cmp): Do not prototype comparing
4625         routines, otherwise the elements to compare are passed in @_
4626         instead of $a and $b.
4627
4628 2001-02-26  Akim Demaille  <akim@epita.fr>
4629
4630         * automake.in (%required_targets): `installcheck-am' is needed.
4631
4632 2001-02-26  Akim Demaille  <akim@epita.fr>
4633
4634         * automake.in (&transform_cond): Merge into...
4635         (&transform): this.
4636         Adjust all uses.
4637
4638 2001-02-26  Akim Demaille  <akim@epita.fr>
4639
4640         * automake.in (&handle_dist): Use &transform instead of dedicated
4641         magic for DISTDIRS.
4642         But be sure to always do it.
4643         * distdir.am: Adjust.
4644
4645 2001-02-26  Akim Demaille  <akim@epita.fr>
4646
4647         * automake.in: Use File::Basename.
4648         (&dirname, &basename): Remove.
4649
4650 2001-02-26  Akim Demaille  <akim@epita.fr>
4651
4652         * automake.in ($me): New.
4653         Use it.
4654         (&usage): Display your full name.
4655
4656 2001-02-26  Akim Demaille  <akim@epita.fr>
4657
4658         * automake.texi (Invoking Automake): Remove dead options.
4659
4660 2001-02-26  Akim Demaille  <akim@epita.fr>
4661
4662         * automake.in (&scan_texinfo_file): Also compute the list of files
4663         to clean.
4664         Handle local errors.
4665         (&handle_texinfo): Use it.
4666
4667 2001-02-26  Akim Demaille  <akim@epita.fr>
4668
4669         * automake.in: Don't pass arguments to...
4670         (&parse_arguments): Work on @ARGV.
4671         Use Getopt.
4672         Add support for `-f'.
4673         (&version): New.
4674         (&usage): Update.
4675
4676 2001-02-26  Akim Demaille  <akim@epita.fr>
4677
4678         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
4679         handle installcheck and installcheck-am.
4680         * install.am: Do it.
4681
4682 2001-02-26  Akim Demaille  <akim@epita.fr>
4683
4684         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
4685         handle install and install-am.
4686         * install.am: Do it.
4687
4688 2001-02-26  Akim Demaille  <akim@epita.fr>
4689
4690         * automake.in (&handle_merge_targets, &do_one_merge_target): Don't
4691         work on targets handled by %dependencies.
4692         (&handle_factored_dependencies): Do it.
4693         * install.am: Install install-exec, install-data and uninstall's
4694         suites.
4695
4696 2001-02-26  Akim Demaille  <akim@epita.fr>
4697
4698         * automake.in (&handle_merge_targets): Move `install-strip' from
4699         here...
4700         * install.am: to here.
4701
4702 2001-02-26  Akim Demaille  <akim@epita.fr>
4703
4704         * automake.in (@installdirs): Remove.
4705         (&file_contents): Be able to grow Automake macros with `+='.
4706         (&handle_texinfo, &handle_man_pages, &am_install_var): Let your
4707         files define _am_installdirs.
4708         (&handle_installdirs): Remove the code, just output `install.am'.
4709         * install.am: New.
4710         * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
4711         * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
4712
4713 2001-02-26  Akim Demaille  <akim@epita.fr>
4714
4715         * tests/instdata2.test (libexec_DATA): Exercise more
4716         possibilities.
4717
4718 2001-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
4719
4720         * header-vars.am (INSTALL_STRIP_FLAG): Remove (obsolete).
4721
4722 2001-02-25  Tom Tromey  <tromey@redhat.com>
4723
4724         * tests/instdata2.test: Added `sbin_DATA' check.
4725
4726         * tests/Makefile.am (TESTS): Added subdircond.test.
4727         * tests/subdircond.test: New file.
4728         * automake.in (handle_gettext): Don't fail if SUBDIRS
4729         conditionally defined.
4730
4731         * automake.in: Use IO::File.
4732         (generate_makefile): Use IO::File.
4733         (scan_texinfo_file): Likewise.
4734         (handle_aclocal_m4): Likewise.
4735         (scan_autoconf_traces): Likewise.
4736         (scan_one_autoconf_file): Likewise.
4737         (read_am_file): Likewise.
4738         (file_contents): Likewise.
4739         (create): Likewise.
4740
4741 2001-02-25  Akim Demaille  <akim@epita.fr>
4742
4743         * automake.in (handle_texinfo): Remove code handled by texinfos.am.
4744
4745 2001-02-25  Akim Demaille  <akim@epita.fr>
4746
4747         * automake.in (&transform): Also call &transform_cond on your
4748         arguments.
4749         (&handle_dist): Adjust.
4750         (&handle_factored_dependencies): Uniq dependencies.
4751
4752 2001-02-25  Akim Demaille  <akim@epita.fr>
4753
4754         * automake.in (&handle_gettext): Simplify redundant `if'.
4755         Used &variable_value, don't read %contents directly.
4756
4757 2001-02-25  Akim Demaille  <akim@epita.fr>
4758
4759         * automake.in ($install_recursive): Remove, replaced with calls to
4760         `&variable_defined ('SUBDIRS')'.
4761         (&handle_dist, &handle_clean): Don't transform_cond SUBDIRS since...
4762         (&file_contents): now does.
4763
4764 2001-02-25  Akim Demaille  <akim@epita.fr>
4765
4766         * automake.in (&handle_man_pages): $found is dead.
4767
4768 2001-02-25  Akim Demaille  <akim@epita.fr>
4769
4770         Internally just store the conditionals as space separated lists of
4771         CONDITIONS (instead of @CONDITIONS@).
4772
4773         * automake.in (&conditional_true_when, &variable_conditions_sub):
4774         Split conditions at spaces.
4775         (&handle_dependencies, &variable_conditions_permutations): Don't
4776         put @ around conditions.
4777         (&variable_conditions_cmp): There are no @ to strip.
4778         (&make_condition): New.
4779         (&define_pretty_variable, &read_main_am_file, &read_am_file): Use
4780         it.
4781         (&read_main_am_file, &read_am_file): Stop playing with @ by hand.
4782         Join @conditional_stack with spaces.
4783         (&read_main_am_file): Adjust the output of variables.
4784         Output `TRUE = true' under the condition `TEST' as `@TEST@TRUE =
4785         true' and no longer `@TEST@TRUE = @TEST@true'.
4786         (&variable_conditions_cmp): Rename as...
4787         (&by_condition): this.
4788         Sort in a human pleasant order.
4789         Use it everywhere a human can see conditions.
4790         (&variable_conditions_reduce): Don't sort conditions, that's
4791         pointless.
4792         * tests/cond.test, ctarget1.test, pluseq3.test: Strengthen.
4793
4794 2001-02-25  Akim Demaille  <akim@epita.fr>
4795
4796         * automake.in: `my' the globals.
4797
4798 2001-02-25  Akim Demaille  <akim@epita.fr>
4799
4800         * automake.in (&initialize_per_input): %targets_conditionals is
4801         new.
4802         (&read_am_file): When slurping a rule, set the target related
4803         variable, and no variable related variable.
4804         (&file_contents): Likewise.
4805         * tests/vartar.test, tests/ctarget1.test: New.
4806
4807 2001-02-25  Akim Demaille  <akim@epita.fr>
4808
4809         * automake.in (&variable_defined, &variable_value_as_list_worker):
4810         If $VAR is effectively a variable, don't die if it's also a
4811         target.
4812         Plus some formatting changes.
4813
4814 2001-02-25  Akim Demaille  <akim@epita.fr>
4815
4816         * automake.in: Mying changes.
4817         * Makefile.am (maintainer-check): Check the stability of the
4818         number of uses of `local'.
4819
4820 2001-02-25  Akim Demaille  <akim@epita.fr>
4821
4822         * automake.in: Mying changes.
4823
4824 2001-02-25  Akim Demaille  <akim@epita.fr>
4825
4826         * automake.in: Mying changes.
4827
4828 2001-02-25  Akim Demaille  <akim@epita.fr>
4829
4830         * automake.in: Mying changes.
4831         (&handle_tags): Fix a bug uncovered by the previous mying changes:
4832         transform CONFIG into $config, not $xform.
4833
4834 2001-02-25  Akim Demaille  <akim@epita.fr>
4835
4836         * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var):
4837         Don't deal with install-data-am, install-exec-am and unstall-am.
4838         (&initialize_per_input): Add them to %dependencies.
4839         Remove %exec_dir_p since the *.am files are now in charge of it.
4840         Remove @uninstall, @install_data, @install_exec.
4841         (&handle_merge_targets): Adjust to these removals.
4842         (&file_contents): Also &transform_cond for --no-installman and
4843         --no-installinfo.
4844         (&do_one_merge_target): Add some magic to install hooks on
4845         %dependencies' targets.
4846         (%required_targets): New.
4847         (&handle_factored_dependencies): Output required targets.
4848         * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
4849         * mans-vars.am, mans.am, progs.am, python.am, scripts.am,
4850         * texinfos.am: Declare your dependencies on install-data-am,
4851         install-exec-am and uninstall-am.
4852         * tests/instdata2.test (incldata_HEADERS): New test.
4853
4854 2001-02-24  Tom Tromey  <tromey@redhat.com>
4855
4856         * Makefile.am (amfiles): Added texibuild.am.
4857         * texibuild.am: New file.
4858         * tests/Makefile.am (TESTS): Added texinfo9.test.
4859         * tests/texinfo9.test: New file.
4860         * automake.in (handle_texinfo): Keep track of suffixes used.  Give
4861         error if suffix unrecognized.  Removed extraneous newline.
4862
4863 2001-02-23  Akim Demaille  <akim@epita.fr>
4864
4865         * automake.in (&am_install_var): Don't hook on the clean targets
4866         and .PHONY.
4867         * data-clean.am, java-clean.am, libs-clean.am, lisp-clean.am,
4868         * ltlib-clean.am, progs-clean.am, python-clean.am, tags-clean.am:
4869         Do it.
4870
4871 2001-02-23  Akim Demaille  <akim@epita.fr>
4872
4873         * automake.in: Promote local `my' over `local'.
4874
4875 2001-02-23  Akim Demaille  <akim@epita.fr>
4876
4877         * automake.in: Formatting and mying changes.
4878
4879 2001-02-23  Akim Demaille  <akim@epita.fr>
4880
4881         * automake.in: Formatting and mying changes.
4882
4883 2001-02-23  Akim Demaille  <akim@epita.fr>
4884
4885         * automake.in (&handle_man_pages): Let install-man and
4886         uninstall-man be handled by the dependency tracker.
4887         (&initialize_per_input): Let %dependencies track them.
4888         * mans.am: Add the needed hooks with the proper dependencies.
4889
4890 2001-02-22  Pavel Roskin  <proski@gnu.org>
4891
4892         * tests/target-cflags.test: Don't use subshell to configure in
4893         subdirectory. Typo fix - run `./foo', not `/foo'.
4894
4895 2001-02-22  Akim Demaille  <akim@epita.fr>
4896
4897         * automake.in: Formatting and mying changes.
4898
4899 2001-02-21  Tom Tromey  <tromey@redhat.com>
4900
4901         * automake.in (handle_dist): Introduce new variable to avoid extra
4902         keys in %dist_dirs.  Fixes distdir.test.
4903
4904         * automake.in (handle_texinfo): Only remove suffixes we can
4905         handle.
4906
4907         * tests/distdir.test: Check to make sure directory isn't made in
4908         build directory.
4909
4910         * automake.in (handle_dist): Do nothing in Cygnus mode.
4911
4912 2001-02-21  Pavel Roskin  <proski@gnu.org>
4913
4914         * header-vars.am: Remove tabs before variable definitions.
4915
4916 2001-02-21  Akim Demaille  <akim@epita.fr>
4917
4918         * tests/distdir.test (EXTRA_DIST): Use a finer pattern to avoid
4919         false diagnostics.
4920
4921 2001-02-21  Akim Demaille  <akim@epita.fr>
4922
4923         * automake.in (&dist_cmp, &target_cmp): Be sure to return a
4924         numeric value as required by Perl 5.6.
4925
4926 2001-02-21  Akim Demaille  <akim@epita.fr>
4927
4928         * dist-vars.am: Remove, merge into...
4929         * distdir.am: this.
4930         * automake.in (dirname, basename, backname): Move to the top of
4931         the file so that prototypes are checked,
4932         Use them without `&'.
4933         (&handle_dist): Adjust.
4934
4935 2001-02-21  Akim Demaille  <akim@epita.fr>
4936
4937         * automake.in (&check_ambiguous_conditional, &read_main_am_file):
4938         Use a uniform naming scheme.
4939         (&quote_cond_val, &unquote_cond_val): Delete, dead code.
4940         (&read_am_file): Fix conditional definition of backslash continued
4941         items.
4942
4943 2001-02-21  Akim Demaille  <akim@epita.fr>
4944
4945         Change the handling of conditionals: instead of using an ad-hoc
4946         encoding to store a hash in a string, use hashes.
4947
4948         * automake.in (&conditional_dump): New.
4949         (&check_ambiguous_conditional, &variable_defined)
4950         (&variable_conditions_sub, &variable_value_as_list_worker)
4951         (&define_variable, read_am_file, &read_main_am_file): Be sure to
4952         handle `$conditional{$vars}' as a hash instead of a plain string.
4953
4954 2001-02-21  Akim Demaille  <akim@epita.fr>
4955
4956         * automake.in (&conditional_true_when): Modernize, simplify.
4957         Warning: `$comp' is now private (my), while it used to be
4958         `inherited' from a `local' elsewhere in the code.  AFAICT it was
4959         wrong, but some dirty side effect might show up.
4960         (&conditionals_true_when): New.
4961         (&variable_conditions_sub, &variable_conditions_reduce): Use it.
4962
4963 2001-02-21  Akim Demaille  <akim@epita.fr>
4964
4965         * automake.in ($top_builddir): Remove, used in one place.
4966         (&define_standard_variables): Adjust.
4967         Move the definition of triplet variables into...
4968         * header-vars.am: here.
4969
4970 2001-02-21  Akim Demaille  <akim@epita.fr>
4971
4972         * automake.in (&initialize_global_constants): Don't define $USAGE.
4973         (&usage): Handle the former content of $USAGE.
4974         Don't pretend autoconf cares about Makefile.in.
4975         Classify the options.
4976         (&handle_tests): Formatting and mying changes.
4977
4978 2001-02-21  Akim Demaille  <akim@epita.fr>
4979
4980         * automake.in (&handle_tests_dejagnu): Move the definition of a
4981         default `site.exp' into...
4982         * dejagnu.am (site.exp): here.
4983         Use DOS compliant file names.
4984
4985 2001-02-21  Akim Demaille  <akim@epita.fr>
4986
4987         * automake.in (&dist_cmp): New.
4988         (&handle_dist): Use it.
4989         Promote `my' over `local'.
4990
4991 2001-02-21  Akim Demaille  <akim@epita.fr>
4992
4993         * dist.am: Remove, merge into...
4994         * distdir.am: here.  Use the neat sed snippet for banners.
4995         BTW, distcheck is phony.
4996         * automake.in (&handle_dist_worker): Remove, merge into...
4997         (&handle_dist): this.
4998         (&file_contents): Strip leading new lines.
4999         Be sure to end comments with new lines.
5000
5001 2001-02-21  Akim Demaille  <akim@epita.fr>
5002
5003         * distdir.am (GZIP_ENV): Define.
5004         * automake.in (&handle_dist): Don't.
5005         (&uniq): New.
5006         (&handle_dist_worker, &am_install_var): Use it.
5007
5008 2001-02-21  Akim Demaille  <akim@epita.fr>
5009
5010         * distdir.am (distdir): Handle the DIST-TARGETS.
5011         * automake.in (&handle_dist_worker): Don't.
5012
5013 2001-02-21  Akim Demaille  <akim@epita.fr>
5014
5015         * automake.in (&file_contents): Transform the global options (such
5016         as CYGNUS).
5017         (&handle_texinfo, &handle_dist_worker, &handle_tests_dejagnu): Don't.
5018
5019 2001-02-21  Akim Demaille  <akim@epita.fr>
5020
5021         * distdir.am (distdir): Be sure to have permissive rights on its
5022         contents.
5023         (dist-all, dist-bzip2, dist-zip, dist-tarZ): New conditional
5024         targets.
5025         And BTW, all these guys are phony.
5026         * automake.in (&handle_dist_worker): As its name doesn't indicate,
5027         output distributions.
5028         (&handle_dist): As its name doesn't indicate, don't.
5029         (&initialize_global_constants): Don't define variables which
5030         content is now handled by distdir.am.
5031         But register `dist-all' as a factored target.
5032         (&handle_factored_dependencies): Don't output empty targets.
5033
5034 2001-02-20  Tom Tromey  <tromey@redhat.com>
5035
5036         * m4/init.m4 (AM_INIT_AUTOMAKE): Simplify m4_pattern_allow
5037         invocation.
5038
5039 2001-02-18  Tom Tromey  <tromey@redhat.com>
5040
5041         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Don't call AM_PROG_STRIP.
5042         Set INSTALL_STRIP_PROGRAM_ENV to `$(STRIP)', not `$STRIP'.
5043         (AM_PROG_STRIP): Commented out.
5044
5045 2001-02-17  Raja R Harinath  <harinath@cs.umn.edu>
5046
5047         * depcomp (gcc3): Protect against the compiler deleting
5048         the dependency output file.
5049
5050 2001-02-17  Tom Tromey  <tromey@redhat.com>
5051
5052         * automake.in (handle_merge_targets): Use double quotes around
5053         setting of INSTALL_STRIP_PROGRAM.
5054         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
5055         to absolute path at runtime.
5056         (AM_PROG_STRIP): Don't explicitly test $STRIP.
5057
5058 2001-01-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
5059
5060         * m4/strip.m4: New file.
5061         * m4/Makefile.am (m4data_DATA): Add strip.m4.
5062         * m4/init.m4: Call AM_PROG_INSTALL_STRIP.
5063         * m4/missing.m4 (AM_AUX_DIR_EXPAND): New function.
5064         * automake.in (handle_merge_targets): In the install-strip rule,
5065         set INSTALL_PROGRAM to INSTALL_STRIP_PROGRAM, and INSTALL_PROGRAM_ENV
5066         to INSTALL_STRIP_PROGRAM_ENV; don't use INSTALL_STRIP_FLAG.
5067         * progs.am (install-@DIR@PROGRAMS): Adapt to use INSTALL_PROGRAM_ENV,
5068         don't use INSTALL_STRIP_FLAG any longer.
5069
5070 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
5071
5072         * automake.in (scan_one_configure_file): Unquote AC_CONFIG_AUX_DIR's
5073         argument.
5074
5075 2001-02-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
5076
5077         * automake.in (unquote_m4_arg): New function.
5078         (scan_one_configure_file): Call unquote_m4_arg on
5079         AM_CONFIG_HEADER argument, so that AM_CONFIG_HEADER([foobar.h])
5080         works.
5081
5082 2001-02-15  Tom Tromey  <tromey@redhat.com>
5083
5084         * config.guess, config.sub: New versions from FSF.
5085
5086         * Makefile.am (WGET): New macro.
5087         (FETCHFILES): New macro.
5088         (fetch): New target.
5089
5090         * tests/subobj3.test: Exit with status 77 if gcc not found.
5091         * tests/pr9.test: Exit with status 77 if gzip not found.
5092         * tests/pr87.test: Exit with status 77 if gcc not found.
5093         * tests/pr19.test: Exit with status 77 if gzip or gcc not found.
5094         * tests/install2.test: Exit with status 77 if gzip not found.
5095         * tests/exsource.test: Exit with status 77 if GNU make not found.
5096         * tests/ansi3.test: Exit with status 77 if gcc not found.
5097
5098         * tests/target-cflags.test: Require GNU make.  Exit with status 77
5099         if gcc or make not found.  Fixes PR automake/121.
5100
5101         * configure.in: Require Perl 5.005.
5102         * automake.in: Require 5.005.
5103
5104         * automake.texi (Top): Conditionalize on `nottex', not `info'.
5105         Fixes PR automake/122.
5106
5107 2001-02-14  Tom Tromey  <tromey@redhat.com>
5108
5109         * automake.in (add_depend2): Only emit a given object rule once.
5110         Fixes specflags6.test.
5111
5112 2001-02-14  Richard Boulton  <richard@tartarus.org>
5113
5114         * tests/specflags6.test: New file.
5115
5116 2001-02-14  Tom Tromey  <tromey@redhat.com>
5117
5118         * automake.texi (A Shared Library): Mention -module.
5119
5120 2001-02-13  Tom Tromey  <tromey@redhat.com>
5121
5122         * automake.in (do_one_merge_target): Always register $name and
5123         $name-am as phony.
5124
5125         * automake.in (do_one_merge_target): Register `all' as phony
5126         target.
5127
5128         * configure.in: Updated to 1.4e for cvs.
5129
5130 2001-02-12  Tom Tromey  <tromey@redhat.com>
5131
5132         * configure.in: Updated to 1.4d and released.
5133
5134         * m4/init.m4 (AM_INIT_AUTOMAKE): Explicitly allow various AM_*
5135         names through autoconf.
5136
5137         Fix for subdirbuiltsources.test:
5138         * automake.in (initialize_per_input): [all_target] Initialize to
5139         empty string.
5140         (handle_merge_targets): Use all-redirect target to handle built
5141         sources.
5142         (do_one_merge_target): Don't generate all-redirect rule.
5143
5144 2001-02-11  Peter Muir  <iyhi@yahoo.com>
5145
5146         * tests/subdirbuiltsources.test: New file.
5147         * tests/Makefile.am (TESTS): Added new file.
5148
5149 2001-02-10  Tom Tromey  <tromey@redhat.com>
5150
5151         * tests/condlib.test: New file.
5152         * tests/Makefile.am (TESTS): Added new file.
5153
5154 2001-02-10  Lars J. Aas  <larsa@sim.no>
5155
5156         * automake.in ($MACRO_PATTERN): Include '@' in name regex.
5157         (&canonicalize): New. Includes '@' in canonical range.
5158         (&check_canonical_spelling, &handle_programs, &handle_libraries,
5159         &handle_ltlibraries, &handle_texinfo): Use &canonicalize.
5160
5161 2001-02-10  Raja R Harinath  <harinath@cs.umn.edu>
5162
5163         * automake.in (handle_configure): Revert part of
5164         '2001-02-04  Kevin Ryde <user42@zip.com.au>'.  Don't
5165         set CONFIG_COMMANDS explicitly.
5166
5167 2001-02-09  Raja R Harinath  <harinath@cs.umn.edu>
5168
5169         * depcomp (gcc3): Propagate exit code.
5170
5171 2001-02-09  Lars J. Aas  <larsa@sim.no>
5172
5173         * header.am (install-@DIR@HEADERS): s,?!NOBASE?,?!BASE?, (typo)
5174
5175 2001-02-09  Tom Tromey  <tromey@redhat.com>
5176
5177         Clean up maintainer-check warnings:
5178         * Makefile.am (maintainer-check): Ignore comment lines in CDPATH
5179         check.
5180         * automake.in (handle_dist_worker): Removed redundant `my $xform'.
5181
5182 2001-02-09  Akim Demaille  <akim@epita.fr>
5183
5184         * automake.in (&file_contents): Remove a dead branch.
5185
5186 2001-02-09  Akim Demaille  <akim@epita.fr>
5187
5188         * automake.in (&transform): Use `my', not `local'.
5189         (&transform_cond): New.
5190         (&get_object_extension, &handle_texinfo, &handle_tags)
5191         (&handle_dist_worker, &handle_dist, &add_depend2, &handle_clean)
5192         (&handle_tests_dejagnu): Use it.
5193         * texinfos.am, lisp.am, header.am, dist.am, distdir.am, depend2.am
5194         * dejagnu.am, data.am, clean.am: Adjust to the new syntax.
5195
5196 2001-02-09  Akim Demaille  <akim@epita.fr>
5197
5198         * automake.in: Various formatting changes, and modernization of
5199         Perl constructs.
5200         (&backname): New.
5201         (&handle_configure, define_standard_variables): Use it.
5202
5203 2001-02-08  Tom Tromey  <tromey@redhat.com>
5204
5205         * automake.in (file_contents): Only add $actions if any are
5206         found.  Fixes new failure in pr87.test.
5207
5208 2001-02-08  Pavel Roskin  <proski@gnu.org>
5209
5210         * tests/pr87.test: Check foo/Makfile.in after it is created.
5211
5212 2001-02-08  Tom Tromey  <tromey@redhat.com>
5213
5214         * tests/pr87.test: Added check for blank line after `.c.o' rule.
5215         Report from Lars J. Aas.
5216
5217 2001-02-07  Lars J. Aas  <larsa@sim.no>
5218
5219         * lisp.am (install-@DIR@LISP): Removed extra space.
5220         * header.am (install-@DIR@HEADERS): Removed extra space.
5221         * data.am (install-@DIR@DATA): Removed extra space.
5222
5223 2001-02-07  Tom Tromey  <tromey@redhat.com>
5224
5225         * m4/init.m4 (AM_INIT_AUTOMAKE): Use \", not ".
5226
5227         * automake.in (handle_dependencies): Use _am_include, not
5228         AMINCLUDE.
5229         * tests/exsource.test: Use _am_include, not AMINCLUDE.
5230         * m4/make.m4 (AM_MAKE_INCLUDE): Use _am_include, not AMINCLUDE.
5231
5232         * tests/Makefile.am (XFAIL_TESTS): Removed distcommon.test.
5233
5234         * tests/Makefile.am (EXTRA_DIST): Added ChangeLog-old.
5235
5236         * automake.in (handle_configure): Handle case where output file is
5237         in subdir with no Makefile of its own.  Fixes remake3.test,
5238         distcommon.test.
5239
5240 2001-02-06  Pavel Roskin  <proski@gnu.org>
5241
5242         * automake.in (handle_dependencies): Rename AM_INCLUDE to
5243         AMINCLUDE.
5244         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
5245         * tests/exsource.test: Likewise.
5246
5247 2001-02-06  Derek Price  <derek.price@openavenue.com>
5248
5249         * automake.in (handle_configure): Fix syntax error.
5250
5251 2001-02-06  Akim Demaille  <akim@epita.fr>
5252
5253         * subdirs.am: This file is the exception: clean recursive targets
5254         are called by the clean targets, not the clean-am targets.
5255         Otherwise we have a circular dependency: clean -> clean-am ->
5256         clean-recursive -> clean.
5257         * automake.in (handle_clean): Bind `-local' targets to `-am'
5258         targets, not top targets.
5259         Don't declare -recursive dependencies of the clean targets:
5260         `subdirs.am' did it.  Less hard coded knowledge, transfered
5261         into...
5262         * clean.am: here.
5263
5264 2001-02-06  Akim Demaille  <akim@epita.fr>
5265
5266         Monstro unsplitable patch.
5267
5268         The aim is to remove hard coded knowledge about clean targets from
5269         automake.in, leaving them in the *.am files.
5270         In addition to the mechanic needed to factor some dependencies, it
5271         appears some rules (most notably distclean and maintainer-clean)
5272         need factored actions.  So first, be ready to catch factored
5273         rules.
5274
5275         * automake.in (&file_contents): For the time being, use an extended
5276         $RULE_PATTERN which is able to match any kind of rules, with or
5277         without dependency, with or without actions.
5278         Handle all the rules uniformly, storing in %actions the factored
5279         actions.
5280         (&flatten, &target_cmp): New.
5281         (&handle_factored_dependencies): Output the %actions.
5282         No longer special case `clean'.
5283         Output the rules in alphabetical order, but keeping `.PHONY' last.
5284
5285         Now we must not use &push_phony_cleaners, which is doing all sort
5286         of magic to push a bit of everything in all the clean targets.
5287         The biggest problem being that, making a Cartesian product, it
5288         requires many useless targets.  The `*.am' file know better.
5289         But first, register the new factored rules.
5290
5291         * automake.in (&initialize_per_input): Include clean, mostlyclean,
5292         maintainer-clean, distclean and their `*-am' counterpart in
5293         %dependencies.
5294         Initialize %actions.
5295         (get_object_extension, handle_texinfo, handle_tags, handle_multilib)
5296         handle_dependencies, handle_subdirs, handle_configure, handle_clean)
5297         (handle_emacs_lisp, handle_python): Don't play with
5298         &push_phony_cleaners nor &depend and `clean'.
5299         * texinfos.am, texi-vers.am, tags-clean.am:
5300         * subdirs.am,python-clean.am, multilib.am, lisp-clean.am:
5301         * libtool.am, kr-extra.am, depend.am, compile.am, clean.am:
5302         * clean-kr.am, clean-hdr.am: Do it.
5303         Whenever a target is empty, just remove it, it will no longer be
5304         called.
5305
5306         There is still some magic about clean to hard code.  But really,
5307         that's the end of &do_one_clean_target.
5308
5309         * automake.in (&do_one_clean_target): Kaboom out.
5310         (&handle_clean): Rewrite the magic code.
5311         (&am_install_var): No longer use &push_phony_cleaners, nor depend
5312         on `clean'.
5313         (&push_phony_cleaners): Kaboom too.
5314
5315 2001-02-06  Akim Demaille  <akim@epita.fr>
5316
5317         * automake.in (do_one_clean_target): Don't hard code knowledge
5318         about libtool, and maintainer-clean.
5319         * clean.am, libtool.am: Handle these.
5320
5321 2001-02-05  Akim Demaille  <akim@epita.fr>
5322
5323         * automake.in (handle_texinfo): No longer hard code the clean
5324         targets.
5325         (texinfos.am): Include them.
5326
5327 2001-02-05  Akim Demaille  <akim@epita.fr>
5328
5329         * Makefile.am (perl4-check): Remove, we now require Perl 5.
5330         (maintainer-check): Don't be silent when you find a problem, and
5331         actually, even specify the locations.
5332         Also check that @_ is assigned to arrays.
5333
5334 2001-02-05  Akim Demaille  <akim@epita.fr>
5335
5336         * m4/regex.m4: Use AC_LIBSOURCES.
5337         * automake.in (scan_autoconf_traces): Trace AC_LIBSOURCE, not
5338         _AC_LIBOBJ_DECL.
5339
5340 2001-02-04  Tom Tromey  <tromey@redhat.com>
5341
5342         * m4/Makefile.am (m4data_DATA): Added make.m4.
5343         * automake.in (handle_dependencies): Use @AM_INCLUDE@ to include
5344         dependency files.
5345         * m4/depend.m4 (AM_DEPNDENCIES): Require AM_MAKE_INCLUDE.
5346         Copy depcomp to subdir.
5347         * m4/make.m4: New file.
5348
5349 2001-02-04  Pavel Roskin  <proski@gnu.org>
5350
5351         * automake.in (handle_dist_worker): Remove a line that is now
5352         in distdir.am.
5353
5354 2001-02-04  Kevin Ryde  <user42@zip.com.au>
5355
5356         * automake.in (handle_configure): Call config.status with empty
5357         CONFIG_LINKS and CONFIG_COMMANDS when regenerating a file.
5358
5359 2001-02-04  Tom Tromey  <tromey@redhat.com>
5360
5361         * depcomp (ddashmd): Removed case.
5362         (sgi): Handle failure exit correctly
5363         (aix): Likewise.  Also, add dummy `.h' targets.
5364
5365 2001-02-04  Akim Demaille  <akim@epita.fr>
5366
5367         * distdir.am (distdir): New file, extracted from...
5368         * automake.in (handle_dist_worker): here.
5369         Adjust.
5370
5371 2001-02-04  Akim Demaille  <akim@epita.fr>
5372
5373         * automake.in (@clean): Remove, replaced by...
5374         ($dependencies{'clean'}): this.
5375         Use `&depend' instead of push'ing into @clean.
5376         (handle_factored_dependencies): For the time being, skip 'clean'.
5377         (do_one_clean_target): Don't ask for argument 1 and 4 as they are
5378         always `clean', and `@clean'.
5379
5380 2001-02-04  Akim Demaille  <akim@epita.fr>
5381
5382         * automake.in (%dependencies): Don't be initialize globally for
5383         all the files, but in...
5384         (&initialize_per_input): here.
5385         (&depend): New.
5386         (@phony): Replace all occurrences with the corresponding &depend
5387         invocation.
5388
5389 2001-02-03  Tom Tromey  <tromey@redhat.com>
5390
5391         * header.am (install-@DIR@HEADERS): Use INSTALL_HEADER.
5392         * header-vars.am (INSTALL_HEADER): New macro.
5393
5394         * automake.texi (Rebuilding): New node.
5395
5396 -----
5397
5398 Copyright 2001 Free Software Foundation, Inc.
5399
5400 This file is part of GNU Automake.
5401
5402 GNU Automake is free software; you can redistribute it and/or modify
5403 it under the terms of the GNU General Public License as published by
5404 the Free Software Foundation; either version 2, or (at your option)
5405 any later version.
5406
5407 GNU Automake is distributed in the hope that it will be useful,
5408 but WITHOUT ANY WARRANTY; without even the implied warranty of
5409 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5410 GNU General Public License for more details.
5411
5412 You should have received a copy of the GNU General Public License
5413 along with autoconf; see the file COPYING.  If not, write to
5414 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
5415 Boston, MA 02111-1307, USA.