f9a6783777efddd8212887fd9c86a32b7fa8500e
[platform/upstream/automake.git] / ChangeLog
1 2002-09-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
2
3         * tests/Makefile.am (XFAIL_TESTS): Remove specflags7.test and
4         specflags8.test.
5
6 2002-09-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
7
8         * automake.texi (Building ctags and etags): Rename and adjust as ...
9         (Building true and false): ... this.
10         * tests/targetclash.test: New file.
11         * tests/specflags7.test, tests/specflags8.test: Adjust to build
12         true and false.
13         * tests/Makefile.am (TESTS): Add targetclash.test.
14
15         Diagnose target clashes, for PR automake/344:
16         * automake.in (%targets): Record conditionals for definitions.
17         (%target_conditional): Remove (obsoleted by %targets).
18         (%target_source, %target_owner): New hashes.
19         (TARGET_AUTOMAKE, TARGET_USER): New constants.
20         (initialize_per_input): Adjust to reset new variables.
21         (err_cond_target, msg_cond_target): New functions.
22         (msg_target): Adjust usage of %targets.
23         (conditional_ambiguous_p): Take a list of conditional to check
24         as a third parameter, so this can be used for other things that
25         variables.
26         (handle_lib_objects_cond): Adjust conditional_ambiguous_p usage.
27         (variable_defined): Restrict the target-with-same-name check
28         to user targets.
29         (rule_define): Add the $SOURCE argument, and take $OWNER instead
30         of $IS_AM.  Diagnose target clashes (including ambugious
31         conditionals).  Return a list of conditions where the rule should
32         be defined instead of a boolean.  Fill %target_source and
33         %target_owner.
34         (target_define): Use `exists', not `defined'.
35         (read_am_file): Adjust the call to rule_define.
36         (file_contents_internal): Add more FIXMEs.  Simplify my moving
37         and documenting the "define rules in undefined conditions" to
38         rule_define.
39         * tests/Makefile.am (XFAIL_TESTS): Add specflags7.test and
40         specflags8.test.
41
42 2002-09-12  Akim Demaille  <akim@epita.fr>
43
44         * aclocal.in: Prototype all the functions.
45         Add `(C)' to Copyrights.
46         (&add_file): Strip the comments before checking for `AC_REQUIRE'.
47         Remove Perl 4 hacks, since anyway we require 5.005 via General.pm.
48
49 2002-09-11  Akim Demaille  <akim@epita.fr>
50
51         * lib/am/texinfos.am (TEXI2PDF): Pass --batch to texi2dvi, since
52         it was already supported when --pdf support was added.
53
54 2002-09-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
55
56         * lib/Automake/Channels.pm (_default_options): Add `backtrace'.
57         (msg): Die with backtrace if requested.
58         * automake.in: Enable `backtrace' on the `automake' channel.
59
60         * automake.in (process_option_list): Mention `Automake' in
61         version-mismatch error.
62         Suggested by Akim Demaille.
63
64         * tests/Makefile.am ($(TESTS)): Replace by ...
65         (check_SCRIPTS): ... this.
66         Suggested by Raja R Harinath.
67
68 2002-09-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
69
70         * tests/Makefile.am ($(TESTS)): New, depends on defs.
71         (BUILT_SOURCES): Remove (useless because of PR/359).
72
73         * m4/init.m4: Execute cygpath in a sub-shell.
74
75 2002-09-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
76
77         * automake.in (macro_define): Warn about `:=' assignments.
78         * tests/colneq.test: Check for this warning.
79
80         * automake.texi (Include): Fragments are always distributed.
81         * NEWS: Likewise.
82
83 2002-09-08  Andreas Buening  <andreas.buening@nexgo.de>
84
85         Fix for automake/334:
86         * lib/am/depend2.am: Replaced "cygpath -w" by $(CYGPATH_W).
87         * m4/init.m4: New make variable CYGPATH_W.
88
89 2002-09-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
90
91         * configure.in: Check for EGREP and FGREP.  Create tests/defs.
92         * tests/defs: Rename as ...
93         * tests/defs.in: ... this.  Add copyright notice.  Use configure's
94         values for PERL, EGREP, and FGREP.  Be verbose if $srcdir is unset.
95         * tests/Makefile.am (EXTRA_DIST): Remove defs.
96         (BUILT_SOURCES): New.
97         * tests/acinclude.test, tests/aclibobj.test, tests/aclocal.test,
98         tests/aclocali.test, tests/aclocali1.test, tests/aclocalii.test,
99         tests/acoutnoq.test, tests/acoutput.test, tests/acoutput2.test,
100         tests/acoutqnl.test, tests/acouttbs.test, tests/acouttbs2.test,
101         tests/acsilent.test, tests/acsubst.test, tests/acsubst2.test,
102         tests/all.test, tests/alpha.test, tests/amassign.test,
103         tests/ammissing.test, tests/ansi.test, tests/ansi2.test,
104         tests/ansi3.test, tests/ansi4.test, tests/ansi5.test,
105         tests/ansi6.test, tests/ansi7.test, tests/ansi8.test,
106         tests/ar.test, tests/asm.test, tests/autoheader.test,
107         tests/autoheader2.test, tests/auxdir.test, tests/auxdir2.test,
108         tests/backsl.test, tests/backsl2.test, tests/badline.test,
109         tests/badopt.test, tests/badprog.test, tests/block.test,
110         tests/canon.test, tests/canon2.test, tests/canon3.test,
111         tests/canon4.test, tests/canon5.test, tests/ccnoco.test,
112         tests/check.test, tests/checkall.test, tests/clean.test,
113         tests/colneq.test, tests/colneq2.test, tests/colon.test,
114         tests/colon2.test, tests/colon3.test, tests/colon4.test,
115         tests/colon5.test, tests/colon6.test, tests/colon7.test,
116         tests/comment.test, tests/comment2.test, tests/comment3.test,
117         tests/comment4.test, tests/comment5.test, tests/comment6.test,
118         tests/compile_f_c_cxx.test, tests/cond.test, tests/cond10.test,
119         tests/cond11.test, tests/cond12.test, tests/cond13.test,
120         tests/cond14.test, tests/cond15.test, tests/cond16.test,
121         tests/cond17.test, tests/cond18.test, tests/cond19.test,
122         tests/cond2.test, tests/cond20.test, tests/cond21.test,
123         tests/cond22.test, tests/cond23.test, tests/cond24.test,
124         tests/cond3.test, tests/cond4.test, tests/cond5.test,
125         tests/cond6.test, tests/cond7.test, tests/cond8.test,
126         tests/cond9.test, tests/condd.test, tests/condincl.test,
127         tests/condincl2.test, tests/condlib.test, tests/condman.test,
128         tests/condman2.test, tests/conf2.test, tests/confdeps.test,
129         tests/confdist.test, tests/confh.test, tests/confh4.test,
130         tests/config.test, tests/confincl.test, tests/confsub.test,
131         tests/confvar.test, tests/confvar2.test, tests/copy.test,
132         tests/ctarget1.test, tests/cxx.test, tests/cxx2.test,
133         tests/cxxansi.test, tests/cxxcpp.test, tests/cxxlibobj.test,
134         tests/cxxlink.test, tests/cxxnoc.test, tests/cxxo.test,
135         tests/cygwin32.test, tests/dash.test, tests/defun.test,
136         tests/defun2.test, tests/dejagnu.test, tests/dejagnu2.test,
137         tests/depacl.test, tests/depacl2.test, tests/depcomp.test,
138         tests/depcomp2.test, tests/depdist.test, tests/depend.test,
139         tests/depend2.test, tests/depend3.test, tests/depend4.test,
140         tests/destdir.test, tests/dirforbid.test, tests/dirlist.test,
141         tests/discover.test, tests/distcommon.test,
142         tests/distcommon2.test, tests/distcommon3.test,
143         tests/distdir.test, tests/distname.test, tests/dollar.test,
144         tests/double.test, tests/dup2.test, tests/dup3.test,
145         tests/else.test, tests/empty.test, tests/empty2.test,
146         tests/empty3.test, tests/empty4.test, tests/error.test,
147         tests/exdir.test, tests/exdir2.test, tests/exeext.test,
148         tests/exeext2.test, tests/exsource.test, tests/ext.test,
149         tests/ext2.test, tests/extra.test, tests/extra2.test,
150         tests/extra3.test, tests/extra4.test, tests/extra5.test,
151         tests/extra6.test, tests/extra7.test, tests/flibs.test,
152         tests/fnoc.test, tests/fo.test, tests/fonly.test,
153         tests/fortdep.test, tests/fpinst2.test, tests/fpinstall.test,
154         tests/gcj.test, tests/gcj2.test, tests/gcj3.test, tests/gcj4.test,
155         tests/gcj5.test, tests/getopt.test, tests/gettext.test,
156         tests/gettext2.test, tests/gnits.test, tests/gnits2.test,
157         tests/gnits3.test, tests/gnuwarn.test, tests/header.test,
158         tests/implicit.test, tests/include.test, tests/include2.test,
159         tests/info.test, tests/insh.test, tests/insh2.test,
160         tests/install.test, tests/install2.test, tests/installdir.test,
161         tests/installsh.test, tests/instdata.test, tests/instdata2.test,
162         tests/instexec.test, tests/insthook.test, tests/instman.test,
163         tests/instman2.test, tests/interp.test, tests/interp2.test,
164         tests/java.test, tests/java2.test, tests/javaprim.test,
165         tests/javasubst.test, tests/ldadd.test, tests/ldflags.test,
166         tests/lex.test, tests/lex2.test, tests/lex3.test, tests/lex4.test,
167         tests/lex5.test, tests/libobj10.test, tests/libobj11.test,
168         tests/libobj2.test, tests/libobj3.test, tests/libobj4.test,
169         tests/libobj5.test, tests/libobj7.test, tests/libobj8.test,
170         tests/library.test, tests/library2.test, tests/libtool.test,
171         tests/libtool2.test, tests/libtool3.test, tests/libtool4.test,
172         tests/link_c_cxx.test, tests/link_dist.test, tests/link_f_c.test,
173         tests/link_f_c_cxx.test, tests/link_f_cxx.test,
174         tests/link_f_only.test, tests/lisp.test, tests/lisp2.test,
175         tests/listval.test, tests/ltdeps.test, tests/ltlibobjs.test,
176         tests/maintclean.test, tests/make.test, tests/makevars.test,
177         tests/man.test, tests/man2.test, tests/mclean.test,
178         tests/mdate.test, tests/mdate2.test, tests/mdate3.test,
179         tests/mdate4.test, tests/mkinst2.test, tests/mkinstall.test,
180         tests/nobase.test, tests/nodefine.test, tests/nodefine2.test,
181         tests/nodep.test, tests/nodepcomp.test, tests/nodist.test,
182         tests/nodist2.test, tests/noinst.test, tests/noinstdir.test,
183         tests/nolink.test, tests/nostdinc.test, tests/number.test,
184         tests/obsolete.test, tests/order.test, tests/outdir.test,
185         tests/output.test, tests/output2.test, tests/output3.test,
186         tests/output4.test, tests/output5.test, tests/package.test,
187         tests/parse.test, tests/percent.test, tests/pluseq.test,
188         tests/pluseq2.test, tests/pluseq3.test, tests/pluseq4.test,
189         tests/pluseq5.test, tests/pluseq6.test, tests/pluseq7.test,
190         tests/pluseq8.test, tests/pluseq9.test, tests/postproc.test,
191         tests/ppf77.test, tests/pr2.test, tests/pr204.test,
192         tests/pr211.test, tests/pr220.test, tests/pr224.test,
193         tests/pr229.test, tests/pr243.test, tests/pr266.test,
194         tests/pr279-2.test, tests/pr279.test, tests/pr287.test,
195         tests/pr300-lib.test, tests/pr300-ltlib.test,
196         tests/pr300-prog.test, tests/pr307.test, tests/pr72.test,
197         tests/pr87.test, tests/pr9.test, tests/prefix.test,
198         tests/primary.test, tests/primary2.test, tests/proginst.test,
199         tests/python.test, tests/python2.test, tests/ranlib.test,
200         tests/recurs.test, tests/recurs2.test, tests/remake.test,
201         tests/remake2.test, tests/remake3.test, tests/req.test,
202         tests/required.test, tests/required2.test, tests/rulepat.test,
203         tests/scripts.test, tests/seenc.test, tests/sinclude.test,
204         tests/sourcesub.test, tests/sourcesub2.test, tests/space.test,
205         tests/specflags.test, tests/specflags2.test,
206         tests/specflags3.test, tests/specflags6.test,
207         tests/specflags7.test, tests/specflags8.test,
208         tests/specflags9.test, tests/spell.test, tests/spell2.test,
209         tests/spell3.test, tests/spelling.test, tests/stamph.test,
210         tests/stamph2.test, tests/stdlib.test, tests/strip.test,
211         tests/subdir.test, tests/subdir2.test, tests/subdir3.test,
212         tests/subdir4.test, tests/subdir5.test, tests/subdir6.test,
213         tests/subdir7.test, tests/subdirbuiltsources.test,
214         tests/subdircond.test, tests/subdircond2.test,
215         tests/subdircond3.test, tests/subobj.test, tests/subobj2.test,
216         tests/subobj3.test, tests/subobj4.test, tests/subobj5.test,
217         tests/subobj6.test, tests/subobj7.test, tests/subobj8.test,
218         tests/subobj9.test, tests/subobjname.test, tests/subpkg.test,
219         tests/subst.test, tests/substref.test, tests/substtarg.test,
220         tests/suffix.test, tests/suffix10.test, tests/suffix2.test,
221         tests/suffix3.test, tests/suffix4.test, tests/suffix5.test,
222         tests/suffix6.test, tests/suffix7.test, tests/suffix8.test,
223         tests/suffix9.test, tests/symlink.test, tests/symlink2.test,
224         tests/symlink3.test, tests/syntax.test, tests/tags.test,
225         tests/tagsub.test, tests/target-cflags.test, tests/target.test,
226         tests/texinfo.test, tests/texinfo10.test, tests/texinfo13.test,
227         tests/texinfo16.test, tests/texinfo2.test, tests/texinfo3.test,
228         tests/texinfo4.test, tests/texinfo5.test, tests/texinfo6.test,
229         tests/texinfo7.test, tests/texinfo8.test, tests/texinfo9.test,
230         tests/transform.test, tests/unused.test, tests/vars.test,
231         tests/vars2.test, tests/vars3.test, tests/vartar.test,
232         tests/version.test, tests/version2.test, tests/version3.test,
233         tests/version4.test, tests/version5.test, tests/version6.test,
234         tests/vpath.test, tests/vtexi.test, tests/vtexi2.test,
235         tests/warnopts.test, tests/werror.test, tests/whoami.test,
236         tests/xsource.test, tests/yacc.test, tests/yacc2.test,
237         tests/yacc3.test, tests/yacc4.test, tests/yacc5.test,
238         tests/yacc6.test, tests/yacc7.test, tests/yacc8.test,
239         tests/yaccpp.test, tests/yaccvpath.test: Add copyright notice.
240         Source ./defs instead of $srcdir/defs.
241
242 2002-09-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
243
244         * lib/am/distdir.am (distcheck): Strip $(srcdir) prefix on
245         distributed files, to workaround Sun make VPATH munging.
246         This fixes subdircond2.test, subdircond3.test, and subpkg.test
247         on Solaris.
248         * tests/extra6.test, tests/lex3.test, tests/pr87.test,
249         tests/pr9.test, tests/target-cflags.test, tests/texinfo13.test,
250         tests/texinfo16.test, tests/yacc7.test, tests/yaccvpath.test:
251         Don't require GNU make.
252
253         * lib/am/distdir.am (distcheck): Add missing `;'.
254
255         * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Account for
256         Sun make rewriting rules in VPATH builds.  (Fixes gnits3.test.)
257         * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Likewise.
258
259 2002-09-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
260
261         For automake/354:
262         * lib/am/texibuild.am (%SOURCE_SUFFIX%.dvi, %SOURCE_SUFFIX%.pdf):
263         Don't use `-o' unless necessary.
264
265 2002-08-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
266
267         For PR automake/343:
268         * automake.in (scan_texinfo_file) <clean_suffixes>: Remove dvi, ps,
269         and pdf.
270         (output_texinfo_build_rules): Define %DIRSTAMP% when processing
271         texibuild.am.  Return $dirstamp and a list of files to clean.
272         (handle_texinfo_helper): Process texi-vers.am after the call to
273         output_texinfo_build_rules and use $dirstamp to define %DIRSTAMP%.
274         * lib/am/texi-vers.am (%STAMPVTI%): Build %DIRSTAMP% if needed.
275         * lib/am/texibuild.am (%DEST_PREFIX%%DEST_SUFFIX%): Likewise.
276         (%DEST_PREFIX%.dvi, %DEST_PREFIX%.pdf): Depend on %DIRSTAMP%.
277         * tests/texinfo13.test: New file.
278         * tests/Makefile.am (TESTS): Add texinfo13.test.
279         * lib/am/texinfos.am (install-info-am, dist-info): Looks for
280         info files in build or source directory.
281         This completes the change from 2002-07-30 (for PR automake/168).
282
283 2002-08-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
284
285         * automake.in (CLEAN, MAINTAINER_CLEAN): New constants.
286         (maintainer_clean_files): Replace by ...
287         (clean_files): ... this new variable.
288         (initialize_per_input, lang_yacc_target_hook,
289         lang_lex_target_hook): Use %clean_files instead of
290         @maintainer_clean_files.
291         (handle_clean): Rewrite, using %clean_files.
292         (require_build_directory_maybe): Use %clean_files instead
293         of %compile_clean_files.  This allows using
294         &require_build_directory_maybe for non-compiling targets.
295         * lib/am/clean.am (mostlyclean-generic, clean-generic,
296         distclean-generic, maintainer-clean-generic): Rewrite using
297         %MOSTLYCLEAN_RMS%, %CLEAN_RMS%, %DISTCLEAN_RMS%, and
298         %MAINTAINER_CLEAN_RMS%.
299
300         For Debian Bug#157778:
301         * m4/python.m4: Fix output of `python' in checking messages
302         when no version of Python is required.
303
304 2002-08-23  Raja R Harinath  <harinath@cs.umn.edu>
305
306         * lib/am/depend2.am (%EXT%.lo): Fix typo.  Rename the file that
307         was generated by gcc -MF.
308
309 2002-08-23  Pavel Roskin  <proski@gnu.org>
310
311         * lib/am/progs.am: Exit in case of install failure, otherwise
312         it is ignored on Cygwin because of the surrounding "for" loop.
313
314 2002-08-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
315
316         * automake.texi (Top level): More words about conditional
317         subdirectories.  Don't mention AC_PROG_MAKE_SET.
318         * tests/subdircond2.test, tests/subdircond3.test: New files.
319         * tests/Makefile.am (TESTS): Add them.
320
321         For PR automake/347:
322         * automake.in (MACRO_PATTERN): Allow `.' in variable names.
323         (scan_variable_expansions, check_variable_expansions): New functions.
324         (macro_define): Call check_variable_expansions.
325         (read_am_file): Likewise, when outputing rules.
326         (variable_conditions_recursive_sub): Simplify using
327         scan_variable_expansions.
328         * tests/vars3.test: New file.
329         * tests/Makefile.am (TESTS): Add vars3.test.
330         * tests/colneq.test: Use -Wno-portability.
331
332         * lib/Automake/Channels.pm (buffering, backlog): New variables.
333         (buffer_messages, flush_messages): New functions.
334         (@EXPORT): Add buffer_messages and flush_messages.
335         * automake.in (generate_makefile): Call buffer_messages and
336         flush_messages to buffer warnings until AUTOMAKE_OPTIONS has
337         been read.
338
339         * automake.in (read_am_file): Fix computation of path to
340         included file when $(top_srcdir) is not used.
341         * tests/include2.test: Augment.
342
343 2002-08-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
344
345         * automake.in (set_strictness): Never enable 'portability'
346         warnings for now.
347         (usage): Adjust `-Wportability' doc.
348         * automake.texi (Invoking Automake): Likewise.
349         Suggested by Ralf Corsepius.
350
351 2002-08-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
352
353         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Fix cleanup of
354         so_location files in current directory.
355
356         Fix for PR automake/346:
357         * automake.texi (Optional): Supress the documentation for
358         AC_PATH_XTRA, AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE, AC_FUNC_FNMATCH,
359         AC_FUNC_GETLOADAVG, AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_OBSTACK,
360         AC_FUNC_STRTOD, AC_REPLACE_FUNCS, AC_REPLACE_GNU_GETOPT,
361         AC_STRUCT_ST_BLOCKS, AM_WITH_REGEX, AC_CHECK_TOOL, AC_CHECK_PROG,
362         AC_CHECK_PROGS, AC_PATH_PROG, and AC_PATH_PROGS.  Augment the
363         documentation of AC_LIBSOURCE and AC_SUBST to explain this
364         applies to any macro that calls them.
365
366 2002-08-19  Tom Tromey  <tromey@redhat.com>
367
368         For PR automake/348:
369         * tests/Makefile.am (TESTS): Added include2.test.
370         * tests/include2.test: New file.
371         * tests/include.test: Check to make sure include file is
372         distributed.
373         * automake.in (read_am_file): Distribute included files.
374
375 2002-08-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
376
377         Fix for PR automake/345:
378         * tests/defs: Add support for required=non-root, stolen
379         from fileutils' test suite.
380         * tests/destdir.test: Use required=non-root.
381
382         * tests/vtexi.test: Fix spurious failure introduced on 2002-07-30.
383
384 2002-08-17  Tom Tromey  <tromey@redhat.com>
385
386         For PR automake/347:
387         * automake.in (rule_define): Given portability warning if "%" seen
388         in target name.
389         (TARGET_PATTERN): Added `%'.
390         * tests/Makefile.am (TESTS): Added percent.test.
391         * tests/percent.test: New file.
392
393 2002-08-15  Art Haas  <ahaas@neosoft.com>
394
395         * lib/am/depend2.am: Use correct name for dependency file in
396         libtool fastdep case.
397
398 2002-08-14  Art Haas  <ahaas@neosoft.com>
399
400         * lib/am/depend2.am: Added missing `;'.
401
402 2002-08-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
403
404         * automake.texi (Python): Fix wording.
405
406         * tests/ext2.test: New file.  This bug is present in Automake 1.6.3
407         and was fixed by the change on variable_conditions_permutations
408         and invert_conditions on 2002-05-16.
409         * tests/Makefile.am (TESTS): Add ext2.test.
410         Reported by Ladislav Strojil.
411
412 2002-08-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
413
414         * aclocal.in (parse_arguments): Add `dirlist' paths add the
415         very end of the search path, after aclocal-APIVERSION/ and
416         aclocal/.
417         * automake.texi (Macro search path): Adjust to reflect the
418         new ordering.
419         * tests/dirlist.test: Check for this.
420
421 2002-07-31  Charles Wilson  <cwilson@ece.gatech.edu>
422
423         * aclocal.in (parse_arguments): Add support for extending
424         default macro search path, using a `dirlist' file within
425         the aclocal directory.
426         * automake.texi (Invoking aclocal): Move option descriptions into ...
427         (aclocal options): ... this new node.
428         (Macro search path): New node.
429         * tests/dirlist.test: New file.
430         * tests/Makefile.am (TESTS): Add dirlist.test.
431         * m4/dirlist: New file.
432         * m4/Makefile.am (EXTRA_DIST): Add dirlist.
433         * tests/defs: Honor any installed dirlist when searching for
434         libtool.m4 and gettext.m4.
435
436 2002-07-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
437
438         Build info files in builddir instead of srcdir (for PR automake/168),
439         and prepare support for info files in subdirecties.
440         * automake.in (output_texinfo_build_rules): New function.
441         (handle_texinfo_helper): Use output_texinfo_build_rules, and
442         prepare to support subdir texinfos.  Define am__TEXINFO_TEX_DIR.
443         * lib/am/texi-vers.am: Build version.texi and stamp-vti in the
444         current directory, not $(srcdir).  Use %STAMPVTI% to name the stamp
445         file.
446         * lib/am/texibuild.am: Rewrite to output files in the current
447         directory, not $(srcdir).  Also, support both generic and
448         non-generic output.  Pass `-o $@' to makeinfo, texinfo, and
449         texi2dvi (for PR automake/339).
450         * tests/texinfo3.test: Make sure the `.texi:' rule is output.
451         * tests/texinfo10.test: Use set -e, so the checks are not ignored.
452         * tests/texinfo16.test: New file.
453         * tests/Makefile.am (TESTS): Add texinfo16.test.
454
455 2002-07-29  Alexandre Duret-Lutz  <duret_g@epita.fr>
456
457         * aclocal.in (write_aclocal): Don't write the filename ($output_file)
458         in the aclocal.m4 header.
459
460         * configure.in: Require Autoconf 2.53b.
461
462 2002-07-28  Alexandre Duret-Lutz  <duret_g@epita.fr>
463
464         * configure.in: Bump version to 1.6c.
465
466         * configure.in: Bump version to 1.6b.
467         * lib/config.guess, lib/config.sub, lib/Automake/XFile.pm: New
468         upstream versions.
469         * automake.in: Don't write @ALLOCA@ and @LIBOBJS@ in clear text,
470         since this file is processed by config.status.
471
472 2002-07-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
473
474         * automake.in (read_am_file): Escaped newlines in comments are not
475         portable.  If a comment line doesn't start with a `#', add it.
476         * tests/comment6.test: Ensure this is done.
477
478 2002-07-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
479
480         Fix failures reported by Patrick Welche on NetBSD.
481         * tests/gnits2.test, tests/gnits3.test: Don't trust the exit
482         status of `make -k'.
483         * tests/obsolete.test: Source obs.1 and obs.2 from current
484         directory.
485
486 2002-07-23  Patrick Welche  <prlw1@newn.cam.ac.uk>
487
488         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): Add
489         configure.lineno.
490
491 2002-07-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
492
493         * tests/required2.test: New file.
494         * tests/Makefile.am (TESTS): Add required2.test.
495         * automake.in (initialize_per_input): Remove %require_file_found
496         setting.  This reverts my change of 2002-04-19.
497         (require_file_internal): Use the full name of a file as a
498         key in %require_file_found, not only the basename.
499         Reported by Andrew Suffield.
500
501 2002-07-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
502
503         * automake.in (handle_subdirs): Warn if `obj' appears in SUBDIRS.
504         * tests/subdir7.test: New file.
505         * tests/Makefile.am (TESTS): Add subdir7.test.
506
507         * lib/mkinstalldirs: Remove Id keyword.
508
509         * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor
510         AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
511         * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise.
512         * automake.texi (Options) <std-options>: Document
513         AM_INSTALLCHECK_STD_OPTIONS_EXEMPT.
514         (Gnits): Reference std-options.
515         * tests/gnits3.test: New file.
516         * tests/Makefile.am (TESTS): Add gnits3.test.
517         Suggested by Jim Meyering.
518
519 2002-07-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
520
521         * tests/gnits2.test: Use --program-prefix.  Test for scripts too.
522         Replace the sed script by calls to grep, easier to debug.
523         * lib/am/progs.am (installcheck-%DIR%PROGRAMS): Honor nobase
524         and $(transform).
525         * lib/am/scripts.am (installcheck-%DIR%SCRIPTS): Likewise.
526
527         * lib/am/progs.am (install-%DIR%PROGRAMS, uninstall-%DIR%PROGRAMS):
528         Always strip the directory part before applying $(transform),
529         even for nobase_ targets.
530         * lib/am/scripts.am (install-%DIR%SCRIPTS, uninstall-%DIR%SCRIPTS):
531         Likewise.
532         * tests/nobase.test: Use --program-prefix while testing nobase
533         support.
534
535 2002-07-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
536
537         * tests/dirname.test: Delete.  We don't define _AM_DIRNAME anymore.
538         * tests/Makefile.am (TESTS): Remove dirname.test.
539
540         * m4/init.m4: Require Autoconf 2.53b.
541         * m4/header.m4 (AM_CONFIG_HEADER): Redefine using AU_DEFUN.
542         * m4/ccstdc.m4 (fp_PROG_CC_STDC): New AU_DEFUN.
543         * m4/dmalloc.m4 (fp_WITH_DMALLOC): Likewise.
544         * m4/lispdir.m4 (ud_PATH_LISPDIR): Likewise.
545         * m4/maintainer.m4 (jm_MAINTAINER_MODE): Likewise.
546         * m4/protos.m4 (fp_C_PROTOTYPES): Likewise.
547         * m4/regex.m4 (fp_WITH_REGEX): Likewise.
548         * m4/termios.m4: Delete.  AM_SYS_POSIX_TERMIOS is now AU_DEFUNed
549         in m4/obsolete.m4.
550         * m4/winsz.m4: Delete. AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL is now
551         AU_DEFUNed in m4/obsolete.m4.
552         * m4/obsol-gt.m4, m4/obsol-lt.m4, m4/obsolete.m4 : New files.
553         * m4/Makefile.am (dist_m4data_DATA): Add obsol-gt.m4, obsol-lt.m4,
554         and obsolete.m4. Remove termios.m4 and winsz.m4.
555         * aclocal.in (obsolete, obsolete_rx): Remove.
556         (scan_configure): Don't grep for obsolete macros.
557         * tests/defs (AUTOUPDATE): Define.
558         * Makefile.am (maintainer-check): Check for misuses of autoupdate.
559         * tests/obsolete.test: Rewrite.  Exercize the AU_DEFUN macros from
560         m4/obsolete.m4.
561
562         Fix for PR automake/338:
563         * automake.in (seen_gettext_external): New variable.
564         (handle_gettext): Conditionalize the intl/ check on
565         $seen_gettext_external.  Fix grep usage.
566         (scan_autoconf_traces): Set $seen_gettext_external if
567         `external' is passed to AM_GNU_GETTEXT.
568         * tests/gettext.test, tests/gettext2.test: New files.
569         * tests/Makefile.am (TESTS): Add gettext.test and gettext2.test.
570
571 2002-07-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
572             Akim Demaille  <akim@epita.fr>
573
574         * m4/header.m4 (_AM_DIRNAME, _AM_STAMP, _AM_CONFIG_HEADER,
575         _AM_CONFIG_HEADER_INSINUATE): Remove them all.  Leave just ...
576         (AM_CONFIG_HEADER): ... this new definition for compatibility.
577         * m4/init.m4: Don't call _AM_CONFIG_HEADER_INSINUATE.
578         (_AC_AM_CONFIG_HEADER_HOOK): New macro.
579         * tests/confh5.tests: Delete.
580         * tests/Makefile.am (TESTS): Remove confh5.tests.
581
582 2002-07-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
583
584         * automake.in (handle_single_transform_list): Typo.
585
586         * lib/Automake/Channels.pm (dup_channel_setup,
587         drop_channel_setup): New functions.
588         (@EXPORT): Add them.
589         * automake.in (generate_makefile): Call dup_channel_setup and
590         drop_channel_setup.
591         (process_option_list): Recognize --warnings and -W options.
592         * automake.texi (Options): Document them.
593         * tests/pluseq5.test: Check that -Wno-obsolete will disable the
594         warning.
595         * tests/warnopts.test: New file.
596         * tests/Makefile.am (TESTS): Add warnopts.test.
597
598 2002-07-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
599
600         * automake.in: Register warning channel `gnu'.
601         (set_strictness): Turn on `gnu' in --gnu and --gnits.
602         (usage): Mention the `gnu' category.
603         (%var_is_am): Replace by ...
604         (%var_owner): ... this, which uses ...
605         (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE): ... these new constants.
606         Adjust all uses of %var_is_am.
607         (handle_languages): Warn about user variables being overriden.
608         (require_variables): Also check %configure_vars for the existence
609         of a required variable.
610         * automake.texi (Invoking Automake): Document -Wgnu.
611         * tests/yacc2.test, tests/yacc3.test: Use -Wno-gnu when
612         we test YFLAGS.
613         * tests/gnuwarn.test: New file.
614         * tests/Makefile.am (TESTS): Add gnuwarn.test.
615
616 2002-07-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
617
618         Fix for PR automake/337:
619         * automake.in: Redefine the `flags' attribute of each language
620         as a list.  List CPPFLAGS in `flags' when it is used.
621         (register_language): Set the default value of 'flags'.
622         (handle_single_transform_list): Adjust to treat `flags' as a list.
623         (handle_languages): Likewise.  Don't bother defining the
624         configure variable for `c', this is always done since we trace
625         configure.ac.
626         * automake.texi (etags): Use per-executable _CPPFLAGS.
627         (Program and Library Variables): Mention maude_CPPFLAGS.
628         (Program variables): Likewise.
629         * tests/specflags8.test: Use _CPPFLAGS instead of _CFLAGS.
630         * tests/specflags9.test: New file.
631         * tests/Makefile.am (TESTS): Add specflag9.test.
632
633 2002-07-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
634
635         * automake.texi: Use `variable' instead of `macro' everywhere it
636         designates a Makefile variable.
637         (Texinfo): `VERSION', `UPDATED', `EDITION', and `UPDATED-MONTH' are
638         `flags', not `macros'.  `Macro' means something else in Texinfo.
639         Also show how to use these flags.
640         * automake.in (file_contents_internal): s/macro/variable/ in
641         error message.
642
643         * automake.in (parse_arguments): Call Getopt twice: once to catch
644         --help or --verbose, and once to process the other arguments.
645         (usage, verbose): Always exit 0, ignoring $exit_code (which anyway
646         should always be 0 because of the change to parse_arguments).
647         * tests/Makefile.am (TESTS): Add getopt.test.
648         * tests/getopt.test: New file.
649
650 2002-07-09  Tom Tromey  <tromey@redhat.com>
651
652         For PR automake/286:
653         * automake.texi (Tags): Document ctags.
654         * automake.in (handle_tags): Handle ctags.
655         * lib/am/tags.am (CTAGS): New macro.
656         (CTAGSFLAGS): Likewise.
657         (ctags): New target.
658         (distclean-tags): Remove `tags'.
659
660         * lib/am/depend2.am: Reworked syntax to avoid parsing problem.
661
662         * lib/am/depend2.am: Search in srcdir and builddir for %SOURCE%
663         before passing to cygpath.  Partial fix for PR automake/334.
664
665 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
666
667         * automake.in (generate_makefile): Suggest using AM_CPPFLAGS
668         instead of INCLUDES.
669         * tests/pluseq5.test: Check that AM_CPPFLAGS is suggested.
670
671 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
672
673         * automake.in (usage, version): Honor $exit_code.
674         (parse_arguments): Use fatal.
675
676 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
677
678         * automake.texi (Invoking Automake): Document WARNINGS.
679         * automake.in (switch_warning, parse_WARNINGS): New function.
680         (setup_warnings): Rename to ...
681         (parse_warnings): ... this.  Move most of the code to switch_warning.
682         Accept a comma separated list of categories.
683         * tests/vars2.test: Use a comma separated list of warning categories.
684
685 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
686
687         * NEWS (New in 1.6): Mention that libtoolize is no longer run
688         by automake.
689
690 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
691
692         Fix for PR automake/291:
693         * automake.in (macro_define): Catch variable names starting
694         with `_'.
695         (handle_installdirs): Rename _am_installdirs to am__installdirs.
696         * lib/am/data.am, lib/am/install.am, lib/am/libs.am,
697         lib/am/lisp.am, lib/am/ltlibs.am, lib/am/mans.am,
698         lib/am/progs.am, lib/am/python.am, lib/am/scripts.am,
699         lib/am/texinfos.am: Likewise.
700         * tests/canon5.test: Use -Wno-portability.
701         * tests/vars2.test: New file.
702         * tests/Makefile.am (TESTS): Add vars2.test.
703
704 2002-07-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
705
706         * tests/defs (AUTOMAKE): Add -Wall.
707         * tests/outdir.test: Use -Wno-obsolete.
708
709 2002-07-07  Tom Tromey  <tromey@redhat.com>
710
711         * m4/depend.m4 (_AM_DEPENDENCIES): Compute am__fastdep<compiler>
712         conditional.
713         * automake.in (handle_languages): Compute FASTDEP.
714         * lib/am/depend2.am: Added %FASTDEP% mode.
715
716 2002-07-07  Tom Tromey  <tromey@redhat.com>
717
718         * automake.texi (Optional): AM_MAINTAINER_MODE is ok in Gnits mode
719         now.  Fixes PR automake/332.
720
721 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
722
723         * tests/nobase.test (test-install-exec): Move all the `test -f'
724         tests in the Makefile so we can use $(EXEEXT) on programs.
725         Reported by Charles Wilson.
726
727 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
728
729         * m4/header.m4 (AM_CONFIG_HEADER): New macro.
730         * tests/confh5.test: Make sure that Autoconf complains if
731         AM_CONFIG_HEADER or AC_CONFIG_HEADERS is called before
732         AM_INIT_AUTOMAKE.
733
734 2002-07-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
735
736         * lib/Automake/Channels.pm: New file.
737         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Channels.pm.
738         * automake.in: Use Automake::Channels and register some channels
739         for errors and warnings.
740         ($exit_status): Remove, replaced by Channels::$exit_code.
741         (%required_variables): Remove, Channels will filter-out duplicates
742         itself.
743         (initialize_per_input): Call reset_local_duplicates.
744         (prog_error): Adjust to all `msg'.
745         (setup_warnings): New functions.
746         (parse_arguments): Accept -W CATEGORY and --warnings=CATEGORY,
747         call setup_warnings.
748         (usage): Update usage text accordingly.
749         (macro_dump, macros_dump): Return the dump as a string instead
750         of printing it.
751         (am_install_var) <$warned_about_extra>: Remove, Channels will
752         filter-out duplicates itself.
753         (set_strictness): Turn on/off channels for each stricness.
754         (err, fatal, err_var, err_target, err_am, err_ac, msg_var,
755         msg_target, msg_am, msg_ac, reject_var, reject_target, verb):
756         New functions, to replace ...
757         (print_error, am_error, file_error, macro_error, target_error,
758         conf_error, file_warning): ... these functions.  Remove them.
759         Update all the code to use the new functions.  The rough
760         correspondance is
761            am_error                -> err_am
762            file_error              -> err
763            macro_error             -> err_var
764            target_error            -> err_target
765            conf_error              -> err_ac
766            die                     -> fatal
767            macro_error if defined  -> reject_var
768            target_error if defined -> reject_target
769            verbose                 -> verb
770         * automake.texi (Invoking Automake): Document -W and --warnings.
771         Remove the documentation for --Werror and --Wno-error.
772         * tests/defs: Use -Werror, no --Werror.
773         * tests/exeext2.test: Test that the error message
774         is enabled with -Wobsolete.
775         * tests/output5.test: Rewrite to test that Automake complains
776         when there is no Makefile specified. (The original test was
777         succeeding for the wrong reason.)
778         * tests/seenc.test: Don't use --Wno-error, there is no reason now
779         that -Werror doesn't stop after the first error.
780         * tests/subobj.test: Use --add-missing, and check that
781         `compile' is installed and that Automake says so.
782         * tests/subobj2.test: Don't create `compile'.
783
784 2002-07-05  Tom Tromey  <tromey@redhat.com>
785
786         * automake.texi (Java Support): Mention --main and _LDFLAGS.
787         For PR automake/324.
788
789 2002-07-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
790
791         * tests/asm.test: Erase Autom4te's cache between each test.
792
793 2002-07-03  Alexandre Duret-Lutz  <duret_g@epita.fr>
794
795         * automake.in (am_macro_for_var): Add LIBTOOL.
796         (ac_macro_for_var): Add RANLIB.
797         (seen_libtool): Remove.
798         (handle_libtool, lang_c_finish, define_compiler_variable,
799         make_paragraphs): Use
800         variable_defined ('LIBTOOL') instead of $seen_libtool.
801         (handle_languages) <%transform>: Don't set 'LIBTOOL', it is
802         already done in make_paragraphs.
803         (handle_libraries): Simplify by requiring RANLIB with
804         &require_variables_for_macro.
805         (handle_ltlibraries): Simplify by requiring LIBTOOL with
806         &require_variables_for_macro.
807         (scan_autoconf_traces): Don't trace for AC_PROG_LIBTOOL and
808         AM_PROG_LIBTOOL.
809         * tests/libtool4.test, tests/library2.test: New files.
810         * tests/Makefile.in (TESTS): Add libtool4.test and library2.test.
811
812 2002-07-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
813
814         * automake.in (create, keyed_aclocal_warning): Delete, unused.
815
816 2002-07-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
817
818         * automake.in (ac_macro_for_var): Add YACC.
819
820 2002-07-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
821
822         Handle multiple suffix rules with the same input extension.
823         For PR automake/37.
824
825         * automake.in (suffix_rules_default): New variable.
826         (suffix_rules): Redefine as a hash of hashes of pairs.
827         (initialize_per_input): Setup suffix_rules_default from
828         suffix_rules on first call, an override suffix_rules
829         with suffix_rules_default on following calls.
830         (struct) <output_extensions>: New attribute.
831         (register_language): Set the default for output_extensions.
832         Call register_suffix_rule for each suffix.
833         (derive_suffix, handle_languages): Adjust to the new definition
834         of $suffix.
835         (register_suffix_rule): New function.
836         (rule_define): Call register_suffix_rule.
837         * tests/suffix8.test, tests/suffix9.test, tests/suffix10.test:
838         New files.
839         * tests/Makefile.am (TESTS): Add them.
840
841 2002-06-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
842
843         * automake.in (am_macro_for_var, ac_macro_for_var,
844         required_variables): New variables.
845         (am_c_prototypes, seen_prog_lex, am_lispdir_location,
846         pythondir_location): Remove.
847         (initialize_per_input): Clear %required_variables.
848         (require_variables, require_variables_for_macro): New functions.
849         (handle_languages): Call &require_variables for $lang->config_vars.
850         (handle_compile): Call &require_variables_for_macro for the
851         ANSI2KNR and U variables.
852         (handle_emacs_lisp): Call &require_variables for EMACS and libdir.
853         (handle_python): Call &require_variables for PYTHON.  Don't
854         explicitly allow `python' as a prefix for PYTHON.
855         (scan_autoconf_traces): Don't scan AC_PROG_LEX, AM_C_PROTOTYPES,
856         AM_PATH_LISPDIR, and AM_PATH_PYTHON.
857         (scan_autoconf_traces) <AC_SUBST>: Don't filter out ANSI2KNR and
858         AMDEPBACKSLASH here...
859         (define_configure_variable): ... do this here.
860         (am_primary_prefixes): Probe the existence of ${X}dir using
861         &require_variables_for_macro.  If a standard prefix is not
862         legitimate, say so.  Ignore all configure variables.
863         * tests/ansi8.test, tests/cxx2.test, tests/gcj5.test,
864         tests/lisp2.test, tests/python2.test: New files
865         * tests/Makefile.am (TESTS): Add them.
866         * tests/asm.test: Grep stderr.
867         * tests/lex2.test: Rewrite to test that Automake suggests AM_PROG_LEX.
868         * tests/python.test: Make sure py-compile is installed.
869
870 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
871
872         * automake.in (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR,
873         COMPILE_LIBTOOL, COMPILE_ORDINARY): Redefine as constants.
874         Adjust all occurrences.
875
876 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
877
878         * aclocal.in: Add local variables so that Emacs setups GNU style
879         for perl-mode and cperl-mode.
880         * automake.in: Likewise.
881         (WHITE_PATTERN, RULE_PATTERN, SUFFIX_RULE_PATTERN, MACRO_PATTERN,
882         ASSIGNMENT_PATTERN, IF_PATTERN, ELSE_PATTERN, ENDIF_PATTERN,
883         INCLUDE_PATTERN, EXEC_DIR_PATTERN): Write $ as "\$" to please
884         perl-mode.
885
886 2002-06-27  Alexandre Duret-Lutz  <duret_g@epita.fr>
887
888         * Makefile.am (fetch): Fetch install-sh from Autoconf CVS.
889         * lib/config.sub, lib/install-sh: New upstream versions.
890
891 2002-06-26  Paul Eggert  <eggert@twinsun.com>
892
893         * Makefile.am (maintainer-check): Don't assume that egrep exists;
894         this fixes a portability bug introduced in the 2002-06-08 fix for
895         PR automake/317.
896
897 2002-06-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
898
899         * automake.in (required_targets): Add ps and ps-am.
900         (initialize_per_input): Reset them.
901         (handle_texinfo_helper): Fill @pss_list, and define the
902         PSS make variable.
903         * lib/am/texinfos.am (RECURSIVE_TARGETS): Add ps-recursive.
904         (ps, ps-am): New targets.
905         * automake.texi (Auxiliary Programs) <texinfo.tex>: Mention
906         `make ps' and `make pdf'.
907         (Texinfo): Document `make ps', `make pdf', and `make dvi'.
908         (Extending): The `ps' and `pdf' targets support a `-local' version.
909
910 2002-06-26  Art Haas  <ahaas@neosoft.com>
911
912         * automake.texi: s/.../@dots{}/.
913
914 2002-06-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
915
916         * configure.in: Check that ln works, fall back to `cp -p'.
917         * Makefile.am (install-exec-hook): Use $(LN) instead of ln.
918         Reported by Andreas Buening.
919
920 2002-06-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
921
922         * automake.in: Register &lang_lex_target_hook for lex and lexxx.
923         (lang_lex_target_hook): New function.
924         * tests/lex3.c: Complete to check that maintainer-clean erases
925         Lex's output.
926         Reported by Flavien Astraud.  This was lost on 2001-06-23 too.
927
928 2002-06-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
929
930         * automake.in (lang_yacc_target_hook): Add $output to
931         @maintainer_clean_files.  This was lost on 2001-06-23.
932         * tests/yacc7.test, tests/yacc4.test: Complete to check
933         that maintainer-clean erases YACC's output files,
934         respectively with and without `-d'.
935         Reported by Flavien Astraud.
936
937 2002-06-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
938
939         * lib/am/lang-compile.am (%FPFX%DEPMODE): Delete.  This is now
940         traced from configure.ac.
941
942         * automake.in (macro_define): Don't accept to override an AC_SUBST
943         or Automake variable in a new condition.
944         * tests/cond23.test, tests/cond24.test: New file.
945         * tests/Makefile.am (TESTS): Add cond23.test and cond24.test.
946         Reported by Patrik Weiskirchre.
947
948 2002-06-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
949
950         * tests/nobase.test, tests/pr204.test, tests/pr300-lib.test,
951         tests/pr300-ltlib.test, tests/pr300-prog.test,
952         tests/specflags7.test, tests/specflags8.test, tests/subdir5.test,
953         tests/subobj6.test, tests/subpkg.test, tests/transform.test:
954         Require gcc.
955
956 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
957
958         * tests/libtool2.test: Use required=libtoolize.
959         * tests/install2.test: Use required=gzip.
960
961 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
962
963         * tests/defs (required): Handle bison; set YACC automatically.
964         * tests/pr204.test, tests/yacc4.test, tests/yacc8.test,
965         tests/yaccvpath.test: Require bison.  Don't set YACC.
966
967 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
968
969         * tests/defs (required): Handle `gcc' and `g++'; automatically
970         export CC and CXX when they are required.
971         * tests/ansi3.test, tests/ansi5.test, tests/ccnoco.test,
972         tests/cond4.test, tests/cond16.test, tests/cond18.test,
973         tests/cond19.test, tests/depcomp2.test, tests/depend2.test,
974         tests/lex3.test, tests/pr87.test, tests/pr220.test,
975         tests/substref.test, tests/target-cflags.test, tests/yacc4.test,
976         tests/yaccvpath.test: Require gcc.  Don't pass CC=gcc to
977         configure.
978         * tests/subobj9.test: Require g++.
979
980 2002-06-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
981
982         * tests/defs (required): Handle `GNUmake'.
983         (needs_gnu_make): Don't define anymore.
984         * tests/cond4.test, tests/cond18.test, tests/cond19.test,
985         tests/dollar.test, tests/exsource.test, tests/extra6.test,
986         tests/lex3.test, tests/make.test, tests/pr9.test, tests/pr87.test,
987         tests/subdir5.test, tests/target-cflags.test, tests/yacc7.test,
988         tests/yaccvpath.test: Use `required=GNUmake' instead of
989         `$needs_gnu_make'.
990
991 2002-06-17  Paolo Bonzini  <bonzini@gnu.org>
992
993         * automake.in (process_option_list): Recognize std-options.
994         (handle_options): Enable std-options in gnits strictness.
995         (am_install_var): If std-options, enable CK-OPTS section.
996         * lib/am/scripts.am (installcheck-am): New target.
997         * lib/am/progs.am (installcheck-am): New target.
998         * tests/gnits2.test: New file.
999         * tests/Makefile.am (TESTS): Add gnits2.test.
1000         * automake.texi (Gnits, Options): Document std-options.
1001
1002 2002-06-17  Kevin Ryde  <user42@zip.com.au>
1003
1004         * automake.in (scan_texinfo_file): Add tmp to @clean_suffixes,
1005         as generated by recent texinfo.tex.
1006
1007 2002-06-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
1008
1009         * m4/header.m4 (AM_CONFIG_HEADER): Rename to ...
1010         (_AM_CONFIG_HEADERS): ... this.
1011         (_AM_CONFIG_HEADER_INSINUATE): Define AC_CONFIG_HEADERS to
1012         call _AM_CONFIG_HEADERS; and AM_CONFIG_HEADER to call
1013         AC_CONFIG_HEADERS.
1014         * automake.in (scan_autoconf_traces): Trace AC_CONFIG_HEADERS
1015         instead of AM_CONFIG_HEADER.
1016         * tests/autoheader2.test: New file.
1017         * tests/Makefile.am (TESTS): Add autoheader2.test.
1018         Suggested by Raja R Harinath.
1019
1020 2002-06-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1021
1022         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): Use m4_copy instead
1023         of m4_rename so that AC_CONFIG_HEADER is never undefined and
1024         therefore still traced after the redefinition.
1025         * tests/defs (AUTOHEADER): Define.
1026         * tests/autoheader.test: New file.
1027         * tests/Makefile.am (TESTS): Add autoheader.test.
1028         Reported by Braden McDaniel.
1029
1030 2002-06-13  Paolo Bonzini  <bonzini@gnu.org>
1031
1032         * automake.in (check_gnu_standards): In --gnu mode, accept
1033         one of COPTING, COPYING.LESSER, or COPYING.LIB.
1034         (common_files): Add COPYING.LESSER.
1035         * automake.texi (Gnits): Document this.
1036
1037 2002-06-13  Paolo Bonzini  <bonzini@gnu.org>
1038
1039         * automake.in (required_targets): Add the pdf and pdf-am targets.
1040         (initialize_per_input): Likewise.
1041         (scan_texinfo_file): Add pdf to @clean_suffixes.
1042         (handle_texinfo_helper): Output the .pdf dependencies, and define
1043         the PDFS variable.
1044         * lib/am/texinfos.am (TEXI2PDF): New variable.
1045         (pdf, pdf-am): New targets.
1046         (.PHONY): Add pdf, pdf-am, and pdf-recursive.
1047         * lib/am/texibuild.am (.%SUFFIX%.pdf): New rule.
1048
1049 2002-06-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1050
1051         Fix pr307.test failure with gcc 3.x.
1052         * lib/depcomp (dashmstdout): Strip the call to libtool, and
1053         replace `-o $object' by `-o /dev/null' before running "$@"
1054         to generate dependencies.
1055         (cpp): Strip the call to libtool as well as `-o $object'.
1056
1057 2002-06-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
1058
1059         * lib/depcomp (tru64): Expect dependency files in .libs/, maybe as
1060         $base.lo.d, when libtool is used.
1061         Reported by Nicolas Joly.
1062
1063 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
1064
1065         * lib/am/java.am (class%DIR%.stamp): Don't run $(JAVAC) when there
1066         is no file to compile.
1067         * tests/java2.test: New file.
1068         * tests/Makefile.am (TESTS): Add java2.test.
1069         Reported by Braden N. McDaniel.
1070
1071 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
1072
1073         * tests/maintclean.test: Don't check for autom4te.cache if
1074         it's not created by Autoconf.
1075         Reported by Bernd Jendrissek.
1076
1077 2002-06-11  Alexandre Duret-Lutz  <duret_g@epita.fr>
1078
1079         * automake.texi (Tests): Document site.exp.  Update DejaGnu's url.
1080
1081 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1082
1083         * lib/am/header-vars.am (transform): Define.
1084         Was removed by mistake on 2002-04-13.
1085         * tests/transform.test: New file.
1086         * tests/Makefile.am (TESTS): Add transform.test.
1087         Reported by Nicolas Joly.
1088
1089 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1090
1091         * tests/dollar.test: Require GNU make.
1092         * tests/maintclean.test: Don't use `export YACC=false'.  Pass
1093         YACC=false to configure instead.
1094
1095 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1096
1097         * lib/config.guess, lib/config.sub, lib/texinfo.tex, lib/INSTALL,
1098         INSTALL: New upstream versions.
1099
1100 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1101
1102         * tests/sinclude.test: Check for m4_include too.
1103
1104 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1105
1106         * tests/sinclude.test: Rename the package as amsinclude;
1107         am__sinclude still trigers the sinclude macro once it has been
1108         converted to am--sinclude.
1109         Reported by Nicolas Joly.
1110
1111 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1112
1113         * automake.texi (API versioning): Typo.
1114
1115 2002-06-10  Nicolas Joly  <njoly@pasteur.fr>
1116
1117         * THANKS (Nicolas Joly): Remove duplicate.
1118
1119 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1120
1121         * Makefile.am (maintainer-check): Fix $MAKE -e detection.
1122         * tests/yacc7.test: Use rm -f.
1123
1124 2002-06-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1125
1126         * tests/defs (ACLOCAL, AUTOMAKE): Use absolute paths.
1127         * tests/subpkg.test: New file.
1128         * tests/Makefile.am (TESTS): Add subpkg.test.
1129
1130 2002-06-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1131
1132         For PR automake/318:
1133         * tests/nobase.test: Rewrite to test _HEADERS, _DATA, _SCRIPTS,
1134         _PROGRAMS, _LIBRARIES, and _LTLIBRARIES.
1135         * lib/am/scripts.am (install-%DIR%SCRIPTS,
1136         uninstall-%DIR%SCRIPTS): Honor nobase_; strip the directory by
1137         default.
1138         (?%DIR%SCRIPT_INSTALL): New variable.
1139         * lib/am/header-vars.am (install_sh_SCRIPT): New variable.
1140         Reported by Eric Siegerman.
1141
1142 2002-06-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1143
1144         * automake.in (lang_yacc_target_hook): Add rule to recover from
1145         the removal of $header.
1146         * lib/am/yacc.am (%BASE%.h): Remove (duplicate with the one
1147         output by lang_yacc_target_hook).
1148         * tests/yacc7.test: Try to recreate foo.h after its removal.
1149         * tests/yacc8.test: Add `AM_YFLAGS = -d' and try to recreate
1150         parse.h too.
1151         Reported by Bernd Jendrissek.
1152
1153 2002-06-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
1154
1155         For PR automake/317:
1156         * Makefile.am (maintainer-check): Disallow `for f in $(FILES)',
1157         suggest `list='$(FILES)'; for f in $$list' instead.
1158         * lib/am/distdir.am (distdir): Adjust `for' usage.
1159         * lib/am/texinfos.am (maintainer-clean-aminfo): Likewise.
1160         * tests/dollar.test: New file.
1161         * tests/Makefile.am (TESTS): Add dollar.test.
1162         Reported by Eric Siegerman and Philip Fong.
1163
1164 2002-06-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1165
1166         For PR automake/47 (fixed a long time ago):
1167         * tests/yacc7.test: Also check that parser sources are distributed.
1168
1169 2002-06-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1170
1171         * lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES): New variable.
1172         (distclean): Use it.
1173         (maintainer-clean): Delete autom4te.cache and
1174         $(am__CONFIG_DISTCLEAN_FILES).
1175         * tests/maintclean.test: New file.
1176         * tests/Makefile.am (TESTS): Add maintclean.test.
1177
1178 2002-06-05  Miloslav Trmac  <trmac@popelka.ms.mff.cuni.cz>
1179
1180         * lib/am/dejagnu.am (site.exp): Quote build_alias, host_alias, and
1181         target_alias.
1182
1183 2002-05-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
1184
1185         * Makefile.am (maintainer-check): Check for egrep and fgrep.
1186
1187         * test/cond22.test: Set SHELL when calling $MAKE -e.
1188
1189 2002-05-31  Richard Boulton <richard@tartarus.org>
1190
1191         Fix PR automake/326:
1192         * automake.in (define_objects_from_sources): Calculate the result in
1193         all conditions before passing this to subobjname to pick a name to
1194         store the result in.
1195         (subobjname): Expect a list of condition/value pairs as input.
1196         Combine this list and use it as the key to determine the variable name.
1197         * test/cond22.test: New file.
1198         * tests/Makefile.am (TESTS): Add cond22.test
1199
1200 2002-05-30  Paul Eggert  <eggert@twinsun.com>
1201
1202         * lib/am/distdir.am (distdir): Don't assume that 'grep -F' works;
1203         instead, use shell pattern matching.
1204
1205 2002-05-29  Paul Eggert  <eggert@twinsun.com>
1206
1207         Don't assume that egrep and fgrep exist, as POSIX 1003.1-2001 no
1208         longer requires them.
1209
1210         * Makefile.am (maintainer-check): Use grep -E and grep -F instead
1211         of egrep and fgrep.  Omit unnecessary -E and -F.
1212         Fix quoting typo -- "fgrep '\$${'" should have been "fgrep '$${'".
1213         * lib/am/distdir.am (distdir): fgrep -> grep -F.
1214         Use $(), not ${}, for Make variables.
1215         * lib/am/texinfos.am (install-info-am, uninstall-info-am):
1216         fgrep -> grep
1217         * m4/make.m4 (AM_MAKE_INCLUDE): Likewise.
1218         * tests/defs: Set FGREP and EGREP.
1219
1220         * tests/aclocali.test, tests/acoutput2.test, tests/all.test,
1221         tests/ansi.test, tests/ansi4.test, tests/colon3.test,
1222         tests/cond21.test, tests/condlib.test, tests/confh4.test,
1223         tests/confsub.test, tests/cxxansi.test, tests/cxxo.test,
1224         tests/depend4.test, tests/discover.test, tests/distname.test,
1225         tests/dup3.test, tests/empty4.test, tests/fo.test,
1226         tests/implicit.test, tests/insh2.test, tests/interp.test,
1227         tests/lex.test, tests/lex3.test, tests/lex4.test,
1228         tests/libobj5.test, tests/libobj7.test, tests/make.test,
1229         tests/makevars.test, tests/nostdinc.test, tests/parse.test,
1230         tests/pluseq.test, tests/pluseq4.test, tests/pluseq6.test,
1231         tests/pr2.test, tests/pr9.test, tests/seenc.test,
1232         tests/specflags.test, tests/specflags3.test,
1233         tests/specflags6.test, tests/subobj.test, tests/subobj2.test,
1234         tests/suffix3.test, tests/texinfo.test, tests/texinfo6.test,
1235         tests/texinfo8.test, tests/vtexi.test, tests/yacc3.test,
1236         tests/yacc6.test: fgrep -> $FGREP, egrep -> $EGREP
1237
1238 2002-05-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1239
1240         For PR automake/323:
1241         * m4/depend.m4: Missing comma.
1242         * tests/gcj4.test: New file.
1243         * tests/Makefile.am (TESTS): Add gcj4.test.
1244         Reported by David Pashley.
1245
1246 2002-05-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
1247
1248         * tests/defs (configure.in): Don't double-quote $me.
1249         * tests/sinclude.test: Overwrite configure.in and use
1250         `am__sinclude' instead of `sinclude' as package name.
1251         Excercise `m4_sinclude' instead of `sinclude'.
1252
1253 2002-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
1254
1255         * automake.in (conditional_implies_one_of): Rename as ...
1256         (conditional_implies_any): ... this.
1257         * tests/pluseq9.test: Exercise another case with the new
1258         `C' variable.
1259         Suggested by Raja R Harinath.
1260
1261 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1262
1263         * tests/defs (configure.in): Quote macro arguments.
1264         Reported by Nicolas Joly.
1265
1266 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1267
1268         * lib/am/header-vars.am (build_triplet, host_triplet,
1269         target_triplet): Define.  Were removed by mistake on 2002-04-13.
1270
1271 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1272
1273         For PR automake/186:
1274         * lib/am/distdir.am (distcheck): Attempt a DESTDIR install.
1275         * tests/destdir.test: New file.
1276         * tests/Makefile.am (TESTS): Add destdir.test.
1277
1278 2002-05-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
1279
1280         * automake.in (conditional_true_when): Return false if $WHEN == FALSE.
1281         (conditional_is_redundant): Simplify.
1282         (conditional_implies_one_of,
1283         variable_not_always_defined_in_cond): New functions
1284         (macro_define): Reject appends if the variable is not defined in
1285         all conditions where `+=' applies.
1286         (invert_conditions): Rewrite.  Before this patch,
1287         invert_conditions("A_TRUE B_TRUE", "A_TRUE B_FALSE", "A_FALSE")
1288         would return ("A_FALSE B_TRUE", "A_FALSE B_TRUE"), which seems
1289         wrong (these conditions implies "A_FALSE").  Now it outputs (),
1290         which just means the input conditions cover all cases.
1291         (variable_conditions_permutations): Never output FALSE conditions.
1292         * tests/pluseq2.test, tests/pluseq3.test: Define data_DATA
1293         in the CHECK_FALSE condition to fix the test.
1294         * tests/pluseq5.test: Actually check the diagnostic.
1295         * tests/pluseq9.test: New file.
1296         * tests/Makefile.am (TESTS): Add pluseq9.test.
1297
1298 2002-05-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
1299
1300         Fix for PR automake/322:
1301         * automake.in (read_am_file): Rename $was_rule as $prev_state, and
1302         set it with IN_RULE_DEF, IN_VAR_DEF, or IN_COMMENT as appropriate.
1303         Handle comments continued by backslashes.
1304         * tests/comment6.test: New file.
1305         * tests/Makefile.am (TESTS): Add comment6.test.
1306         Reported by Braden N. McDaniel.
1307
1308 2002-05-08  Charles Wilson  <cwilson@ece.gatech.edu>
1309             Alexandre Duret-Lutz  <duret_g@epita.fr>
1310
1311         * lib/am/progs.am (clean-%DIR%PROGRAMS): If Libtool is used, clean
1312         both `program$(EXEEXT)' and `program'; needed under Cygwin.
1313         * tests/libtool3.test: New file.
1314         * tests/Makefile.am (TESTS): Add libtool3.test.
1315
1316 2002-05-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1317
1318         * TODO: Undust.
1319
1320 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1321
1322         * Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.
1323
1324 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1325
1326         Erase stamps from the Makefile that generates them.
1327
1328         * automake.in (handle_configure): Append each used stamp to
1329         @distclean_config.  Don't warn about stamp-h in AC_OUTPUT, this
1330         file is not used anymore.
1331         * lib/am/clean.am (distclean-generic): Don't erase stamp-h and
1332         stamp-h[0-9]*.
1333         * tests/subdir6.test: New file.
1334         * tests/Makefile.am (TESTS): Add it.
1335
1336 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
1337
1338         Fix for condd.test (conditional `+='):
1339         * automake.in (%appendvar): New.
1340         (initialize_per_input): Clear it.
1341         (macro_define): Handle += for variable defined in another condition.
1342         * automake.texi (Conditional Sources): Use conditional += in
1343         the example.
1344         (General Operation, Conditionals): Remove note about broken +=.
1345         * tests/cond21.test: New file.
1346         * tests/condd.test: Also test conditional append to a _SOURCE
1347         variable.  Create missing directories.
1348         * tests/Makefile.am (TESTS): Add cond21.test.
1349         (XFAILS): Remove condd.test.
1350
1351 2002-05-05  Tom Tromey  <tromey@redhat.com>
1352
1353         * automake.texi (Program and Library Variables): Mention _LFLAGS.
1354
1355 2002-04-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
1356
1357         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
1358         files.  Fix subobj9.test on OSF and IRIX.
1359         Reported by Nelson H. F. Beebe.
1360
1361 2002-04-26  Tom Tromey  <tromey@redhat.com>
1362
1363         * lib/am/dejagnu.am (distclean-DEJAGNU): New target.
1364         For Debian bug 144221.
1365
1366 2002-04-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1367
1368         * tests/man2.test: Use `pwd`, not $PWD.  Use $MAKE -e.
1369
1370 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1371
1372         * automake.in (subobjname): Use the length of %subobjvar
1373         instead of $subobjnamenum.
1374         (subobjnamenum): Remove.
1375
1376 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1377
1378         For PR automake/307:
1379         * lib/depcomp: Never compute dependencies in the background, this
1380         can cause races with libtool.  Compute the dependencies after
1381         the actual compilation.  Don't make libtool silent now that
1382         it's run in the foreground.
1383         * tests/pr307.test: New file.
1384         * tests/Makefile.am (TESTS): Add pr307.test.
1385         Reported by Laurent Morichetti.
1386
1387 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1388
1389         * lib/am/check.am: Show skipped tests.  Display the
1390         $(PACKAGE_BUGREPORT) address on failure.
1391
1392 2002-04-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1393
1394         Fix PR automake/315:
1395         * automake.in (subobjname): Rewrite to generate variable name
1396         unique for each content.
1397         (%substnums): Remove.
1398         (%subobjvar): New hash.
1399         (initialize_per_input): Clear %subobjvar.
1400         (define_objects_from_sources): Return the name of the variable
1401         defined, in addition to the linker.  Call subobjname only once
1402         the content of the variable to define is known.
1403         (handle_source_transform): Adjust call to define_objects_from_sources.
1404         * tests/specflags8.test: Mention PR 315.
1405         * tests/subobjname.test: New file.
1406         * tests/Makefile.am (XFAIL_TESTS): Remove specflags8.test.
1407         (TESTS): Add subobjname.test.
1408
1409 2002-04-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
1410
1411         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep
1412         the whole file for 'generated by automake', not only the
1413         first line.  This accounts for post-processed Makefile.in's.
1414         * tests/postproc.test: New file.
1415         * tests/Makefile.am (TESTS): Add postproc.test.
1416
1417 2002-04-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
1418
1419         For PR automake/151 and PR automake/314:
1420         * automake.texi (A Program): Split into
1421         (Program Sources, Linking, Conditional Sources, Conditional
1422         Programs): ... these subsections; moving the Linking node
1423         before the Conditional discussions.
1424         (Conditional Sources): More details.  Notably, mention
1425         hello_DEPENDENCIES.
1426         (Conditionals): Adjust reference to Conditional Programs.
1427
1428 2002-04-19  Paul Eggert  <eggert@twinsun.com>
1429
1430         Fix some bugs when using "$@" when there might be zero positional
1431         arguments in cases where this matters.  Zsh doesn't support
1432         the workaround ${1+"$@"} that has been used by Automake since
1433         the Mon Dec  4 11:55:36 1995 change.
1434
1435         * aclocal.in: Use 'case' statement to work around problem.
1436         * automake.in: Likewise.
1437         * lib/ylwrap: Likewise.
1438         * lib/missing: No need for workaround, as the command is never
1439         invoked with zero arguments.
1440         * tests/ccnoco.test: Likewise.
1441         * missing: Update from lib/missing.
1442
1443 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1444
1445         * automake.in (initialize_per_input): Clear %require_file_found.
1446         (%require_file_found): Group the declaration with the other
1447         variables initialized by initialize_per_input.
1448         * tests/required.test: New file.
1449         * tests/Makefile.am (TESTS): Add it.
1450         Reported by Marius Vollmer.
1451
1452 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1453
1454         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): New function,
1455         override AC_CONFIG_HEADERS with AM_CONFIG_HEADER.
1456         (_AM_CONFIG_HEADER): Use _AM_AC_CONFIG_HEADERS.
1457         * m4/init.m4: Call _AM_CONFIG_HEADER_INSINUATE.
1458         * tests/stamph2.test: Use AC_CONFIG_HEADERS for some of the config
1459         files.
1460         * tests/confh5.test: New file.
1461         * tests/Makefile.am (TESTS): Add confh5.test.
1462         * automake.texi (Optional, Public macros): Update descriptions
1463         of AC_CONFIG_HEADERS and AM_CONFIG_HEADER.
1464
1465 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1466
1467         * tests/man2.test: New file.
1468         * tests/Makefile.am (TESTS): Add man2.test.
1469         * lib/am/mans.am (install-man%SECTION%): Change the extension
1470         of the man pages being installed, as documented.
1471
1472 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1473
1474         Enable traces; wipe out the old configure.in parser.
1475
1476         * automake.in (scan_autoconf_traces): Use '$ENF{AUTOCONF}' of
1477         'autoconf'.  Honnor the $filename argument.
1478         (scan_autoconf_files): Don't call scan_one_autoconf_file.
1479         Always call scan_autoconf_traces.
1480         (scan_one_autoconf_file): Remove, with it associated regexes.
1481         (obsolete, obsolete_rx): Remove.
1482         (register_language, handle_languages): Remove the 'define_flag'
1483         support.  Remove it from the struct and language definitions too.
1484         (unquote_m4_arg): Remove.
1485         * lib/am/header-vars.am, lib/am/compile.am, lib/am/lisp.am: Remove
1486         the `FOO = @FOO@' definitions for all AC_SUBST'ed variables.  They
1487         are now generated automatically.
1488         * aclocal.in (obsolete_macros): Don't mention obsolete_macros in
1489         automake.in.
1490         * automake.texi (Invoking Automake): Mention the AUTOCONF envvar.
1491
1492 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
1493
1494         * tests/version6.test: New file.
1495         * tests/Makefile.am (TESTS): Add tests/version6.test.
1496         * automake.in (version_check): Return 0 on equality.
1497
1498 2002-04-13  Andreas Schwab  <schwab@suse.de>
1499
1500         * THANKS: Update my mail address.
1501
1502 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
1503
1504         * tests/discover.test: Use a full configure.in that calls AC_INIT.
1505         Use AC_LIBOBJ.  Grep the error message.
1506         * test/ldadd.test: Don't use LIBOBJS.  Use a full configure.in.
1507         Grep the error message.  Require libtool.
1508         * tests/ldflags.test:  Don't use LIBOBJS.
1509         * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the
1510         error messages for CC and CXX.
1511
1512 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
1513
1514         * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
1515         and AMDEPBACKSLASH.
1516         * tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
1517         * tests/ext.test: Enable dependencies for OBJC.
1518         * tests/libobj.test, tests/libobj6.test, tests/libobj9.test:
1519         Delete.  They tests for different flavors of $LIBOBJS assignments
1520         that wont be supported anymore.
1521         * tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ.
1522         * tests/obsolete.test: Don't test Automake.
1523         * tests/suffix5.test: Require libtool.
1524         * tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and
1525         libobj9.test.
1526
1527 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1528
1529         * configure.in (APIVERSION): Fix definition.
1530
1531 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1532
1533         * NEWS: Catch up with changes since 1.6.
1534
1535 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1536
1537         * tests/yacc8.test: Don't assume GNU make, run config.status
1538         to regenerate the Makefile.
1539
1540 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1541
1542         * Makefile.am (maintainer-check): Make sure `$MAKE -e' is
1543         always followed by a SHELL setting.
1544         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set
1545         SHELL when calling `$MAKE -e'.
1546
1547 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1548
1549         * tests/subobj9.test: Use configure.in, not configure.ac,
1550         otherwise this fails with old libtool versions.
1551
1552 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1553
1554         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
1555         versions.
1556
1557 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
1558
1559         * ChangeLog.2001: New file, extracted from ChangeLog.
1560         * Makefile.am (EXTRA_DIST): Add it.
1561
1562 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
1563
1564         * automake.texi (Canonicalization): The sources for libmumble++.a
1565         go into libmumble___a_SOURCES.
1566
1567 2002-04-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1568
1569         * Makefile.am (maintainer-check): Check for `sleep 1' uses in the
1570         test suite.  Suggest `sleep 2' instead.
1571         * tests/confsub.test: Use `sleep 2'.
1572
1573 2002-04-04  Paul Eggert  <eggert@twinsun.com>
1574
1575         * lib/am/subdirs.am:
1576         ($(RECURSIVE_TARGETS), maintainer-clean-recursive):
1577         $(MAKEFLAGS) -> $$MAKEFLAGS, so that we don't run into problems if
1578         MAKEFLAGS contains '$(...)'.
1579
1580 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1581
1582         * tests/specflags8.test: Typo.
1583
1584 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1585
1586         * tests/specflags6.test: Run aclocal.
1587         * tests/Makefile.am (TESTS): Add specflags6.test.
1588
1589 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
1590
1591         * tests/specflags7.test, tests/specflags8.test: New files.
1592         * tests/Makefile.am (TESTS): Add them.
1593         (XFAIL_TESTS): Add specflags8.test.
1594
1595 2002-03-29  Tom Tromey  <tromey@redhat.com>
1596
1597         * automake.in (check_typos): Examine AM_LDFLAGS.
1598         Fixes PR automake/311.
1599
1600         For PR automake/312:
1601         * lib/am/libtool.am (clean-libtool): Use LTRMS.
1602         * automake.in (handle_single_transform_list): When processing a
1603         libtool object, clean the ordinary object and register the
1604         directory.
1605         (libtool_clean_directories): New global.
1606         (initialize_per_input): Initialize it.
1607         (generate_makefile): Call handle_libtool later.
1608         (handle_libtool): Handle libtool_clean_directories.
1609         * tests/subobj9.test: New file.
1610         * tests/Makefile.am (TESTS): Added subobj9.test.
1611
1612 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1613
1614         * tests/extra6.test, tests/subdir5.test: Require GNU make.
1615
1616 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1617
1618         * tests/dup3.test (ACLOCAL): s/srcdir/testsrcdir/.
1619
1620 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1621
1622         * tests/extra7.test: New file.
1623         * tests/Makefile.am: Add it.
1624         * lib/am/distdir.an (distdir): When a distribuable directory
1625         exists both in `.' and $(srcdir), merge both directories.  This
1626         works around a failure of extra6.test on Tru64 reported by
1627         Nicolas Joly.
1628
1629 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1630
1631         * tests/pr87.test, tests/yaccvpath.test: Require GNU make.
1632
1633 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1634
1635         * Makefile.am (maintainer-check): Catch occurrences of
1636         `$MAKE foo=bar' in the testsuite.  Suggest using
1637         `foo=bar $MAKE -e' instead.
1638         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test:
1639         Use $MAKE -e.  This fixes a ansi5.test failure with Solaris make.
1640         * tests/defs: Unset $srcdir, and set $testsrcdir to its old value.
1641         * tests/installsh.test (AUTOMAKE, ACLOCAL): Use $testsrcdir.
1642
1643 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
1644
1645         Fix for PR automake/310:
1646         * lib/am/depend2.am, lib/am/lex.am, lib/am/yacc.am: Quote %SOURCE%
1647         so it never appears as a plain word.
1648
1649 2002-03-25  Angus Leeming  <a.leeming@ic.ac.uk>
1650
1651         * lib/depcomp (tru64): Correctly compute `base'.
1652
1653 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1654
1655         * tests/pr211.test: s/requires/required/, otherwise the test fails
1656         if libtool is not installed.
1657
1658 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1659
1660         * tests/dirname.test: Don't use $SHELL when calling ./configure.
1661
1662 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1663
1664         * tests/dirname.test: Use --quiet to fix failure on installations
1665         using a site script.
1666         Reported by Nicolas Joly.
1667
1668 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
1669
1670         * Makefile.am (maintainer-check): Check for misuses of make,
1671         autoconf, automake, aclocal, and perl in the testsuite.  Suggest
1672         using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
1673         * tests/confsub.test: Use $AUTOCONF and $MAKE.
1674         * tests/extra5.test, tests/extra6.test, tests/lex5.test,
1675         tests/nobase.test, tests/nodist2.test, tests/pr204.test,
1676         tests/pr224.test, tests/pr287.test, tests/strip.test,
1677         tests/yacc8.test: Use $MAKE.
1678
1679 2002-03-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
1680
1681         Add support for two-dot versions.
1682
1683         * tests/version5.test: New file.
1684         * tests/Makefile.am (TESTS): Add it.
1685         * automake.in (version_split, version_compare): New functions.
1686         (version_check): Rewrite using version_split and version_compare.
1687         (process_option_list): Adjust regex.
1688
1689 2002-03-18  Richard Boulton <richard@tartarus.org>
1690
1691         Fix for PR automake/306:
1692         * automake.texi (Generalities): Document +=.
1693         (Conditionals): Document limitations of += with conditionals.
1694
1695 2002-03-17  Tom Tromey  <tromey@redhat.com>
1696
1697         Fix for PR automake/295:
1698         * automake.texi (Invoking Automake): Deprecate --output-dir.
1699         * automake.in (usage): Don't document --output-dir.
1700         (output_directory): Don't initialize.
1701         (parse_arguments): Deprecate --output-dir.
1702
1703         * m4/init.m4 (AUTOMAKE, ACLOCAL): Removed extra quotes.
1704         Fixes PR automake/304.
1705
1706 2002-03-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1707
1708         * tests/dirforbid.test: Workaround for NetBSD sh bug.
1709         Fixes PR automake/305.
1710
1711 2002-03-11  Richard Boulton <richard@tartarus.org>
1712
1713         * automake.in (check_typos): Allow variables with reserved
1714         suffices (such as _LDFLAGS) and prefixes which aren't
1715         recognised if the variable is defined in configure.ac.
1716         Fixes acsubst.test.
1717
1718 2002-03-11  Richard Boulton <richard@tartarus.org>
1719
1720         * tests/acsubst.test: New test, by Alexandre Duret-Lutz
1721         * tests/acsubst2.test: New test, by Alexandre Duret-Lutz
1722         * tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test
1723
1724 2002-03-11  Peter Breitenlohner  <peb@mppmu.mpg.de>
1725
1726         * tests/defs: Unset DESTDIR, otherwise `make DESTDIR=/foo check'
1727         causes failures.
1728
1729 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1730
1731         Fix for PR automake/303:
1732         * automake.in (version_check): Move the error message ...
1733         (process_option_list): ... here, so we can distinguish between
1734         global and local options.
1735
1736 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
1737
1738         * tests/pr300-lib.test, tests/pr300-ltlib.test,
1739         tests/pr300-prog.test: Use AC_OUTPUT, not AC_OUTPUT(Makefile), so
1740         Autoconf doesn't complain about Makefile being output twice.
1741
1742 2002-03-06  Tom Tromey  <tromey@redhat.com>
1743
1744         * configure.in: Upped version to 1.6a.
1745
1746 2002-03-05  Tom Tromey  <tromey@redhat.com>
1747
1748         * configure.in: Released 1.6.
1749
1750 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1751
1752         Fix for PR automake/300:
1753         * tests/pr300-lib.test, tests/pr300-ltlib.test,
1754         tests/pr300-prog.test: New files.
1755         * tests/Makefile.am (TESTS): Add them.
1756         * automake.in (handle_ltlibraries): Strip nobase_ prefix to
1757         compute the directory.
1758         * lib/am/header-vars.am (install_sh_PROGRAM): New variable.
1759         * lib/am/libs.am (%DIR%LIBRARIES_INSTALL): New variable.
1760         (install-%DIR%LIBRARIES): Use it.  Honor nobase_.
1761         (uninstall-%DIR%LIBRARIES): Honor nobase_.
1762         * lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): New variable.
1763         (install-%DIR%LTLIBRARIES): Use it.  Honor nobase_.
1764         (uninstall-%DIR%LTLIBRARIES): Honor nobase_.
1765         * lib/am/progs.am (%DIR%PROGRAMS_INSTALL): New variable.
1766         (install-%DIR%PROGRAMS): Use it.  Honor nobase_.
1767         (uninstall-%DIR%PROGRAMS): Honor nobase_.
1768         See also the fix for nobase.test on 2001-11-09.
1769
1770 2002-03-05  Tom Tromey  <tromey@redhat.com>
1771
1772         * lib/config.sub, lib/config.guess, lib/texinfo.tex: Updated.
1773
1774 2002-03-05  Pavel Roskin  <proski@gnu.org>
1775
1776         * tests/yacc8.test: Add a command between "test" and "cd" to
1777         work around a bug in bash-2.05.
1778
1779 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
1780
1781         Fix for PR automake/294:
1782         * tests/dirforbid.test: New file.
1783         * tests/Makefile.am (TESTS): Add it.
1784         * automake.in (standard_prefix): New hash.
1785         (am_primary_prefixes): Forbid standard_prefixes which are not
1786         explicitely allowed.
1787         * automake.texi (Uniform): Remove FIXME.
1788
1789 2002-03-05  Jim Meyering  <meyering@lucent.com>
1790
1791         * automake.in (@common_files): Add config.rpath.
1792
1793 2002-03-05  Kevin Ryde  <user42@zip.com.au>
1794
1795         For PR automake/297:
1796         * lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until
1797         after AC_PROG_LEX, since it will try to run it and fail (in autoconf
1798         2.52 at least).
1799
1800 2002-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
1801
1802         * automake.in (scan_one_autoconf_file): Declare
1803         LEX_OUTPUT_ROOT and LEXLIB as configure variables when
1804         AM_PROG_LEX or AC_PROG_LEX are seen.  This allows to ...
1805         * lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB
1806         definitions.  Search %SOURCE% in $(srcdir).  Use s||| instead
1807         of s/// in the sed invocation, to support filenames containing
1808         slashes.
1809         * lib/am/yacc.am: Search %SOURCE% in $(srcdir).  Use s||| too.
1810         * tests/lex5.test, tests/yacc8.test: New files.
1811         * tests/Makefile.am (TESTS): Add them.
1812
1813 2002-02-23  Per Bothner  <per@bothner.com>
1814
1815         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Set `dirpart' to
1816         `.' in else branch.
1817
1818 2002-02-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
1819
1820         * tests/make.test: Revert the grep logic to work around a bug
1821         in NetBSD sh (see NetBSD Problem Report #11542).
1822         Reported by Patrick Welche.
1823
1824 2002-02-20  Tim Van Holder  <tim.van.holder@pandora.be>
1825
1826         * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
1827         to try and prevent a non-lisp emacs from starting in interactive
1828         mode.
1829         * automake.texi: Document this change.
1830
1831 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1832
1833         * automake.texi (Macros): Split into ...
1834         (Public Macros, Private Macros): ... these.
1835
1836 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
1837
1838         * tests/insthook.test: Use sed instead of "tail +X".
1839
1840 2002-02-18  Paul Eggert  <eggert@twinsun.com>
1841
1842         * lib/depcomp: Don't use "tail +3"; it's not portable to
1843         POSIX 1003.1-2001 hosts.
1844
1845 2002-02-18  Jim Meyering  <meyering@lucent.com>
1846
1847         * tests/cond12.test: Use sed 1q, not `head -n 1'.
1848         The latter is not portable to some old systems.
1849         * m4/depout.m4: Don't use `head -1'; it's no longer portable.
1850         Use `sed 1q' instead.
1851         * tests/insthook.test: Likewise.
1852
1853 2002-02-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
1854
1855         * automake.in (handle_lib_objects_cond): Tell the user to put
1856         global linker flags in AM_LDFLAGS, not LDFLAGS.
1857
1858         * automake.texi (General Operation): AC_SUBST'ed variables
1859         override Automake's variables.
1860         (Uniform): More words and @refs.
1861         (Auxiliary Programs) <config.sub, config.guess>: Add URL.
1862         (etags): More explanations about the first example.
1863         (Invoking Automake): Mention autoreconf.  More @refs.
1864         (Requirements): Mention AC_CONFIG_FILES.
1865         (Optional): AC_CHECK_TOOL will no longer install config.sub and
1866         config.guess.  Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
1867         (Invoking aclocal): aclocal no longer warn about duplicates.
1868         (Macros) <AM_INIT_AUTOMAKE>: More explanations.
1869         (Extending aclocal): Suggest using the output of
1870         `aclocal --print-ac-dir` to install third-party macros.
1871         (Alternative): Specify ordering of dist_, nodist_, and nobase_
1872         prefixes.
1873         (A Program): Mention scripts.  The global LDADD variable is not
1874         meant to hold link flags, suggest using AM_LDFLAGS instead.
1875         (Program and Library Variables) <maude_LIBADD, maude_LDADD>:
1876         _LIBADD and _LDADD are subject to the same restriction wrt to
1877         link flags.
1878         (Program and Library Variables) <maude_DEPENDECIES>: Is also
1879         derived from maude_LIBADD.
1880         (Program variables): Define AM_LDFLAGS.
1881         (Dependencies): Passing the no-dependencies option to
1882         AM_INIT_AUTOMAKE is prefered.
1883         (Scripts): Explain why automake is magically cleaned.
1884         Mention noinst_SCRIPTS and check_SCRIPTS.
1885         (Data): Use dist_ in Automake's example.
1886         (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
1887         Mention AC_CONFIG_FILES instead of AC_OUTPUT.
1888
1889 2002-02-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
1890
1891         * Makefile.am (FETCHFILES): Add Automake/XFile.pm.
1892         (fetch): Fetch XFile.pm.  Update the files in $(srcdir) instead
1893         of asking the maintainer to do it manually.
1894         * lib/config.guess, lib/config.sub, lib/texinfo.tex,
1895         Automake/XFile.pm: New upstream versions.
1896
1897 2002-02-02  Tom Tromey  <tromey@redhat.com>
1898
1899         * automake.texi (Macros): Warn about upgrading.
1900
1901 2002-02-01  Tom Tromey  <tromey@redhat.com>
1902
1903         Change per GNU coding standards:
1904         * aclocal.in (parse_arguments): Only mention most recent year in
1905         copyright output.
1906         * automake.in (version): Only mention most recent year.
1907
1908 2002-01-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
1909
1910         * automake.texi (API versioning): New Node.
1911         (Extending): Use $(DESTDIR) in examples.
1912
1913 2002-01-28  Akim Demaille  <akim@epita.fr>
1914
1915         * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5.
1916         Respect the --help layout.
1917
1918 2002-01-27  Tom Tromey  <tromey@redhat.com>
1919
1920         * configure.in: Bumped to 1.5e.
1921
1922         * lib/am/yacc.am: Use `rm -f'.
1923
1924         * configure.in: Released 1.5d.
1925
1926         * lib/config.guess: New version from FSF.
1927
1928         * Makefile.am (uninstall-hook): New target.
1929
1930 2002-01-24  Akim Demaille  <akim@epita.fr>
1931
1932         * lib/install-sh: Update, from Autoconf.
1933
1934 2002-01-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
1935
1936         * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
1937         as AC_CANONICAL_HOST (the former does not require the latter since
1938         Autoconf 2.50).
1939         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
1940         * automake.texi (Requirements): Do not require STRIP to be
1941         defined by the user.
1942
1943 2002-01-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
1944
1945         * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
1946         * automake.in (handle_languages): Compute and substitute %DEPDIRS%.
1947         * tests/pr224.test: Make sure .deps subdirectories are
1948         erased by distclean.
1949
1950 2002-01-22  Tom Tromey  <tromey@redhat.com>
1951
1952         * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
1953         no-dependencies option is set.
1954         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
1955         no-dependencies option is set.  Don't call AM_DEP_TRACK or
1956         AM_SET_DEPDIR.
1957
1958 2002-01-22  Pavel Roskin  <proski@gnu.org>
1959
1960         * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and
1961         ASFLAGS.
1962
1963 2002-01-22  Akim Demaille  <akim@epita.fr>
1964
1965         * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex.
1966         (fetch): Adjust.
1967
1968 2002-01-21  Tom Tromey  <tromey@redhat.com>
1969
1970         * Makefile.am (fetch): Don't fetch ansi2knr.
1971
1972         * automake.texi (Macros): Updated for new variable names.
1973         (Program and Library Variables): Likewise.
1974         (Assembly Support): Likewise.
1975         * m4/as.m4: Use CCAS and CCASFLAGS.
1976         * automake.in (asm): Use CCAS and CCASFLAGS.
1977
1978 2002-01-21  Akim Demaille  <akim@epita.fr>
1979
1980         * automake.in (&parse_arguments): Use a more GNUish error message
1981         on wrong options.
1982
1983 2002-01-20  Tom Tromey  <tromey@redhat.com>
1984
1985         Fix for PR automake/231:
1986         * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ).
1987         * m4/depend.m4: Document `GCJ'.
1988
1989         For PR automake/224:
1990         * tests/Makefile.am (TESTS): Added pr224.test.
1991         * tests/pr224.test: New file.
1992         * lib/depcomp: Fixed computation of depfile.
1993         * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
1994         * automake.in (handle_single_transform_list): Only reject `..'
1995         component for Java.  Put dependencies in directory near object.
1996         (handle_languages): Set DEPBASE.  Handle de-ansi-fication.
1997
1998 2002-01-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
1999
2000         * tests/defs: Export AUTOMAKE and ACLOCAL.
2001
2002 2002-01-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
2003
2004         Fix for PR automake/204:
2005         * tests/pr204.test: New file.
2006         * tests/Makefile.am (TESTS): Add it.
2007         * automake.in (handle_single_transform_list): Don't distribute
2008         sources derived from non-distributed sources.
2009
2010 2002-01-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
2011
2012         Fix for PR automake/229:
2013         * tests/pr229.test: New file.
2014         * tests/Makefile.am (TESTS): Add it.
2015         * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN,
2016         AC_EMXOS2, and AC_MINGW32.
2017
2018 2002-01-18  Tom Tromey  <tromey@redhat.com>
2019
2020         * tests/cond7.test: Fix test bug exposed by copyright update.
2021
2022         For PR automake/288:
2023         * automake.in (lang_c_rewrite): Don't prepend directory to base if
2024         directory is `.'.  Also, properly compute de_ansi_files entry in
2025         subdir-objects case
2026         * tests/Makefile.am (TESTS): Added ansi7.test.
2027         * tests/ansi7.test: New file.
2028
2029         * aclocal.in (parse_arguments): Added 2002.
2030         (write_aclocal): Likewise.
2031         (parse_arguments): Updated my email address.
2032         * automake.in (gen_copyright): Added 2002.
2033         (version): Likewise.  Also, changed my email address.
2034
2035         * configure.in (APIVERSION): Refined definition.
2036
2037 2002-01-18  Tom Tromey  <tromey@redhat.com>
2038
2039         * missing: Updated.
2040         * lib/missing: Accept versioned aclocal.
2041         * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
2042
2043 2002-01-17  Pavel Roskin  <proski@gnu.org>
2044
2045         * m4/Makefile.am (m4datadir): Use APIVERSION.
2046
2047 2002-01-16  Tom Tromey  <tromey@redhat.com>
2048
2049         * Makefile.am (install-exec-hook): Use APIVERSION.
2050         * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
2051         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
2052         APIVERSION.
2053         * automake.in (perllibdir): Use APIVERSION.
2054         (libdir): Likewise.
2055         * aclocal.in (perllibdir): Use APIVERSION.
2056         (APIVERSION): New global.
2057         (parse_arguments): Use APIVERSION.
2058         * configure.in (APIVERSION): New subst.
2059         (pkgvdatadir): Use APIVERSION.
2060
2061 2002-01-15  Tom Tromey  <tromey@redhat.com>
2062
2063         * missing: Updated.
2064         * lib/missing: Match against `automake*' to pick up versioned
2065         automake.
2066         * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name.
2067         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version
2068         variable.
2069         * lib/am/Makefile.am (amdir): Use pkgvdatadir.
2070         * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use
2071         pkgvdatadir.
2072         (scriptdir): Use pkgvdatadir.
2073         (installcheck-local): Likewise.
2074         * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir.
2075         * automake.in (perllibdir): Added VERSION.
2076         (libdir): Likewise.
2077         * aclocal.in (parse_arguments): Search versioned directory.  Don't
2078         push unversioned directory unless it exists.
2079         (perllibdir): Added VERSION.
2080         (default_acdir): New global.
2081         * m4/Makefile.am (m4datadir): Added $(VERSION).
2082         * Makefile.am (install-exec-hook): New target.
2083         * configure.in (ACLOCAL): Search build directory.
2084         (pkgvdatadir): New subst.
2085
2086 2002-01-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
2087
2088         * lib/config.sub, lib/config.guess: New versions from FSF.
2089
2090 2002-01-13  Tom Tromey  <tromey@redhat.com>
2091
2092         For PR automake/288:
2093         * automake.in (lang_c_rewrite): Set value for de_ansi_files entry
2094         to directory.
2095         (lang_c_finish): Likewise.  Also, use directory information from
2096         de_ansi_files.
2097
2098 2002-01-13  Kevin Ryde  <user42@zip.com.au>
2099
2100         For PR automake/288:
2101         * tests/Makefile.am (TESTS): Added ansi6.test.
2102         * tests/ansi6.test: New file.
2103
2104 2002-01-13  Tom Tromey  <tromey@redhat.com>
2105
2106         For PR automake/287:
2107         * lib/am/distdir.am (distdir): Use `$$list' trick when looping
2108         over subdirs.
2109         * tests/Makefile.am (TESTS): Added pr287.test.
2110         * tests/pr287.test: New file.
2111
2112 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
2113
2114         * lib/am/distdir.am (distdir): Handle subdirectories.
2115         * tests/extra6.test: New file.
2116         * tests/Makefile.am (TESTS): Add it.
2117
2118 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
2119
2120         * tests/extra2.test: Run $ACLOCAL.
2121
2122 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
2123
2124         * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
2125         AM_INIT_AUTOMAKE arguments when using the old-style call.
2126         Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
2127         Suggested by Pavel Roskin.
2128
2129 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
2130
2131         * test/nodefine.test, test/nodefine2.test: Check that no-define
2132         works, not the contrary...
2133         * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
2134         * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
2135         not the contrary.
2136
2137 2002-01-12  Jim Meyering  <meyering@lucent.com>
2138
2139         * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
2140         * tests/libobj11.test: New file.
2141         * tests/Makefile.am (TESTS): Add libobj11.test.
2142
2143 2002-01-09  Ryan T. Sammartino  <ryants@shaw.ca>
2144
2145         * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options.
2146
2147 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
2148
2149         * automake.in (file_contents_internal): Introduce two variables,
2150         $is_rule and $discard_rules to track rules spanning across multiple
2151         paragraphs.  This fixes a very nasty bug reported by Dmitry Mikhin
2152         where only the first paragraph of such a multi-paragraph rule was
2153         discarded; but it leaves many similar latent bugs (see the FIXMEs).
2154
2155 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
2156
2157         * tests/dup3.test: Remove all -I from $ACLOCAL before using it.
2158         * tests/error.test: Use some macro names which are not defined by
2159         Automake itself.
2160
2161 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
2162
2163         * automake.texi (Complete, Macros, Options): Document the new style
2164         AM_INIT_AUTOMAKE.  Remove AM_AUTOMAKE_OPTIONS documentaion.
2165         * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
2166         AC_INIT if they are available there.  Support a new call form
2167         where the only argument is an optional space-separated list of
2168         Automake options.
2169         * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
2170         (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
2171         _AM_IF_OPTION): New functions.
2172         * automake.in (AC_INIT_PATTERN): New variable.
2173         (global_options_line): Remove, use $seen_init_automake instead.
2174         (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
2175         from AC_INIT if available.  Support the new style AM_INIT_AUTOMAKE.
2176         Remove the AM_AUTOMAKE_OPTIONS handling.
2177         * configure.in: Modernize.
2178         * tests/defs (configure.in): Modernize.  One third of the tests
2179         still overwrite the default configure.in and use an old
2180         AM_INIT_AUTOMAKE call,  so that makes testing for both.
2181         * tests/nodefine.test, tests/nodefine2.test: New files.
2182         * tests/Makefile.am (TESTS): Add them.
2183
2184 2002-01-08  Raja R Harinath  <harinath@cs.umn.edu>
2185
2186         * automake.in (define_configure_variable): Propagate line numbers.
2187
2188 2002-01-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
2189
2190         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2.
2191
2192 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
2193
2194         * configure.in: Run the Autoconf test in a subdirectory, then
2195         erase this directory.
2196
2197 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
2198
2199         * configure.in (AUTOMAKE): Create m4/amversion.m4.
2200         * m4/amversion.in: New file.
2201         * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
2202         (dist_m4data_DATA): ... this.
2203         (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4.
2204         * m4/init.m4 (AM_INIT_AUTOMAKE): Require
2205         AM_SET_CURRENT_AUTOMAKE_VERSION.
2206         * automake.in (seen_automake_version): New variable.
2207         (scan_autoconf_traces, scan_one_autoconf_file,
2208         scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain
2209         when the version used in aclocal.m4 differs from Automake's.
2210         * tests/defs (ACLOCAL): Look in ../m4 too.
2211         * tests/installsh.test (ACLOCAL): Likewise.
2212         * tests/installdir.test (installdirs-local): Run $ACLOCAL.
2213
2214 2002-01-06  Raja R Harinath  <harinath@cs.umn.edu>
2215
2216         * automake.in (handle_languages): Emit an automake
2217         internal variable 'am__depfiles_maybe'.
2218         * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe.
2219
2220         * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to
2221         config.status.
2222
2223 2002-01-06  Tom Tromey  <tromey@redhat.com>
2224
2225         * automake.texi (Tags): Document new variables.
2226         * lib/am/tags.am (ETAGS): New macro.
2227         (ETAGSFLAGS): Likewise.
2228         (TAGS): Use them.
2229
2230 2002-01-04  Tom Tromey  <tromey@redhat.com>
2231
2232         * configure.in (ACLOCAL): Set perllibdir.  From Nicolas Joly.
2233
2234 2002-01-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
2235
2236         * automake.in (read_am_file): Thinko in "comment following
2237         trailing backslash" detection.
2238         * tests/comment5.test: Test for this too.
2239
2240 2002-01-02  Tom Tromey  <tromey@redhat.com>
2241
2242         * automake.texi (Extending): Added index for uninstall-hook.
2243
2244 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
2245
2246         Fix for PR automake/278:
2247         * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
2248         with versions such as '2.2c1'.  Also, use `int' instead of the
2249         obsoleted `string.atoi'.
2250         Reported by Enrico Scholz.
2251
2252 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
2253
2254         Fix for PR automake/280:
2255         * automake.in (read_am_file): Warn about trailing backslashes
2256         in comments.
2257         * tests/comment5.test: New file.
2258         * tests/Makefile.am (TESTS): Add comment5.test.
2259         Reported by Enrico Scholz.
2260
2261 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
2262
2263         * tests/comment4.test: New file.
2264         * tests/Makefile.am (TESTS): Add comment4.test.
2265
2266         Fix for comment4.test:
2267         * automake.in (read_am_file): Output leading comments only when
2268         encountering white lines.
2269
2270 2002-01-01  Tom Tromey  <tromey@redhat.com>
2271
2272         For PR automake/234:
2273         * tests/Makefile.am (TESTS): Added strip.test.
2274         * tests/strip.test: New file.
2275
2276         * automake.texi (Extending): Mention uninstall-hook.
2277         (Install): Likewise.
2278         * automake.in (handle_factored_dependencies): Allow
2279         uninstall-hook.
2280
2281 2002-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
2282
2283         * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
2284         it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
2285         This fixes a bug introduced on 2001-01-28.
2286         Reported by Jared Davis.
2287
2288 -----
2289
2290 Copyright (C) 2002 Free Software Foundation, Inc.
2291
2292 This file is part of GNU Automake.
2293
2294 GNU Automake is free software; you can redistribute it and/or modify
2295 it under the terms of the GNU General Public License as published by
2296 the Free Software Foundation; either version 2, or (at your option)
2297 any later version.
2298
2299 GNU Automake is distributed in the hope that it will be useful,
2300 but WITHOUT ANY WARRANTY; without even the implied warranty of
2301 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2302 GNU General Public License for more details.
2303
2304 You should have received a copy of the GNU General Public License
2305 along with autoconf; see the file COPYING.  If not, write to
2306 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2307 Boston, MA 02111-1307, USA.