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