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