* texinfos.am, tags.am, subdirs.am, multilib.am, mans.am: Add a
[platform/upstream/automake.git] / ChangeLog
1 2001-01-29  Akim Demaille  <akim@epita.fr>
2
3         * texinfos.am, tags.am, subdirs.am, multilib.am, mans.am: Add a
4         .PHONY target.
5         * automake.in (handle_texinfo, handle_man_pages, handle_multilib)
6         (handle_etags, handle_subdirs): Don't push into @phony.
7
8 2001-01-29  Akim Demaille  <akim@epita.fr>
9
10         * automake.in (scan_one_autoconf_file): Correctly recognize
11         configure.ac.
12
13         
14 2001-01-29  Akim Demaille  <akim@epita.fr>
15
16         * automake.in (handle_tests_dejagnu): New, extracted from...
17         (handle_tests): here.  Use `.PHONY:'.
18
19         
20 2001-01-29  Akim Demaille  <akim@epita.fr>
21
22         * automake.in (handle_phony): Sort.
23         (file_contents_with_transform): Catch `.PHONY:'.
24         (handle_tests): Instead dumping the hard coded target check-TESTS
25         and registering its .PHONYsm, get them from...
26         * check.am: here, new file.
27
28 2001-01-29  Akim Demaille  <akim@epita.fr>
29
30         * automake.in (add_depend2): Use &transform.
31
32 2001-01-29  Akim Demaille  <akim@epita.fr>
33
34         * automake.in (handle_tags): Use &transform.
35         (am_error, am_line_error, am_conf_error, read_am_file): Use
36         directly arrays in strings, no need for &join.
37         Require Perl 5.
38         * Makefile.am (maintainer-check): Use grep -w when looking for
39         words.
40
41 2001-01-29  Akim Demaille  <akim@epita.fr>
42
43         * automake.in (prog_error): New.
44         Spread its use.
45
46 2001-01-29  Akim Demaille  <akim@epita.fr>
47
48         * automake.in (handle_single_transform_list): if (@list) { foreach
49         (@list) ...} can be written as a simple `foreach' loop.
50
51 2001-01-29  Akim Demaille  <akim@epita.fr>
52
53         * automake.in (define_standard_variables): Use &transform instead
54         of build_rx.
55
56 2001-01-29  Akim Demaille  <akim@epita.fr>
57
58         * automake.in (handle_texinfo): Use the new $texinfodir instead of
59         the removed $texinfo_tex.
60
61 2001-01-29  Akim Demaille  <akim@epita.fr>
62
63         * automake.in (handle_libraries, handle_ltlibraries): Use
64         &transform.
65
66 2001-01-29  Akim Demaille  <akim@epita.fr>
67
68         * automake.in (handle_programs) <xexe>: Remove, replaced by
69         `exeext'.
70         Use it, and &transform.
71
72 2001-01-29  Akim Demaille  <akim@epita.fr>
73
74         * automake.in (get_object_extension) <$default_includes>: New.
75         Use it and &transform.
76
77 2001-01-28  Tom Tromey  <tromey@redhat.com>
78
79         * automake.in (variable_value_as_list_worker): Handle entries in
80         %am_var_defs.  Fixes listval.test.
81
82 2001-01-26  Akim Demaille  <akim@epita.fr>
83
84         * automake.in (handle_texinfo): Don't use $conf_pat, just
85         $conf_dir to transform MDDIR since now &transform handles the
86         escaping of RE special characters by itself.
87
88 2001-01-24  Akim Demaille  <akim@epita.fr>
89
90         * m4/depend.m4 (AM_DEPENDENCIES): Don't leave `AC_PROG_CC' etc. in
91         clear.
92         * m4/init.m4: Likewise.
93         * m4/sanity.m4: s/conftestfile/conftest.file/.
94
95 2001-01-24  Tom Tromey  <tromey@redhat.com>
96
97         * automake.in (handle_libraries): Use $configure_ac; typo fix.
98
99         * automake.in (transform): Quote substitution.
100
101 2001-01-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
102             Tom Tromey  <tromey@redhat.com>
103
104         * automake.in (obsolete_rx): Match whole macro names, not
105         substrings.
106         * aclocal.in (obsolete_rx): Likewise.
107
108 2001-01-21  Tom Tromey  <tromey@redhat.com>
109
110         * automake.texi: Changed dir category.
111
112 2001-01-18  Akim Demaille  <akim@epita.fr>
113
114         * automake.in (handle_texinfo): Use &transform, and transform
115         CONFIGURE_AC.
116         Reported by Lars Hecking, and diagnosed by Raja R Harinath.
117
118 2001-01-16  Akim Demaille  <akim@epita.fr>
119
120         Let Automake support `configure.ac'.
121
122         * automake.in: In the comments, prefer `configure.ac' to
123         `configure.in'.
124         When using &am_conf_error, don't repeat `in configure.in', since
125         the function already reports it.
126         When referring to `configure.in' use `$configure_ac' instead.
127         (configure_ac): New global variable.
128         (scan_configure, scan_one_configure_file): Rename as...
129         (scan_autoconf_files, scan_one_autoconf_file): this.
130         (scan_autoconf_files): Compute $configure_ac.
131         (transform): New function.
132         (handle_configure): Use it to transform CONFIGURE_AC in
133         `remake.am' and in `remake-hdr.am'.
134         (common_files): Also consider `configure.ac'.
135         Use consistently single quotes.
136         * aclocal.in (configure_ac): New variable.
137         Use it.
138         * texi-vers.am: Depend on CONFIGURE_AC not configure.in.
139         * remake.am: Likewise.
140         * remake-hdr.am: Likewise.
141
142 2001-01-16  Akim Demaille  <akim@epita.fr>
143
144         * m4/multi.m4: Remove the hairy useless quotation of `$'.
145         Simplify `ifelse([$2],,,[$2])' into... `$2'!
146         * m4/minuso.m4: Don't use changequote!
147         * m4/cond.m4: Fix quotation.
148         * m4/sanity.m4: Follow the Autoconf coding style.
149         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Use a for loop.
150         * m4/depend.m4 (AM_DEPENDENCIES): Fix quotation issues.
151         Use AC_CACHE_CHECK.
152
153 2001-01-15  Tom Tromey  <tromey@redhat.com>
154
155         * automake.in (handle_single_transform_list): Don't print rule
156         here when source is in subdir and object is not.  Fixes
157         subobj4.test.
158
159         * automake.in (handle_single_transform_list): Correctly compute
160         $nonansi_obj.  Fixes cxxansi.test.
161
162         * automake.texi (Man pages): Updated to account for man1_MANS,
163         etc.
164
165 2001-01-13  Steve Robbins  <smr@debian.org>
166             Tom Tromey  <tromey@redhat.com>
167
168         * aclocal.in (scan_configure): Don't recognize macro assignments
169         or AC_SUBSTs.
170         (add_file): Likewise.
171
172 2001-01-13  Kevin Ryde <user42@zip.com.au>
173
174         * automake.in (handle_ltlibraries): Omit -rpath from
175         check_LTLIBRARIES, as per noinst_LTLIBRARIES.
176
177 2001-01-11  Tom Tromey  <tromey@redhat.com>
178
179         * depcomp (case gcc3): Use -MD, not -M.
180
181 2001-01-10  Tom Tromey  <tromey@redhat.com>
182
183         * depcomp: Handle gcc 3.
184
185 2000-12-23  Tom Tromey  <tromey@redhat.com>
186
187         * configure.in: Updated to 1.4c for cvs.
188
189         * configure.in: Updated to 1.4b and released.
190
191         * config.guess, config.sub, texinfo.tex: New versions.
192
193         * automake.in (handle_dist_worker): Always define DIST_SUBDIRS.
194         Re-fixes pr87.test.
195
196         * subdirs.am (maintainer-clean-recursive): Use DIST_SUBDIRS for
197         distclean and maintainer-clean.
198         * automake.texi (Top level): Document use of DIST_SUBDIRS.
199
200         From Rusty Ballinger:
201         * automake.in (handle_java): Don't skip `noinst' prefix.
202
203         * automake.texi (Invoking aclocal): Mention ## comments.
204
205 2000-12-22  Tom Tromey  <tromey@redhat.com>
206
207         From Raja R Harinath:
208         * automake.in (libtoolize_sometimes): New global.
209         (initialize_global_constants): Added libtoolize_sometimes to
210         common_files.
211
212         * m4/depend.m4 (AM_SET_DEPDIR): Ignore errors when running rmdir.
213
214         * m4/depend.m4 (AM_SET_DEPDIR): Remove .deps directory when done.
215
216 2000-12-21  Tom Tromey  <tromey@redhat.com>
217
218         * automake.texi (Tags): Document GTAGS target.
219         * tags.am (GTAGS): New target.
220
221         * automake.in (libtoolize_files): Removed ltconfig.
222         (initialize_global_constants): Added ltconfig to common_files.
223
224 2000-12-21  Kevin Ryde <user42@zip.com.au>
225
226         * automake.in (handle_footer): Generate .SUFFIXES target when user
227         defines suffixes but automake does not.
228
229 2000-12-20  Marc Espie <espie@openbsd.org>
230
231         * automake.in (handle_texinfo): Make path of $vtexi explicit in
232         dependency.
233         * texi-vers.am: Likewise.
234
235 2000-12-20  Tom Tromey  <tromey@redhat.com>
236
237         From Kevin Ryde:
238         * automake.in (handle_footer): Always push user suffixes at the
239         start of .SUFFIXES:.
240         * automake.texi (Suffixes): Updated to reflect new suffix
241         handling.
242
243 2000-12-18  Tom Tromey  <tromey@redhat.com>
244
245         * automake.in (handle_built_sources): Removed.
246         (handle_merge_targets): Handle BUILT_SOURCES.
247         * automake.texi (Sources): Updated documentation of
248         BUILT_SOURCES.
249
250 2000-12-17  Tom Tromey  <tromey@redhat.com>
251
252         * m4/protos.m4: Always do header checks.
253
254         * automake.in (handle_ltlibraries): Check for LDFLAGS variables
255         before using values.
256
257         * automake.in (handle_ltlibraries): Allow _LDFLAGS to be
258         conditionally defined.  Fixes PR automake/77 and ldflags.test.
259
260 2000-11-25  Tom Tromey  <tromey@cygnus.com>
261
262         * automake.in (file_contents_with_transform): Added file name and
263         line number to error report.
264         (MACRO_PATTERN, BOGUS_MACRO_PATTERN): Leading spaces are ok.
265
266 2000-11-23  Pavel Roskin  <proski@gnu.org>
267
268         * m4/regex.m4 (AM_WITH_REGEX): This macro was broken because
269         of M4 underquoting.
270         * m4/ccstdc.m4 (AC_PROG_CC_STDC): Added some M4 quotes.
271         * m4/dmalloc.m4 (AM_WITH_DMALLOC): Likewise.
272         * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
273         * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
274         * m4/multi.m4 (AM_WITH_DMALLOC): Likewise.
275         * m4/python.m4 (AM_PATH_PYTHON): Likewise.
276         * m4/strtod.m4 (AM_FUNC_STRTOD): Likewise.
277
278 2000-11-23  Tom Tromey  <tromey@cygnus.com>
279
280         * automake.in (require_file_internal): Pass $file as second
281         argument to maybe_push_required_file.  Fixes PR automake/87.
282
283 2000-11-18  Tom Tromey  <tromey@cygnus.com>
284
285         * m4/depend.m4 (AM_DEPENDENCIES): Redirect `$am_depcomp' stdout to
286         /dev/null.  From Paul Martinolich.
287
288 2000-11-16  Morten Eriksen  <mortene@sim.no>
289
290         * aclocal.in (write_aclocal): Set ``binmode'' after file has been
291         opened, otherwise it has no effect.
292
293 2000-10-23  Morten Eriksen  <mortene@sim.no>
294
295         * aclocal.in (write_aclocal): Don't write aclocal.m4 with
296         CRLFs. This circumvents a bug in Cygwin bash.
297
298         * automake.in (generate_makefile): Don't write Makefile.in
299         files with CRLFs, as it causes problems for the dependency-file
300         extraction in AM_OUTPUT_DEPENDENCY_COMMANDS.
301
302 2000-10-19  Alex Hornby  <alex@anvil.co.uk>
303
304         * automake.in (handle_merge_targets): Allow parallel install
305         with forced relink.
306
307 2000-10-19  Akim Demaille  <akim@epita.fr>
308
309         * subdir4.test (depcomp): Don't create it, defs does.
310
311 2000-10-17  Pavel Roskin  <proski@gnu.org>
312
313         * automake.in (handle_aclocal_m4): exclude aclocal.m4 and
314         acinclude.m4 from the dependencies of aclocal.m4 to avoid
315         circular and duplicated dependencies. Strip "./" from the
316         dependencies.
317
318 2000-10-17  Lars J. Aas  <larsa@sim.no>
319
320         * aclocal.in (write_aclocal): Set up aclocal.m4 header with
321         normal comments (#) instead of m4 dnl-type comments.
322
323 2000-10-17  Alex Hornby <alex@anvil.com>
324
325         * depcomp: Altered sed clause to strip of inclusion depth
326         numbers generated by cpp. Also output in gcc style.
327
328 2000-10-16  Morten Eriksen  <mortene@sim.no>
329
330         * depcomp (msvisualcpp): New dependency tracking mode, for
331         Microsoft Visual C++.
332
333 2000-10-16  Morten Eriksen  <mortene@sim.no>
334
335         * depcomp: Fix a bug in SGI dependency tracking mode with source
336         files which do not dependend on any other source files.
337
338 2000-10-16  Rodney Brown  <RodneyBrown@mynd.com>
339
340         * aclocal.in, aclocal.m4: Standardize FSF Copyright statements.
341         * automake.in, automake.texi: Likewise.
342         * clean-kr.am, clean.am: Likewise.
343         * comp-vars.am: Likewise.
344         * compile, compile.am: Likewise.
345         * data-clean.am: Likewise.
346         * data.am: Likewise.
347         * dejagnu.am: Likewise.
348         * depcomp: Likewise.
349         * depend.am, depend2.am: Likewise.
350         * dist-vars.am, dist.am: Likewise.
351         * elisp-comp: Likewise.
352         * footer.am: Likewise.
353         * header-vars.am, header.am: Likewise.
354         * java-clean.am java.am: Likewise.
355         * kr-extra.am: Likewise.
356         * library.am: Likewise.
357         * libs-clean.am, libs.am: Likewise.
358         * libtool.am: Likewise.
359         * lisp-clean.am lisp.am: Likewise.
360         * ltlib-clean.am ltlib.am: Likewise.
361         * ltlibrary.am: Likewise.
362         * m4/Makefile.in: Likewise.
363         * m4/strtod.m4: Likewise.
364         * mans-vars.am, mans.am: Likewise.
365         * mdate-sh: Likewise.
366         * missing: Likewise.
367         * multilib.am: Likewise.
368         * program.am: Likewise.
369         * progs-clean.am, progs.am: Likewise.
370         * python-clean.am, python.am: Likewise.
371         * remake-hdr.am, remake.am: Likewise.
372         * scripts.am: Likewise.
373         * subdirs.am: Likewise.
374         * tags-clean.am, tags.am: Likewise.
375         * texi-vers.am: Likewise.
376         * texinfos.am: Likewise.
377         * ylwrap: Likewise.
378
379 2000-10-09  Pavel Roskin  <proski@gnu.org>
380
381         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't rely on variable
382         assignments changing $? - it's broken in ash-0.2.
383         * m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise.
384
385         * automake.in (handle_aclocal_m4): If ACLOCAL_M4_SOURCES is
386         defined use it as the list of M4 files aclocal.m4 depends on.
387
388 2000-10-06  Alexandre Duret-Lutz  <duret_g@epita.fr>
389
390         * aclocal.in (add_file): Strip comments while scanning for
391         macro dependencies.
392
393 2000-09-15  Alexandre Duret-Lutz  <duret_g@epita.fr>
394
395         * automake.in (initialize_global_constants): End the
396         result of dist-bzip2 with tar.bz2, not bz2.
397
398 2000-08-30  Tom Tromey  <tromey@cygnus.com>
399
400         Fix for PR automake/72:
401         * automake.in (initialize_per_input): Define `need_link'.
402         (finish_languages): Use need_link.
403         (handle_source_transform): Set need_link if required.
404
405 2000-08-28  Tom Tromey  <tromey@cygnus.com>
406
407         * automake.in (yacc, yaccxx, lex, lexxx): Set `derived-autodep'
408         key.
409         (register_language): Default the `derived-autodep' option.
410         (handle_single_transform_list): Add to %dep_files if language has
411         `derived-autodep' set.  Re-fixes lex4.test.
412
413 2000-08-27  Tom Tromey  <tromey@cygnus.com>
414
415         * automake.in (handle_single_transform_list): Only add to
416         %dep_files if language is found and supports automatic dependency
417         tracking.  Fixes PR automake/75.
418
419         * automake.in (am_primary_prefixes): Don't set `valid' for
420         configure variables that don't satisfy the other constraints.
421         Fixes PR automake/68.
422
423 2000-04-14  Victor V. Vengerov <vvv@oktet.ru>
424
425         Fix for PR automake/67.
426         * automake.in (handle_multilib): remove .am suffix in fragment
427         name passed to file_contents.
428         * m4/multi.m4: Add missing ')' in AC_ARG_ENABLE invocation.
429         Remove external quotes in first arg of AC_OUTPUT_COMMANDS.
430         Remove unnecessary "rel-to-top-srcdir" before config-ml.in.
431
432 2000-08-26  Tom Tromey  <tromey@cygnus.com>
433
434         * subdirs.am (maintainer-clean-recursive): Always run clean rules
435         in `.' after all subdirs.  Fixes PR automake/3 and PR automake/24.
436
437         * automake.in (handle_man_pages): Generate install targets for man
438         even if man_MANS not defined.  From `danpb'.  Fixes PR automake/73.
439
440         * m4/depend.m4 (depcpp): Use `-o conftest.o'.
441         Fix for PR automake/74.  From js pendry.
442
443 2000-08-20  Eli Zaretskii  <eliz@is.elta.co.il>
444
445         * depcomp (gcc): Support DOS-style absolute file names with drive
446         letters.
447
448 2000-08-06  Jim Meyering  <meyering@lucent.com>
449
450         * automake.in (handle_dependencies): Set $require_file_found{'depcomp'}
451         if the depcomp file exists, before calling require_config_file on
452         `depcomp'.  This makes require_file_internal skip its buggy existence
453         test that would make automake fail (with `required file `lib/depcomp'
454         not found') when AC_CONFIG_AUX_DIR is not set.
455
456         This change change does not fix the existing bug where, if `depcomp'
457         is not present in the build directory (at the top level), automake
458         still gives the inaccurate diagnostic about *lib*/depcomp rather
459         than ./depcomp.
460
461 2000-08-05  Jim Meyering  <meyering@lucent.com>
462
463         * m4/header.m4 (AM_CONFIG_HEADER): Fix typo in last change:
464         add missing closing bracket and closing parenthesis.
465         Don't quote the first argument to AC_OUTPUT_COMMANDS.
466         Backslash-escape the backquotes and `$' in `am_indx'-incrementing stmt.
467
468 2000-08-04  Tom Tromey  <tromey@cygnus.com>
469
470         Idea from Nicolas Thiery:
471         * automake.texi (Tests): Document DEJATOOL as a list.
472         * dejagnu.am (RUNTESTDEFAULTFLAGS): Use $$tool, not $(DEJATOOL).
473         (check-DEJAGNU): Run runtest in a loop.
474
475 2000-08-02  Akim Demaille  <akim@epita.fr>
476
477         * m4: Quote properly the name of the macros being defined.
478         Use `#' instead of `dnl' where appropriate.
479         * m4/header.m4 (AM_CONFIG_HEADER): Get rid of changequote, just
480         quote.
481         Don't quote passive characters.
482         Pull the AC_PREREQ outside the macro.
483         * m4/init.m4: Pull the AC_PREREQ outside the macro.
484
485 2000-07-28  Tom Tromey  <tromey@cygnus.com>
486
487         * lisp.am (uninstall-@DIR@LISP): Prefix file with $(DESTDIR).
488         From Bruno Haible.
489
490 2000-07-13  Kevin Ryde <user42@zip.com.au>
491
492         * automake.in (am_install_var): Apply the $(EXEEXT) hack to
493         EXTRA_PROGRAMS as well as other _PROGRAMS.
494
495 2000-07-02  Jim Meyering  <meyering@lucent.com>
496
497         * automake.in (scan_one_configure_file): Recognize AC_LIBOBJ.
498
499 2000-06-19  Paolo Bonzini    <bonzini@gnu.org>
500
501         * texi-vers.am: define UPDATED-MONTH variable (for an example, see
502         GNU make's manual)
503
504 2000-06-02  Morten Eriksen  <mortene@sim.no>
505
506         * depcomp: workaround for problem with SGI IRIX sed (it can only
507         handle lines of up to 8192 characters, the rest of the line will
508         be mangled).
509
510 2000-05-31  Morten Eriksen  <mortene@sim.no>
511
512         * depcomp: tell SGI MIPSpro compilers to generate dependencies
513         through the pre-processor (only CVS libtool has the -Wc option
514         yet).
515
516 2000-05-15  Brendan O'Dea  <bod@compusol.com.au>
517
518         * missing: Add support for `help2man'.
519
520 2000-05-11  Tom Tromey  <tromey@cygnus.com>
521
522         * automake.in (handle_tests): Work correctly if TESTS is empty;
523         print nothing if it is.  From Kevin Ryde.
524
525 2000-05-08  Tom Tromey  <tromey@cygnus.com>
526
527         * automake.texi (Texinfo): Mention vers*.texi.
528
529 2000-05-04  Akim Demaille  <akim@epita.fr>
530
531         AM_INIT_AUTOMAKE is no longer optional, so don't look for
532         `VERSION=' and `PACKAGE='.
533         * automake.in (seen_package, seen_version): Remove initializations of
534         unnecessary variables.
535         (scan_one_configure_file): Don't set them.
536         (scan_configure): Don't use them.
537
538 2000-05-01  Akim Demaille  <akim@epita.fr>
539
540         * m4/init.m4 (AC_PROVIDE_IFELSE): If it is not defined, do it.
541         (AM_INIT_AUTOMAKE): Update the writing conventions.
542         Quote the arguments properly.
543         Add a few missing `dnl'.
544         Use AC_PROVIDE_IFELSE.
545
546 2000-04-26  Jim Meyering  <meyering@lucent.com>
547
548         * automake.in (scan_one_configure_file): Handle the AC_CONFIG_FILES
549         macro.  Based on a patch from Harlan Stenn.
550
551 2000-04-13  Akim Demaille  <akim@epita.fr>
552
553         * compile: Remove unnecessary double quotes in assignments.
554
555 2000-04-13  Akim Demaille  <demaille@epita.fr>
556
557         * automake.in (scan_one_configure_file): Also recognize
558         AC_CONFIG_HEADERS.
559         Remove trailing blanks.
560
561 2000-04-05  Tom Tromey  <tromey@cygnus.com>
562
563         * header-vars.am (DESTDIR): Commented out definition.
564
565         * automake.in (require_file_internal): Pass --copy to libtoolize
566         if automake was run with `--copy'.
567
568 2000-03-22  Tom Tromey  <tromey@cygnus.com>
569
570         * automake.texi (Uniform): Fix definition of pkglibdir.
571         From thi <ttn@revel.glug.org>.
572
573 2000-03-19  Tom Tromey  <tromey@cygnus.com>
574
575         * aclocal.in (parse_arguments): Copyright 2000.
576         (write_aclocal): Likewise.
577         * automake.in (parse_arguments): Copyright 2000.
578         (initialize_global_constants): Likewise.
579
580         * automake.in (generate_makefile): Call handle_dist after
581         handle_dependencies and handle_tests.  Fixes subobj3.test and
582         pr19.test regressions.
583
584 2000-03-19  Gordon Matzigkeit  <gord@fig.org>
585
586         * depend2.am (@EXT@.o): Look for the source file in srcdir as well
587         as the current directory.
588         (@EXT@.lo): Likewise.
589
590 2000-03-19  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
591
592         * automake.in (handle_data): Pass -candist instead of
593         -defaultdist, for the compatibility.
594
595 2000-03-19  Tom Tromey  <tromey@cygnus.com>
596
597         Fix for test nodepcomp.test:
598         * automake.in (require_file_internal): Use readlink on symlinks.
599         Only unlink file if we are going to try to add it again.
600         (handle_dependencies): Require `depcomp' here.
601         (scan_configure): Don't require `depcomp'.
602
603 2000-03-16  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
604
605         * automake.in (handle_configure): Remove $(BUILT_SOURCES) from
606         the rule to remake Makefile, whether $use_dependencies is true
607         or not. This was a historical one and doesn't make sense any
608         longer.
609
610 2000-03-19  Tom Tromey  <tromey@cygnus.com>
611
612         More for PR automake/38:
613         * automake.texi (Invoking Automake): Document --force-missing.
614         * automake.in (force_missing): New global.
615         (parse_arguments): Recognize --force-missing.
616         (initialize_global_constants): Document --force-missing.
617         (require_file_internal): Handle --force-missing.
618
619         Fix for PR automake/38:
620         * automake.in (require_file_internal): Check for and handle
621         dangling symlinks.  Fixes symlink2.test.
622
623         Fix for PR automake/45:
624         * automake.texi (configure): Mention requirement to run
625         AM_INIT_AUTOMAKE.
626         (Requirements): Removed most text.
627         * automake.in (seen_init_automake): New global.
628         (scan_configure): Error if AM_INIT_AUTOMAKE not seen.
629         (scan_one_configure_file): Don't support AM_INIT_GUILE_MODULE.
630         Set seen_init_automake if needed.
631
632         Fix for PR automake/41:
633         * automake.in (require_file_found): New global.
634         (require_file_internal): Set require_file_found entry.
635         (handle_texinfo): Require file any number of times.
636
637         * automake.in (handle_dist_worker): Exit if `cp' fails.  Fixes
638         install2.test.
639
640         * tags.am: Don't reference $$here.  Report from Sven Verdoolaege.
641
642 2000-03-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
643
644         * m4/missing.m4: Print the backtick in a way that won't cause
645         autoconf CVS to emit any warnings.
646
647 2000-03-01  Jim Meyering  <meyering@lucent.com>
648
649         * automake.in (handle_dist_worker) [generating rules for distdir]:
650         Don't use `ln' (which was just a space optimization anyway) to
651         populate $(distdir).  Otherwise, the dist rules that change
652         permissions would end up affecting the master sources.
653         * texinfos.am (dist-info): Likewise.
654
655 2000-02-13  Jim Meyering  <meyering@lucent.com>
656
657         * automake.in (generate_makefile): Detect write/close failure.
658
659 2000-02-02  Assar Westerlund  <assar@sics.se>
660
661         * automake.in (handle_single_transform_list): do not use $< which
662         is not handled by all non-GNU makes.  Instead do explicit sh code
663         testing for the file in this directory and srcdir.  Based on a
664         suggestion by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
665
666 2000-01-12  Tom Tromey  <tromey@cygnus.com>
667
668         * m4/lispdir.m4: Added --with-lispdir argument processing.
669         From Kevin Dalley.
670
671 2000-01-06  Tom Tromey  <tromey@cygnus.com>
672
673         * automake.in (handle_configure): Don't check for
674         AC_PROG_MAKE_SET.
675         (scan_configure): Check for AC_PROG_MAKE_SET.
676
677         * header-vars.am (@SET_MAKE@): Added.
678         * subdirs.am (@SET_MAKE@): Removed.  Report from Motoyuki
679         Kasahara.
680
681 1999-12-19  Tom Tromey  <tromey@cygnus.com>
682
683         * automake.in (handle_dist_worker): Expand DIST_COMMON under all
684         conditions.
685         (require_file_internal): Corrected arguments to second invocation
686         of maybe_push_required_file.
687
688         Fix for PR automake/9:
689         * automake.in (make_dirs, make_dirs_set): New globals.
690         (is_make_dir): New function.
691         (handle_configure): Use it.
692         (require_file_internal): Push file if there is no Makefile in its
693         directory.
694         (initialize_per_input): Initialize handle_dist_run.
695         (push_dist_common): Inspect handle_dist_run.
696         (handle_dist): Set handle_dist_run.  Push items from
697         configure_dist_common onto dist_common if appropriate.
698         (configure_dist_common): New global.
699         (scan_configure): Set it.
700         (maybe_push_required_file): New function.
701         (require_file_internal): Use it.
702
703         * automake.in (handle_dist_worker): Scan DIST_COMMON to see if
704         more subdirs are defined.  From Axel Belinfante.  Fixes
705         PR automake/2.
706
707 1999-12-18  Tom Tromey  <tromey@cygnus.com>
708
709         Partial fix for PR automake/40:
710         * lisp.am (install-@DIR@LISP): Handle nobase_ case.
711         (uninstall-@DIR@LISP): Likewise.
712         * header.am (install-@DIR@HEADERS): Handle nobase_ case.
713         (uninstall-@DIR@HEADERS): Likewise.
714         * data.am (install-@DIR@DATA): Handle nobase_ case.
715         (uninstall-@DIR@DATA): Likewise.
716         * automake.in (am_primary_prefixes): Recognize `nobase_' prefix.
717         (am_install_var): Recognize and handle `nobase_' prefix.
718
719 1999-12-17  Tom Tromey  <tromey@cygnus.com>
720
721         * automake.in (get_object_extension): Added space before `-I.'.
722         Report from Ralf Corsepius.
723
724 1999-12-15  Tom Tromey  <tromey@cygnus.com>
725
726         * aclocal.in: Don't pass $acdir to scan_m4_files.
727         (parse_arguments): Push $acdir on end of dirlist.
728         (scan_file): Don't warn if duplicate macro seen.
729
730 1999-12-13  Tom Tromey  <tromey@cygnus.com>
731
732         Fix for PR automake/30 and PR automake/23.  Fixes test
733         suffix3.test.
734         * automake.in (initialize_per_input): Initialize
735         source_suffix_pattern.
736         (derive_suffix): New function.
737         (handle_single_transform_list): Call it.
738
739         * automake.in (add_depend2): Handle the no-dependency-tracking
740         case.  Fixes test suffix2.test.
741
742         * depcomp (tmpdepfile): [case sgi] Added missing `fi'.
743
744         * automake.in (get_object_extension): Fixed quoting on
745         -I$(srcdir).
746
747         * depend2.am: Removed erroneous comment.
748
749         * automake.texi (Program variables): Document nostdinc.
750         (Options): Likewise.
751         * automake.in (get_object_extension): Respect nostdinc option.
752         (handle_options): Recognize nostdinc.
753         * comp-vars.am (DEFS): Use @DEFAULT_INCLUDES@ as sole
754         substitution.
755
756         * automake.in (read_am_file): Allow conditional includes.  Fixes
757         test condincl.test.
758
759         * depcomp: Handle case on SGI when libtool is `yes'.
760         * depend2.am (@EXT@.o): Set libtool.
761         (@EXT@.lo): Likewise.
762         (@EXT@.obj): Likewise.
763
764         * depcomp: Unify dashmstdout and dashXmstdout cases.  Move hp case
765         after gcc case.
766
767 1999-12-13  Pavel Roskin  <pavel_roskin@geocities.com>
768
769         * automake.in (add_depend2): substitute $rule in the rules
770         for individual files.  Fixes test specflags5.test.
771
772 1999-12-12  Tom Tromey  <tromey@cygnus.com>
773
774         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run mkinstalldirs
775         to create directories.  Fixes test subobj3.test.
776
777 1999-12-10  Tom Tromey  <tromey@cygnus.com>
778
779         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Don't print
780         message when creating .deps files.
781
782         * automake.in (initialize_global_constants): If unreadable by
783         owner, make it readable by owner regardless of number of links.
784         Fixes more of install2.test.
785
786         * missing: Try to see if gnutar or gtar exist before invoking
787         them.
788
789         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Remove ${SHELL} from
790         install_sh value.  Look for install-sh and install.sh in a
791         somewhat more sensible way.  Fixes test install2.test.  Partially
792         from Jim Meyering.
793
794 1999-12-09  Pavel Roskin  <pavel_roskin@geocities.com>
795
796         * m4/missing.m4: remove redundant backquote
797
798 1999-11-23  Tom Tromey  <tromey@cygnus.com>
799
800         * automake.in (initialize_global_constants): Use `bzip2 -9', not
801         `bzip --best'  Report from Jim Meyering.
802
803 1999-11-22  Tom Tromey  <tromey@cygnus.com>
804
805         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Don't take argument.
806         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't pass argument to
807         AM_MISSING_INSTALL_SH.
808         * automake.in (scan_one_configure_file): Reverted previous
809         change.
810
811         * automake.in (scan_one_configure_file): Define `install_sh'
812         configure variable when AM_INIT_AUTOMAKE seen.  Report from Jim
813         Meyering.
814
815         * automake.in (handle_single_transform_list): Generate explicit
816         rule for subdir objects.  Fixes new addition to subobj.test.
817
818         * automake.in (handle_lib_objects_cond): Allow LIBOBJS to be
819         defined by AC_SUBST.  Fixes ltlibobjs.test.
820
821         Fix for sourcesub.test:
822         * automake.in (handle_single_transform_list): Added `var'
823         argument.  If config sub found, give error.
824         (handle_source_transform): Updated for new
825         handle_source_transform.
826
827         * py-compile: New file.
828         * m4/Makefile.am (m4data_DATA): Added python.m4.
829         * m4/python.m4: New file.
830         * automake.texi (Uniform): Mention PYTHON.
831         (Python): New node.
832         * Makefile.am (amfiles): Added python.am, python-clean.am.
833         (dist_script_DATA): Added py-compile.
834         * python.am: New file.
835         * python-clean.am: New file.
836         * automake.in (seen_pythondir): New global.
837         (generate_makefile): Call handle_python.
838         (handle_python): New function.
839         (scan_one_configure_file): Set seen_pythondir if AM_PATH_PYTHON
840         seen.
841         (am_install_var): Special-case PYTHON like JAVA.
842         (scan_configure): Check for py-compile.
843         (initialize_global_constants): Added py-compile to @common_files.
844
845         * ltlib.am (install-@DIR@LTLIBRARIES): Added missing space.
846
847 1999-11-21  Tom Tromey  <tromey@cygnus.com>
848
849         * automake.in (finish_languages): Only generate suffix rule when
850         not doing dependency tracking.
851
852         * m4/init.m4 (AM_INIT_AUTOMAKE): Use AM_MISSING_INSTALL_SH.
853         * m4/missing.m4 (AM_MISSING_INSTALL_SH): New macro.
854
855         * depend2.am: Use @SOURCE@, @OBJ@, @LTOBJ@, @OBJOBJ@, and @BASE@.
856         Always use `-o'.
857
858 1999-11-19  Tom Tromey  <tromey@cygnus.com>
859
860         * dist.am: Set `CDPATH=:' to avoid problems.  Merged from
861         Alexandre's change on branch.
862
863 1999-10-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
864
865         * Makefile.am (maintainer-check): Look for occurrences of ``cd'
866         without `CDPATH'.
867         * dejagnu.am: Set CDPATH before cd.
868         * Makefile.in: Rebuilt.
869
870         * automake.in (handle_single_transform_list): Change `\1' for `$1'
871         in `s///' replacement.
872
873         * automake.in (handle_dist): Set CDPATH before cd.
874         * dejagnu.am (check-DEJAGNU): Likewise.
875         * texinfos.am (install-info-am, dist-info): Likewise.
876         * m4/init.m4 (AM_INIT_AUTOMAKE): Likewise.
877         * m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise.
878         * aclocal.m4, configure, Makefile.in: Rebuilt.
879
880         * AUTHORS: Added myself.
881
882 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
883
884         * m4/missing.m4: Support relative srcdir and ac_aux_dir.
885         Reported by Tim Wilkinson <tim@transvirtual.com>
886         * aclocal.m4, configure: Rebuilt.
887
888 1999-08-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
889
890         * m4/lex.m4 (AM_PROG_LEX): Require AM_MISSING_HAS_RUN and, if no
891         LEX program is found, use `${am_missing_run}flex'.
892
893 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
894
895         * automake.in (handle_single_transform_list): Replace `$(OBJEXT)'
896         with `o' in depfile.
897
898         * automake.in (handle_lib_objects_cond): Remove second dot from
899         dependency file names.
900
901         * depend2.am (OBJEXT@EXT@.obj): Dependency file should be .Po,
902         regardless of OBJEXT.
903
904         * automake.in (handle_dependencies): Add blank line after depend2.
905         (handle_dependencies): Start DEP_FILES with `@AMDEP@'.  Output
906         blank line before `include's, not after them.
907         (scan_one_configure_file): Do not special-case `DEP_' any more.
908
909         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run for loop only
910         if AMDEP is empty.
911         * aclocal.m4, configure: Rebuilt.
912
913         * m4/depend.m4 (AMDEPBACKSLASH): Define.
914         * depend2.am (@EXT@.o, @EXT@.lo, @EXT@.obj): Use AMDEPBACKSLASH.
915
916         * automake.in (handle_dependencies): Generate `include's for
917         dependency files after `@AMDEP@'.
918
919         * m4/missing.m4: Use eval, instead of a sub-shell, to test for
920         --run support in the missing script, since SHELL is not exported.
921         Reported by job bogan <job@piquin.uchicago.edu>
922         * aclocal.m4, configure: Rebuilt.
923
924 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
925
926         * aclocal.m4, configure: Rebuilt with itself.
927         * Makefile.in, m4/Makefile.in, tests/Makefile.in: Likewise.
928
929         * m4/missing.m4 (AM_MISSING_PROG): Remove DIRECTORY argument.
930         Require AM_MISSING_HAS_RUN.  Use am_missing_run, defined by...
931         (AM_MISSING_HAS_RUN): New macro.
932         * m4/init.m4: Remove missing_dir from calls to AM_MISSING_PROG.
933         * automake.texi (Requirements): Likewise.
934         * version.texi, stamp-vti: Rebuilt.
935
936 1999-07-28  Tom Tromey  <tromey@cygnus.com>
937
938         * depcomp: Handle the `hp' mode.
939
940 1999-07-06  Tom Tromey  <tromey@cygnus.com>
941
942         * depcomp: Work around HP-UX 10.20 sed bug.
943
944 1999-07-05  Tom Tromey  <tromey@cygnus.com>
945
946         * automake.in (handle_dependencies): Generate a separate include
947         for each dep file.  Report from Alexandre Oliva.
948         * depend.am: Don't include DEP_FILES.
949
950 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
951
952         * depend.am: Add @AMDEP@ before `include', so that dependency
953         tracking can be disabled.
954         * depend2.am: Ditto, before all lines related with dependency
955         tracking.
956         * m4/depend.m4 (AM_DEP_TRACK): New macro, that documents
957         --enable/disable-dependency-tracking and sets AMDEP accordingly.
958         It is implicitly disabled if depcomp is missing.
959         (AM_DEPENDENCIES): Disable dependency tracking unless it can be
960         generated by side-effect.
961         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_DEP_TRACK.
962         * automake.in (handle_dependencies): Add @AMDEP@ before the value
963         of DEP_FILES.
964         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Handle DEP_FILES
965         starting with `#'.
966
967         * depcomp: Support -xM for dependency generation, for Sun CC.
968         Reported by Alex Hornby <alex@anvil.co.uk>
969         * m4/depend.m4: Extract the list of supported dependency-tracking
970         mechanisms from the depcomp script and use it to test each one.
971         * THANKS: Added Alex Hornby.
972
973         * depend2.am: Move $(depcomp) to the line of $(...DEPMODE), so as
974         to leave $(...COMPILE) in a line by itself.
975
976         * THANKS: Added Miles Bader.
977
978 1999-06-01  Miles Bader  <miles@ccs.mt.nec.co.jp>
979
980         * m4/depend.m4 (AM_DEPENDENCIES): Add check for `makedepend'.
981         Fix `dashmstdout' to ignore non-dependency-generating uses of the
982         -M flag.
983         * depcomp (makedepend): New dependency-generating method.
984
985 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
986
987         * missing: If given `--run' as first argument, try to run the
988         given program before falling back to the ``emulated'' behavior.
989         Add support for `tar'.
990         * automake.in: Use new `tar' support for `dist'.
991         * m4/missing.m4 (AM_MISSING_PROG): Instead of checking for the
992         program, prepend `missing --run' to the given program name.
993         * m4/init.m4: Remove AMTAR-related stuff.
994         * NEWS: Updated.
995
996         * m4/depout.m4: Instead of `find'ing Makefiles, just iterate on
997         CONFIG_FILES.  Do not use temporary variable for list of
998         dependency files, it breaks Cygwin.
999
1000 1999-04-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
1001
1002         * depcomp (gcc): Imported comments removed from depend2.am, so
1003         that we don't lose them.
1004
1005         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Avoid sed s/$U//
1006         when not using ansi2knr.
1007
1008 1999-04-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
1009
1010         * m4/depend.m4 (AM_DEPENDENCIES): Test for depcc -E support.
1011         * depcomp (cpp): Extract dependencies from `# nnn "..."' lines.
1012
1013 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
1014
1015         * m4/depend.m4 (AM_DEPENDENCIES): Add a definition to conftest.h,
1016         so as not to compile an empty source; some compilers fail on this.
1017         Redirect stderr of depcc to /dev/null.  Test for -M with -o,
1018         because some compilers will output the rules to the output file.
1019         * depcomp (dashmstdout): Add --silent before --mode=compile, so
1020         that we don't get libtool output mixed up with make rules.
1021
1022         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_DEPDIR.
1023         * depend2.am: Set tmpdepfile too, to speed up depcomp.  Always use
1024         -o for libtool, otherwise it may try to deduce the object name
1025         from the dependency-generation flag.
1026         * depcomp: Assume depdir exists.  Preserve depfile on unsuccessful
1027         compilations.
1028
1029         * libtool.am: Do not emit .c.lo here...
1030         * depend2.am: ... emit .*.lo here, only when using libtool.
1031         * automake.in (get_object_extension): No more @MINUSO@ here.
1032         (handle_single_transform_list): Set $depfile from $object.
1033         (handle_dependencies): Emit depend2.am for all used languages,
1034         regardless of $use_dependencies; the setting of depcomp makes the
1035         difference.
1036         (lang_cxx_finish): Do not emit compilation rules.
1037         (lang_objc_finish): Likewise.
1038         (lang_java_finish): Likewise.
1039
1040 1999-04-21  Tom Tromey  <tromey@cygnus.com>
1041
1042         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Correctly
1043         interpolate DEPDIR in DEP_FILES expansion.
1044
1045 1999-04-20  Lee Iverson  <leei@Canada.AI.SRI.COM>
1046
1047         * m4/depend.m4 (AM_DEPENDENCIES): Fix up test for SGI-style
1048         dependency updating.
1049         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Fix sed script to
1050         handle multi-line dependency lists.
1051
1052 1999-11-12  Tom Tromey  <tromey@cygnus.com>
1053
1054         Fix for PR automake/14:
1055         * aclocal.in: Added `ud_GNU_GETTEXT'.  Updated to mention
1056         AC_CYGWIN.
1057         * automake.in: Mention AC_CYGWIN, not AC_CYGWIN32.
1058
1059         * m4/multi.m4: Added missing `]'.  From Akim Demaille.
1060
1061         * Makefile.am (path-check): Make sure distdir is writeable before
1062         removing it.
1063         * automake.in (handle_texinfo): Added `cm' and `ov' extensions.
1064         (handle_dist_worker): Make sure distdir is writeable before
1065         removing it.
1066         (initialize_global_constants [$dist_trailer]): Make sure distdir
1067         is writeable before removing it.
1068         * dist.am (distcheck): Make the new source tree read-only before
1069         compiling.  Idea from Karl Berry.
1070
1071         * automake.texi (Gnits): Allow COPYING.LIB again.
1072         * automake.in (check_gnits_standards): Allow COPYING.LIB again.
1073
1074 1999-11-11  Jim Meyering  <meyering@ascend.com>
1075
1076         * dist.am (distcheck): Remove $(distdir).tar.gz before counting
1077         files.
1078
1079 1999-11-09  Tom Tromey  <tromey@cygnus.com>
1080
1081         * automake.in (handle_dist): Typo fix.  From Jim Meyering.
1082
1083 1999-11-09  Jim Meyering  <meyering@ascend.com>
1084
1085         * automake.in (handle_dist): Remove the DISTHOOK and GETTEXT
1086         markers, no matter what.
1087
1088 1999-11-08  Tom Tromey  <tromey@cygnus.com>
1089
1090         * dist.am (distcheck): Put `&&' at the start of the distcheck-hook
1091         line.
1092
1093         * automake.in (handle_dist_worker): Use `cp -R', not `cp -r'.
1094         From Jim Meyering.  Also, don't mention file name in `cp'
1095         destination.  From Olly Betts.
1096
1097 1999-10-27  Miodrag Vallat  <miodrag@ifrance.com>
1098
1099         * texinfos.am (uninstall-info): Use installed info file, not one
1100         from srcdir or builddir.
1101
1102 1999-11-07  Tom Tromey  <tromey@cygnus.com>
1103
1104         * clean.am (maintainer-clean-generic): Remove Makefile.in.  From
1105         Jeff Bailey
1106
1107         Fix for PR automake/18:
1108         * automake.in (handle_dist): Add contents of dist.am to the output
1109         rules.
1110         * Makefile.am (amfiles): Added dist.am.
1111         * dist.am: New file.
1112         (distcheck): Added uninstall and distclean checks.
1113
1114         * automake.in (PATH_PATTERN): Added `-' as allowable character.
1115         Fixes PR automake/20.  From Matthew D. Langston.
1116
1117         * automake.in (SUFFIX_RULE_PATTERN): Add `0-9' as characters
1118         allowed in suffixes.  Fixes PR 22.  From Matthias Clasen.
1119
1120 1999-10-03  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
1121
1122         * m4/lispdir.m4: -batch must come before -q.
1123         * elisp-comp: Likewise.
1124         Reported by Lars Hecking <lhecking@nmrc.ucc.ie>
1125         * THANKS: Added Lars.
1126
1127 1999-08-15  Tom Tromey  <tromey@cygnus.com>
1128
1129         * automake.in (get_object_extension): Fixed quoting bug.  Fixes
1130         ansi4.test.
1131
1132 1999-07-27  Tom Tromey  <tromey@cygnus.com>
1133
1134         * config.guess, config.sub: New versions from autoconf.
1135
1136 1999-07-13  Tom Tromey  <tromey@cygnus.com>
1137
1138         Work around losing `awk'.  Report from Harlan Stenn.
1139         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AC_PROG_AWK.
1140         * tags.am (ID, TAGS): Use $(AWK), not `awk'.
1141
1142         * automake.in (handle_source_transform): Mark prefix as seen if
1143         corresponding _SOURCES variable exists.  Fixes empty2.test.
1144
1145 1999-06-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
1146
1147         * configure.in (ACLOCAL): Do not prepend the variable SRCDIR to
1148         m4.
1149         (AUTOMAKE): Set --amdir to current directory.
1150
1151 1999-06-20  Tom Tromey  <tromey@cygnus.com>
1152
1153         * Makefile.am (TAGS_FILES): New macro.
1154         (ETAGS_ARGS): Moved files into TAGS_FILES.
1155         (TAGS_DEPENDENCIES): Likewise.
1156         (ETAGS_ARGS): Removed.
1157         (TAGS_DEPENDENCIES): Removed duplicate definition.
1158
1159         * tags.am (ID): Handle VPATH correctly.  Use TAGS_FILES.  Report
1160         from Ganesan Rajagopal.
1161         (TAGS): Likewise.
1162
1163 1999-06-18  Thomas Tanner  <tanner@ffii.org>
1164
1165         * automake.in (handle_ltlibraries): Check for -module in LDFLAGS,
1166         too.
1167
1168 1999-06-20 Mark Elbrecht <snowball3@bigfoot.com>
1169
1170         * ylwrap: Handle filenames output by the DOS version of Bison.
1171
1172 1999-06-20  Tom Tromey  <tromey@cygnus.com>
1173
1174         * ylwrap: Be less strict when recognizing DOS paths.  From Mark
1175         Elbrecht.
1176
1177 1999-06-19  Tom Tromey  <tromey@cygnus.com>
1178
1179         * automake.in (handle_dist_worker): Remove redundant entries from
1180         DIST_SUBDIRS.
1181
1182         * automake.in (handle_lib_objects_cond): Better error message when
1183         unrecognized option passed in LDADD.
1184
1185 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
1186
1187         * configure.in (ACLOCAL, AUTOMAKE): Use our own scripts, with
1188         appropriate --acdir and --amdir arguments.
1189
1190 1999-06-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
1191
1192         * automake.in (dist_header): Avoid changing permissions of files
1193         in the source tree, trying a complex `find/chmod' command before
1194         falling back to plain chmod.
1195         (handle_dist_worker): Do not create directories with mode 777, the
1196         find above will take care of that.
1197         * m4/init.m4: Set install_sh for find/chmod above.
1198
1199         * THANKS: Added Shuhei Amakawa.
1200
1201 1999-06-07  Shuhei Amakawa <sa264@cam.ac.uk>
1202
1203         * mans.am: Strip dirname from given filename.
1204
1205 1999-06-07  Jim Meyering  <meyering@ascend.com>
1206
1207         * automake.in (handle_dist): Change emitted rules so that a failure
1208         in `$(MAKE) distcheck-hook' propagates to the outer make.
1209
1210 1999-05-27  Tom Tromey  <tromey@cygnus.com>
1211
1212         * automake.in (handle_single_transform_list): Replace AM_FLAG and
1213         not FLAG in compilation rule.
1214         (add_depend2): Likewise.
1215
1216         * ltlib.am (install-@DIR@LTLIBRARIES): Pass INSTALL_STRIP_FLAG to
1217         libtool.
1218
1219         * m4/dmalloc.m4: Updated dmalloc site information.
1220
1221 1999-05-19  Tom Tromey  <tromey@cygnus.com>
1222
1223         * automake.in (handle_single_transform_list): Push object name
1224         without extension onto lang_specific_files.  Fixes
1225         specflags4.test.
1226
1227         * automake.in (handle_single_transform_list): Added missing
1228         space.  Fixes specflags.test.
1229
1230 1999-05-05  Tom Tromey  <tromey@cygnus.com>
1231
1232         * automake.in: Disabled dependency tracking for Java.
1233
1234 1999-05-04  Tom Tromey  <tromey@cygnus.com>
1235
1236         * library.am (@LIBRARY@): Use $(@XLIBRARY@_AR).
1237         * automake.in (handle_libraries): Recognize _AR variable.
1238
1239 1999-04-30  Tom Tromey  <tromey@cygnus.com>
1240
1241         * automake.in (finish_languages): Always use `-o $@' with
1242         libtool.  Define ltcompile and ltlink at outermost scope in
1243         function.
1244         * libtool.am (.c.lo): Removed.
1245
1246         * automake.in (finish_languages): Put `.' before extension in
1247         suffix list, `.obj' rule, and `.lo' rule.  Look at `-flags', not
1248         `-flag'.  From Pavel Roskin.
1249
1250 1999-04-28  Tom Tromey  <tromey@cygnus.com>
1251
1252         * automake.in (finish_languages): Fixed scoping of ltcompile and
1253         ltlink.  From Pavel Roskin.
1254
1255 1999-04-27  Tom Tromey  <tromey@cygnus.com>
1256
1257         * automake.in (read_main_am_file): Don't start macro definition
1258         with backslash-newline.  Instead, append newline at the end if
1259         required.
1260
1261         * automake.in (read_am_file): Insert a backslash before a trailing
1262         newline.  Fixes pluseq8.test.
1263
1264         * automake.in (MACRO_PATTERN): Allow digits and `_' to start a
1265         macro name.
1266         (check_canonical_spelling): Don't insert `AM' before macro name
1267         (reverts Alexandre's 1999-04-27 patch).
1268         * automake.texi: Reverted documentation change for `AM' patch.
1269
1270         * automake.in (handle_lib_objects_cond): Prefer `$1' over `\1'.
1271         Minor rewrite for clarity.
1272         (check_canonical_spelling): Prefer `$1' over `\1'.
1273
1274         * depend2.am (@OBJ@): Renamed.  Use @SOURCE@, @COMPILE@.  Always
1275         use `-o $@'.
1276         (@LTOBJ@): Likewise.
1277         * automake.in (handle_single_transform_list): Don't print rule if
1278         doing dependency tracking and the file's language supports it.
1279         (initialize_per_input): Initialize lang_specific_files.
1280         (add_depend2): New function.
1281         (handle_dependencies): Use it.
1282
1283         * automake.in (lang_ppf77_finish): Use lang_f77_finish.
1284         ratfor compiler name is `RCOMPILE'.  ppf77 compiler name changed
1285         to `PPF77COMPILE' to allow use of f77 and ppf77 in the same
1286         directory.
1287         (lang_ratfor_finish): Use lang_f77_finish.
1288
1289         * compile.am (NOTDEPEND.c.o): Removed.
1290         (OBJEXT.c.obj): Likewise.
1291         * automake.in: Added `flags' attribute to all relevant languages.
1292         (handle_single_transform_list): Handle per-derived-object flags.
1293         Changed interface and all callers.
1294         (handle_built_sources): Don't call handle_single_transform_list.
1295         Added `compile' and `compiler-name' attribute to all relevant
1296         languages.
1297         (finish_languages): Define compiler variables here.
1298         (lang_cxx_finish): Don't call define_compiler_variable.  Don't
1299         define flag variable or .o rules.  Don't add to @suffixes.
1300         (lang_f77_finish): Likewise.
1301         (lang_ppf77_finish): Likewise.
1302         (lang_objc_finish): Likewise.
1303         (lang_java_finish): Likewise.
1304         (finish_languages): Define flag variable here.
1305         Added `output-arg' attribute to all relevant languages.
1306         (finish_languages): Define `.o' rules here.
1307         (finish_languages): Put extension on @suffixes.
1308         (get_object_extension): Don't transform NOTDEPEND or MINUSO.
1309
1310 1999-04-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
1311
1312         * automake.in (initialize_global_constants): Invoke gzip for
1313         dist-shar just like in plain dist, i.e., pass it GZIP_ENV and -c.
1314
1315         * automake.in (initialize_global_constants): Remove zip file
1316         before re-creating it.
1317         Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
1318
1319         * texinfos.am (uninstall-info): Look for info file in srcdir, just
1320         like in install-info-am.
1321         Reported by Tudor Hulubei <tudor@cs.unh.edu>
1322
1323         * automake.in (handle_lib_objects_cond): \Q doesn't work either.
1324         Let's use the good ol' substitution, then.
1325         Reported by Russ Allbery <rra@stanford.edu>
1326
1327         * automake.in (check_canonical_spelling): Insert AM before names
1328         starting with non-letters.
1329
1330         * automake.texi: Document it.
1331
1332 1999-04-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
1333
1334         * automake.in (handle_lib_objects_cond): Do not use quotemeta, it
1335         doesn't work on perl4.  Maybe \Q and \E do.
1336
1337 1999-04-24  Tom Tromey  <tromey@cygnus.com>
1338
1339         * automake.in: Treat `.zip' and `.jar' files as Java.
1340
1341         * automake.in (generate_makefile): Define `subdir' after reading
1342         .am file.
1343         (read_main_am_file): Give programming error if variable defined
1344         before invocation.
1345
1346 1999-04-22  Tom Tromey  <tromey@cygnus.com>
1347
1348         * automake.in (generate_makefile): Define `subdir' variable.
1349         (handle_dist): Don't define `subdir'.
1350
1351         * automake.in (handle_texinfo): Change numbering scheme for
1352         stamp-vti files, to avoid problems with DOS.
1353         From Michel de Ruiter.
1354
1355         * automake.texi: Don't mention AM_FUNC_MKTIME.
1356         * aclocal.in (obsolete_macros): Mention AM_FUNC_MKTIME.
1357         * automake.in (scan_one_configure_file): Recognize
1358         AC_FUNC_MKTIME, not AM_FUNC_MKTIME.
1359         (obsolete_macros): Mention AM_FUNC_MKTIME.
1360         * m4/Makefile.am (m4data_DATA): Removed mktime.m4.
1361         * m4/mktime.m4: Removed.
1362
1363 1999-04-20  Tom Tromey  <tromey@cygnus.com>
1364
1365         * automake.texi (Top level): Don't recommend substing SUBDIRS.
1366
1367 1999-04-20  Brian Ford <ford@vss.fsi.com>
1368
1369         * scripts.am: Change else if's to elif.
1370
1371 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
1372
1373         * automake.in (handle_lib_objects_cond): Only require the source
1374         of a LIBOBJ if it's not in BUILT_SOURCES.
1375         Reported by Erez Zadok.
1376
1377 1999-04-19  Tom Tromey  <tromey@cygnus.com>
1378
1379         * automake.in: Treat `.class' files as Java source.
1380         (lang_java_finish): Handle `.class' files.
1381
1382 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
1383
1384         * m4/lispdir.m4: Match only `/(share|lib)/x?emacs/site-lisp/*$'.
1385
1386         * m4/lispdir.m4: Do not override lispdir if it's already defined.
1387         Run some emacs-lisp to find out the site-lisp directory, but
1388         relocate it into prefix.
1389
1390 1999-04-17  Paul Eggert  <eggert@twinsun.com>
1391
1392         * m4/mktime.m4 (bigtime_test, main): Move alarm from
1393         bigtime_test to main, since Solaris 7 (64-bit) mktime loops
1394         even outside of bigtime_test.  Use a time limit of 60 seconds
1395         for the whole test, not 10 seconds per iteration.
1396
1397 1999-04-17  Erez Zadok  <ezk@cs.columbia.edu>
1398
1399         * automake.in: Create stamps for headers in appropriate
1400         directories, even if the input file lives in a different place.
1401         * remake-hdr.am: Likewise.
1402
1403 1999-04-16  Tom Tromey  <tromey@cygnus.com>
1404
1405         From Brian Ford:
1406         * progs.am (install-@DIR@PROGRAMS, uninstall-@DIR@PROGRAMS):
1407         Invoke `sed' only once per program.
1408         * scripts.am (install-@DIR@SCRIPTS, uninstall-@DIR@SCRIPTS):
1409         Invoke `sed' only once per program.
1410
1411 1999-04-13  Tom Tromey  <tromey@cygnus.com>
1412
1413         * automake.in (handle_subdirs): Make `install-recursive' phony.
1414         From Michel de Ruiter.
1415
1416         * automake.in (handle_ltlibraries): Added missing `check'.
1417
1418 1999-04-12  Tom Tromey  <tromey@cygnus.com>
1419
1420         * ansi2knr.c: New version from Pavel Roskin (via ansi2knr.c
1421         maintainer).
1422
1423 1999-04-11  Tom Tromey  <tromey@cygnus.com>
1424
1425         * automake.in (handle_dist): Use AMTAR.
1426         (initialize_global_constants): Likewise.
1427         * m4/init.m4 (AM_INIT_AUTOMAKE): Use AMTAR, not TAR.
1428
1429         * automake.in (lang_sub_obj): New function.
1430         (lang_cxx_rewrite): Use it.
1431         (lang_asm_rewrite): Likewise.
1432         (lang_objc_rewrite): Likewise.
1433         (lang_cxx_finish): Add `-o $@' to all C++ rules.
1434         (lang_asm_finish): Add `-o' to suffix rules when appropriate.
1435         (lang_objc_finish): Add `-o $@' to all ObjC rules.
1436         (lang_java_finish): Likewise.
1437
1438         * automake.in: Only register `asm' once.
1439         (lang_asm_finish): Put assembly suffixes on @suffixes.
1440
1441         * libtool.am (.s.lo): Removed.
1442         (.S.lo): Likewise.
1443         * automake.in (lang_asm_finish): Handle libtool.
1444
1445         * libtool.am (.c.o): Always pass -c to libtool.
1446
1447         * automake.in (lang_yacc_rewrite): Handle sources in subdirs.
1448         (lang_yaccxx_rewrite): Likewise.
1449         (lang_lex_rewrite): Likewise.
1450         (lang_lexxx_rewrite): Likewise.
1451
1452         Assembly code no longer included by default:
1453         * compile.am (.s.o): Removed.
1454         (.S.o): Likewise.
1455         * automake.in: Register `asm' language.
1456         (lang_asm_finish): Generate suffix rules for assembly.
1457         (get_object_extension): Don't add `.s' or `.S' to suffix list.
1458
1459         * automake.in (get_object_extension): Substitute @MINUSO@ when
1460         including compile.am.
1461         * compile.am (.c.o): Added @MINUSO@.
1462         (.c.obj): Likewise.
1463
1464         First cut at allowing objects in subdirectories:
1465         * m4/Makefile.am (m4data_DATA): Added minuso.m4.
1466         * Makefile.am (dist_script_DATA): Added compile.
1467         * m4/minuso.m4: New file.
1468         * automake.in (initialize_global_constants): Added compile to
1469         common_files.
1470         (seen_cc_c_o): New global.
1471         (scan_one_configure_file): Set it when AM_PROG_CC_C_O seen.
1472         (handle_options): Recognize `subdir-objects' option.
1473         (lang_c_rewrite): Added directory argument.
1474         (lang_yacc_rewrite): Likewise.
1475         (lang_yaccxx_rewrite): Likewise.
1476         (lang_lex_rewrite): Likewise.
1477         (lang_lexxx_rewrite): Likewise.
1478         (handle_single_transform_list): Pass directory to _rewrite
1479         function.  Generate dependencies for dirstamp files for each .o;
1480         it is just the rules we want to create once.
1481         (lang_c_rewrite): Handle `subdir-objects' option.
1482         (lang_c_rewrite): Require `compile' program.
1483         * compile: New file.
1484
1485         * automake.in (initialize_per_input): Initialize %directory_map.
1486         (handle_single_transform_list): Only create .dirstamp rules once
1487         per directory.
1488
1489         * m4/gcj.m4 (AM_PROG_GCJ): Use AC_CHECK_PROGS, not AC_CHECK_PROG.
1490
1491         Fix for confh.test:
1492         * automake.in (configure_input_files): New global.
1493         (scan_configure): Set it.
1494         (handle_configure): Use configure_input_files when determining
1495         which subdirs have a Makefile.am.  Fixes confh.test.
1496         (handle_configure): Only recognize acconfig.h in top srcdir.
1497
1498 1999-04-10  Tom Tromey  <tromey@cygnus.com>
1499
1500         * depend2.am (%.o): Use `$(*D)/$(*F)', not just `$(*F)'.
1501         (%.lo): Likewise.
1502
1503         * automake.in (am_install_var): Remove redundancies from the
1504         result.  Fixes test cond8.test.
1505
1506         * automake.in (handle_single_transform_list): Handle dependency
1507         tracking when files are created in subdirs.  Error if object in
1508         subdir has `..' component.
1509
1510         * automake.in (initialize_global_constants): Use $(TAR), not tar.
1511
1512         * automake.in (handle_ltlibraries): Allow check_LTLIBRARIES.
1513
1514         * automake.in (lang_yacc_finish): Added missing `&'.
1515
1516 1999-04-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
1517
1518         * automake.in (handle_configure): Replace multiple occurrences of
1519         @STAMP@ in the same line; completes the patch for remake-hdr.am
1520         below.
1521
1522         * automake.in (handle_dependencies): Fix test for `autodep'
1523         support.
1524
1525         * automake.in (handle_source_transform): Add a pfx to used_pfx
1526         only if it's conditional or non-empty, to reduce the number of
1527         empty variables.  Emit _OBJECS variable based on program name if
1528         no SOURCES were explicitly specified.
1529
1530         * remake-hdr.am: Create the stamp file before the header file,
1531         and just rename it after, so that the timestamps will be correct.
1532         Reported by Marc Horowitz <marc@mit.edu>
1533
1534         * automake.in (lang_yacc_finish): Generate and dist a `.h' for a
1535         `.y' iff YFLAGS or AM_YFLAGS contain `-d'.
1536         Reported by Jim Meyering <meyering@ascend.com>
1537
1538         * automake.in (lang_yacc_finish): $hname must not contain a `.'.
1539
1540 1999-04-10  Tom Tromey  <tromey@cygnus.com>
1541
1542         * Makefile.am (EXTRA_DIST): New macro.
1543         * ChangeLog.1996, ChangeLog.1998: New files.
1544
1545 1999-04-09  Tom Tromey  <tromey@cygnus.com>
1546
1547         * automake.in (handle_source_transform): Handle dist and nodist
1548         prefixes.
1549         (initialize_per_input): Initialize dist_sources.
1550         (check_libobjs_sources): Handle dist and nodist prefixes.
1551         (generate_makefile): Define DIST_SOURCES.
1552         * dist-vars.am (DISTFILES): Reference DIST_SOURCES, not SOURCES.
1553
1554         * automake.texi (Macros): Mention AM_PROG_GCJ.
1555         (Java Support): New node.
1556         (Dist): Documented dist_ and nodist_ prefixes.
1557
1558         * m4/gcj.m4 (AM_PROG_GCJ): Renamed from AC_PROG_GCJ.
1559
1560         * automake.in (lang_java_finish): Generate .lo rule for `.java'
1561         files, not `.gcj' files.
1562
1563         * m4/gcj.m4: New file.
1564         * m4/Makefile.am (m4data_DATA): Added gcj.m4.
1565
1566         * automake.in: Register the `java' language.
1567         (resolve_linker): Handle GCJLINK.
1568         (lang_java_rewrite): New function.
1569         (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR): New constants.
1570         (lang_c_rewrite): Use new constants.
1571         (lang_cxx_rewrite): Likewise.
1572         (lang_header_rewrite): Likewise.
1573         (lang_yacc_rewrite): Likewise.
1574         (lang_yaccxx_rewrite): Likewise.
1575         (lang_lex_rewrite): Likewise.
1576         (lang_lexxx_rewrite): Likewise.
1577         (lang_asm_rewrite): Likewise.
1578         (lang_f77_rewrite): Likewise.
1579         (lang_ppf77_rewrite): Likewise.
1580         (lang_ratfor_rewrite): Likewise.
1581         (lang_objc_rewrite): Likewise.
1582         (handle_single_transform_list): Likewise.  Handle LANG_SUBDIR
1583         return from rewrite function.
1584         (lang_java_finish): New function.
1585         (register_language): Changed interface and all calls.  Added
1586         `autodep' settings to various languages.
1587         (handle_dependencies): Use `autodep' property of language when
1588         including dependency-tracking code.
1589
1590 1999-04-07  Tom Tromey  <tromey@cygnus.com>
1591
1592         * automake.in (handle_texinfo): Indentation fixes.
1593
1594 1999-04-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
1595
1596         * automake.in (value_to_list): Skip *only* trailing backslashes.
1597
1598 1999-04-07  Pavel Roskin  <pavel_roskin@geocities.com>
1599
1600         * automake.in (value_to_list): Skip trailing backslashes.
1601
1602 1999-04-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
1603
1604         * automake.in (handle_texinfo): Add texinfo.tex to config_aux_dir
1605         when appropriate.
1606         Reported by Per Cederqvist <ceder@lysator.liu.se>
1607         (handle_texinfo): Do not define texinfo_tex='.', use
1608         '$(srcdir)/texinfo.tex' instead; the directory name will be
1609         properly extracted.
1610         (require_conf_file_with_line): Fixed typo.
1611
1612 1999-04-03  Raja R Harinath  <harinath@cs.umn.edu>
1613
1614         * automake.in (handle_tests): Test `dir=./' before `dir=', so that
1615         we do not depend on PATH starting with `.'.
1616
1617 1999-03-31  Tom Tromey  <tromey@cygnus.com>
1618
1619         * automake.in (quote_cond_val): Quote \n.
1620         (unquote_cond_val): Unquote \n.
1621         (read_am_file): If line ends with `\', preserve it and add a
1622         newline.
1623         (read_main_am_file): In conditional case, put conditional text at
1624         beginning of each generated line.
1625
1626 1999-03-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1627
1628         * automake.in (handle_tests): support XFAIL_TEST
1629         * automake.texi: document it
1630
1631 1999-04-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
1632
1633         * End of merge from trunk.
1634
1635 1999-04-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
1636
1637         * automake.in (cmdline_use_dependencies): Reintroduce it.
1638         (--ignore-deps): Set cmdline_use_dependencies again.
1639         (handle_dependencies): If use_dependencies is not set, define
1640         depcomp as empty.
1641         (handle_configure): Pass --ignore-deps to generated Makefile.ins.
1642         (scan_configure): Do not require depcomp when ignoring
1643         dependencies.
1644         (initialize_global_constants): Reintroduce --ignore-deps.
1645
1646 1999-04-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
1647
1648         * depcomp: New file.
1649         * Makefile.am (dist_script_DATA): Added depcomp.
1650         * automake.in (cmdline_use_dependencies, omit_dependencies,
1651         dependency_macros): Removed.
1652         (--ignore-deps): Just ignore.
1653         (handle_single_transform_list, dep_files): Named dependency files
1654         as \$(DEPDIR)/$base.P$obj
1655         (handle_lib_objects_cond): Likewise.
1656         (generate_dependency_code): Do not check for AM_*_DEPENDENCIES.
1657         (scan_one_configure_file): Likewise.
1658         (handle_dependencies): Always enable auto-dep.  Define `depcomp'.
1659         Ignore OMIT_DEPENDENCIES.
1660         (handle_configure): Do not pass --ignore-deps.
1661         (scan_configure): Require `depcomp'.
1662         (initialize_global_constants): Make `depcomp' common.  Remove
1663         `--ignore-deps' from usage.
1664         (get_object_extension): No more NOTDEPEND in compile nor libtool.
1665         * compile.am: Remove rules for .c.o and .c.obj
1666         * depend.am (distclean-depend): Wipe out $(DEPDIR)
1667         * depend2.am (@FPFX@DEPMODE): Define from config.status.
1668         Use it and depcomp in suffix rules.
1669         * libtool.m4: Likewise.
1670         * m4/ccdepend.m4, m4/cxxdepend.m4: Removed.
1671         * m4/depvars.m4, m4/objcdepend.m4: Likewise.
1672         * m4/Makefile.am (dist_m4data_DATA): Likewise.
1673         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Extract DEPDIR
1674         from the Makefile and subst it in deps.  Report creation of deps
1675         files (for now).  Replace $U with `_' and the empty string.  Write
1676         a comment to each created file.
1677         * m4/depend.m4 (AM_SET_DEPDIR): Select a valid deps dir name.
1678         (AM_DEPENDENCIES): Accept CC, CXX and OBJC.  Just determine the
1679         dependency mode and AC_SUBST [$1]DEPMODE.
1680         * m4/init.m4 (AM_INIT_AUTOMAKE): Automatically call
1681         AM_DEPENDENCIES for CC and CXX, if the corresponding AC_PROG
1682         appears in configure.in, before or after AM_INIT_AUTOMAKE.
1683
1684 1999-04-02  Raja R Harinath  <harinath@cs.umn.edu>
1685
1686         * depout.m4: Fix sed expression for extracting `dirpart'.
1687
1688 1999-03-29  Tom Tromey  <tromey@cygnus.com>
1689
1690         * depend2.am (DEP_@FPFX@COMPILE): Use `!=' and not `-ne'.
1691
1692         * compile.am (.c.obj): Also disabled when dependency tracking
1693         enabled.
1694         * depend2.am (@EXT@.obj): New target.
1695         * automake.in (get_object_extension): Added explanatory comment.
1696         (generate_dependency_code): Handle $seen_objext.
1697
1698         * depend.am: Removed obsolete comment.
1699         * depend2.am: Minor formatting fix.
1700
1701 1999-03-28  Tom Tromey  <tromey@cygnus.com>
1702
1703         * m4/Makefile.am (dist_m4data_DATA): Renamed, and added new
1704         files.
1705         (EXTRA_DIST): Removed.
1706         * automake.in (dependency_macros): New global.
1707         (scan_one_configure_file): Recognize new dependency tracking
1708         macros, and define new resulting configure variables.
1709         (generate_dependency_code): New sub.
1710         (handle_dependencies): Use it.
1711         * depend2.am (DEP_@FPFX@COMPILE): New macro.
1712         (@EXT@.o): Use it.
1713         (@EXT@.lo): Likewise.
1714         * m4/depvars.m4: New file.
1715         * m4/objcdepend.m4: New file.
1716         * m4/cxxdepend.m4: New file.
1717         * m4/init.m4: Moved dependency handling code into depout.m4.
1718         * m4/depout.m4: New file.
1719         * m4/ccdepend.m4: New file.
1720         * m4/depend.m4: New file.
1721
1722         * depend2.am (@EXT@.o): Renamed to be old-style suffix pattern.
1723         (@EXT@.lo): Likewise.
1724         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't create `.deps/.P'; it is no
1725         longer needed.
1726
1727         * m4/init.m4 (AM_INIT_AUTOMAKE): Add code to config.status which
1728         will create the required .P files for dependency tracking.
1729         * automake.in (scan_dependency_file): Removed.
1730         (handle_dependencies): Never call scan_dependency_file.
1731         (generate_deps): Removed.
1732         (parse_arguments): Don't recognize --generate-deps, --build-dir,
1733         --srcdir-name, or --include-deps.  Do recognize --ignore-deps.
1734         (srcdir_name): Removed.
1735         (build_directory): Removed.
1736         (initialize_global_constants): Changed $USAGE to reflect argument
1737         parsing changes.
1738         (handle_dist_worker): Never run automake in `dist' rule.
1739         (handle_configure): Use --ignore-deps, not --include-deps.
1740         * depend.am (DEPS_MAGIC): Removed.
1741         (DEP_FILES): Unconditionally include.
1742
1743 1999-03-27  Tom Tromey  <tromey@cygnus.com>
1744
1745         * automake.in (saw_sources_p): Correctly count header extensions
1746         seen.
1747         (handle_headers): Fixed order of arguments to am_install_var.
1748
1749         * automake.in (am_install_var): Don't error if EXTRA_foo is
1750         defined uselessly.
1751
1752         * scripts.am (install-@DIR@SCRIPTS): Use NDIR when appropriate.
1753         (uninstall-@DIR@SCRIPTS): Likewise.
1754         * progs.am (install-@DIR@PROGRAMS): Use NDIR when appropriate.
1755         (uninstall-@DIR@PROGRAMS): Likewise.
1756         * ltlib.am (install-@DIR@LTLIBRARIES): Use NDIR when appropriate.
1757         (uninstall-@DIR@LTLIBRARIES): Likewise.
1758         * lisp.am (install-@DIR@LISP): Use NDIR when appropriate.
1759         (uninstall-@DIR@LISP): Likewise.
1760         * libs.am (install-@DIR@LIBRARIES): Use NDIR when appropriate.
1761         (uninstall-@DIR@LIBRARIES): Likewise.
1762         * java.am (install-@DIR@JAVA): Use NDIR when appropriate.
1763         (uninstall-@DIR@JAVA): Likewise.
1764         * header.am (install-@DIR@HEADERS): Use NDIR when appropriate.
1765         (uninstall-@DIR@HEADERS): Likewise.
1766         * data.am (install-@DIR@DATA): Use NDIR when appropriate.
1767         (uninstall-@DIR@DATA): Likewise.
1768         * Makefile.in: Rebuilt.
1769         * Makefile.am (dist_pkgdata_DATA): Renamed.
1770         (EXTRA_DIST): Removed.
1771         (install-data-hook): Added POST_INSTALL; print commands as they
1772         are run; respect DESTDIR.
1773         * dist-vars.am (DISTFILES): Removed $(HEADERS).
1774         * automake.in (am_install_var): Accept `-candist' and
1775         `-defaultdist' options.  Handle `dist_' and `nodist_' prefixes.
1776         (am_primary_prefixes): Added can_dist argument.  Recognize `dist_'
1777         and `nodist_' prefixes.
1778         (handle_scripts): Pass -candist to am_install_var.
1779         (handle_data): Pass -defaultdist to am_install_var.
1780         (handle_headers): Likewise.
1781         (handle_emacs_lisp): Pass -candist to am_install_var.
1782         (handle_java): Pass -candist to am_install_var.
1783
1784 1999-03-26  Tom Tromey  <tromey@cygnus.com>
1785
1786         * m4/init.m4: Fixed typo when invoking SHELL.
1787
1788         * automake.in (lang_yacc_finish): Always use `.h' as suffix for
1789         yacc header file.  From Ralf Corsepius.
1790
1791         * Makefile.in: Rebuilt.
1792         * Makefile.am: Updated to reflect removal of TAR subst.
1793         * automake.texi (Options): Document dist-bzip2.
1794         * automake.in (TAR): Removed global.
1795         (initialize_global_constants): Changed `dist' to use pipe with
1796         gzip; work with non-GNU tar.
1797         (handle_dist): Handle non-GNU tar.  Don't define TAR.
1798         (initialize_global_constants): Added `dist-bzip2' entry.
1799         (handle_options): Recognize dist-bzip2 option.
1800         (handle_dist): Likewise.
1801         * configure: Rebuilt.
1802         * configure.in: Don't check for tar.
1803         * m4/init.m4 (AM_INIT_AUTOMAKE): Check for `tar'.  Substitute
1804         AMTARFLAGS.
1805
1806         * automake.in (am_install_var): Removed obsolete comment.
1807
1808         * texinfos.am (uninstall-info): Don't print loop but instead print
1809         commands.  Simplified pre-uninstall loop.
1810         * scripts.am (uninstall-@DIR@SCRIPTS): Don't print loop but
1811         instead print commands.
1812         * progs.am (uninstall-@DIR@PROGRAMS): Don't print loop but instead
1813         print commands.
1814         * ltlib.am (uninstall-@DIR@LTLIBRARIES): Don't print loop but
1815         instead print commands.
1816         * lisp.am (install-@DIR@LISP): Strip subdir from file name.
1817         (uninstall-@DIR@LISP): Likewise.  Also, don't print loop but
1818         instead print commands.
1819         * libs.am (uninstall-@DIR@LIBRARIES): Don't print loop but instead
1820         print commands.
1821         * java.am (uninstall-@DIR@JAVA): Don't print loop but instead
1822         print commands.
1823         * header.am (install-@DIR@HEADERS): Strip subdir from file name.
1824         (uninstall-@DIR@HEADERS): Likewise.  Also, don't print loop but
1825         instead print commands.
1826         * data.am (install-@DIR@DATA): Strip subdir from file name.
1827         (uninstall-@DIR@DATA): Likewise.  Also, don't print loop but
1828         instead print commands.
1829
1830         * automake.in (handle_merge_targets): `install-strip' is a phony
1831         target.  From Michel de Ruiter.
1832
1833 1999-03-25  Tom Tromey  <tromey@cygnus.com>
1834
1835         * automake.in (define_compiler_variable): Don't define variable
1836         with trailing `_'.
1837
1838 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
1839
1840         * automake.in (LDADD): accept -dlopen and -dlpreopen here
1841         * automake.texi: ditto
1842
1843 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
1844
1845         * automake.in (TESTS): make from Solaris 7/x86 loses if srcdir
1846         is absolute and != objdir.  dir="" or "$(srcdir)/" fixes it
1847
1848 1999-03-24  Tom Tromey  <tromey@cygnus.com>
1849
1850         * automake.in (define_compiler_variable): New sub.
1851         (finish_languages): Use it.
1852         (lang_cxx_finish): Likewise.
1853         (lang_f77_finish): Likewise.
1854         (lang_ppf77_finish): Likewise.
1855         (lang_ratfor_finish): Likewise.
1856         (lang_objc_finish): Likewise.
1857
1858 1999-03-23  Tom Tromey  <tromey@cygnus.com>
1859
1860         * progs.am (install-@DIR@PROGRAMS): Use `-e' instead of multiple
1861         sed invocations.  From Elrond.
1862         (uninstall-@DIR@PROGRAMS): Likewise.
1863
1864         * automake.in (lang_lex_finish): Rewrite `l', not `y', to `c'.
1865         From Ralf Corsepius.
1866
1867 1999-02-01  Thomas Tanner  <tanner@gmx.de>
1868
1869         * automake.in: accept both A(C|M)_PROG_LIBTOOL, print a
1870         warning when AM_PROG_LIBTOOL was found
1871         * automake.texi: renamed AM_PROG_LIBTOOL to AC_PROG_LIBTOOL
1872
1873 1999-03-22  Tom Tromey  <tromey@cygnus.com>
1874
1875         Made `+=' more robust.  Fixes pluseq6.test and pluseq7.test.
1876         * automake.in (define_standard_variables): New sub.
1877         (read_main_am_file): Use two passes to scan standard variables.
1878         (read_am_file): Don't special-case configure variables with `+='.
1879         (initialize_per_input): Initialize %var_was_plus_eq.
1880         (read_am_file): Set var_was_plus_eq element correctly.
1881         (define_variable): Give error if variable assigned with `+=' is
1882         internally defined.
1883         (initialize_per_input): Initialize %am_var_defs.
1884         (file_contents_with_transform): Set element in %am_var_defs.
1885         (read_am_file): Use %am_var_defs.
1886
1887 1999-03-21  Tom Tromey  <tromey@cygnus.com>
1888
1889         * automake.in (initialize_per_input): Initialize %object_map.
1890         (handle_single_transform_list): Allow source files in
1891         subdirectories.
1892
1893 1999-03-21  Jim Meyering  <meyering@na-net.ornl.gov>
1894
1895         * automake.in (handle_dist): Add missing newline after the first
1896         semicolon.
1897
1898 1999-03-11  Tom Tromey  <tromey@cygnus.com>
1899
1900         * m4/error.m4, m4/mktime.m4, m4/obstack.m4, m4/regex.m4,
1901         m4/strtod.m4: Use $ac_objext, not `.o'.  From Jim Meyering.
1902
1903         From Jim Meyering:
1904         * automake.in (handle_dist): Add `;\' to end of distcheck-hook
1905         line.
1906         (scan_one_configure_file): In LIBOBJS, recognize `$ac_objext' as
1907         legitimate ending.  Fixes libobj9.test.
1908
1909         From Ralf Corsepius.  Fixes lex3.test.
1910         * automake.in (lang_yacc_finish): Include `.' in name pushed onto
1911         maintainer-clean list.
1912         (lang_lex_finish): Likewise.
1913
1914 1999-03-02  Tom Tromey  <tromey@cygnus.com>
1915
1916         * subdirs.am (maintainer-clean-recursive): Changed "&&" into "if"
1917         construct to work around FreeBSD make/sh problem.  From Rich Wales.
1918
1919 1999-03-01  Tom Tromey  <tromey@cygnus.com>
1920
1921         Fixes from Pavel Roskin:
1922         * automake.in (variable_conditions_sub): Sort list passed to
1923         variable_conditions_permutations.
1924         (variable_conditions): Sort list before returning.
1925
1926 1999-02-27  Tom Tromey  <tromey@cygnus.com>
1927
1928         * automake.in (lang_extensions): New sub.
1929         (handle_dependencies): Use it.
1930         (cxx_extensions): Removed.
1931         (lang_cxx_finish): Use lang_extensions.
1932         (f77_extensions): Removed.
1933         (lang_f77_finish): Use lang_extensions.
1934         (objc_extensions): Removed.
1935         (lang_ppf77_finish): Put `.' before extension.  Fixes ext.test.
1936         Report from Dave Morrison.
1937         (lang_ratfor_finish): Likewise.
1938
1939 1999-02-26  Tom Tromey  <tromey@cygnus.com>
1940
1941         * automake.in (finish_languages): Added AM_LDFLAGS.
1942         (lang_cxx_finish): Likewise.
1943         (lang_f77_finish): Likewise.
1944         (lang_ppf77_finish): Likewise.
1945         (lang_ratfor_finish): Likewise.
1946         (lang_objc_finish): Likewise.
1947
1948 1999-02-11  Tom Tromey  <tromey@cygnus.com>
1949
1950         * aclocal.in (obsolete_macros): Copied from automake.in.
1951         (obsolete_rx): Use only keys of obsolete_macros.
1952         (scan_configure): Report replacement macro for an obsolete macro.
1953         * automake.in (obsolete_macros): Added ud_GNU_GETTEXT.
1954
1955         * automake.in (obsolete_macros): Corrected typo in AM_EXEEXT
1956         entry.  Fixes obsolete2.test.
1957
1958         * automake.in (obsolete_macros): Use empty string to indicate no
1959         substitution.
1960         (scan_one_configure_file): Likewise.
1961
1962 1999-02-07  Paul Eggert  <eggert@twinsun.com>
1963
1964         * m4/ccstdc.m4 (AM_PROG_CC_STDC): Prefer -Ae to -Aa
1965         -D_HPUX_SOURCE, since -Ae allows `long long' and this is
1966         needed by some programs.
1967
1968 1999-02-10  Tom Tromey  <tromey@cygnus.com>
1969
1970         * automake.in (handle_texinfo): Added `pgs' to list of
1971         extensions.  From NISHIDA Keisuke.
1972
1973 1999-02-04  Akim Demaille  <demaille@inf.enst.fr>
1974
1975         * automake.in (handle_texinfo): remove texinfo.tex from
1976         TEXINFODIR.
1977
1978 1999-02-02  Tom Tromey  <tromey@cygnus.com>
1979
1980         * automake.in (handle_merge_targets): Use INSTALL_STRIP_FLAG.
1981         * progs.am (install-@DIR@PROGRAMS): Added INSTALL_STRIP_FLAG.
1982         * header-vars.am (INSTALL_PROGRAM): Removed
1983         AM_INSTALL_PROGRAM_FLAGS.
1984         (INSTALL_STRIP_FLAG): New macro.
1985
1986         * automake.in: Handle `ypp' as C++ yacc source and `lpp' as C++
1987         lex source.
1988         (lang_yacc_finish): Likewise.
1989         (lang_lex_finish): Likewise.
1990
1991 1999-02-01  Tom Tromey  <tromey@cygnus.com>
1992
1993         * automake.in (handle_dist_worker): Correctly find find in $$d,
1994         not $$.  From Bill Davidson.
1995
1996         * automake.in (finish_languages): Use "&", not "do".  From Pavel
1997         Roskin.
1998         (handle_single_transform_list): Likewise.
1999
2000 1999-01-29  Tom Tromey  <tromey@cygnus.com>
2001
2002         * automake.in (handle_configure): Removed unused variable.  From
2003         Pavel Roskin.
2004
2005         * ansi2knr.c: New version from L. Peter Deutsch.
2006
2007 1999-01-22  Tom Tromey  <tromey@cygnus.com>
2008
2009         * automake.in (require_file_internal): Correctly examine return
2010         value of `system'.  From Andris Pavenis.  Fixes copy.test.
2011
2012         * m4/init.m4 (AM_INIT_AUTOMAKE): Require autoconf 2.13.
2013
2014         * automake.in (lang_ppf77_rewrite): New function.  From Jochen
2015         Kuepper.  Fixes ppf77.test.
2016         (lang_ratfor_rewrite): New function
2017
2018         * automake.in (handle_configure): Use `&' before sub calls (Perl 4
2019         fix).  From Erez Zadok.
2020
2021 1999-01-15  Tom Tromey  <tromey@cygnus.com>
2022
2023         * configure.in: Version 1.4a (oops).
2024
2025         * configure.in: Updated version to 1.5a.
2026
2027 1999-01-14  Tom Tromey  <tromey@cygnus.com>
2028
2029         * automake.in (handle_configure): Compute $header_dir based on
2030         $one_name, not $one_hdr.  Reported by Erez Zadok.  Fixes
2031         confh2.test.
2032         (handle_configure): Compute relative path to input header
2033         correctly in all cases.
2034
2035         * automake.in (handle_tests): Avoid error messages from dejagnu
2036         test rules.  From Karl Heuer.
2037
2038         * automake.in (handle_texinfo): Add `/' to end of $conf_dir.
2039
2040         * Makefile.am (AUTOMAKE_OPTIONS): Added `1.4'.
2041
2042         * texi-vers.am ($(srcdir)/stamp-@VTI@): Find @TEXI@ in srcdir.
2043         From Alexandre Oliva and Erez Zadok.
2044
2045         * automake.in (create): Renamed from touch.
2046         (handle_configure): Use create, not touch.
2047
2048         * config.sub, config.guess: New versions from autoconf.
2049
2050         * mkinstalldirs: New version from autoconf.
2051
2052 1999-01-12  Tom Tromey  <tromey@cygnus.com>
2053
2054         * config.sub, config.guess, COPYING, texinfo.tex: New versions
2055         from FSF.
2056
2057 1999-01-11  Marcus G. Daniels  <mgd@chama.santafe.edu>
2058
2059         * automake.in (PATH_PATTERN): New variable:
2060         (INCLUDE_PATTERN): Use it.  Ignore all include commands using
2061         symbols besides $(top_srcdir) and $(srcdir).
2062
2063 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
2064
2065         * automake.in (handle_dist_worker): avoid failure in `make dist'
2066         if last file is a builddir-only file
2067
2068 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
2069
2070         * missing (autoheader): `s' was missing from sed script; grr
2071
2072 1999-01-11  Tom Tromey  <tromey@cygnus.com>
2073
2074         * remake-hdr.am (@STAMP@): Reverted timestamp change.
2075         ($(srcdir)/@STAMP@.in): Likewise.
2076
2077 1999-01-10  Tom Tromey  <tromey@cygnus.com>
2078
2079         * Makefile.am (scriptdir): New macro.
2080         (script_DATA): Likewise.
2081         (install-data-hook): Use them.
2082         (EXTRA_DIST): Added script_DATA.
2083         (installcheck-local): Use script_DATA.
2084
2085         * Makefile.am (pkgdata_DATA): Removed duplicate definition.
2086
2087 1999-01-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
2088
2089         * missing (autoheader): accept multiple header files
2090         (automake): simplify sed processing
2091
2092 1999-01-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
2093
2094         * automake.in (handle_configure, stamp_dir): create only one stamp
2095         file per header, instead of one in the top-level directory and one
2096         in the directory that contains the header.
2097
2098 1999-01-10  Tom Tromey  <tromey@cygnus.com>
2099
2100         * automake.in (lang_objc_finish): Formatting fix.
2101
2102         * automake.in (objc_extensions): New sub.
2103         (handle_dependencies): Only generate dependency-tracking code for
2104         ObjC when ObjC source seen.