* lib/am/configure.am: Replace leading spaces with a real tab.
[platform/upstream/automake.git] / ChangeLog
1 2003-06-20  Akim Demaille  <akim@epita.fr>
2
3         * lib/am/configure.am: Replace leading spaces with a real tab.
4
5 2003-06-15  Alexandre Duret-Lutz  <adl@gnu.org>
6
7         * tests/nogzip.test, tests/nogzip2.test: New files.
8         * tests/Makefile.am (TESTS): Add nogzip.test and nogzip2.test
9
10 2003-06-15  Akim Demaille  <akim@epita.fr>
11
12         * automake.in (&make_paragraphs): Define %GZIP%.
13         (&process_option_list): Accept no-dist-gzip2.
14         (&handle_dist): Complain when no archive format is enabled.
15         * lib/am/distdir.am (DIST_ARCHIVES): New variable.
16         (dist-gzip, dist-bzip2, dist-tarZ, dist-zip): No longer
17         conditioned.
18         (dist): Build $(distdir).tar.gz conditionally.
19         (distcheck): Use DIST_ARCHIVES to find an archive to unpack, and
20         to list built archives.  Run $(MAKE) dist instead of dist-gzip.
21         * automake.texi (Options, The types of distributions): Adjust.
22
23 2003-06-15  Jens Elkner  <elkner@imsgroup.de>  (tiny change)
24
25         * m4/lispdir.m4 (AM_PATH_LISPDIR): Fix sed commands to work with
26         POSIXLY_CORRECT=1.
27
28 2003-06-14  Karl Berry  <karl@gnu.org>
29             Alexandre Duret-Lutz  <adl@gnu.org>
30
31         * mkinstalldirs (scriptversion): New variable.  Setup emacs hooks
32         to update it each time the file is written, as in install-sh.
33         (usage): Improve message.
34         (--version): New option.
35         (--help): Output to stdout, not stderr.
36
37 2003-06-13  Paul Eggert  <eggert@twinsun.com>
38
39         * lib/install.sh (dsttmp, rmtmp): Do not use '#' in file names;
40         it's not guaranteed by POSIX and it doesn't work on OpenVMS.
41         Bug reported by Bernard Giroud in:
42         http://mail.gnu.org/archive/html/autoconf-patches/2003-06/msg00013.html
43
44 2003-06-05  Alexandre Duret-Lutz  <adl@gnu.org>
45
46         * automake.in (check_gnu_standards): Use no-installman and
47         no-installinfo's locations.
48         (process_option_list): Fill %options with locations.
49         (check_cygnus) Fill $options{'no-installinfo'} and
50         $options{'no-dependencies'} with $cygnus_mode, so that it
51         remains a Location.
52         * tests/gnuwarn2.test: New file.
53         * tests/Makefile.am (TESTS): Add gnuwarn2.test.
54
55 2003-06-04  Alexandre Duret-Lutz  <adl@gnu.org>
56
57         * automake.in (process_option_list): Record the location
58         of ansi2knr's definition.
59         (handle_compile): Use it.
60         * tests/ansi3.test: Make sure the location appears correctly.
61         Update to use set -e.
62         * tests/ansi3b.test: New file.
63         * tests/Makefile.am (TESTS): Add ansi3b.test.
64
65         * tests/alpha.test: Really run $MAKE.  Augment to test
66         subdirectories, and check-news report.
67         * tests/alpha2.test: New file.  Bug report from Akim Demaille.
68         * tests/gnits2.test: Make sure README-alpha is not distributed.
69         * tests/Makefile.am (TESTS): Add alpha2.test.
70         * automake.in (handle_minor_options): Distribute README-alpha
71         using push_dist_common, not require_file_with_macro.
72
73 2003-06-03  Alexandre Duret-Lutz  <adl@gnu.org>
74
75         * lib/Automake/Configure_ac.pm
76         (search_configure_ac, find_configure_ac): Rename as ...
77         (find_configure_ac, require_configure_ac): ... these.
78         * aclocal.in (scan_configure): Adjust call to require_configure_ac.
79         * automake.in (scan_autoconf_files): Likewise.
80         Suggested by Tim Van Holder.
81
82         * alocal.in: Use Automake::Configure_ac.
83         ($configure_ac): Delete.
84         (scan_configure): Adjust use of find_configure_ac;
85         * automake.in: Use Automake::Configure_ac.
86         ($configure_ac): Delete.
87         (scan_autoconf_files): Adjust use of find_configure_ac;
88         * lib/Automake/Configure_ac.pm: New file.
89         * lib/Automake/General.pm (find_configure_ac): Delete.  Now
90         replaced by Automake::Configure_ac::search_configure_ac.
91         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm.
92         * lib/Automake/Variable.pm: Use Automake::Configure_ac.
93         (require_variables): Adjust use of $configure_ac.
94
95 2003-06-02  Akim Demaille  <akim@epita.fr>
96
97         * lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am,
98         * lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am,
99         * lib/am/program.am, lib/am/multilib.am, lib/am/mans.am,
100         * lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am,
101         * lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am,
102         * lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am,
103         * lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am,
104         * lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am,
105         * lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am,
106         * lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am,
107         * m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4,
108         * m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4,
109         * m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4,
110         * m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4,
111         * m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4,
112         * m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4,
113         * m4/Makefile.am: White space changes and Copyright updates.
114
115 2003-05-29  Alexandre Duret-Lutz  <adl@gnu.org>
116
117         * lib/Automake/Variable.pm (check_defined_unconditionally): Add
118         the $parent_cond argument.
119         (output): Use $self->name in diagnostic not $self.
120         (variable_value_as_list): Rename as ...
121         (value_as_list): ... this.  Declare as a method.  Take a $parent_cond
122         argument and pass it to check_defined_unconditionally.  Do not call
123         variable_assert, now that this is a method.
124         (variable_assert): Delete (unused).
125         * automake.in (traverse_variable_recursively_worker): Adjust to
126         use check_defined_unconditionally and value_as_list as a methods.
127
128         * lib/Automake/Variable.pm (output): Declare as a method, since it
129         is only used this way.
130         (define): Fix documentation of $cond.
131         Suggested by Raja R. Harinath.
132
133 2003-05-25  Alexandre Duret-Lutz  <adl@gnu.org>
134
135         * lib/Automake/Variable.pm, lib/Automake/VarDef.pm: New files.
136         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Variable.pm
137         and VarDef.pm.
138         * automake.in: Use Automake::Variable and Automake::VarDef.
139         (MACRO_PATTERN): Delete. Now Automake::Variable::_MACRO_PATTERN.
140         (am_macro_for_var): Delete. Now Automake::Variable::_am_macro_for_var.
141         (ac_macro_for_var): Delete. Now Automake::Variable::_ac_macro_for_var.
142         (silent_variable_override): Delete.  Now
143         Automake::Variable::_silent_variable_override.
144         (var_value, var_location, var_comment, var_type, var_owner,
145         var_pretty, content_seen): Delete.  This functionality is now
146         offered by Automake::Variable and Automake::VarDef.
147         (VAR_AUTOMAKE, VAR_CONFIGURE, VAR_MAKEFILE, VAR_ASIS, VAR_PRETTY):
148         Delete.  Now defined in Automake::VarDef.
149         (var_order): Delete.  Now Automake::Variable::_var_order.
150         (appendvar): Delete.  Now Automake::Variable::_appendvar.
151         (var_SUFFIX_trigger): Register using Automake::Variable::hook.
152         (initialize_per_input): Call Automake::Variable::reset.
153         (err_var, msg_cond_var, msg_var, reject_var): Delete.  Now
154         defined in Automake::Variable.
155         (generate_makefile, process_option_list, handle_languages)
156         (traverse_variable_recursively_worker)
157         (transform_variable_recursively, handle_compile)
158         (handle_libraries, handle_ltlibraries)
159         (check_typos, handle_dist, handle_subdirs, scan_autoconf_files):
160         Adjust to use Automake::Variable functions.
161         (check_ambiguous_condition): Delete.  Now
162         Automake::Variable::_check_ambiguous_condition.
163         (condition_ambiguous_p): Delete.  Now
164         Automake::Variable::condition_ambiguous_p.
165         (variable_not_always_defined_in_cond): Delete.  Now
166         Automake::Variable::not_always_defined_in_cond.
167         (macro_define): Delete.  Now Automake::Variable::define.
168         (macro_delete): Delete.  Now Automake::Variable::variable_delete.
169         (macro_dump): Delete.  Now Automake::Variable::variable_dump.
170         (macros_dump): Delete.  Now Automake::Variable::variables_dump.
171         (variable_defined): Delete.  Now
172         Automake::Variable::variable_defined, with the target check
173         temporarily disabled.
174         (variable_assert): Delete.  Now Automake::Variable::variable_assert.
175         (examine_variable): Delete.  Now
176         Automake::Variable::examine_variable.
177         (variable_conditions): Delete.  Now Automake::Variable::conditions.
178         (scan_variable_expansions): Delete.  Now
179         Automake::Variable::scan_variable_expansions.
180         (check_variable_expansions): Delete.  Now
181         Automake::Variable::check_variable_expansions.
182         (check_variable_defined_unconditionally): Delete.  Now
183         Automake::Variable::check_defined_unconditionally.
184         (variable_value): Delete.  Now Automake::Variable::variable_value.
185         (variable_value_as_list): Delete.  Now
186         Automake::Variable::variable_value_as_list.
187         (variable_value_as_list_recursive_worker): Adjust to use
188         Automake::Variable functions.
189         (variable_output): Delete.  Now Automake::Variable::output.
190         (define_pretty_variable, define_configure_variable, read_am_file)
191         (define_standard_variables, read_main_am_file): Adjust to use
192         Automake::Variable functions.
193         (handle_variables): Delete.  Now Automake::Variable::output_variables.
194         (file_contents_internal, am_primary_prefixes, am_install_var)
195         (require_file_with_macro, require_conf_file_with_macro)
196         (push_dist_common): : Adjust to use
197         Automake::Variable functions.
198         (require_variables): Delete.  Now
199         Automake::Variable::require_variables.
200         (require_variables_for_macro): Delete.  Now
201         Automake::Variable::require_variables_for_variable.
202         * tests/Makefile.am (XFAIL_TESTS): Add target.test.
203
204 2003-05-25  Christian Cornelssen  <ccorn@cs.tu-berlin.de>  (tiny change)
205
206         * tests/dejagnu7.test: Check if runtest supports --status.
207
208 2003-05-23  Alexandre Duret-Lutz  <adl@gnu.org>
209
210         * lib/Automake/Location.pm (dump): Output 'INTERNAL' when position
211         is undefined.
212
213         * lib/Automake/DisjConditions.pm (human): Fix infinite loop when
214         $self contains only one Condition.
215
216         * automake.in: Use plain strict, including refs.
217         (macro_define, handle_single_transform_list): Use \&{'name'} to
218         build references to named subroutines.
219
220 2003-05-22  Karl Berry  <karl@gnu.org>
221
222         * automake.texi: Update @dircategory to match the Free Software
223         Directory.  End directory entries with dots.
224
225 2003-05-22  Alexandre Duret-Lutz  <adl@gnu.org>
226
227         * automake.texi (maintainer-mode): s/François/Fran@,{c}ois/.
228
229         * lib/elisp-comp: s/François/Franc,ois/.
230         Suggested by Paul Eggert.
231
232         * automake.in: Move the "main" code at the end.
233         (parse_arguments): Move near the end.
234         ($KNOWN_EXTENSIONS_PATTERN, @known_extensions_list,
235         accept_extensions, var_SUFFIXES_trigger): Move these definitions
236         before any call to register_language.
237         (am_file): Move the definition with all other global variables,
238         do not use local to define it.
239         * Makefile.am (maintainer-check): Expect no `local' in Automake.
240
241 2003-05-21  Alexandre Duret-Lutz  <adl@gnu.org>
242
243         * lib/Automake/Wrap.pm, lib/Automake/tests/Wrap.pl: New files.
244         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Wrap.pm.
245         * lib/Automake/tests/Makefile.am (TESTS): Add Wrap.pl.
246         * automake.in (handle_texinfo_helper, pretty_print_rule)
247         (variable_output): Adjust to use makefile_wrap instead of
248         pretty_print_internal.
249         (pretty_print_internal): Remove.  Renamed as Automake::Wrap::wrap
250         and augmented to accept the $eol and $max_len arguments.
251
252 2003-05-18  Alexandre Duret-Lutz  <adl@gnu.org>
253
254         * lib/Autom4te/XFile.pm, lib/config.guess, lib/config.sub,
255         lib/texinfo.tex: New upstream versions.
256
257 2003-05-17  Alexandre Duret-Lutz  <adl@gnu.org>
258
259         * lib/am/install.am (install, install-exec, install-data, uninstall):
260         Declare conditionally using a if/else/endif block instead of
261         using ?SUBDIRS?-style conditions.  The latter fail when
262         %maybe_BUILT_SOURCES% is replaced by several lines.
263         This fixes a bug introduced on 2003-04-06.
264         * tests/bsource.test: New file.
265         * tests/Makefile.am (TESTS): Add bsource.test.
266         Reported by Bruno Haible.
267
268 2003-05-11  Alexandre Duret-Lutz  <adl@gnu.org>
269
270         * automake.texi (renamed objects): New node.
271         (Program and Library Variables): Move maude_DEPENDENCIES closer
272         to maude_LDADD.  Define and use `per-target compilation flags' in the
273         explanation for maude_CFLAGS et al.  Link to the `renamed objects'
274         node.  Illustrate maude_SHORTNAME.
275
276 2003-05-09  Alexandre Duret-Lutz  <adl@gnu.org>
277
278         * lib/install-sh: Update copyright notice and license to that of
279         X11R6.  This removes an advertising clause reported as Debian bug
280         #191717.
281
282 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
283
284         * configure.in (ACLOCAL): Do not use -I, --acdir is enough.
285
286         * m4/make.m4: Rename the doit target as am__doit,
287         and make it phony.
288         Reported by Philip S Tellis.
289
290 2003-05-07  Alexandre Duret-Lutz  <adl@gnu.org>
291
292         * lib/am/configure.am (%MAKEFILE-IN%): Propagate automake's exit
293         status.
294         * tests/makej.test: New file (test Autom4te's cache locking,
295         new in CVS Autoconf).
296         * tests/Makefile.am (TESTS): Add makej.test.
297
298 2003-05-06  Alexandre Duret-Lutz  <adl@gnu.org>
299
300         * lib/Automake/General.pm (contents): New function.
301         * aclocal.in (greatest_mtime, force_output): New globals.
302         (scan_configure, add_file): Update $greatest_mtime.
303         (parse_arguments): Parse --force.
304         (write_aclocal): Do not overwrite $output_file unless needed.
305         * automake.texi (aclocal options): Document --force.
306         * tests/aclocal7.test: New file.
307         * tests/Makefile.am (TESTS): Add aclocal7.test.
308
309 2003-05-05  Alexandre Duret-Lutz  <adl@gnu.org>
310
311         * automake.texi (Optional): Document m4_include.
312         (Invoking aclocal): Shake a bit to introduce the various uses
313         of aclocal and explain that aclocal will use m4_include for
314         local files.
315         (Extending aclocal): Show how to install installable macros
316         in $(datadir)/aclocal, and make it clearer that writing installable
317         macros is not the only way to extend aclocal.
318         (Local Macros, Future of aclocal): New sections.
319
320 2003-04-27  Alexandre Duret-Lutz  <adl@gnu.org>
321
322         * automake.in (@common_files): Remove acinclude.m4 since
323         it will be m4_included by aclocal.m4 and files are always
324         distributed.
325         (scan_aclocal_m4): Do not bother about acinclude.m4 anymore.
326         We will get this dependency when tracing m4_includes.
327         * tests/aclocal6.test: Make sure acinclude.m4 is distributed
328         when used.
329         * tests/acinclude.test: Delete.
330         * tests/Makefile.am (TESTS): Remove acinclude.test.
331
332 2003-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
333
334         * automake.in (handle_configure): Don't add @configure_deps to
335         DIST_COMMON, we do this from lib/am/configure.am now.
336         Define the am__configure_deps variable instead of substituing
337         %CONFIGURE_DEPS%.
338         * lib/am/configure.am (%MAKEFILE-IN%, $(top_srcdir)/configure,
339         $(ACLOCAL_M4)): Use $(am__configure_deps) instead of %CONFIGURE_DEPS%.
340         (DIST_COMMON): Add $(am__configure_deps).
341
342         * tests/aclocal6.test: New file.
343         * lib/am/configure.am (am--refresh): New rule.
344         (%MAKEFILE-IN%, %MAKEFILE%, $(top_builddir)/config.status,
345         $(top_srcdir)/configure): Call the top-level am--refresh from
346         subdirectories.
347         ($(ACLOCAL_M4)): Depend upon %CONFIGURE_DEPS%.  Call the
348         top-level am--refresh when not in the top-level directory.
349         Fix jump directories for VPATH builds.
350         Suggested by Raja R. Harinath.
351
352 2003-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
353
354         * automake.in (scan_aclocal_m4): Do not parse ACLOCAL_AMFLAGS
355         and glob for m4_files (We've got all local m4 files while
356         tracing m4_include's).  Diagnose ACLOCAL_M4_SOURCES as obsolete.
357         Distribute aclocal.m4 only at the top-level.
358         (my_glob): Remove.  This fixes PR automake/11.
359         (handle_dist): Strip leading `./' from directories.
360         * aclocal.in (add_file): Output 'm4_include([file.m4])' instead
361         of copying local files.
362         (write_aclocal, parse_arguments): Bump copyright date.
363         * configure.in: De not build m4/amversion.m4 from here ...
364         * m4/Makefile.am ($(srcdir)/amversion.m4): ... do this here.
365         (nodist_m4data_DATA): Use $(srcdir)/amversion.m4 instead
366         of amversion.m4.
367         * tests/Makefile.am (XFAIL_TESTS): Remove aclocal5.test.
368         (TESTS): Remove aclocal2.test.  Do not test aclocal.test twice.
369         * tests/aclocal2.test: Delete (pointless).
370         * tests/aclocal5.test: Make sure configure's dependencies are
371         distributed.
372         * tests/acinclude.test: Adjust to search for m4_include.
373         * tests/dirlist.test, tests/dup3.test: Run $AUTOCONF and grep
374         configure instead of aclocal.m4.
375
376         For PR automake/46:
377         * automake.in (scan_aclocal_m4): Work in all directories, not only
378         the top-level.  Prepend $(top_srcdir) in front of each aclocal.m4
379         dependency.
380         * lib/am/configure.am (config.status, configure, $(ACLOCAL_M4)):
381         Define rebuild rules in each directory.
382         * tests/subdir8.test: Augment to exercise aclocal.m4's dependencies
383         from the top-level directory.
384         * tests/aclocal5.test: New file.  Exercise aclocal.m4's dependencies
385         from a subdirectory.
386         * tests/Makefile.am (TESTS): Add aclocal5.test.
387         (XFAIL_TESTS): Replace subdir8.test by aclocal5.test.
388
389 2003-04-24  Akim Demaille  <akim@epita.fr>
390             Alexandre Duret-Lutz  <adl@gnu.org>
391
392         For PR automake/46:
393         * lib/am/configure.am (%MAKEFILE-IN%): If Makefile.in is rebuilt
394         because of one of configure's dependencies, run automake without
395         argument to update the whole tree at once.  Depend upon
396         %CONFIGURE_DEPS%.
397         (%MAKEFILE%): If Makefile is rebuilt because config.status has
398         been updated, run config.status without arguments.
399         * automake.in (scan_autoconf_traces): Prepend $(top_srcdir)
400         before all files in @configure_deps.
401         * tests/subdir5.test: Modernize configure.in, make sure
402         maude/Makefile was actually created, and exercise %CONFIGURE_DEPS%.
403         * tests/subdir8.test: New file.
404         * tests/Makefile.am (TESTS): Add subdir8.test.
405         (XFAIL_TESTS): Replace subdir5.test by subdir8.test.
406
407 2003-04-23  Alexandre Duret-Lutz  <adl@gnu.org>
408
409         * automake.texi (Requirements): Typo in index
410         s/AC_CONFIG_FILE/AC_CONFIG_FILES/.
411
412         * lib/texinfo.tex: New upstream version.
413
414 2003-04-21  Jim Meyering  <jim@meyering.net>
415
416         * lib/mkinstalldirs: Remove each sequence of spaces before a
417         TAB character.
418         * lib/depcomp: Search for TAB-SPC, not SPC-TAB.
419
420 2003-04-19  Alexandre Duret-Lutz  <adl@gnu.org>
421
422         Fix for PR automake/389:
423         * automake.in (handle_configure): Don't put $colon_infile in
424         CONFIG-MAKEFILE.
425         * tests/conff.test: New file.
426         * tests/Makefile.am (TESTS): Add conff.test.
427         Reported by Alexander Turbov.
428
429 2003-04-18  Alexandre Duret-Lutz  <adl@gnu.org>
430
431         * tests/defs.in: Handle required=etags to work around
432         Exuberant Ctags.
433
434         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
435         versions.
436
437         * tests/dejagnu3.test, tests/dejagnu4.test, tests/dejagnu5.test:
438         Distribute dejagnu test cases, so that distcheck actually runs them.
439
440 2003-04-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
441
442         * lib/am/dejagnu.am (site.exp): Don't define tool in site.exp,
443         because we set that by invoking runtest with --tool.
444         * tests/Makefile.am (TESTS): Add dejagnu4.test, dejagnu5.test,
445         dejagnu6.test, dejagnu7.test.
446         * tests/dejagnu4.test: New test.
447         * tests/dejagnu5.test: New test.
448         * tests/dejagnu6.test: New test.
449         * tests/dejagnu7.test: New test.
450
451         * tests/dejagnu3.test: Make sure the DejaGnu test is actually run.
452
453 2003-04-18  Jim Meyering  <jim@meyering.net>
454
455         * automake.in (variable_output): Fix typo in comment s/is/if/.
456
457         * lib/am/yacc.am (?!GENERIC?%OBJ% aka .y.c): Don't redirect
458         directly to $@.  Instead, redirect to $@t and rename upon success.
459         Also, move the commands that update $@ so they are last.  Otherwise,
460         this rule could leave the user with an up to date target (.c file)
461         but with a missing or corrupted corresponding .h file.
462
463 2003-04-17  Richard Dawe  <rich@phekda.freeserve.co.uk>
464
465         * tests/defs.in: Handle required=runtest, to detect runtest
466         from DejaGnu.
467         * tests/Makefile.am (TESTS): Add dejagnu3.test.
468         * tests/dejagnu3.test: New test.
469
470 2003-04-16  Alexandre Duret-Lutz  <adl@gnu.org>
471
472         * automake.in (rule_define): If the user tries to override
473         an Automake which has a -local variant, suggest using the
474         -local variant in the -Woverride diagnostic.
475         (handle_factored_dependencies): Register factored
476         rules with rule_define, and define them only in undefined
477         conditions.
478         * tests/Makefile.am (TESTS): Add override.test.
479         * tests/overrid.test: New file.
480         * tests/phony.test: Count the number of .PHONY targets.
481
482 2003-04-15  Alexandre Duret-Lutz  <adl@gnu.org>
483
484         * lib/am/distdir.am (distuninstallcheck, distcleancheck): Silence
485         these rules, so that we don't confuse users by echoing
486         "echo ERROR:" commands which are not run.
487
488 2003-03-14  Richard Dawe  <rich@phekda.freeserve.co.uk>
489             Alexandre Duret-Lutz  <adl@gnu.org>
490
491         * automake.in (output_texinfo_build_rules, handle_texinfo_helper,
492         initialize_per_input):  Add infrastructure for generating HTML
493         documentation from texinfo source.
494         * lib/am/texinfos.am: Add rules for building HTML documentation
495         from texinfo source.
496         * lib/am/texibuild.am: Likewise.
497         * automake.texi (Texinfo): Document rules for building
498         HTML documentation from texinfo source.
499         * tests/txinfo21.test: New file.
500         * tests/Makefile.am (TESTS): Add txinfo21.test.
501         * tests/defs.in: Handle required=makeinfo-html.
502
503 2003-04-14  Alexandre Duret-Lutz  <adl@gnu.org>
504
505         * automake.in (%silent_variable_override): New variable.
506         (macro_define): Warn about variable definitions overriding
507         Automake variables.
508         (rule_define): Warn about target definitions overriding
509         Automake variables.  Fix $condmsg definition.
510         * automake.texi (Invoking Automake): Document the `override'
511         category.
512         * lib/Automake/ChannelDefs.pm (usage): Likewise.
513         * lib/am/texinfos.am [!%?CYGNUS] (MAKEINFO): Do not define,
514         this is already done in m4/init.m4.
515         * tests/dejagnu2.test: Run $MAKE, don't only grep.  Use
516         -Wno-override, and make sure we get a warning without.
517         * tests/exeext2.test, tests/substtarg.test: Use -Wno-override,
518         and make sure we get a warning without.
519         * tests/exeext3.test, tests/java2.test, tests/nolink.test,
520         tests/subpkg.test, tests/vartest.test: Use -Wno-override.
521         * tests/txinfo13.test: Use installcheck-local instead of overriding
522         installcheck.
523         * tests/txinfo2.test: Run $MAKE on the real Makefile (this test
524         used to succeed thanks to a failure...)
525         * tests/location.test: Adjust expected messages.
526         * tests/Makefile.am (XFAIL_TESTS): Add txinfo5.test.
527
528 2003-04-12  Raja R Harinath  <harinath@acm.org>
529
530         * lib/Automake/DisjConditions.pm (true): Don't cache answer.
531         (invert): Update comment.
532         (_simplify): Remove.
533         (simplify): Implement using invert().
534         * lib/Automake/tests/DisjConditions.pl (test_simplify):
535         Update to reflect changes.
536
537 2003-04-12  Alexandre Duret-Lutz  <adl@gnu.org>
538
539         * automake.in (scan_autoconf_files): Augment the error message
540         about AM_INIT_AUTOMAKE not found.
541         Suggested by Bruno Haible.
542
543         * lib/Automake/Version.pm: New file.
544         * lib/Automake/Makefile.am (dist_perllib_DATA): Add Version.pm.
545         * lib/Automake/tests/Version.pl: New file.
546         * lib/Automake/tests/Makefile.am (TESTS): Add Version.pl.
547         * tests/Makefile.am (TESTS): Remove version5.test.
548         * tests/version5.test: Delete.  Move the tests to Version.pl.
549         * automake.in (version_split, version_compare, version_check): Move ...
550         * lib/Automake/Version.pm (split, compare, check): ... here.
551
552 2003-04-11  Alexandre Duret-Lutz  <adl@gnu.org>
553
554         * lib/Automake/tests/Condition.pl (test_reduce_and)
555         (test_reduce_or): Cosmetics.
556         * lib/Automake/tests/DisjConditions.pl (test_sub_conditions):
557         Fix a comment.
558         * lib/Automake/DisjConditions.pm (sub_conditions): Add missing C<...>
559         in comment.
560         * tests/yacc8.test, configure.in: Update copyright year.
561
562 2003-04-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
563
564         * configure.in: Get the build platform name.  Define
565         MODIFICATION_DELAY as the time to wait after modifying a file,
566         to cope with timestamp granularity issues, depending
567         on the platform.
568         * tests/defs.in: Define `sleep' using MODIFICATION_DELAY.
569
570 2003-04-10  Eric Siegerman  <eric_97@pobox.com>  (tiny change)
571
572         * automake.texi (Public macros): Clarify that the new
573         AM_INIT_AUTOMAKE variant is preferred, and the old one
574         deprecated.  Copy-edit the rest of the AM_INIT_AUTOMAKE item.
575         (Hello): Caution that the example uses the deprecated
576         AC_INIT/AM_INIT_AUTOMAKE syntax, and xref to the discussion.
577
578 2003-04-10  Alexandre Duret-Lutz  <adl@gnu.org>
579
580         Retain all variable definitions until the whole Makefile.am has
581         been processed, then output all variables in one step, at the top
582         of Makefile.in.  (Older revisions used to output user variables
583         before generating Automake targets, and to mix Automake variables
584         with Automake targets, preventing redefinitions of previously
585         output variables.)
586
587         * automake.in (%var_pretty): New variable.
588         (VAR_ASIS, VAR_PRETTY): New constants.
589         (@var_list): Rename as ...
590         (@var_order): ... this.
591         (initialize_per_input): Clear %var_pretty.
592         (handle_variables): New function, extracted from ...
593         (read_main_am_file): ... here.
594         (generate_makefile): Call handle_variable after everything else.
595         (handle_dist): Use define_pretty_variable, not pretty_print.
596         (pretty_print): Delete.
597         (macro_define): Augment with $COMMENT and $PRETTY parameters.
598         Update %var_comment, %var_pretty, and @var_order.  Adjust callers.
599         (variable_pretty_output): Merge with ...
600         (variable_output): ... this, and choose the prettiness on a
601         per-condition basis.
602         (append_comments): Delete.  This work is now done by macro_define.
603         (read_am_file, file_contents_internal): Don't call append_comments
604         nor update @var_list, adjust calls to macro_define.
605         (handle_subdirs): Don't explicitly output RECURSIVE_TARGETS,
606         just mark it as VAR_PRETTY.
607         * tests/exeext.test: Make sure bin_PROGRAMS is output only once.
608         Report from Jim Meyering.
609
610 2003-04-06  Alexandre Duret-Lutz  <adl@gnu.org>
611
612         * automake.in (handle_installdirs): Rename as ...
613         (handle_install): ... this.  Define maybe_BUILT_SOURCES.
614         (generate_makefile): Adjust call to handle_install.
615         * lib/am/install.am (install): Use %maybe_BUILT_SOURCES%.
616         * automake.texi (Sources, Built sources example): BUILT_SOURCES
617         is honored by `make install' too.
618         * tests/check3.test: Make sure that `make install' also depends
619         upon BUILT_SOURCES.
620         Report from Alexander Turbov.
621
622         * lib/am/libs.am (ARFLAGS): Define.
623         * automake.in (handle_libraries): Use `$(ARFLAGS)' instead of
624         hard-coding `cru'.
625         * automake.texi (A Library): Explain how AR, ARFLAGS and RANLIB
626         are used, and how they can be overridden.
627         (Program and Library Variables): Adjust to show `$(ARFLAGS)'
628         instead of `cru'
629         * tests/ar.test: Rewrite to test for AR, ARFLAGS, and RANLIB.
630         * tests/ranlib.test: Delete, obsoleted by ar.test.
631         * tests/Makefile.am (TESTS): Remove ranlib.test.
632         Report from Paul Thomas.
633
634 2003-04-03  Alexandre Duret-Lutz  <adl@gnu.org>
635
636         * automake.in (check_trailing_slash): New function (variation on
637         a patch by Peter Muir).  Diagnose whitespaces following trailing
638         backslash.
639         (read_am_file): Use it.
640         * tests/backsl4.test: New file.
641         * tests/Makefile.am (TESTS): Add backsl4.test.
642         Reported by Peter Muir.
643
644 2003-03-29  Raja R Harinath  <harinath@acm.org>
645
646         Speedup Automake::DisjConditions::invert().
647         * lib/Automake/Condition.pm (multiply): New.
648         * lib/Automake/DisjConditions.pm (_multiply): Use it.
649         (sub_conditions): Likewise.
650
651         * lib/Automake/Condition.pm (reduce): Rename to ...
652         (reduce_and): ... this.
653         (reduce_or): New.
654         * lib/Automake/DisjConditions.pm (_multiply): Use reduce_or().
655         * lib/Automake/tests/Condition.pl (test_reduce): Rename to ...
656         (test_reduce_and): ... this.
657         (test_reduce_or): New.
658         * lib/Automake/tests/DisjConditions.pl
659         (test_invert): Update to reflect effect of reduce_or().
660         (test_simplify): Don't skip invert() on larger inputs.
661
662 2003-03-29  Raja R Harinath  <harinath@cs.umn.edu>
663
664         * tests/yacc8.test: Add a $sleep before modifying Makefile.am so
665         that timestamp will change.
666
667 2003-03-23  Akim Demaille  <akim@epita.fr>
668             Alexandre Duret-Lutz  <adl@gnu.org>
669
670         * lib/am/tags.am (TAGS): Use --etags-include instead of --include,
671         when supported by etags (Exuberant Ctags).
672         * tests/tagsub.test: Rewrite to _run_ the `tags' rule.
673
674 2003-03-20  Alexandre Duret-Lutz  <adl@gnu.org>
675
676         For Debian Bug #185388:
677         * automake.texi (Extending): Augment the install-exec-hook
678         discussion with an example how to symlink a versioned binary.
679         * tests/insthook.test: Rewrite to test the above example.
680         Report from James R. Van Zandt.
681
682 2003-03-19  Alexandre Duret-Lutz  <adl@gnu.org>
683
684         * Makefile.am (maintainer-check): Allow `automake:' tokens,
685         occuring in location.test.  Automake now has 5 legitimate
686         unsubstituted @strings@.
687
688         * tests/aclocal4.test: Require GNU make.
689
690 2003-03-14  Alexandre Duret-Lutz  <adl@gnu.org>
691
692         * tests/aclocal4.test: New file.  Test for the ACLOCAL_M4 bug below.
693         * tests/Makefile.am (TESTS): Add aclocal4.test.
694
695 2003-03-14  Jim Meyering  <jim@meyering.net>
696
697         * automake.in (scan_aclocal_m4): Define ACLOCAL_M4 even in
698         subdirectories.  Makefile.in depends on that variable.
699
700 2003-03-13  Alexandre Duret-Lutz  <adl@gnu.org>
701
702         * m4/init.m4: Remove a leftover comment from the pre-1.7 era.
703
704         Fix for PR automake/386:
705         * m4/init.m4: Require Autoconf 2.55.
706         Reported by Owen Taylor.
707
708         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
709         (?GENERIC?%EXT%.lo): Use `mv -f' instead of `mv' in FASTDEP mode.
710         Suggested by Matthias Andree.
711
712         * tests/README: Typo.
713
714 2003-03-08  Alexandre Duret-Lutz  <adl@gnu.org>
715
716         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj)
717         (?GENERIC?%EXT%.lo): Hide the if/then/else machinery for FASTDEP.
718         Just echo the gcc command.
719         Suggested by Karl Berry.
720
721 2003-03-06  Alexandre Duret-Lutz  <adl@gnu.org>
722
723         * lib/am/depend2.am (?GENERIC?%EXT%.lo): Do not use
724         `test -f foo || echo $(srcdir)/` to emulate a VPATH search when
725         outputing suffix rules.  This follows 2003-02-25's change.
726         * lib/am/lex.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
727         * lib/am/yacc.am (?GENERIC?%EXT%%DERIVED-EXT%): Likewise.
728
729 2003-03-05  Alexandre Duret-Lutz  <adl@gnu.org>
730
731         * automake.texi (Requirements) <AC_CONFIG_FILES>: Files listed
732         with AC_CONFIG_FILES are cleaned by `make distclean'.  Don't
733         pretend otherwise.
734         Reported by Rafael Laboissiere.
735
736 2003-03-04  Andreas Buening  <andreas.buening@nexgo.de>
737
738         * lib/mdate-sh: Find out which column of the ls -l output contains
739         the month. Do not assume it is at least the fifth column.
740
741 2003-02-26  Alexandre Duret-Lutz  <adl@gnu.org>
742
743         * automake.texi (Emacs Lisp): Mention that `dist_' can be used.
744
745         * automake.texi (Emacs Lisp): Instruct people to use lisp_DATA
746         instead of lisp_LISP when they don't want byte-compilation.
747         Don't mention ELCFILES anymore.
748         * automake.in (handle_data): Allow lisp_DATA.
749         * tests/lisp5.test: New file.
750         * tests/Makefile.am (TESTS): Add lisp5.test.
751
752         * automake.in (handle_emacs_lisp): Don't build *.elc files
753         if ELCFILES was set empty.
754         * tests/lisp4.test: New file.
755         * tests/Makefile.am (TESTS): Add lisp4.test.
756         Reported by Simon Josefsson.
757
758         * tests/lex3.test, tests/lex5.test: Require flex.
759         Reported by Leo Davis.
760
761 2003-02-25  Alexandre Duret-Lutz  <adl@gnu.org>
762
763         * lib/am/depend2.am (?GENERIC?%EXT%.o, ?GENERIC?%EXT%.obj): Do not
764         use the `test -f foo || echo $(srcdir)/` to emulate a VPATH search
765         when outputing suffix rules.
766         * lib/am/texibuild.am (?GENERIC?%SOURCE_SUFFIX%.dvi)
767         (?GENERIC?%SOURCE_SUFFIX%.pdf): Likewise.
768         Suggested by Bruno Haible.
769
770         * automake.in (read_am_file): Catch trailing backslashes on last line.
771         * tests/backsl3.test: New file.
772         * tests/Makefile.am (TESTS): Add backsl3.test.
773         Reported by Akim Demaille.
774
775 2003-02-24  Alexandre Duret-Lutz  <adl@gnu.org>
776
777         * ChangeLog: Move 2002's entries to ...
778         * ChangeLog.02: ... this new file.
779         * Makefile.am (EXTRA_DIST): Add ChangeLog.02.
780
781 2003-02-24  Richard Dawe  <rich@phekda.freeserve.co.uk>
782
783         * tests/version7.test: Use $sleep to sleep before updating
784         the version, to work around timestamp inconsistencies in Windows.
785
786 2003-02-24  Bruno Haible  <bruno@clisp.org>
787             Alexandre Duret-Lutz  <adl@gnu.org>
788
789         * lib/am/texibuild.am: Don't remove the target info files. Instead,
790         back up and restore them if makeinfo fails.
791         * tests/txinfo20.test: New file.
792         * tests/Makefile.am (TESTS): Add txinfo20.test.
793
794 2003-02-23  Alexandre Duret-Lutz  <adl@gnu.org>
795
796         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
797         (distcleancheck): Fix typos and other errors reported by Karl
798         Berry.
799
800 2003-02-20  Alexandre Duret-Lutz  <adl@gnu.org>
801
802         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Use $(...)
803         instead of ${...}.
804
805         * tests/defs.in: Handle required=ro-dir.
806         * tests/destdir.test: Use this.
807
808 2003-02-19  Richard Dawe  <rich@phekda.freeserve.co.uk>
809
810         * lib/am/distdir.am (distcheck): Strip any leading DOS drive
811         from dc_install_base.
812
813 2003-02-19  Alexandre Duret-Lutz  <adl@gnu.org>
814
815         * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
816         DJGPP-style *.iNN info files.
817         (maintainer-clean-aminfo): Rewrite using the same pattern
818         as in uninstall-info-am.
819         * lib/am/texibuild.am (%SOURCE_SUFFIX%%DEST_SUFFIX%): Erase
820         DJGPP-style *.iNN info files before running $(MAKEINFO).
821         * tests/txinfo19.test: New file.
822         * tests/Makefile.am (TESTS): Add txinfo19.test.
823
824 2003-02-18  Richard Dawe  <rich@phekda.freeserve.co.uk>
825
826         * lib/depcomp (dashmstdout): Cope with DOS filenames in
827         dependencies.
828
829 2003-02-17  Alexandre Duret-Lutz  <adl@gnu.org>
830
831         * lib/depcomp (makedepend): Don't pass $object to makedepend.
832         Reported by Stepan Kasal.
833
834 2003-02-12  Alexandre Duret-Lutz  <adl@gnu.org>
835
836         * tests/defs.in: Handle required=makedepend.
837
838         * Makefile.am (maintainer-check): Update the diff check
839         to account for the recent @SHELL@ substitution.
840
841 2003-02-11  Alexandre Duret-Lutz  <adl@gnu.org>
842
843         * lib/depcomp: Do not put comments on the `icc)' line.
844
845         * lib/config.guess, lib/config.sub, lib/texinfo.tex: New upstream
846         versions.
847
848         Fix for PR automake/381:
849         * automake.in (handle_gettext): Do not print diagnostics
850         about po/ and intl/ missing from SUBDIRS if po/ does not
851         exist.  Warn if `SUBDIRS = intl' is used although libintl
852         is 'external'.
853         * tests/gettext.test: Make sure diagnostics are not output
854         when po/ does not exist.
855         * tests/gettext2.test: Test for unwanted intl/.
856         PR from Alexander Turbov, fix suggested by Bruno Haible.
857
858         * m4/depend.m4: Grep depcomp's stderr for icc warnings about
859         ignored options.
860         * lib/depcomp (icc): New mode.
861         * tests/depcomp5.test: New file.
862         * tests/defs.in: Handle required=icc.
863         * tests/Makefile.am (TESTS): Add it.
864
865         Temporary hack for PR automake/381:
866         * automake.in (handle_gettext): Turn missing po/ and intl/ errors
867         into -Wsyntax warnings.
868
869 2003-02-10  Richard Dawe  <rich@phekda.freeserve.co.uk>
870
871         * Makefile.am: Substitute @SHELL@ in automake.in and aclocal.in.
872         This makes the setting of SHELL work for DJGPP.
873
874 2003-02-10  Alexandre Duret-Lutz  <adl@gnu.org>
875
876         For PR automake/385:
877         * lib/depcomp (makedepend): Strip any libtool call, before
878         running makedepends.
879         * tests/depcomp4.test: New file.
880         * tests/Makefile.am (TESTS): Add it.
881         Reported by Jeff Squyres.
882
883         Related to PR automake/385:
884         * lib/depcomp (dashmstdout): Do not use `-o /dev/null', or gcc will
885         write dependencies to /dev/null.  `-o /dev/null' was added
886         on 2002-06-13 just because I tried to replace `-o foo.o' by something
887         else and didn't thought about removing it entirely.
888         * tests/depcomp3.test: New file.
889         * tests/Makefile.am (TESTS): Add it.
890
891         * automake.in (BEGIN): Override $ENV{'SHELL'} with ./configure's
892         SHELL for DJGPP.
893         Suggested by Richard Dawe.
894
895 2003-02-09  Alexandre Duret-Lutz  <adl@gnu.org>
896
897         * automake.texi (FAQ, CVS, maintainer-mode, wildcards)
898         (distcleancheck): New nodes.
899
900 2003-02-06  Alexandre Duret-Lutz  <adl@gnu.org>
901
902         * automake.in (scan_autoconf_files): Don't complain that
903         AM_INIT_AUTOMAKE comes from an old version if it was not found.
904
905 2003-02-05  Alexandre Duret-Lutz  <adl@gnu.org>
906
907         * automake.in (am_install_var): Simplify filtering of
908         variable_loc_and_value_as_list_recursive's output.
909
910 2003-02-04  Alexandre Duret-Lutz  <adl@gnu.org>
911
912         * m4/init.m4 (_AC_AM_CONFIG_HEADER_HOOK): Recompute
913         indexes of header files so we create stamp files with
914         the right numbers when config.status is run on some headers.
915         * tests/stamph2.test: Check for this.
916         Reported by Sander Niemeijer.
917
918 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
919
920         * automake.in (vars_scanned): Move near traverse_variable_recursively.
921         (traverse_variable_recursively,
922         traverse_variable_recursively_worker): Accept a $COND_FILTER argument
923         to filter out conditions during recursion.  Don't recurse into
924         undefined variables.  Don't pass empty results to &FUN_COLLECT.
925         (value_to_list): Remove, was used by
926         variable_value_as_list_recursive_worker only.
927         (variable_value_as_list_recursive_worker): Rewrite using
928         traverse_variable_recursively.  Remove the $parent argument.
929         (variable_value_as_list_recursive,
930         variable_loc_and_value_as_list_recursive): Adjust calls
931         to variable_value_as_list_recursive_worker.  Don't reset
932         %vars_scanned.
933         * tests/cond3.test: Don't expect empty helper variables,
934         we don't output them anymore.
935         * tests/cond30.test: Use an undefined variable.
936
937         * automake.in (handle_programs): Strip $(EXEEXT) before
938         calling &check_canonical_spelling.
939         * tests/exeext.test: Make sure we don't use a
940         maude3__EXEEXT__OBJECTS variable.
941
942 2003-02-02  Jeremy Nimmer  <jwnimmer@alum.mit.edu>  (tiny change)
943
944         For Debian Bug #39542:
945         * automake.texi (Invoking Automake, Optional): Document how
946         AC_CONFIG_AUX_DIR interacts with missing files.
947
948 2003-02-02  Alexandre Duret-Lutz  <adl@gnu.org>
949
950         * lib/Automake/DisjConditions.pm (_permutations_worker)
951         (permutations): Remove, so that people aren't tempted to use it.
952         * lib/Automake/tests/DisjConditions.pl (tests_permutations): Remove.
953
954         * automake.in (variable_conditions_recursive): Remove.
955         (variable_conditionally_defined): Rewrite using
956         traverse_variable_recursively.
957
958         * automake.in (traverse_variable_recursively,
959         traverse_variable_recursively_worker): Pass one merged Condition
960         instead of a stack of conditions to &FUN_STORE and &FUN_COLLECT.
961         (transform_variable_recursively, define_objects_from_sources)
962         (handle_lib_objects, variable_conditions_recursive): Adjust usage.
963
964 2003-02-01  Alexandre Duret-Lutz  <adl@gnu.org>
965
966         * automake.in (handle_lib_objects): Compute _DEPENDENCIES variables
967         using transform_variable_recursively instead of
968         variable_conditions_recursive and variable_value_as_list_recursive
969         to avoid combinatorial explosion.
970         (handle_lib_objects_cond): Merge into handle_lib_objects.
971         * tests/cond11.test: Don't grep internal details in Makefile.in,
972         run $MAKE to make sure the resulting Makefile runs as expected.
973         * tests/cond29.test: Also exercise conditional _LDADD.
974         * tests/cond31.test, tests/cond32.test: New files.
975         * tests/Makefile.am (TESTS): Add tests/cond31.test and
976         tests/cond32.test.
977
978 2003-01-31  Alexandre Duret-Lutz  <adl@gnu.org>
979
980         * automake.in (handle_lib_objects_cond): Ignore -dlopen and
981         -dlpreopen in _LIBADD variables too.
982         (handle_LIBOBJS, handle_ALLOCA): New functions, extracted from
983         handle_lib_objects_cond.
984         * tests/libtool7.test: New file.
985         * tests/Makefile.am (TESTS): Add libtool7.test.
986
987         * automake.texi (Program and Library Variables): Clarify that
988         _LIBADD is for libraries and _LDADD for programs.
989
990         * automake.in (handle_source_transform): Correct typo from 2003-01-23.
991
992 2003-01-28  Alexandre Duret-Lutz  <adl@gnu.org>
993
994         Fix for PR automake/352:
995         * automake.in (transform_variable_recursively): If the destination
996         and the source variables are the same, delete the source variable
997         before defining the destination variable.
998         (handle_programs): Strip any $(EXEEXT) suffix from $one_file,
999         or this will confuse handle_source_transform.
1000         (append_exeext): Rewrite using transform_variable_recursively.
1001         * tests/cond29.test, tests/cond30.test: New files.
1002         * tests/exeext.test: Run ./configure and make, this uncovered
1003         the above handle_programs issue.
1004         * tests/Makefile.am (TESTS): Add cond29.test and cond20.test.
1005
1006         * automake.in (%subobjvar): Replace by ...
1007         (%gen_varname): ... this.
1008         (subobjname): Replace by ...
1009         (gen_varname): ... this.
1010         (initialize_per_input): Clean gen_varname instead of subobjname.
1011         (transform_variable_recursively): New function, extracted
1012         from define_objects_from_sources.
1013         (define_objects_from_sources): Use transform_variable_recursively.
1014         Remove the unused $parent argument.
1015         (handle_source_transform): Adjust call to define_objects_from_sources.
1016
1017 2003-01-23  Alexandre Duret-Lutz  <adl@gnu.org>
1018
1019         * automake.in (@substfroms, @substtos): Move near
1020         traverse_variable_recursively.
1021         (traverse_variable_recursively, traverse_variable_recursively_worker):
1022         New functions, extracted from define_objects_from_sources.
1023         (define_objects_from_sources): Rewrite using
1024         traverse_variable_recursively.
1025         (handle_source_transform): Use variables_conditionally_defined
1026         instead of calling variable_conditions_recursive directly.
1027         Adjust the call to define_objects_from_sources; there is no need
1028         to reset @substtos, @substfroms, and %vars_scanned now.
1029         (variable_conditions_recursive): Rewrite using
1030         traverse_variable_recursively.
1031         (variable_conditions_recursive_sub): Remove.
1032         (variable_conditionally_defined): Fix condition comparison (the
1033         consequence was that DIST_SUBDIRS was always output).
1034         * lib/Automake/Condition.pm (merge): Allow merging several
1035         conditions at once.
1036
1037 2003-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
1038
1039         * automake.texi (Python): Explain that directory variables start
1040         with either ${prefix} or ${exec_prefix}, and point to the
1041         `Installation Directory Variables' section of the Autoconf manual.
1042
1043 2003-01-21  Alexandre Duret-Lutz  <adl@gnu.org>
1044
1045         * lib/am/distdir.am (top_distdir, distdir): Define these
1046         variables only in top level Makefile.  Redefine $(top_distdir)
1047         as $(distdir).
1048         (distdir): Fix passing of $(top_distdir) to sub-makes.
1049         * automake.in (handle_dist): Do not define the DISTDIR and
1050         TOP_DISTDIR transformations.  We don't need them anymore.
1051         * automake.texi (Dist): Reorder the dist-hook section, and move
1052         the DIST_SUBDIRS paragraph earlier.  Document distdir and
1053         top_distdir.
1054         * tests/subpkg.test: Update to check for $(distdir) and
1055         $(top_distdir).
1056
1057 2003-01-19  Alexandre Duret-Lutz  <adl@gnu.org>
1058
1059         Rename more files to accomodate 8+3 file systems, and adjust the
1060         vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
1061         and we call "condition" a conjunction of "conditionals".
1062         * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
1063         * lib/am/tests/Conditional.pl: Rename to lib/am/tests/Condition.pl.
1064         * lib/am/ConditionalSet.pm: Rename to lib/am/DisjConditions.pm.
1065         * lib/am/tests/ConditionalSet.pl: Rename to
1066         lib/am/tests/DisjConditions.pl
1067         * lib/am/Conditional.pm (condition_negate): Rename to ...
1068         * lib/am/Condition.pm (conditional_negate): ... this.
1069         * automake.in: Adjust references to Condition and DisjConditions.
1070         (check_ambiguous_conditional, conditional_ambiguous_p): Rename to ...
1071         (check_ambiguous_condition, condition_ambiguous_p): ... these.
1072
1073         * tests/README: New file.
1074
1075         * automake.texi (Conditional Programs): Show a sample Makefile.am.
1076         Remind $(EXEEXT) must be appended to configure substitutions.
1077         Show how Automake conditionals can be used instead.
1078         * tests/exeext.test (check_PROGRAMS): Make sure EXEEXT is also
1079         appended to conditionally defined programs.
1080
1081 2003-01-16  Jim Meyering  <jim@meyering.net>
1082
1083         Accept --help and --version, and lots of syntactic clean-up.
1084         * lib/install-sh: Use consistent indentation, two spaces per level.
1085         (scriptversion): New variable.
1086         Change initializations like `variable=""' to `variable='.
1087         (usage): New variable.
1088         Use `test', not `['.
1089         Use `test -z "$var"', not `[ x"$var" = x ]'.
1090         Use `test -n "$var"', not `[ x"$var" != x ]'.
1091         Alphabetize case entries.
1092         Accept --help and --version options.
1093         Remove unnecessary `else :' clauses.
1094         Add a `Local variables' eval block to help emacs users update
1095         the time-stamp variable added above.
1096         Mostly from Karl Berry.
1097
1098 2003-01-16  Alexandre Duret-Lutz  <adl@gnu.org>
1099
1100         * m4/python.m4 (AM_PATH_PYTHON) <_AM_PYTHON_INTERPRETER_LIST>: Add
1101         python2.3.
1102
1103         * m4/python.m4 (AM_PATH_PYTHON): Query distutils for `pythondir'
1104         or `pyexecdir', for the sake of 64-bit distributions that usually
1105         use lib64/ instead of lib/.  Fall back to the default directory
1106         if it doesn't work.
1107         Suggested by Gwenole Beauchesne.
1108
1109 2003-01-14  Alexandre Duret-Lutz  <adl@gnu.org>
1110
1111         For PR automake/382:
1112         * automake.texi (Yacc and Lex): Document `AM_YFLAGS = -d'.
1113         Explain BUILT_SOURCES is usually needed in this case.
1114         Reported by William S Fulton.
1115
1116 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
1117
1118         Rename some files for the sake of 8+3 file systems.
1119         * tests/aclocali.test:     Rename to tests/aclocal.test.
1120         * tests/aclocali1.test:    Rename to tests/aclocal2.test.
1121         * tests/aclocalii.test:    Rename to tests/aclocal3.test.
1122         * tests/acoutput.test:     Rename to tests/acoutpt.test.
1123         * tests/acoutput2.test:    Rename to tests/acoutpt2.test.
1124         * tests/acouttbs.test:     Rename to tests/acoutbs.test.
1125         * tests/acouttbs2.test:    Rename to tests/acoutbs2.test.
1126         * tests/autoheader.test:   Rename to tests/autohdr.test.
1127         * tests/autoheader2.test:  Rename to tests/autohdr2.test.
1128         * tests/condincl.test:     Rename to tests/condinc.test.
1129         * tests/condincl2.test:    Rename to tests/condinc2.test.
1130         * tests/distcommon.test:   Rename to tests/distcom.test.
1131         * tests/distcommon2.test:  Rename to tests/distcom2.test.
1132         * tests/distcommon3.test:  Rename to tests/distcom3.test.
1133         * tests/installsh.test:    Rename to tests/instsh.test.
1134         * tests/installsh2.test:   Rename to tests/instsh2.test.
1135         * tests/instdata.test:     Rename to tests/instdat.test.
1136         * tests/instdata2.test:    Rename to tests/instdat2.test.
1137         * tests/libobj12b.test:    Rename to tests/libobj13.test.
1138         * tests/link_f_c.test:     Rename to tests/link_fc.test.
1139         * tests/link_f_c_cxx.test: Rename to tests/link_fccxx.test.
1140         * tests/link_f_cxx.test:   Rename to tests/link_fcxx.test.
1141         * tests/nodefine.test:     Rename to tests/nodef.test.
1142         * tests/nodefine2.test:    Rename to tests/nodef2.test.
1143         * tests/required.test:     Rename to tests/reqd.test.
1144         * tests/required2.test:    Rename to tests/reqd2.test.
1145         * tests/sourcesub.test:    Rename to tests/srcsub.test.
1146         * tests/sourcesub2.test:   Rename to tests/srcsub2.test.
1147         * tests/specflags.test:    Rename to tests/specflg.test.
1148         * tests/specflags2.test:   Rename to tests/specflg2.test.
1149         * tests/specflags3.test:   Rename to tests/specflg3.test.
1150         * tests/specflags6.test:   Rename to tests/specflg6.test.
1151         * tests/specflags7.test:   Rename to tests/specflg7.test.
1152         * tests/specflags8.test:   Rename to tests/specflg8.test.
1153         * tests/specflags9.test:   Rename to tests/specflg9.test.
1154         * tests/subdircond.test:   Rename to tests/subcond.test.
1155         * tests/subdircond2.test:  Rename to tests/subcond2.test.
1156         * tests/subdircond3.test:  Rename to tests/subcond3.test.
1157         * tests/texinfo.test:      Rename to tests/txinfo.test.
1158         * tests/texinfo2.test:     Rename to tests/txinfo2.test.
1159         * tests/texinfo3.test:     Rename to tests/txinfo3.test.
1160         * tests/texinfo4.test:     Rename to tests/txinfo4.test.
1161         * tests/texinfo5.test:     Rename to tests/txinfo5.test.
1162         * tests/texinfo6.test:     Rename to tests/txinfo6.test.
1163         * tests/texinfo7.test:     Rename to tests/txinfo7.test.
1164         * tests/texinfo8.test:     Rename to tests/txinfo8.test.
1165         * tests/texinfo9.test:     Rename to tests/txinfo9.test.
1166         * tests/texinfo10.test:    Rename to tests/txinfo10.test.
1167         * tests/texinfo13.test:    Rename to tests/txinfo13.test.
1168         * tests/texinfo16.test:    Rename to tests/txinfo16.test.
1169         * tests/texinfo17.test:    Rename to tests/txinfo17.test.
1170         * tests/texinfo18.test:    Rename to tests/txinfo18.test.
1171         * tests/Makefile.am (TESTS): Adjust.
1172         * ChangeLog.1996: Rename to ChangeLog.96.
1173         * ChangeLog.1998: Rename to ChangeLog.98.
1174         * ChangeLog.2000: Rename to ChangeLog.00.
1175         * ChangeLog.2001: Rename to ChangeLog.01.
1176         * Makefile.am (EXTRA_DIST): Adjust.
1177         Reported by Richard Dawe.
1178
1179 2003-01-13  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
1180
1181         * lib/am/distdir.am (distcheck): '=' is not valid in DOS filenames.
1182         Use '_build' and '_inst' instead of '=build' and '=inst'.
1183         * tests/man2.test: Reflect change automake: check for files in
1184         '_build' and '_inst' directories instead of '=build' and '=inst'.
1185
1186 2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
1187
1188         Use `_dirstamp' when the file-system doesn't support `.dirstamp'.
1189         * m4/lead-dot.m4: New file.
1190         * m4/Makefile.am (dist_m4data_DATA): Add lead-dot.m4
1191         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_LEADING_DOT.:
1192         * m4/depend.m4 (AM_SET_DEPDIR): Require AM_SET_LEADING_DOT. Define
1193         DEPDIR using am__leading_dot.
1194         * automake.in (require_build_directory): Define am__dirstamp, a new
1195         variable for the dirstamp basename, based on am__leading_dot.
1196         * tests/subobj6.test: Move all `test -f' into Makefiles, so we can
1197         use $(am__dirstamp).
1198         Reported by Richard Dawe.
1199
1200         * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
1201         Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
1202         testing for programs.
1203         Reported by Richard Dawe.
1204
1205 2003-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
1206
1207         * Makefile.am (maintainer-check): Suggest using $sleep instead of
1208         sleep 2.
1209         * tests/defs.in (sleep): New variable.
1210         * tests/asm.test, tests/confsub.test, tests/lisp3.test,
1211         tests/texinfo16.test, tests/warnopts.test, tests/yaccvpath.test:
1212         Use $sleep instead of sleep 2, to work around timestamp
1213         inconsistencies in Windows.
1214         Reported by Richard Dawe.
1215
1216         * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
1217         after $MAKE -e.
1218         * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
1219         tests/man2.test, tests/subobj3.test, tests/suffix8.test,
1220         tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
1221         $SHELL is overridden by tests/defs, so it won't hurt even
1222         if $MAKE -e uses the $SHELL envvar.
1223         * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
1224         tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
1225         Reported by Richard Dawe.
1226
1227         Build elisp files all at once instead of one by one.
1228         * automake.in (handle_emacs_lisp): Define am__ELFILES.  Add
1229         elc-stamp to all's dependencies.
1230         * lib/am/lisp.am (elc-stamp): New rule, build all *.elc files.
1231         (.el.elc): Rewrite to call elc-stamp if $@ doesn't exist.
1232         (clean-lisp): Clean elc-stamp.
1233         * lib/elisp-comp: Reindent.  Erase the temporatry directory
1234         from a trap.  Propagate Emacs's exit status.
1235         * tests/lisp3.test: New file.
1236         * tests/Makefile.am (TESTS): Add lisp3.test.
1237         Reported by Ryan T. Sammartino.
1238
1239 2003-01-09  Akim Demaille  <akim@epita.fr>
1240
1241         * automake.texi: Prefer $(FOO) to @FOO@ in the documentation.
1242
1243 2003-01-08  Alexandre Duret-Lutz  <adl@gnu.org>
1244
1245         * m4/lispdir.m4: Register EMACS and EMACSLOADPATH as precious
1246         variables.  Suggested by Ryan T. Sammartino.
1247
1248 2003-01-05  Alexandre Duret-Lutz  <adl@gnu.org>
1249
1250         * automake.in (macro_define): Add missing `{$cond}' (typo from
1251         2002-09-18).
1252         ($gen_copyright): Append year 2003.
1253         (version): Increase year.
1254
1255         * tests/defs.in: Substitute aclocaldir instead of running
1256         the installed aclocal.  Otherwise Libtool and Gettext
1257         tests get skipped when aclocal doesn't preexist.
1258         Reported by Imacat.
1259         * tests/listval.test, tests/suffix2.test: Remove pointless -I
1260         argument to aclocal.
1261
1262 -----
1263
1264 Copyright (C) 2003  Free Software Foundation, Inc.
1265
1266 This file is part of GNU Automake.
1267
1268 GNU Automake is free software; you can redistribute it and/or modify
1269 it under the terms of the GNU General Public License as published by
1270 the Free Software Foundation; either version 2, or (at your option)
1271 any later version.
1272
1273 GNU Automake is distributed in the hope that it will be useful,
1274 but WITHOUT ANY WARRANTY; without even the implied warranty of
1275 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1276 GNU General Public License for more details.
1277
1278 You should have received a copy of the GNU General Public License
1279 along with autoconf; see the file COPYING.  If not, write to
1280 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1281 Boston, MA 02111-1307, USA.