* lib/am/header-vars.am (build_triplet, host_triplet,
[platform/upstream/automake.git] / ChangeLog
1 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
2
3         * lib/am/header-vars.am (build_triplet, host_triplet,
4         target_triplet): Define.  Were removed by mistake on 2002-04-13.
5
6 2002-05-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
7
8         For PR automake/186:
9         * lib/am/distdir.am (distcheck): Attempt a DESTDIR install.
10         * tests/destdir.test: New file.
11         * tests/Makefile.am (TESTS): Add destdir.test.
12
13 2002-05-16  Alexandre Duret-Lutz  <duret_g@epita.fr>
14
15         * automake.in (conditional_true_when): Return false if $WHEN == FALSE.
16         (conditional_is_redundant): Simplify.
17         (conditional_implies_one_of,
18         variable_not_always_defined_in_cond): New functions
19         (macro_define): Reject appends if the variable is not defined in
20         all conditions where `+=' applies.
21         (invert_conditions): Rewrite.  Before this patch,
22         invert_conditions("A_TRUE B_TRUE", "A_TRUE B_FALSE", "A_FALSE")
23         would return ("A_FALSE B_TRUE", "A_FALSE B_TRUE"), which seems
24         wrong (these conditions implies "A_FALSE").  Now it outputs (),
25         which just means the input conditions cover all cases.
26         (variable_conditions_permutations): Never output FALSE conditions.
27         * tests/pluseq2.test, tests/pluseq3.test: Define data_DATA
28         in the CHECK_FALSE condition to fix the test.
29         * tests/pluseq5.test: Actually check the diagnostic.
30         * tests/pluseq9.test: New file.
31         * tests/Makefile.am (TESTS): Add pluseq9.test.
32
33 2002-05-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
34
35         Fix for PR automake/322:
36         * automake.in (read_am_file): Rename $was_rule as $prev_state, and
37         set it with IN_RULE_DEF, IN_VAR_DEF, or IN_COMMENT as appropriate.
38         Handle comments continued by backslashes.
39         * tests/comment6.test: New file.
40         * tests/Makefile.am (TESTS): Add comment6.test.
41         Reported by Braden N. McDaniel.
42
43 2002-05-08  Charles Wilson  <cwilson@ece.gatech.edu>
44             Alexandre Duret-Lutz  <duret_g@epita.fr>
45
46         * lib/am/progs.am (clean-%DIR%PROGRAMS): If Libtool is used, clean
47         both `program$(EXEEXT)' and `program'; needed under Cygwin.
48         * tests/libtool3.test: New file.
49         * tests/Makefile.am (TESTS): Add libtool3.test.
50
51 2002-05-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
52
53         * TODO: Undust.
54
55 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
56
57         * Makefile.am (FETCHFILES, fetch): Get INSTALL from Autoconf CVS.
58
59 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
60
61         Erase stamps from the Makefile that generates them.
62
63         * automake.in (handle_configure): Append each used stamp to
64         @distclean_config.  Don't warn about stamp-h in AC_OUTPUT, this
65         file is not used anymore.
66         * lib/am/clean.am (distclean-generic): Don't erase stamp-h and
67         stamp-h[0-9]*.
68         * tests/subdir6.test: New file.
69         * tests/Makefile.am (TESTS): Add it.
70
71 2002-05-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
72
73         Fix for condd.test (conditional `+='):
74         * automake.in (%appendvar): New.
75         (initialize_per_input): Clear it.
76         (macro_define): Handle += for variable defined in another condition.
77         * automake.texi (Conditional Sources): Use conditional += in
78         the example.
79         (General Operation, Conditionals): Remove note about broken +=.
80         * tests/cond21.test: New file.
81         * tests/condd.test: Also test conditional append to a _SOURCE
82         variable.  Create missing directories.
83         * tests/Makefile.am (TESTS): Add cond21.test.
84         (XFAILS): Remove condd.test.
85
86 2002-05-05  Tom Tromey  <tromey@redhat.com>
87
88         * automake.texi (Program and Library Variables): Mention _LFLAGS.
89
90 2002-04-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
91
92         * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Erase so_locations
93         files.  Fix subobj9.test on OSF and IRIX.
94         Reported by Nelson H. F. Beebe.
95
96 2002-04-26  Tom Tromey  <tromey@redhat.com>
97
98         * lib/am/dejagnu.am (distclean-DEJAGNU): New target.
99         For Debian bug 144221.
100
101 2002-04-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
102
103         * tests/man2.test: Use `pwd`, not $PWD.  Use $MAKE -e.
104
105 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
106
107         * automake.in (subobjname): Use the length of %subobjvar
108         instead of $subobjnamenum.
109         (subobjnamenum): Remove.
110
111 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
112
113         For PR automake/307:
114         * lib/depcomp: Never compute dependencies in the background, this
115         can cause races with libtool.  Compute the dependencies after
116         the actual compilation.  Don't make libtool silent now that
117         it's run in the foreground.
118         * tests/pr307.test: New file.
119         * tests/Makefile.am (TESTS): Add pr307.test.
120         Reported by Laurent Morichetti.
121
122 2002-04-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
123
124         * lib/am/check.am: Show skipped tests.  Display the
125         $(PACKAGE_BUGREPORT) address on failure.
126
127 2002-04-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
128
129         Fix PR automake/315:
130         * automake.in (subobjname): Rewrite to generate variable name
131         unique for each content.
132         (%substnums): Remove.
133         (%subobjvar): New hash.
134         (initialize_per_input): Clear %subobjvar.
135         (define_objects_from_sources): Return the name of the variable
136         defined, in addition to the linker.  Call subobjname only once
137         the content of the variable to define is known.
138         (handle_source_transform): Adjust call to define_objects_from_sources.
139         * tests/specflags8.test: Mention PR 315.
140         * tests/subobjname.test: New file.
141         * tests/Makefile.am (XFAIL_TESTS): Remove specflags8.test.
142         (TESTS): Add subobjname.test.
143
144 2002-04-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
145
146         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Grep
147         the whole file for 'generated by automake', not only the
148         first line.  This accounts for post-processed Makefile.in's.
149         * tests/postproc.test: New file.
150         * tests/Makefile.am (TESTS): Add postproc.test.
151
152 2002-04-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
153
154         For PR automake/151 and PR automake/314:
155         * automake.texi (A Program): Split into
156         (Program Sources, Linking, Conditional Sources, Conditional
157         Programs): ... these subsections; moving the Linking node
158         before the Conditional discussions.
159         (Conditional Sources): More details.  Notably, mention
160         hello_DEPENDENCIES.
161         (Conditionals): Adjust reference to Conditional Programs.
162
163 2002-04-19  Paul Eggert  <eggert@twinsun.com>
164
165         Fix some bugs when using "$@" when there might be zero positional
166         arguments in cases where this matters.  Zsh doesn't support
167         the workaround ${1+"$@"} that has been used by Automake since
168         the Mon Dec  4 11:55:36 1995 change.
169
170         * aclocal.in: Use 'case' statement to work around problem.
171         * automake.in: Likewise.
172         * lib/ylwrap: Likewise.
173         * lib/missing: No need for workaround, as the command is never
174         invoked with zero arguments.
175         * tests/ccnoco.test: Likewise.
176         * missing: Update from lib/missing.
177
178 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
179
180         * automake.in (initialize_per_input): Clear %require_file_found.
181         (%require_file_found): Group the declaration with the other
182         variables initialized by initialize_per_input.
183         * tests/required.test: New file.
184         * tests/Makefile.am (TESTS): Add it.
185         Reported by Marius Vollmer.
186
187 2002-04-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
188
189         * m4/header.m4 (_AM_CONFIG_HEADER_INSINUATE): New function,
190         override AC_CONFIG_HEADERS with AM_CONFIG_HEADER.
191         (_AM_CONFIG_HEADER): Use _AM_AC_CONFIG_HEADERS.
192         * m4/init.m4: Call _AM_CONFIG_HEADER_INSINUATE.
193         * tests/stamph2.test: Use AC_CONFIG_HEADERS for some of the config
194         files.
195         * tests/confh5.test: New file.
196         * tests/Makefile.am (TESTS): Add confh5.test.
197         * automake.texi (Optional, Public macros): Update descriptions
198         of AC_CONFIG_HEADERS and AM_CONFIG_HEADER.
199
200 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
201
202         * tests/man2.test: New file.
203         * tests/Makefile.am (TESTS): Add man2.test.
204         * lib/am/mans.am (install-man%SECTION%): Change the extension
205         of the man pages being installed, as documented.
206
207 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
208
209         Enable traces; wipe out the old configure.in parser.
210
211         * automake.in (scan_autoconf_traces): Use '$ENF{AUTOCONF}' of
212         'autoconf'.  Honnor the $filename argument.
213         (scan_autoconf_files): Don't call scan_one_autoconf_file.
214         Always call scan_autoconf_traces.
215         (scan_one_autoconf_file): Remove, with it associated regexes.
216         (obsolete, obsolete_rx): Remove.
217         (register_language, handle_languages): Remove the 'define_flag'
218         support.  Remove it from the struct and language definitions too.
219         (unquote_m4_arg): Remove.
220         * lib/am/header-vars.am, lib/am/compile.am, lib/am/lisp.am: Remove
221         the `FOO = @FOO@' definitions for all AC_SUBST'ed variables.  They
222         are now generated automatically.
223         * aclocal.in (obsolete_macros): Don't mention obsolete_macros in
224         automake.in.
225         * automake.texi (Invoking Automake): Mention the AUTOCONF envvar.
226
227 2002-04-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
228
229         * tests/version6.test: New file.
230         * tests/Makefile.am (TESTS): Add tests/version6.test.
231         * automake.in (version_check): Return 0 on equality.
232
233 2002-04-13  Andreas Schwab  <schwab@suse.de>
234
235         * THANKS: Update my mail address.
236
237 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
238
239         * tests/discover.test: Use a full configure.in that calls AC_INIT.
240         Use AC_LIBOBJ.  Grep the error message.
241         * test/ldadd.test: Don't use LIBOBJS.  Use a full configure.in.
242         Grep the error message.  Require libtool.
243         * tests/ldflags.test:  Don't use LIBOBJS.
244         * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the
245         error messages for CC and CXX.
246
247 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
248
249         * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
250         and AMDEPBACKSLASH.
251         * tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
252         * tests/ext.test: Enable dependencies for OBJC.
253         * tests/libobj.test, tests/libobj6.test, tests/libobj9.test:
254         Delete.  They tests for different flavors of $LIBOBJS assignments
255         that wont be supported anymore.
256         * tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ.
257         * tests/obsolete.test: Don't test Automake.
258         * tests/suffix5.test: Require libtool.
259         * tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and
260         libobj9.test.
261
262 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
263
264         * configure.in (APIVERSION): Fix definition.
265
266 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
267
268         * NEWS: Catch up with changes since 1.6.
269
270 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
271
272         * tests/yacc8.test: Don't assume GNU make, run config.status
273         to regenerate the Makefile.
274
275 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
276
277         * Makefile.am (maintainer-check): Make sure `$MAKE -e' is
278         always followed by a SHELL setting.
279         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test: Set
280         SHELL when calling `$MAKE -e'.
281
282 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
283
284         * tests/subobj9.test: Use configure.in, not configure.ac,
285         otherwise this fails with old libtool versions.
286
287 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
288
289         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
290         versions.
291
292 2002-04-10  Alexandre Duret-Lutz  <duret_g@epita.fr>
293
294         * ChangeLog.2001: New file, extracted from ChangeLog.
295         * Makefile.am (EXTRA_DIST): Add it.
296
297 2002-04-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
298
299         * automake.texi (Canonicalization): The sources for libmumble++.a
300         go into libmumble___a_SOURCES.
301
302 2002-04-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
303
304         * Makefile.am (maintainer-check): Check for `sleep 1' uses in the
305         test suite.  Suggest `sleep 2' instead.
306         * tests/confsub.test: Use `sleep 2'.
307
308 2002-04-04  Paul Eggert  <eggert@twinsun.com>
309
310         * lib/am/subdirs.am:
311         ($(RECURSIVE_TARGETS), maintainer-clean-recursive):
312         $(MAKEFLAGS) -> $$MAKEFLAGS, so that we don't run into problems if
313         MAKEFLAGS contains '$(...)'.
314
315 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
316
317         * tests/specflags8.test: Typo.
318
319 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
320
321         * tests/specflags6.test: Run aclocal.
322         * tests/Makefile.am (TESTS): Add specflags6.test.
323
324 2002-04-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
325
326         * tests/specflags7.test, tests/specflags8.test: New files.
327         * tests/Makefile.am (TESTS): Add them.
328         (XFAIL_TESTS): Add specflags8.test.
329
330 2002-03-29  Tom Tromey  <tromey@redhat.com>
331
332         * automake.in (check_typos): Examine AM_LDFLAGS.
333         Fixes PR automake/311.
334
335         For PR automake/312:
336         * lib/am/libtool.am (clean-libtool): Use LTRMS.
337         * automake.in (handle_single_transform_list): When processing a
338         libtool object, clean the ordinary object and register the
339         directory.
340         (libtool_clean_directories): New global.
341         (initialize_per_input): Initialize it.
342         (generate_makefile): Call handle_libtool later.
343         (handle_libtool): Handle libtool_clean_directories.
344         * tests/subobj9.test: New file.
345         * tests/Makefile.am (TESTS): Added subobj9.test.
346
347 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
348
349         * tests/extra6.test, tests/subdir5.test: Require GNU make.
350
351 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
352
353         * tests/dup3.test (ACLOCAL): s/srcdir/testsrcdir/.
354
355 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
356
357         * tests/extra7.test: New file.
358         * tests/Makefile.am: Add it.
359         * lib/am/distdir.an (distdir): When a distribuable directory
360         exists both in `.' and $(srcdir), merge both directories.  This
361         works around a failure of extra6.test on Tru64 reported by
362         Nicolas Joly.
363
364 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
365
366         * tests/pr87.test, tests/yaccvpath.test: Require GNU make.
367
368 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
369
370         * Makefile.am (maintainer-check): Catch occurrences of
371         `$MAKE foo=bar' in the testsuite.  Suggest using
372         `foo=bar $MAKE -e' instead.
373         * tests/ansi3.test, tests/ansi5.test, tests/subobj3.test:
374         Use $MAKE -e.  This fixes a ansi5.test failure with Solaris make.
375         * tests/defs: Unset $srcdir, and set $testsrcdir to its old value.
376         * tests/installsh.test (AUTOMAKE, ACLOCAL): Use $testsrcdir.
377
378 2002-03-26  Alexandre Duret-Lutz  <duret_g@epita.fr>
379
380         Fix for PR automake/310:
381         * lib/am/depend2.am, lib/am/lex.am, lib/am/yacc.am: Quote %SOURCE%
382         so it never appears as a plain word.
383
384 2002-03-25  Angus Leeming  <a.leeming@ic.ac.uk>
385
386         * lib/depcomp (tru64): Correctly compute `base'.
387
388 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
389
390         * tests/pr211.test: s/requires/required/, otherwise the test fails
391         if libtool is not installed.
392
393 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
394
395         * tests/dirname.test: Don't use $SHELL when calling ./configure.
396
397 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
398
399         * tests/dirname.test: Use --quiet to fix failure on installations
400         using a site script.
401         Reported by Nicolas Joly.
402
403 2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
404
405         * Makefile.am (maintainer-check): Check for misuses of make,
406         autoconf, automake, aclocal, and perl in the testsuite.  Suggest
407         using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
408         * tests/confsub.test: Use $AUTOCONF and $MAKE.
409         * tests/extra5.test, tests/extra6.test, tests/lex5.test,
410         tests/nobase.test, tests/nodist2.test, tests/pr204.test,
411         tests/pr224.test, tests/pr287.test, tests/strip.test,
412         tests/yacc8.test: Use $MAKE.
413
414 2002-03-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
415
416         Add support for two-dot versions.
417
418         * tests/version5.test: New file.
419         * tests/Makefile.am (TESTS): Add it.
420         * automake.in (version_split, version_compare): New functions.
421         (version_check): Rewrite using version_split and version_compare.
422         (process_option_list): Adjust regex.
423
424 2002-03-18  Richard Boulton <richard@tartarus.org>
425
426         Fix for PR automake/306:
427         * automake.texi (Generalities): Document +=.
428         (Conditionals): Document limitations of += with conditionals.
429
430 2002-03-17  Tom Tromey  <tromey@redhat.com>
431
432         Fix for PR automake/295:
433         * automake.texi (Invoking Automake): Deprecate --output-dir.
434         * automake.in (usage): Don't document --output-dir.
435         (output_directory): Don't initialize.
436         (parse_arguments): Deprecate --output-dir.
437
438         * m4/init.m4 (AUTOMAKE, ACLOCAL): Removed extra quotes.
439         Fixes PR automake/304.
440
441 2002-03-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
442
443         * tests/dirforbid.test: Workaround for NetBSD sh bug.
444         Fixes PR automake/305.
445
446 2002-03-11  Richard Boulton <richard@tartarus.org>
447
448         * automake.in (check_typos): Allow variables with reserved
449         suffices (such as _LDFLAGS) and prefixes which aren't
450         recognised if the variable is defined in configure.ac.
451         Fixes acsubst.test.
452
453 2002-03-11  Richard Boulton <richard@tartarus.org>
454
455         * tests/acsubst.test: New test, by Alexandre Duret-Lutz
456         * tests/acsubst2.test: New test, by Alexandre Duret-Lutz
457         * tests/Makefile.am (TEST): Added acsubst.test and acsubst2.test
458
459 2002-03-11  Peter Breitenlohner  <peb@mppmu.mpg.de>
460
461         * tests/defs: Unset DESTDIR, otherwise `make DESTDIR=/foo check'
462         causes failures.
463
464 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
465
466         Fix for PR automake/303:
467         * automake.in (version_check): Move the error message ...
468         (process_option_list): ... here, so we can distinguish between
469         global and local options.
470
471 2002-03-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
472
473         * tests/pr300-lib.test, tests/pr300-ltlib.test,
474         tests/pr300-prog.test: Use AC_OUTPUT, not AC_OUTPUT(Makefile), so
475         Autoconf doesn't complain about Makefile being output twice.
476
477 2002-03-06  Tom Tromey  <tromey@redhat.com>
478
479         * configure.in: Upped version to 1.6a.
480
481 2002-03-05  Tom Tromey  <tromey@redhat.com>
482
483         * configure.in: Released 1.6.
484
485 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
486
487         Fix for PR automake/300:
488         * tests/pr300-lib.test, tests/pr300-ltlib.test,
489         tests/pr300-prog.test: New files.
490         * tests/Makefile.am (TESTS): Add them.
491         * automake.in (handle_ltlibraries): Strip nobase_ prefix to
492         compute the directory.
493         * lib/am/header-vars.am (install_sh_PROGRAM): New variable.
494         * lib/am/libs.am (%DIR%LIBRARIES_INSTALL): New variable.
495         (install-%DIR%LIBRARIES): Use it.  Honor nobase_.
496         (uninstall-%DIR%LIBRARIES): Honor nobase_.
497         * lib/am/ltlibs.am (%DIR%LTLIBRARIES_INSTALL): New variable.
498         (install-%DIR%LTLIBRARIES): Use it.  Honor nobase_.
499         (uninstall-%DIR%LTLIBRARIES): Honor nobase_.
500         * lib/am/progs.am (%DIR%PROGRAMS_INSTALL): New variable.
501         (install-%DIR%PROGRAMS): Use it.  Honor nobase_.
502         (uninstall-%DIR%PROGRAMS): Honor nobase_.
503         See also the fix for nobase.test on 2001-11-09.
504
505 2002-03-05  Tom Tromey  <tromey@redhat.com>
506
507         * lib/config.sub, lib/config.guess, lib/texinfo.tex: Updated.
508
509 2002-03-05  Pavel Roskin  <proski@gnu.org>
510
511         * tests/yacc8.test: Add a command between "test" and "cd" to
512         work around a bug in bash-2.05.
513
514 2002-03-05  Alexandre Duret-Lutz  <duret_g@epita.fr>
515
516         Fix for PR automake/294:
517         * tests/dirforbid.test: New file.
518         * tests/Makefile.am (TESTS): Add it.
519         * automake.in (standard_prefix): New hash.
520         (am_primary_prefixes): Forbid standard_prefixes which are not
521         explicitely allowed.
522         * automake.texi (Uniform): Remove FIXME.
523
524 2002-03-05  Jim Meyering  <meyering@lucent.com>
525
526         * automake.in (@common_files): Add config.rpath.
527
528 2002-03-05  Kevin Ryde  <user42@zip.com.au>
529
530         For PR automake/297:
531         * lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until
532         after AC_PROG_LEX, since it will try to run it and fail (in autoconf
533         2.52 at least).
534
535 2002-02-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
536
537         * automake.in (scan_one_autoconf_file): Declare
538         LEX_OUTPUT_ROOT and LEXLIB as configure variables when
539         AM_PROG_LEX or AC_PROG_LEX are seen.  This allows to ...
540         * lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB
541         definitions.  Search %SOURCE% in $(srcdir).  Use s||| instead
542         of s/// in the sed invocation, to support filenames containing
543         slashes.
544         * lib/am/yacc.am: Search %SOURCE% in $(srcdir).  Use s||| too.
545         * tests/lex5.test, tests/yacc8.test: New files.
546         * tests/Makefile.am (TESTS): Add them.
547
548 2002-02-23  Per Bothner  <per@bothner.com>
549
550         * m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Set `dirpart' to
551         `.' in else branch.
552
553 2002-02-22  Alexandre Duret-Lutz  <duret_g@epita.fr>
554
555         * tests/make.test: Revert the grep logic to work around a bug
556         in NetBSD sh (see NetBSD Problem Report #11542).
557         Reported by Patrick Welche.
558
559 2002-02-20  Tim Van Holder  <tim.van.holder@pandora.be>
560
561         * m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
562         to try and prevent a non-lisp emacs from starting in interactive
563         mode.
564         * automake.texi: Document this change.
565
566 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
567
568         * automake.texi (Macros): Split into ...
569         (Public Macros, Private Macros): ... these.
570
571 2002-02-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
572
573         * tests/insthook.test: Use sed instead of "tail +X".
574
575 2002-02-18  Paul Eggert  <eggert@twinsun.com>
576
577         * lib/depcomp: Don't use "tail +3"; it's not portable to
578         POSIX 1003.1-2001 hosts.
579
580 2002-02-18  Jim Meyering  <meyering@lucent.com>
581
582         * tests/cond12.test: Use sed 1q, not `head -n 1'.
583         The latter is not portable to some old systems.
584         * m4/depout.m4: Don't use `head -1'; it's no longer portable.
585         Use `sed 1q' instead.
586         * tests/insthook.test: Likewise.
587
588 2002-02-17  Alexandre Duret-Lutz  <duret_g@epita.fr>
589
590         * automake.in (handle_lib_objects_cond): Tell the user to put
591         global linker flags in AM_LDFLAGS, not LDFLAGS.
592
593         * automake.texi (General Operation): AC_SUBST'ed variables
594         override Automake's variables.
595         (Uniform): More words and @refs.
596         (Auxiliary Programs) <config.sub, config.guess>: Add URL.
597         (etags): More explanations about the first example.
598         (Invoking Automake): Mention autoreconf.  More @refs.
599         (Requirements): Mention AC_CONFIG_FILES.
600         (Optional): AC_CHECK_TOOL will no longer install config.sub and
601         config.guess.  Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
602         (Invoking aclocal): aclocal no longer warn about duplicates.
603         (Macros) <AM_INIT_AUTOMAKE>: More explanations.
604         (Extending aclocal): Suggest using the output of
605         `aclocal --print-ac-dir` to install third-party macros.
606         (Alternative): Specify ordering of dist_, nodist_, and nobase_
607         prefixes.
608         (A Program): Mention scripts.  The global LDADD variable is not
609         meant to hold link flags, suggest using AM_LDFLAGS instead.
610         (Program and Library Variables) <maude_LIBADD, maude_LDADD>:
611         _LIBADD and _LDADD are subject to the same restriction wrt to
612         link flags.
613         (Program and Library Variables) <maude_DEPENDECIES>: Is also
614         derived from maude_LIBADD.
615         (Program variables): Define AM_LDFLAGS.
616         (Dependencies): Passing the no-dependencies option to
617         AM_INIT_AUTOMAKE is prefered.
618         (Scripts): Explain why automake is magically cleaned.
619         Mention noinst_SCRIPTS and check_SCRIPTS.
620         (Data): Use dist_ in Automake's example.
621         (Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
622         Mention AC_CONFIG_FILES instead of AC_OUTPUT.
623
624 2002-02-14  Alexandre Duret-Lutz  <duret_g@epita.fr>
625
626         * Makefile.am (FETCHFILES): Add Automake/XFile.pm.
627         (fetch): Fetch XFile.pm.  Update the files in $(srcdir) instead
628         of asking the maintainer to do it manually.
629         * lib/config.guess, lib/config.sub, lib/texinfo.tex,
630         Automake/XFile.pm: New upstream versions.
631
632 2002-02-02  Tom Tromey  <tromey@redhat.com>
633
634         * automake.texi (Macros): Warn about upgrading.
635
636 2002-02-01  Tom Tromey  <tromey@redhat.com>
637
638         Change per GNU coding standards:
639         * aclocal.in (parse_arguments): Only mention most recent year in
640         copyright output.
641         * automake.in (version): Only mention most recent year.
642
643 2002-01-30  Alexandre Duret-Lutz  <duret_g@epita.fr>
644
645         * automake.texi (API versioning): New Node.
646         (Extending): Use $(DESTDIR) in examples.
647
648 2002-01-28  Akim Demaille  <akim@epita.fr>
649
650         * m4/lispdir.m4 (AM_PATH_LISPDIR): Serial 5.
651         Respect the --help layout.
652
653 2002-01-27  Tom Tromey  <tromey@redhat.com>
654
655         * configure.in: Bumped to 1.5e.
656
657         * lib/am/yacc.am: Use `rm -f'.
658
659         * configure.in: Released 1.5d.
660
661         * lib/config.guess: New version from FSF.
662
663         * Makefile.am (uninstall-hook): New target.
664
665 2002-01-24  Akim Demaille  <akim@epita.fr>
666
667         * lib/install-sh: Update, from Autoconf.
668
669 2002-01-24  Alexandre Duret-Lutz  <duret_g@epita.fr>
670
671         * automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
672         as AC_CANONICAL_HOST (the former does not require the latter since
673         Autoconf 2.50).
674         * m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
675         * automake.texi (Requirements): Do not require STRIP to be
676         defined by the user.
677
678 2002-01-23  Alexandre Duret-Lutz  <duret_g@epita.fr>
679
680         * lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
681         * automake.in (handle_languages): Compute and substitute %DEPDIRS%.
682         * tests/pr224.test: Make sure .deps subdirectories are
683         erased by distclean.
684
685 2002-01-22  Tom Tromey  <tromey@redhat.com>
686
687         * m4/gcj.m4 (AM_PROG_GCJ): Don't invoke dependency code if
688         no-dependencies option is set.
689         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't invoke dependency code if
690         no-dependencies option is set.  Don't call AM_DEP_TRACK or
691         AM_SET_DEPDIR.
692
693 2002-01-22  Pavel Roskin  <proski@gnu.org>
694
695         * tests/asm.test: Use CCAS and CCASFLAGS instead of AS and
696         ASFLAGS.
697
698 2002-01-22  Akim Demaille  <akim@epita.fr>
699
700         * Makefile.am (FETCHFILES): Remove ansi2knr.c, add texinfo.tex.
701         (fetch): Adjust.
702
703 2002-01-21  Tom Tromey  <tromey@redhat.com>
704
705         * Makefile.am (fetch): Don't fetch ansi2knr.
706
707         * automake.texi (Macros): Updated for new variable names.
708         (Program and Library Variables): Likewise.
709         (Assembly Support): Likewise.
710         * m4/as.m4: Use CCAS and CCASFLAGS.
711         * automake.in (asm): Use CCAS and CCASFLAGS.
712
713 2002-01-21  Akim Demaille  <akim@epita.fr>
714
715         * automake.in (&parse_arguments): Use a more GNUish error message
716         on wrong options.
717
718 2002-01-20  Tom Tromey  <tromey@redhat.com>
719
720         Fix for PR automake/231:
721         * m4/gcj.m4 (AM_PROG_GCJ): Use _AM_DEPENDENCIES(GCJ).
722         * m4/depend.m4: Document `GCJ'.
723
724         For PR automake/224:
725         * tests/Makefile.am (TESTS): Added pr224.test.
726         * tests/pr224.test: New file.
727         * lib/depcomp: Fixed computation of depfile.
728         * lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
729         * automake.in (handle_single_transform_list): Only reject `..'
730         component for Java.  Put dependencies in directory near object.
731         (handle_languages): Set DEPBASE.  Handle de-ansi-fication.
732
733 2002-01-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
734
735         * tests/defs: Export AUTOMAKE and ACLOCAL.
736
737 2002-01-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
738
739         Fix for PR automake/204:
740         * tests/pr204.test: New file.
741         * tests/Makefile.am (TESTS): Add it.
742         * automake.in (handle_single_transform_list): Don't distribute
743         sources derived from non-distributed sources.
744
745 2002-01-18  Alexandre Duret-Lutz  <duret_g@epita.fr>
746
747         Fix for PR automake/229:
748         * tests/pr229.test: New file.
749         * tests/Makefile.am (TESTS): Add it.
750         * automake.in (scan_one_autoconf_file): Recognize AC_CYGWIN,
751         AC_EMXOS2, and AC_MINGW32.
752
753 2002-01-18  Tom Tromey  <tromey@redhat.com>
754
755         * tests/cond7.test: Fix test bug exposed by copyright update.
756
757         For PR automake/288:
758         * automake.in (lang_c_rewrite): Don't prepend directory to base if
759         directory is `.'.  Also, properly compute de_ansi_files entry in
760         subdir-objects case
761         * tests/Makefile.am (TESTS): Added ansi7.test.
762         * tests/ansi7.test: New file.
763
764         * aclocal.in (parse_arguments): Added 2002.
765         (write_aclocal): Likewise.
766         (parse_arguments): Updated my email address.
767         * automake.in (gen_copyright): Added 2002.
768         (version): Likewise.  Also, changed my email address.
769
770         * configure.in (APIVERSION): Refined definition.
771
772 2002-01-18  Tom Tromey  <tromey@redhat.com>
773
774         * missing: Updated.
775         * lib/missing: Accept versioned aclocal.
776         * m4/init.m4 (AM_INIT_AUTOMAKE): Look for versioned aclocal.
777
778 2002-01-17  Pavel Roskin  <proski@gnu.org>
779
780         * m4/Makefile.am (m4datadir): Use APIVERSION.
781
782 2002-01-16  Tom Tromey  <tromey@redhat.com>
783
784         * Makefile.am (install-exec-hook): Use APIVERSION.
785         * m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
786         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
787         APIVERSION.
788         * automake.in (perllibdir): Use APIVERSION.
789         (libdir): Likewise.
790         * aclocal.in (perllibdir): Use APIVERSION.
791         (APIVERSION): New global.
792         (parse_arguments): Use APIVERSION.
793         * configure.in (APIVERSION): New subst.
794         (pkgvdatadir): Use APIVERSION.
795
796 2002-01-15  Tom Tromey  <tromey@redhat.com>
797
798         * missing: Updated.
799         * lib/missing: Match against `automake*' to pick up versioned
800         automake.
801         * m4/init.m4 (AM_INIT_AUTOMAKE): Use versioned automake name.
802         * m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__version
803         variable.
804         * lib/am/Makefile.am (amdir): Use pkgvdatadir.
805         * lib/Makefile.am (dist_pkgvdata_DATA): Renamed to use
806         pkgvdatadir.
807         (scriptdir): Use pkgvdatadir.
808         (installcheck-local): Likewise.
809         * lib/Automake/Makefile.am (perllibdir): Use pkgvdatadir.
810         * automake.in (perllibdir): Added VERSION.
811         (libdir): Likewise.
812         * aclocal.in (parse_arguments): Search versioned directory.  Don't
813         push unversioned directory unless it exists.
814         (perllibdir): Added VERSION.
815         (default_acdir): New global.
816         * m4/Makefile.am (m4datadir): Added $(VERSION).
817         * Makefile.am (install-exec-hook): New target.
818         * configure.in (ACLOCAL): Search build directory.
819         (pkgvdatadir): New subst.
820
821 2002-01-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
822
823         * lib/config.sub, lib/config.guess: New versions from FSF.
824
825 2002-01-13  Tom Tromey  <tromey@redhat.com>
826
827         For PR automake/288:
828         * automake.in (lang_c_rewrite): Set value for de_ansi_files entry
829         to directory.
830         (lang_c_finish): Likewise.  Also, use directory information from
831         de_ansi_files.
832
833 2002-01-13  Kevin Ryde  <user42@zip.com.au>
834
835         For PR automake/288:
836         * tests/Makefile.am (TESTS): Added ansi6.test.
837         * tests/ansi6.test: New file.
838
839 2002-01-13  Tom Tromey  <tromey@redhat.com>
840
841         For PR automake/287:
842         * lib/am/distdir.am (distdir): Use `$$list' trick when looping
843         over subdirs.
844         * tests/Makefile.am (TESTS): Added pr287.test.
845         * tests/pr287.test: New file.
846
847 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
848
849         * lib/am/distdir.am (distdir): Handle subdirectories.
850         * tests/extra6.test: New file.
851         * tests/Makefile.am (TESTS): Add it.
852
853 2002-01-13  Alexandre Duret-Lutz  <duret_g@epita.fr>
854
855         * tests/extra2.test: Run $ACLOCAL.
856
857 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
858
859         * m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
860         AM_INIT_AUTOMAKE arguments when using the old-style call.
861         Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
862         Suggested by Pavel Roskin.
863
864 2002-01-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
865
866         * test/nodefine.test, test/nodefine2.test: Check that no-define
867         works, not the contrary...
868         * m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
869         * m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
870         not the contrary.
871
872 2002-01-12  Jim Meyering  <meyering@lucent.com>
873
874         * automake.in (scan_one_autoconf_file): Unquote AC_LIBOBJ argument.
875         * tests/libobj11.test: New file.
876         * tests/Makefile.am (TESTS): Add libobj11.test.
877
878 2002-01-09  Ryan T. Sammartino  <ryants@shaw.ca>
879
880         * lib/depcomp (msvisualcpp): Strip -Gm, -Gi, and -ZI options.
881
882 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
883
884         * automake.in (file_contents_internal): Introduce two variables,
885         $is_rule and $discard_rules to track rules spanning across multiple
886         paragraphs.  This fixes a very nasty bug reported by Dmitry Mikhin
887         where only the first paragraph of such a multi-paragraph rule was
888         discarded; but it leaves many similar latent bugs (see the FIXMEs).
889
890 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
891
892         * tests/dup3.test: Remove all -I from $ACLOCAL before using it.
893         * tests/error.test: Use some macro names which are not defined by
894         Automake itself.
895
896 2002-01-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
897
898         * automake.texi (Complete, Macros, Options): Document the new style
899         AM_INIT_AUTOMAKE.  Remove AM_AUTOMAKE_OPTIONS documentaion.
900         * m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
901         AC_INIT if they are available there.  Support a new call form
902         where the only argument is an optional space-separated list of
903         Automake options.
904         * m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
905         (_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
906         _AM_IF_OPTION): New functions.
907         * automake.in (AC_INIT_PATTERN): New variable.
908         (global_options_line): Remove, use $seen_init_automake instead.
909         (scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
910         from AC_INIT if available.  Support the new style AM_INIT_AUTOMAKE.
911         Remove the AM_AUTOMAKE_OPTIONS handling.
912         * configure.in: Modernize.
913         * tests/defs (configure.in): Modernize.  One third of the tests
914         still overwrite the default configure.in and use an old
915         AM_INIT_AUTOMAKE call,  so that makes testing for both.
916         * tests/nodefine.test, tests/nodefine2.test: New files.
917         * tests/Makefile.am (TESTS): Add them.
918
919 2002-01-08  Raja R Harinath  <harinath@cs.umn.edu>
920
921         * automake.in (define_configure_variable): Propagate line numbers.
922
923 2002-01-08  Alexandre Duret-Lutz  <duret_g@epita.fr>
924
925         * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add python2.2.
926
927 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
928
929         * configure.in: Run the Autoconf test in a subdirectory, then
930         erase this directory.
931
932 2002-01-07  Alexandre Duret-Lutz  <duret_g@epita.fr>
933
934         * configure.in (AUTOMAKE): Create m4/amversion.m4.
935         * m4/amversion.in: New file.
936         * m4/Makefile.am (m4data_DATA, EXTRA_DIST): Replace by ...
937         (dist_m4data_DATA): ... this.
938         (nodist_m4data_DATA, DISTCLEANFILES): Add amversion.m4.
939         * m4/init.m4 (AM_INIT_AUTOMAKE): Require
940         AM_SET_CURRENT_AUTOMAKE_VERSION.
941         * automake.in (seen_automake_version): New variable.
942         (scan_autoconf_traces, scan_one_autoconf_file,
943         scan_autoconf_files): Scan for AM_AUTOMAKE_VERSION and complain
944         when the version used in aclocal.m4 differs from Automake's.
945         * tests/defs (ACLOCAL): Look in ../m4 too.
946         * tests/installsh.test (ACLOCAL): Likewise.
947         * tests/installdir.test (installdirs-local): Run $ACLOCAL.
948
949 2002-01-06  Raja R Harinath  <harinath@cs.umn.edu>
950
951         * automake.in (handle_languages): Emit an automake
952         internal variable 'am__depfiles_maybe'.
953         * lib/am/configure.am (%MAKEFILE%): Use am__depfiles_maybe.
954
955         * lib/am/configure.am (%MAKEFILE%): Pass `depfiles' to
956         config.status.
957
958 2002-01-06  Tom Tromey  <tromey@redhat.com>
959
960         * automake.texi (Tags): Document new variables.
961         * lib/am/tags.am (ETAGS): New macro.
962         (ETAGSFLAGS): Likewise.
963         (TAGS): Use them.
964
965 2002-01-04  Tom Tromey  <tromey@redhat.com>
966
967         * configure.in (ACLOCAL): Set perllibdir.  From Nicolas Joly.
968
969 2002-01-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
970
971         * automake.in (read_am_file): Thinko in "comment following
972         trailing backslash" detection.
973         * tests/comment5.test: Test for this too.
974
975 2002-01-02  Tom Tromey  <tromey@redhat.com>
976
977         * automake.texi (Extending): Added index for uninstall-hook.
978
979 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
980
981         Fix for PR automake/278:
982         * m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
983         with versions such as '2.2c1'.  Also, use `int' instead of the
984         obsoleted `string.atoi'.
985         Reported by Enrico Scholz.
986
987 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
988
989         Fix for PR automake/280:
990         * automake.in (read_am_file): Warn about trailing backslashes
991         in comments.
992         * tests/comment5.test: New file.
993         * tests/Makefile.am (TESTS): Add comment5.test.
994         Reported by Enrico Scholz.
995
996 2002-01-02  Alexandre Duret-Lutz  <duret_g@epita.fr>
997
998         * tests/comment4.test: New file.
999         * tests/Makefile.am (TESTS): Add comment4.test.
1000
1001         Fix for comment4.test:
1002         * automake.in (read_am_file): Output leading comments only when
1003         encountering white lines.
1004
1005 2002-01-01  Tom Tromey  <tromey@redhat.com>
1006
1007         For PR automake/234:
1008         * tests/Makefile.am (TESTS): Added strip.test.
1009         * tests/strip.test: New file.
1010
1011         * automake.texi (Extending): Mention uninstall-hook.
1012         (Install): Likewise.
1013         * automake.in (handle_factored_dependencies): Allow
1014         uninstall-hook.
1015
1016 2002-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
1017
1018         * lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
1019         it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
1020         This fixes a bug introduced on 2001-01-28.
1021         Reported by Jared Davis.
1022
1023 -----
1024
1025 Copyright (C) 2002 Free Software Foundation, Inc.
1026
1027 This file is part of GNU Automake.
1028
1029 GNU Automake is free software; you can redistribute it and/or modify
1030 it under the terms of the GNU General Public License as published by
1031 the Free Software Foundation; either version 2, or (at your option)
1032 any later version.
1033
1034 GNU Automake is distributed in the hope that it will be useful,
1035 but WITHOUT ANY WARRANTY; without even the implied warranty of
1036 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1037 GNU General Public License for more details.
1038
1039 You should have received a copy of the GNU General Public License
1040 along with autoconf; see the file COPYING.  If not, write to
1041 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1042 Boston, MA 02111-1307, USA.