Fix for test nodepcomp.test:
[platform/upstream/automake.git] / ChangeLog
1 2000-03-19  Tom Tromey  <tromey@cygnus.com>
2
3         Fix for test nodepcomp.test:
4         * automake.in (handle_dependencies): Require `depcomp' here.
5         (scan_configure): Don't require `depcomp'.
6
7 2000-03-16  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
8
9         * automake.in (handle_configure): Remove $(BUILT_SOURCES) from
10         the rule to remake Makefile, whether $use_dependencies is true
11         or not. This was a historical one and doesn't make sense any
12         longer.
13
14 2000-03-19  Tom Tromey  <tromey@cygnus.com>
15
16         More for PR automake/38:
17         * automake.texi (Invoking Automake): Document --force-missing.
18         * automake.in (force_missing): New global.
19         (parse_arguments): Recognize --force-missing.
20         (initialize_global_constants): Document --force-missing.
21         (require_file_internal): Handle --force-missing.
22
23         Fix for PR automake/38:
24         * automake.in (require_file_internal): Check for and handle
25         dangling symlinks.  Fixes symlink2.test.
26
27         Fix for PR automake/45:
28         * automake.texi (configure): Mention requirement to run
29         AM_INIT_AUTOMAKE.
30         (Requirements): Removed most text.
31         * automake.in (seen_init_automake): New global.
32         (scan_configure): Error if AM_INIT_AUTOMAKE not seen.
33         (scan_one_configure_file): Don't support AM_INIT_GUILE_MODULE.
34         Set seen_init_automake if needed.
35
36         Fix for PR automake/41:
37         * automake.in (require_file_found): New global.
38         (require_file_internal): Set require_file_found entry.
39         (handle_texinfo): Require file any number of times.
40
41         * automake.in (handle_dist_worker): Exit if `cp' fails.  Fixes
42         install2.test.
43
44         * tags.am: Don't reference $$here.  Report from Sven Verdoolaege.
45
46 2000-03-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
47
48         * m4/missing.m4: Print the backtick in a way that won't cause
49         autoconf CVS to emit any warnings.
50
51 2000-03-01  Jim Meyering  <meyering@lucent.com>
52
53         * automake.in (handle_dist_worker) [generating rules for distdir]:
54         Don't use `ln' (which was just a space optimization anyway) to
55         populate $(distdir).  Otherwise, the dist rules that change
56         permissions would end up affecting the master sources.
57         * texinfos.am (dist-info): Likewise.
58
59 2000-02-13  Jim Meyering  <meyering@lucent.com>
60
61         * automake.in (generate_makefile): Detect write/close failure.
62
63 2000-02-02  Assar Westerlund  <assar@sics.se>
64
65         * automake.in (handle_single_transform_list): do not use $< which
66         is not handled by all non-GNU makes.  Instead do explicit sh code
67         testing for the file in this directory and srcdir.  Based on a
68         suggestion by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
69
70 2000-01-12  Tom Tromey  <tromey@cygnus.com>
71
72         * m4/lispdir.m4: Added --with-lispdir argument processing.
73         From Kevin Dalley.
74
75 2000-01-06  Tom Tromey  <tromey@cygnus.com>
76
77         * automake.in (handle_configure): Don't check for
78         AC_PROG_MAKE_SET.
79         (scan_configure): Check for AC_PROG_MAKE_SET.
80
81         * header-vars.am (@SET_MAKE@): Added.
82         * subdirs.am (@SET_MAKE@): Removed.  Report from Motoyuki
83         Kasahara.
84
85 1999-12-19  Tom Tromey  <tromey@cygnus.com>
86
87         * automake.in (handle_dist_worker): Expand DIST_COMMON under all
88         conditions.
89         (require_file_internal): Corrected arguments to second invocation
90         of maybe_push_required_file.
91
92         Fix for PR automake/9:
93         * automake.in (make_dirs, make_dirs_set): New globals.
94         (is_make_dir): New function.
95         (handle_configure): Use it.
96         (require_file_internal): Push file if there is no Makefile in its
97         directory.
98         (initialize_per_input): Initialize handle_dist_run.
99         (push_dist_common): Inspect handle_dist_run.
100         (handle_dist): Set handle_dist_run.  Push items from
101         configure_dist_common onto dist_common if appropriate.
102         (configure_dist_common): New global.
103         (scan_configure): Set it.
104         (maybe_push_required_file): New function.
105         (require_file_internal): Use it.
106
107         * automake.in (handle_dist_worker): Scan DIST_COMMON to see if
108         more subdirs are defined.  From Axel Belinfante.  Fixes
109         PR automake/2.
110
111 1999-12-18  Tom Tromey  <tromey@cygnus.com>
112
113         Partial fix for PR automake/40:
114         * lisp.am (install-@DIR@LISP): Handle nobase_ case.
115         (uninstall-@DIR@LISP): Likewise.
116         * header.am (install-@DIR@HEADERS): Handle nobase_ case.
117         (uninstall-@DIR@HEADERS): Likewise.
118         * data.am (install-@DIR@DATA): Handle nobase_ case.
119         (uninstall-@DIR@DATA): Likewise.
120         * automake.in (am_primary_prefixes): Recognize `nobase_' prefix.
121         (am_install_var): Recognize and handle `nobase_' prefix.
122
123 1999-12-17  Tom Tromey  <tromey@cygnus.com>
124
125         * automake.in (get_object_extension): Added space before `-I.'.
126         Report from Ralf Corsepius.
127
128 1999-12-15  Tom Tromey  <tromey@cygnus.com>
129
130         * aclocal.in: Don't pass $acdir to scan_m4_files.
131         (parse_arguments): Push $acdir on end of dirlist.
132         (scan_file): Don't warn if duplicate macro seen.
133
134 1999-12-13  Tom Tromey  <tromey@cygnus.com>
135
136         Fix for PR automake/30 and PR automake/23.  Fixes test
137         suffix3.test.
138         * automake.in (initialize_per_input): Initialize
139         source_suffix_pattern.
140         (derive_suffix): New function.
141         (handle_single_transform_list): Call it.
142
143         * automake.in (add_depend2): Handle the no-dependency-tracking
144         case.  Fixes test suffix2.test.
145
146         * depcomp (tmpdepfile): [case sgi] Added missing `fi'.
147
148         * automake.in (get_object_extension): Fixed quoting on
149         -I$(srcdir).
150
151         * depend2.am: Removed erroneous comment.
152
153         * automake.texi (Program variables): Document nostdinc.
154         (Options): Likewise.
155         * automake.in (get_object_extension): Respect nostdinc option.
156         (handle_options): Recognize nostdinc.
157         * comp-vars.am (DEFS): Use @DEFAULT_INCLUDES@ as sole
158         substitution.
159
160         * automake.in (read_am_file): Allow conditional includes.  Fixes
161         test condincl.test.
162
163         * depcomp: Handle case on SGI when libtool is `yes'.
164         * depend2.am (@EXT@.o): Set libtool.
165         (@EXT@.lo): Likewise.
166         (@EXT@.obj): Likewise.
167
168         * depcomp: Unify dashmstdout and dashXmstdout cases.  Move hp case
169         after gcc case.
170
171 1999-12-13  Pavel Roskin  <pavel_roskin@geocities.com>
172
173         * automake.in (add_depend2): substitute $rule in the rules
174         for individual files.  Fixes test specflags5.test.
175
176 1999-12-12  Tom Tromey  <tromey@cygnus.com>
177
178         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run mkinstalldirs
179         to create directories.  Fixes test subobj3.test.
180
181 1999-12-10  Tom Tromey  <tromey@cygnus.com>
182
183         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Don't print
184         message when creating .deps files.
185
186         * automake.in (initialize_global_constants): If unreadable by
187         owner, make it readable by owner regardless of number of links.
188         Fixes more of install2.test.
189
190         * missing: Try to see if gnutar or gtar exist before invoking
191         them.
192
193         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Remove ${SHELL} from
194         install_sh value.  Look for install-sh and install.sh in a
195         somewhat more sensible way.  Fixes test install2.test.  Partially
196         from Jim Meyering.
197
198 1999-12-09  Pavel Roskin  <pavel_roskin@geocities.com>
199
200         * m4/missing.m4: remove redundant backquote
201
202 1999-11-23  Tom Tromey  <tromey@cygnus.com>
203
204         * automake.in (initialize_global_constants): Use `bzip2 -9', not
205         `bzip --best'  Report from Jim Meyering.
206
207 1999-11-22  Tom Tromey  <tromey@cygnus.com>
208
209         * m4/missing.m4 (AM_MISSING_INSTALL_SH): Don't take argument.
210         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't pass argument to
211         AM_MISSING_INSTALL_SH.
212         * automake.in (scan_one_configure_file): Reverted previous
213         change.
214
215         * automake.in (scan_one_configure_file): Define `install_sh'
216         configure variable when AM_INIT_AUTOMAKE seen.  Report from Jim
217         Meyering.
218
219         * automake.in (handle_single_transform_list): Generate explicit
220         rule for subdir objects.  Fixes new addition to subobj.test.
221
222         * automake.in (handle_lib_objects_cond): Allow LIBOBJS to be
223         defined by AC_SUBST.  Fixes ltlibobjs.test.
224
225         Fix for sourcesub.test:
226         * automake.in (handle_single_transform_list): Added `var'
227         argument.  If config sub found, give error.
228         (handle_source_transform): Updated for new
229         handle_source_transform.
230
231         * py-compile: New file.
232         * m4/Makefile.am (m4data_DATA): Added python.m4.
233         * m4/python.m4: New file.
234         * automake.texi (Uniform): Mention PYTHON.
235         (Python): New node.
236         * Makefile.am (amfiles): Added python.am, python-clean.am.
237         (dist_script_DATA): Added py-compile.
238         * python.am: New file.
239         * python-clean.am: New file.
240         * automake.in (seen_pythondir): New global.
241         (generate_makefile): Call handle_python.
242         (handle_python): New function.
243         (scan_one_configure_file): Set seen_pythondir if AM_PATH_PYTHON
244         seen.
245         (am_install_var): Special-case PYTHON like JAVA.
246         (scan_configure): Check for py-compile.
247         (initialize_global_constants): Added py-compile to @common_files.
248
249         * ltlib.am (install-@DIR@LTLIBRARIES): Added missing space.
250
251 1999-11-21  Tom Tromey  <tromey@cygnus.com>
252
253         * automake.in (finish_languages): Only generate suffix rule when
254         not doing dependency tracking.
255
256         * m4/init.m4 (AM_INIT_AUTOMAKE): Use AM_MISSING_INSTALL_SH.
257         * m4/missing.m4 (AM_MISSING_INSTALL_SH): New macro.
258
259         * depend2.am: Use @SOURCE@, @OBJ@, @LTOBJ@, @OBJOBJ@, and @BASE@.
260         Always use `-o'.
261
262 1999-11-19  Tom Tromey  <tromey@cygnus.com>
263
264         * dist.am: Set `CDPATH=:' to avoid problems.  Merged from
265         Alexandre's change on branch.
266
267 1999-10-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
268
269         * Makefile.am (maintainer-check): Look for occurrences of ``cd'
270         without `CDPATH'.
271         * dejagnu.am: Set CDPATH before cd.
272         * Makefile.in: Rebuilt.
273
274         * automake.in (handle_single_transform_list): Change `\1' for `$1'
275         in `s///' replacement.
276
277         * automake.in (handle_dist): Set CDPATH before cd.
278         * dejagnu.am (check-DEJAGNU): Likewise.
279         * texinfos.am (install-info-am, dist-info): Likewise.
280         * m4/init.m4 (AM_INIT_AUTOMAKE): Likewise.
281         * m4/missing.m4 (AM_MISSING_HAS_RUN): Likewise.
282         * aclocal.m4, configure, Makefile.in: Rebuilt.
283
284         * AUTHORS: Added myself.
285
286 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
287
288         * m4/missing.m4: Support relative srcdir and ac_aux_dir.
289         Reported by Tim Wilkinson <tim@transvirtual.com>
290         * aclocal.m4, configure: Rebuilt.
291
292 1999-08-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
293
294         * m4/lex.m4 (AM_PROG_LEX): Require AM_MISSING_HAS_RUN and, if no
295         LEX program is found, use `${am_missing_run}flex'.
296
297 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
298
299         * automake.in (handle_single_transform_list): Replace `$(OBJEXT)'
300         with `o' in depfile.
301
302         * automake.in (handle_lib_objects_cond): Remove second dot from
303         dependency file names.
304
305         * depend2.am (OBJEXT@EXT@.obj): Dependency file should be .Po,
306         regardless of OBJEXT.
307
308         * automake.in (handle_dependencies): Add blank line after depend2.
309         (handle_dependencies): Start DEP_FILES with `@AMDEP@'.  Output
310         blank line before `include's, not after them.
311         (scan_one_configure_file): Do not special-case `DEP_' any more.
312
313         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Run for loop only
314         if AMDEP is empty.
315         * aclocal.m4, configure: Rebuilt.
316
317         * m4/depend.m4 (AMDEPBACKSLASH): Define.
318         * depend2.am (@EXT@.o, @EXT@.lo, @EXT@.obj): Use AMDEPBACKSLASH.
319
320         * automake.in (handle_dependencies): Generate `include's for
321         dependency files after `@AMDEP@'.
322
323         * m4/missing.m4: Use eval, instead of a sub-shell, to test for
324         --run support in the missing script, since SHELL is not exported.
325         Reported by job bogan <job@piquin.uchicago.edu>
326         * aclocal.m4, configure: Rebuilt.
327
328 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
329
330         * aclocal.m4, configure: Rebuilt with itself.
331         * Makefile.in, m4/Makefile.in, tests/Makefile.in: Likewise.
332
333         * m4/missing.m4 (AM_MISSING_PROG): Remove DIRECTORY argument.
334         Require AM_MISSING_HAS_RUN.  Use am_missing_run, defined by...
335         (AM_MISSING_HAS_RUN): New macro.
336         * m4/init.m4: Remove missing_dir from calls to AM_MISSING_PROG.
337         * automake.texi (Requirements): Likewise.
338         * version.texi, stamp-vti: Rebuilt.
339
340 1999-07-28  Tom Tromey  <tromey@cygnus.com>
341
342         * depcomp: Handle the `hp' mode.
343
344 1999-07-06  Tom Tromey  <tromey@cygnus.com>
345
346         * depcomp: Work around HP-UX 10.20 sed bug.
347
348 1999-07-05  Tom Tromey  <tromey@cygnus.com>
349
350         * automake.in (handle_dependencies): Generate a separate include
351         for each dep file.  Report from Alexandre Oliva.
352         * depend.am: Don't include DEP_FILES.
353
354 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
355
356         * depend.am: Add @AMDEP@ before `include', so that dependency
357         tracking can be disabled.
358         * depend2.am: Ditto, before all lines related with dependency
359         tracking.
360         * m4/depend.m4 (AM_DEP_TRACK): New macro, that documents
361         --enable/disable-dependency-tracking and sets AMDEP accordingly.
362         It is implicitly disabled if depcomp is missing.
363         (AM_DEPENDENCIES): Disable dependency tracking unless it can be
364         generated by side-effect.
365         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_DEP_TRACK.
366         * automake.in (handle_dependencies): Add @AMDEP@ before the value
367         of DEP_FILES.
368         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Handle DEP_FILES
369         starting with `#'.
370
371         * depcomp: Support -xM for dependency generation, for Sun CC.
372         Reported by Alex Hornby <alex@anvil.co.uk>
373         * m4/depend.m4: Extract the list of supported dependency-tracking
374         mechanisms from the depcomp script and use it to test each one.
375         * THANKS: Added Alex Hornby.
376
377         * depend2.am: Move $(depcomp) to the line of $(...DEPMODE), so as
378         to leave $(...COMPILE) in a line by itself.
379
380         * THANKS: Added Miles Bader.
381
382 1999-06-01  Miles Bader  <miles@ccs.mt.nec.co.jp>
383
384         * m4/depend.m4 (AM_DEPENDENCIES): Add check for `makedepend'.
385         Fix `dashmstdout' to ignore non-dependency-generating uses of the
386         -M flag.
387         * depcomp (makedepend): New dependency-generating method.
388
389 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
390
391         * missing: If given `--run' as first argument, try to run the
392         given program before falling back to the ``emulated'' behavior.
393         Add support for `tar'.
394         * automake.in: Use new `tar' support for `dist'.
395         * m4/missing.m4 (AM_MISSING_PROG): Instead of checking for the
396         program, prepend `missing --run' to the given program name.
397         * m4/init.m4: Remove AMTAR-related stuff.
398         * NEWS: Updated.
399
400         * m4/depout.m4: Instead of `find'ing Makefiles, just iterate on
401         CONFIG_FILES.  Do not use temporary variable for list of
402         dependency files, it breaks Cygwin.
403
404 1999-04-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
405
406         * depcomp (gcc): Imported comments removed from depend2.am, so
407         that we don't lose them.
408
409         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Avoid sed s/$U//
410         when not using ansi2knr.
411
412 1999-04-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
413
414         * m4/depend.m4 (AM_DEPENDENCIES): Test for depcc -E support.
415         * depcomp (cpp): Extract dependencies from `# nnn "..."' lines.
416
417 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
418
419         * m4/depend.m4 (AM_DEPENDENCIES): Add a definition to conftest.h,
420         so as not to compile an empty source; some compilers fail on this.
421         Redirect stderr of depcc to /dev/null.  Test for -M with -o,
422         because some compilers will output the rules to the output file.
423         * depcomp (dashmstdout): Add --silent before --mode=compile, so
424         that we don't get libtool output mixed up with make rules.
425
426         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AM_SET_DEPDIR.
427         * depend2.am: Set tmpdepfile too, to speed up depcomp.  Always use
428         -o for libtool, otherwise it may try to deduce the object name
429         from the dependency-generation flag.
430         * depcomp: Assume depdir exists.  Preserve depfile on unsuccessful
431         compilations.
432
433         * libtool.am: Do not emit .c.lo here...
434         * depend2.am: ... emit .*.lo here, only when using libtool.
435         * automake.in (get_object_extension): No more @MINUSO@ here.
436         (handle_single_transform_list): Set $depfile from $object.
437         (handle_dependencies): Emit depend2.am for all used languages,
438         regardless of $use_dependencies; the setting of depcomp makes the
439         difference.
440         (lang_cxx_finish): Do not emit compilation rules.
441         (lang_objc_finish): Likewise.
442         (lang_java_finish): Likewise.
443
444 1999-04-21  Tom Tromey  <tromey@cygnus.com>
445
446         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Correctly
447         interpolate DEPDIR in DEP_FILES expansion.
448
449 1999-04-20  Lee Iverson  <leei@Canada.AI.SRI.COM>
450
451         * m4/depend.m4 (AM_DEPENDENCIES): Fix up test for SGI-style
452         dependency updating.
453         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Fix sed script to
454         handle multi-line dependency lists.
455
456 1999-11-12  Tom Tromey  <tromey@cygnus.com>
457
458         Fix for PR automake/14:
459         * aclocal.in: Added `ud_GNU_GETTEXT'.  Updated to mention
460         AC_CYGWIN.
461         * automake.in: Mention AC_CYGWIN, not AC_CYGWIN32.
462
463         * m4/multi.m4: Added missing `]'.  From Akim Demaille.
464
465         * Makefile.am (path-check): Make sure distdir is writeable before
466         removing it.
467         * automake.in (handle_texinfo): Added `cm' and `ov' extensions.
468         (handle_dist_worker): Make sure distdir is writeable before
469         removing it.
470         (initialize_global_constants [$dist_trailer]): Make sure distdir
471         is writeable before removing it.
472         * dist.am (distcheck): Make the new source tree read-only before
473         compiling.  Idea from Karl Berry.
474
475         * automake.texi (Gnits): Allow COPYING.LIB again.
476         * automake.in (check_gnits_standards): Allow COPYING.LIB again.
477
478 1999-11-11  Jim Meyering  <meyering@ascend.com>
479
480         * dist.am (distcheck): Remove $(distdir).tar.gz before counting
481         files.
482
483 1999-11-09  Tom Tromey  <tromey@cygnus.com>
484
485         * automake.in (handle_dist): Typo fix.  From Jim Meyering.
486
487 1999-11-09  Jim Meyering  <meyering@ascend.com>
488
489         * automake.in (handle_dist): Remove the DISTHOOK and GETTEXT
490         markers, no matter what.
491
492 1999-11-08  Tom Tromey  <tromey@cygnus.com>
493
494         * dist.am (distcheck): Put `&&' at the start of the distcheck-hook
495         line.
496
497         * automake.in (handle_dist_worker): Use `cp -R', not `cp -r'.
498         From Jim Meyering.  Also, don't mention file name in `cp'
499         destination.  From Olly Betts.
500
501 1999-10-27  Miodrag Vallat  <miodrag@ifrance.com>
502
503         * texinfos.am (uninstall-info): Use installed info file, not one
504         from srcdir or builddir.
505
506 1999-11-07  Tom Tromey  <tromey@cygnus.com>
507
508         * clean.am (maintainer-clean-generic): Remove Makefile.in.  From
509         Jeff Bailey
510
511         Fix for PR automake/18:
512         * automake.in (handle_dist): Add contents of dist.am to the output
513         rules.
514         * Makefile.am (amfiles): Added dist.am.
515         * dist.am: New file.
516         (distcheck): Added uninstall and distclean checks.
517
518         * automake.in (PATH_PATTERN): Added `-' as allowable character.
519         Fixes PR automake/20.  From Matthew D. Langston.
520
521         * automake.in (SUFFIX_RULE_PATTERN): Add `0-9' as characters
522         allowed in suffixes.  Fixes PR 22.  From Matthias Clasen.
523
524 1999-10-03  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
525
526         * m4/lispdir.m4: -batch must come before -q.
527         * elisp-comp: Likewise.
528         Reported by Lars Hecking <lhecking@nmrc.ucc.ie>
529         * THANKS: Added Lars.
530
531 1999-08-15  Tom Tromey  <tromey@cygnus.com>
532
533         * automake.in (get_object_extension): Fixed quoting bug.  Fixes
534         ansi4.test.
535
536 1999-07-27  Tom Tromey  <tromey@cygnus.com>
537
538         * config.guess, config.sub: New versions from autoconf.
539
540 1999-07-13  Tom Tromey  <tromey@cygnus.com>
541
542         Work around losing `awk'.  Report from Harlan Stenn.
543         * m4/init.m4 (AM_INIT_AUTOMAKE): Require AC_PROG_AWK.
544         * tags.am (ID, TAGS): Use $(AWK), not `awk'.
545
546         * automake.in (handle_source_transform): Mark prefix as seen if
547         corresponding _SOURCES variable exists.  Fixes empty2.test.
548
549 1999-06-25  OKUJI Yoshinori  <okuji@kuicr.kyoto-u.ac.jp>
550
551         * configure.in (ACLOCAL): Do not prepend the variable SRCDIR to
552         m4.
553         (AUTOMAKE): Set --amdir to current directory.
554
555 1999-06-20  Tom Tromey  <tromey@cygnus.com>
556
557         * Makefile.am (TAGS_FILES): New macro.
558         (ETAGS_ARGS): Moved files into TAGS_FILES.
559         (TAGS_DEPENDENCIES): Likewise.
560         (ETAGS_ARGS): Removed.
561         (TAGS_DEPENDENCIES): Removed duplicate definition.
562
563         * tags.am (ID): Handle VPATH correctly.  Use TAGS_FILES.  Report
564         from Ganesan Rajagopal.
565         (TAGS): Likewise.
566
567 1999-06-18  Thomas Tanner  <tanner@ffii.org>
568
569         * automake.in (handle_ltlibraries): Check for -module in LDFLAGS,
570         too.
571
572 1999-06-20 Mark Elbrecht <snowball3@bigfoot.com>
573
574         * ylwrap: Handle filenames output by the DOS version of Bison.
575
576 1999-06-20  Tom Tromey  <tromey@cygnus.com>
577
578         * ylwrap: Be less strict when recognizing DOS paths.  From Mark
579         Elbrecht.
580
581 1999-06-19  Tom Tromey  <tromey@cygnus.com>
582
583         * automake.in (handle_dist_worker): Remove redundant entries from
584         DIST_SUBDIRS.
585
586         * automake.in (handle_lib_objects_cond): Better error message when
587         unrecognized option passed in LDADD.
588
589 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
590
591         * configure.in (ACLOCAL, AUTOMAKE): Use our own scripts, with
592         appropriate --acdir and --amdir arguments.
593
594 1999-06-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
595
596         * automake.in (dist_header): Avoid changing permissions of files
597         in the source tree, trying a complex `find/chmod' command before
598         falling back to plain chmod.
599         (handle_dist_worker): Do not create directories with mode 777, the
600         find above will take care of that.
601         * m4/init.m4: Set install_sh for find/chmod above.
602
603         * THANKS: Added Shuhei Amakawa.
604
605 1999-06-07  Shuhei Amakawa <sa264@cam.ac.uk>
606
607         * mans.am: Strip dirname from given filename.
608
609 1999-06-07  Jim Meyering  <meyering@ascend.com>
610
611         * automake.in (handle_dist): Change emitted rules so that a failure
612         in `$(MAKE) distcheck-hook' propagates to the outer make.
613
614 1999-05-27  Tom Tromey  <tromey@cygnus.com>
615
616         * automake.in (handle_single_transform_list): Replace AM_FLAG and
617         not FLAG in compilation rule.
618         (add_depend2): Likewise.
619
620         * ltlib.am (install-@DIR@LTLIBRARIES): Pass INSTALL_STRIP_FLAG to
621         libtool.
622
623         * m4/dmalloc.m4: Updated dmalloc site information.
624
625 1999-05-19  Tom Tromey  <tromey@cygnus.com>
626
627         * automake.in (handle_single_transform_list): Push object name
628         without extension onto lang_specific_files.  Fixes
629         specflags4.test.
630
631         * automake.in (handle_single_transform_list): Added missing
632         space.  Fixes specflags.test.
633
634 1999-05-05  Tom Tromey  <tromey@cygnus.com>
635
636         * automake.in: Disabled dependency tracking for Java.
637
638 1999-05-04  Tom Tromey  <tromey@cygnus.com>
639
640         * library.am (@LIBRARY@): Use $(@XLIBRARY@_AR).
641         * automake.in (handle_libraries): Recognize _AR variable.
642
643 1999-04-30  Tom Tromey  <tromey@cygnus.com>
644
645         * automake.in (finish_languages): Always use `-o $@' with
646         libtool.  Define ltcompile and ltlink at outermost scope in
647         function.
648         * libtool.am (.c.lo): Removed.
649
650         * automake.in (finish_languages): Put `.' before extension in
651         suffix list, `.obj' rule, and `.lo' rule.  Look at `-flags', not
652         `-flag'.  From Pavel Roskin.
653
654 1999-04-28  Tom Tromey  <tromey@cygnus.com>
655
656         * automake.in (finish_languages): Fixed scoping of ltcompile and
657         ltlink.  From Pavel Roskin.
658
659 1999-04-27  Tom Tromey  <tromey@cygnus.com>
660
661         * automake.in (read_main_am_file): Don't start macro definition
662         with backslash-newline.  Instead, append newline at the end if
663         required.
664
665         * automake.in (read_am_file): Insert a backslash before a trailing
666         newline.  Fixes pluseq8.test.
667
668         * automake.in (MACRO_PATTERN): Allow digits and `_' to start a
669         macro name.
670         (check_canonical_spelling): Don't insert `AM' before macro name
671         (reverts Alexandre's 1999-04-27 patch).
672         * automake.texi: Reverted documentation change for `AM' patch.
673
674         * automake.in (handle_lib_objects_cond): Prefer `$1' over `\1'.
675         Minor rewrite for clarity.
676         (check_canonical_spelling): Prefer `$1' over `\1'.
677
678         * depend2.am (@OBJ@): Renamed.  Use @SOURCE@, @COMPILE@.  Always
679         use `-o $@'.
680         (@LTOBJ@): Likewise.
681         * automake.in (handle_single_transform_list): Don't print rule if
682         doing dependency tracking and the file's language supports it.
683         (initialize_per_input): Initialize lang_specific_files.
684         (add_depend2): New function.
685         (handle_dependencies): Use it.
686
687         * automake.in (lang_ppf77_finish): Use lang_f77_finish.
688         ratfor compiler name is `RCOMPILE'.  ppf77 compiler name changed
689         to `PPF77COMPILE' to allow use of f77 and ppf77 in the same
690         directory.
691         (lang_ratfor_finish): Use lang_f77_finish.
692
693         * compile.am (NOTDEPEND.c.o): Removed.
694         (OBJEXT.c.obj): Likewise.
695         * automake.in: Added `flags' attribute to all relevant languages.
696         (handle_single_transform_list): Handle per-derived-object flags.
697         Changed interface and all callers.
698         (handle_built_sources): Don't call handle_single_transform_list.
699         Added `compile' and `compiler-name' attribute to all relevant
700         languages.
701         (finish_languages): Define compiler variables here.
702         (lang_cxx_finish): Don't call define_compiler_variable.  Don't
703         define flag variable or .o rules.  Don't add to @suffixes.
704         (lang_f77_finish): Likewise.
705         (lang_ppf77_finish): Likewise.
706         (lang_objc_finish): Likewise.
707         (lang_java_finish): Likewise.
708         (finish_languages): Define flag variable here.
709         Added `output-arg' attribute to all relevant languages.
710         (finish_languages): Define `.o' rules here.
711         (finish_languages): Put extension on @suffixes.
712         (get_object_extension): Don't transform NOTDEPEND or MINUSO.
713
714 1999-04-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
715
716         * automake.in (initialize_global_constants): Invoke gzip for
717         dist-shar just like in plain dist, i.e., pass it GZIP_ENV and -c.
718
719         * automake.in (initialize_global_constants): Remove zip file
720         before re-creating it.
721         Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
722
723         * texinfos.am (uninstall-info): Look for info file in srcdir, just
724         like in install-info-am.
725         Reported by Tudor Hulubei <tudor@cs.unh.edu>
726
727         * automake.in (handle_lib_objects_cond): \Q doesn't work either.
728         Let's use the good ol' substitution, then.
729         Reported by Russ Allbery <rra@stanford.edu>
730
731         * automake.in (check_canonical_spelling): Insert AM before names
732         starting with non-letters.
733
734         * automake.texi: Document it.
735
736 1999-04-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
737
738         * automake.in (handle_lib_objects_cond): Do not use quotemeta, it
739         doesn't work on perl4.  Maybe \Q and \E do.
740
741 1999-04-24  Tom Tromey  <tromey@cygnus.com>
742
743         * automake.in: Treat `.zip' and `.jar' files as Java.
744
745         * automake.in (generate_makefile): Define `subdir' after reading
746         .am file.
747         (read_main_am_file): Give programming error if variable defined
748         before invocation.
749
750 1999-04-22  Tom Tromey  <tromey@cygnus.com>
751
752         * automake.in (generate_makefile): Define `subdir' variable.
753         (handle_dist): Don't define `subdir'.
754
755         * automake.in (handle_texinfo): Change numbering scheme for
756         stamp-vti files, to avoid problems with DOS.
757         From Michel de Ruiter.
758
759         * automake.texi: Don't mention AM_FUNC_MKTIME.
760         * aclocal.in (obsolete_macros): Mention AM_FUNC_MKTIME.
761         * automake.in (scan_one_configure_file): Recognize
762         AC_FUNC_MKTIME, not AM_FUNC_MKTIME.
763         (obsolete_macros): Mention AM_FUNC_MKTIME.
764         * m4/Makefile.am (m4data_DATA): Removed mktime.m4.
765         * m4/mktime.m4: Removed.
766
767 1999-04-20  Tom Tromey  <tromey@cygnus.com>
768
769         * automake.texi (Top level): Don't recommend substing SUBDIRS.
770
771 1999-04-20  Brian Ford <ford@vss.fsi.com>
772
773         * scripts.am: Change else if's to elif.
774
775 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
776
777         * automake.in (handle_lib_objects_cond): Only require the source
778         of a LIBOBJ if it's not in BUILT_SOURCES.
779         Reported by Erez Zadok.
780
781 1999-04-19  Tom Tromey  <tromey@cygnus.com>
782
783         * automake.in: Treat `.class' files as Java source.
784         (lang_java_finish): Handle `.class' files.
785
786 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
787
788         * m4/lispdir.m4: Match only `/(share|lib)/x?emacs/site-lisp/*$'.
789
790         * m4/lispdir.m4: Do not override lispdir if it's already defined.
791         Run some emacs-lisp to find out the site-lisp directory, but
792         relocate it into prefix.
793
794 1999-04-17  Paul Eggert  <eggert@twinsun.com>
795
796         * m4/mktime.m4 (bigtime_test, main): Move alarm from
797         bigtime_test to main, since Solaris 7 (64-bit) mktime loops
798         even outside of bigtime_test.  Use a time limit of 60 seconds
799         for the whole test, not 10 seconds per iteration.
800
801 1999-04-17  Erez Zadok  <ezk@cs.columbia.edu>
802
803         * automake.in: Create stamps for headers in appropriate
804         directories, even if the input file lives in a different place.
805         * remake-hdr.am: Likewise.
806
807 1999-04-16  Tom Tromey  <tromey@cygnus.com>
808
809         From Brian Ford:
810         * progs.am (install-@DIR@PROGRAMS, uninstall-@DIR@PROGRAMS):
811         Invoke `sed' only once per program.
812         * scripts.am (install-@DIR@SCRIPTS, uninstall-@DIR@SCRIPTS):
813         Invoke `sed' only once per program.
814
815 1999-04-13  Tom Tromey  <tromey@cygnus.com>
816
817         * automake.in (handle_subdirs): Make `install-recursive' phony.
818         From Michel de Ruiter.
819
820         * automake.in (handle_ltlibraries): Added missing `check'.
821
822 1999-04-12  Tom Tromey  <tromey@cygnus.com>
823
824         * ansi2knr.c: New version from Pavel Roskin (via ansi2knr.c
825         maintainer).
826
827 1999-04-11  Tom Tromey  <tromey@cygnus.com>
828
829         * automake.in (handle_dist): Use AMTAR.
830         (initialize_global_constants): Likewise.
831         * m4/init.m4 (AM_INIT_AUTOMAKE): Use AMTAR, not TAR.
832
833         * automake.in (lang_sub_obj): New function.
834         (lang_cxx_rewrite): Use it.
835         (lang_asm_rewrite): Likewise.
836         (lang_objc_rewrite): Likewise.
837         (lang_cxx_finish): Add `-o $@' to all C++ rules.
838         (lang_asm_finish): Add `-o' to suffix rules when appropriate.
839         (lang_objc_finish): Add `-o $@' to all ObjC rules.
840         (lang_java_finish): Likewise.
841
842         * automake.in: Only register `asm' once.
843         (lang_asm_finish): Put assembly suffixes on @suffixes.
844
845         * libtool.am (.s.lo): Removed.
846         (.S.lo): Likewise.
847         * automake.in (lang_asm_finish): Handle libtool.
848
849         * libtool.am (.c.o): Always pass -c to libtool.
850
851         * automake.in (lang_yacc_rewrite): Handle sources in subdirs.
852         (lang_yaccxx_rewrite): Likewise.
853         (lang_lex_rewrite): Likewise.
854         (lang_lexxx_rewrite): Likewise.
855
856         Assembly code no longer included by default:
857         * compile.am (.s.o): Removed.
858         (.S.o): Likewise.
859         * automake.in: Register `asm' language.
860         (lang_asm_finish): Generate suffix rules for assembly.
861         (get_object_extension): Don't add `.s' or `.S' to suffix list.
862
863         * automake.in (get_object_extension): Substitute @MINUSO@ when
864         including compile.am.
865         * compile.am (.c.o): Added @MINUSO@.
866         (.c.obj): Likewise.
867
868         First cut at allowing objects in subdirectories:
869         * m4/Makefile.am (m4data_DATA): Added minuso.m4.
870         * Makefile.am (dist_script_DATA): Added compile.
871         * m4/minuso.m4: New file.
872         * automake.in (initialize_global_constants): Added compile to
873         common_files.
874         (seen_cc_c_o): New global.
875         (scan_one_configure_file): Set it when AM_PROG_CC_C_O seen.
876         (handle_options): Recognize `subdir-objects' option.
877         (lang_c_rewrite): Added directory argument.
878         (lang_yacc_rewrite): Likewise.
879         (lang_yaccxx_rewrite): Likewise.
880         (lang_lex_rewrite): Likewise.
881         (lang_lexxx_rewrite): Likewise.
882         (handle_single_transform_list): Pass directory to _rewrite
883         function.  Generate dependencies for dirstamp files for each .o;
884         it is just the rules we want to create once.
885         (lang_c_rewrite): Handle `subdir-objects' option.
886         (lang_c_rewrite): Require `compile' program.
887         * compile: New file.
888
889         * automake.in (initialize_per_input): Initialize %directory_map.
890         (handle_single_transform_list): Only create .dirstamp rules once
891         per directory.
892
893         * m4/gcj.m4 (AM_PROG_GCJ): Use AC_CHECK_PROGS, not AC_CHECK_PROG.
894
895         Fix for confh.test:
896         * automake.in (configure_input_files): New global.
897         (scan_configure): Set it.
898         (handle_configure): Use configure_input_files when determining
899         which subdirs have a Makefile.am.  Fixes confh.test.
900         (handle_configure): Only recognize acconfig.h in top srcdir.
901
902 1999-04-10  Tom Tromey  <tromey@cygnus.com>
903
904         * depend2.am (%.o): Use `$(*D)/$(*F)', not just `$(*F)'.
905         (%.lo): Likewise.
906
907         * automake.in (am_install_var): Remove redundancies from the
908         result.  Fixes test cond8.test.
909
910         * automake.in (handle_single_transform_list): Handle dependency
911         tracking when files are created in subdirs.  Error if object in
912         subdir has `..' component.
913
914         * automake.in (initialize_global_constants): Use $(TAR), not tar.
915
916         * automake.in (handle_ltlibraries): Allow check_LTLIBRARIES.
917
918         * automake.in (lang_yacc_finish): Added missing `&'.
919
920 1999-04-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
921
922         * automake.in (handle_configure): Replace multiple occurrences of
923         @STAMP@ in the same line; completes the patch for remake-hdr.am
924         below.
925
926         * automake.in (handle_dependencies): Fix test for `autodep'
927         support.
928
929         * automake.in (handle_source_transform): Add a pfx to used_pfx
930         only if it's conditional or non-empty, to reduce the number of
931         empty variables.  Emit _OBJECS variable based on program name if
932         no SOURCES were explicitly specified.
933
934         * remake-hdr.am: Create the stamp file before the header file,
935         and just rename it after, so that the timestamps will be correct.
936         Reported by Marc Horowitz <marc@mit.edu>
937
938         * automake.in (lang_yacc_finish): Generate and dist a `.h' for a
939         `.y' iff YFLAGS or AM_YFLAGS contain `-d'.
940         Reported by Jim Meyering <meyering@ascend.com>
941
942         * automake.in (lang_yacc_finish): $hname must not contain a `.'.
943
944 1999-04-10  Tom Tromey  <tromey@cygnus.com>
945
946         * Makefile.am (EXTRA_DIST): New macro.
947         * ChangeLog.1996, ChangeLog.1998: New files.
948
949 1999-04-09  Tom Tromey  <tromey@cygnus.com>
950
951         * automake.in (handle_source_transform): Handle dist and nodist
952         prefixes.
953         (initialize_per_input): Initialize dist_sources.
954         (check_libobjs_sources): Handle dist and nodist prefixes.
955         (generate_makefile): Define DIST_SOURCES.
956         * dist-vars.am (DISTFILES): Reference DIST_SOURCES, not SOURCES.
957
958         * automake.texi (Macros): Mention AM_PROG_GCJ.
959         (Java Support): New node.
960         (Dist): Documented dist_ and nodist_ prefixes.
961
962         * m4/gcj.m4 (AM_PROG_GCJ): Renamed from AC_PROG_GCJ.
963
964         * automake.in (lang_java_finish): Generate .lo rule for `.java'
965         files, not `.gcj' files.
966
967         * m4/gcj.m4: New file.
968         * m4/Makefile.am (m4data_DATA): Added gcj.m4.
969
970         * automake.in: Register the `java' language.
971         (resolve_linker): Handle GCJLINK.
972         (lang_java_rewrite): New function.
973         (LANG_IGNORE, LANG_PROCESS, LANG_SUBDIR): New constants.
974         (lang_c_rewrite): Use new constants.
975         (lang_cxx_rewrite): Likewise.
976         (lang_header_rewrite): Likewise.
977         (lang_yacc_rewrite): Likewise.
978         (lang_yaccxx_rewrite): Likewise.
979         (lang_lex_rewrite): Likewise.
980         (lang_lexxx_rewrite): Likewise.
981         (lang_asm_rewrite): Likewise.
982         (lang_f77_rewrite): Likewise.
983         (lang_ppf77_rewrite): Likewise.
984         (lang_ratfor_rewrite): Likewise.
985         (lang_objc_rewrite): Likewise.
986         (handle_single_transform_list): Likewise.  Handle LANG_SUBDIR
987         return from rewrite function.
988         (lang_java_finish): New function.
989         (register_language): Changed interface and all calls.  Added
990         `autodep' settings to various languages.
991         (handle_dependencies): Use `autodep' property of language when
992         including dependency-tracking code.
993
994 1999-04-07  Tom Tromey  <tromey@cygnus.com>
995
996         * automake.in (handle_texinfo): Indentation fixes.
997
998 1999-04-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
999
1000         * automake.in (value_to_list): Skip *only* trailing backslashes.
1001
1002 1999-04-07  Pavel Roskin  <pavel_roskin@geocities.com>
1003
1004         * automake.in (value_to_list): Skip trailing backslashes.
1005
1006 1999-04-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
1007
1008         * automake.in (handle_texinfo): Add texinfo.tex to config_aux_dir
1009         when appropriate.
1010         Reported by Per Cederqvist <ceder@lysator.liu.se>
1011         (handle_texinfo): Do not define texinfo_tex='.', use
1012         '$(srcdir)/texinfo.tex' instead; the directory name will be
1013         properly extracted.
1014         (require_conf_file_with_line): Fixed typo.
1015
1016 1999-04-03  Raja R Harinath  <harinath@cs.umn.edu>
1017
1018         * automake.in (handle_tests): Test `dir=./' before `dir=', so that
1019         we do not depend on PATH starting with `.'.
1020
1021 1999-03-31  Tom Tromey  <tromey@cygnus.com>
1022
1023         * automake.in (quote_cond_val): Quote \n.
1024         (unquote_cond_val): Unquote \n.
1025         (read_am_file): If line ends with `\', preserve it and add a
1026         newline.
1027         (read_main_am_file): In conditional case, put conditional text at
1028         beginning of each generated line.
1029
1030 1999-03-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
1031
1032         * automake.in (handle_tests): support XFAIL_TEST
1033         * automake.texi: document it
1034
1035 1999-04-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
1036
1037         * End of merge from trunk.
1038
1039 1999-04-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
1040
1041         * automake.in (cmdline_use_dependencies): Reintroduce it.
1042         (--ignore-deps): Set cmdline_use_dependencies again.
1043         (handle_dependencies): If use_dependencies is not set, define
1044         depcomp as empty.
1045         (handle_configure): Pass --ignore-deps to generated Makefile.ins.
1046         (scan_configure): Do not require depcomp when ignoring
1047         dependencies.
1048         (initialize_global_constants): Reintroduce --ignore-deps.
1049
1050 1999-04-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
1051
1052         * depcomp: New file.
1053         * Makefile.am (dist_script_DATA): Added depcomp.
1054         * automake.in (cmdline_use_dependencies, omit_dependencies,
1055         dependency_macros): Removed.
1056         (--ignore-deps): Just ignore.
1057         (handle_single_transform_list, dep_files): Named dependency files
1058         as \$(DEPDIR)/$base.P$obj
1059         (handle_lib_objects_cond): Likewise.
1060         (generate_dependency_code): Do not check for AM_*_DEPENDENCIES.
1061         (scan_one_configure_file): Likewise.
1062         (handle_dependencies): Always enable auto-dep.  Define `depcomp'.
1063         Ignore OMIT_DEPENDENCIES.
1064         (handle_configure): Do not pass --ignore-deps.
1065         (scan_configure): Require `depcomp'.
1066         (initialize_global_constants): Make `depcomp' common.  Remove
1067         `--ignore-deps' from usage.
1068         (get_object_extension): No more NOTDEPEND in compile nor libtool.
1069         * compile.am: Remove rules for .c.o and .c.obj
1070         * depend.am (distclean-depend): Wipe out $(DEPDIR)
1071         * depend2.am (@FPFX@DEPMODE): Define from config.status.
1072         Use it and depcomp in suffix rules.
1073         * libtool.m4: Likewise.
1074         * m4/ccdepend.m4, m4/cxxdepend.m4: Removed.
1075         * m4/depvars.m4, m4/objcdepend.m4: Likewise.
1076         * m4/Makefile.am (dist_m4data_DATA): Likewise.
1077         * m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Extract DEPDIR
1078         from the Makefile and subst it in deps.  Report creation of deps
1079         files (for now).  Replace $U with `_' and the empty string.  Write
1080         a comment to each created file.
1081         * m4/depend.m4 (AM_SET_DEPDIR): Select a valid deps dir name.
1082         (AM_DEPENDENCIES): Accept CC, CXX and OBJC.  Just determine the
1083         dependency mode and AC_SUBST [$1]DEPMODE.
1084         * m4/init.m4 (AM_INIT_AUTOMAKE): Automatically call
1085         AM_DEPENDENCIES for CC and CXX, if the corresponding AC_PROG
1086         appears in configure.in, before or after AM_INIT_AUTOMAKE.
1087
1088 1999-04-02  Raja R Harinath  <harinath@cs.umn.edu>
1089
1090         * depout.m4: Fix sed expression for extracting `dirpart'.
1091
1092 1999-03-29  Tom Tromey  <tromey@cygnus.com>
1093
1094         * depend2.am (DEP_@FPFX@COMPILE): Use `!=' and not `-ne'.
1095
1096         * compile.am (.c.obj): Also disabled when dependency tracking
1097         enabled.
1098         * depend2.am (@EXT@.obj): New target.
1099         * automake.in (get_object_extension): Added explanatory comment.
1100         (generate_dependency_code): Handle $seen_objext.
1101
1102         * depend.am: Removed obsolete comment.
1103         * depend2.am: Minor formatting fix.
1104
1105 1999-03-28  Tom Tromey  <tromey@cygnus.com>
1106
1107         * m4/Makefile.am (dist_m4data_DATA): Renamed, and added new
1108         files.
1109         (EXTRA_DIST): Removed.
1110         * automake.in (dependency_macros): New global.
1111         (scan_one_configure_file): Recognize new dependency tracking
1112         macros, and define new resulting configure variables.
1113         (generate_dependency_code): New sub.
1114         (handle_dependencies): Use it.
1115         * depend2.am (DEP_@FPFX@COMPILE): New macro.
1116         (@EXT@.o): Use it.
1117         (@EXT@.lo): Likewise.
1118         * m4/depvars.m4: New file.
1119         * m4/objcdepend.m4: New file.
1120         * m4/cxxdepend.m4: New file.
1121         * m4/init.m4: Moved dependency handling code into depout.m4.
1122         * m4/depout.m4: New file.
1123         * m4/ccdepend.m4: New file.
1124         * m4/depend.m4: New file.
1125
1126         * depend2.am (@EXT@.o): Renamed to be old-style suffix pattern.
1127         (@EXT@.lo): Likewise.
1128         * m4/init.m4 (AM_INIT_AUTOMAKE): Don't create `.deps/.P'; it is no
1129         longer needed.
1130
1131         * m4/init.m4 (AM_INIT_AUTOMAKE): Add code to config.status which
1132         will create the required .P files for dependency tracking.
1133         * automake.in (scan_dependency_file): Removed.
1134         (handle_dependencies): Never call scan_dependency_file.
1135         (generate_deps): Removed.
1136         (parse_arguments): Don't recognize --generate-deps, --build-dir,
1137         --srcdir-name, or --include-deps.  Do recognize --ignore-deps.
1138         (srcdir_name): Removed.
1139         (build_directory): Removed.
1140         (initialize_global_constants): Changed $USAGE to reflect argument
1141         parsing changes.
1142         (handle_dist_worker): Never run automake in `dist' rule.
1143         (handle_configure): Use --ignore-deps, not --include-deps.
1144         * depend.am (DEPS_MAGIC): Removed.
1145         (DEP_FILES): Unconditionally include.
1146
1147 1999-03-27  Tom Tromey  <tromey@cygnus.com>
1148
1149         * automake.in (saw_sources_p): Correctly count header extensions
1150         seen.
1151         (handle_headers): Fixed order of arguments to am_install_var.
1152
1153         * automake.in (am_install_var): Don't error if EXTRA_foo is
1154         defined uselessly.
1155
1156         * scripts.am (install-@DIR@SCRIPTS): Use NDIR when appropriate.
1157         (uninstall-@DIR@SCRIPTS): Likewise.
1158         * progs.am (install-@DIR@PROGRAMS): Use NDIR when appropriate.
1159         (uninstall-@DIR@PROGRAMS): Likewise.
1160         * ltlib.am (install-@DIR@LTLIBRARIES): Use NDIR when appropriate.
1161         (uninstall-@DIR@LTLIBRARIES): Likewise.
1162         * lisp.am (install-@DIR@LISP): Use NDIR when appropriate.
1163         (uninstall-@DIR@LISP): Likewise.
1164         * libs.am (install-@DIR@LIBRARIES): Use NDIR when appropriate.
1165         (uninstall-@DIR@LIBRARIES): Likewise.
1166         * java.am (install-@DIR@JAVA): Use NDIR when appropriate.
1167         (uninstall-@DIR@JAVA): Likewise.
1168         * header.am (install-@DIR@HEADERS): Use NDIR when appropriate.
1169         (uninstall-@DIR@HEADERS): Likewise.
1170         * data.am (install-@DIR@DATA): Use NDIR when appropriate.
1171         (uninstall-@DIR@DATA): Likewise.
1172         * Makefile.in: Rebuilt.
1173         * Makefile.am (dist_pkgdata_DATA): Renamed.
1174         (EXTRA_DIST): Removed.
1175         (install-data-hook): Added POST_INSTALL; print commands as they
1176         are run; respect DESTDIR.
1177         * dist-vars.am (DISTFILES): Removed $(HEADERS).
1178         * automake.in (am_install_var): Accept `-candist' and
1179         `-defaultdist' options.  Handle `dist_' and `nodist_' prefixes.
1180         (am_primary_prefixes): Added can_dist argument.  Recognize `dist_'
1181         and `nodist_' prefixes.
1182         (handle_scripts): Pass -candist to am_install_var.
1183         (handle_data): Pass -defaultdist to am_install_var.
1184         (handle_headers): Likewise.
1185         (handle_emacs_lisp): Pass -candist to am_install_var.
1186         (handle_java): Pass -candist to am_install_var.
1187
1188 1999-03-26  Tom Tromey  <tromey@cygnus.com>
1189
1190         * m4/init.m4: Fixed typo when invoking SHELL.
1191
1192         * automake.in (lang_yacc_finish): Always use `.h' as suffix for
1193         yacc header file.  From Ralf Corsepius.
1194
1195         * Makefile.in: Rebuilt.
1196         * Makefile.am: Updated to reflect removal of TAR subst.
1197         * automake.texi (Options): Document dist-bzip2.
1198         * automake.in (TAR): Removed global.
1199         (initialize_global_constants): Changed `dist' to use pipe with
1200         gzip; work with non-GNU tar.
1201         (handle_dist): Handle non-GNU tar.  Don't define TAR.
1202         (initialize_global_constants): Added `dist-bzip2' entry.
1203         (handle_options): Recognize dist-bzip2 option.
1204         (handle_dist): Likewise.
1205         * configure: Rebuilt.
1206         * configure.in: Don't check for tar.
1207         * m4/init.m4 (AM_INIT_AUTOMAKE): Check for `tar'.  Substitute
1208         AMTARFLAGS.
1209
1210         * automake.in (am_install_var): Removed obsolete comment.
1211
1212         * texinfos.am (uninstall-info): Don't print loop but instead print
1213         commands.  Simplified pre-uninstall loop.
1214         * scripts.am (uninstall-@DIR@SCRIPTS): Don't print loop but
1215         instead print commands.
1216         * progs.am (uninstall-@DIR@PROGRAMS): Don't print loop but instead
1217         print commands.
1218         * ltlib.am (uninstall-@DIR@LTLIBRARIES): Don't print loop but
1219         instead print commands.
1220         * lisp.am (install-@DIR@LISP): Strip subdir from file name.
1221         (uninstall-@DIR@LISP): Likewise.  Also, don't print loop but
1222         instead print commands.
1223         * libs.am (uninstall-@DIR@LIBRARIES): Don't print loop but instead
1224         print commands.
1225         * java.am (uninstall-@DIR@JAVA): Don't print loop but instead
1226         print commands.
1227         * header.am (install-@DIR@HEADERS): Strip subdir from file name.
1228         (uninstall-@DIR@HEADERS): Likewise.  Also, don't print loop but
1229         instead print commands.
1230         * data.am (install-@DIR@DATA): Strip subdir from file name.
1231         (uninstall-@DIR@DATA): Likewise.  Also, don't print loop but
1232         instead print commands.
1233
1234         * automake.in (handle_merge_targets): `install-strip' is a phony
1235         target.  From Michel de Ruiter.
1236
1237 1999-03-25  Tom Tromey  <tromey@cygnus.com>
1238
1239         * automake.in (define_compiler_variable): Don't define variable
1240         with trailing `_'.
1241
1242 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
1243
1244         * automake.in (LDADD): accept -dlopen and -dlpreopen here
1245         * automake.texi: ditto
1246
1247 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
1248
1249         * automake.in (TESTS): make from Solaris 7/x86 loses if srcdir
1250         is absolute and != objdir.  dir="" or "$(srcdir)/" fixes it
1251
1252 1999-03-24  Tom Tromey  <tromey@cygnus.com>
1253
1254         * automake.in (define_compiler_variable): New sub.
1255         (finish_languages): Use it.
1256         (lang_cxx_finish): Likewise.
1257         (lang_f77_finish): Likewise.
1258         (lang_ppf77_finish): Likewise.
1259         (lang_ratfor_finish): Likewise.
1260         (lang_objc_finish): Likewise.
1261
1262 1999-03-23  Tom Tromey  <tromey@cygnus.com>
1263
1264         * progs.am (install-@DIR@PROGRAMS): Use `-e' instead of multiple
1265         sed invocations.  From Elrond.
1266         (uninstall-@DIR@PROGRAMS): Likewise.
1267
1268         * automake.in (lang_lex_finish): Rewrite `l', not `y', to `c'.
1269         From Ralf Corsepius.
1270
1271 1999-02-01  Thomas Tanner  <tanner@gmx.de>
1272
1273         * automake.in: accept both A(C|M)_PROG_LIBTOOL, print a
1274         warning when AM_PROG_LIBTOOL was found
1275         * automake.texi: renamed AM_PROG_LIBTOOL to AC_PROG_LIBTOOL
1276
1277 1999-03-22  Tom Tromey  <tromey@cygnus.com>
1278
1279         Made `+=' more robust.  Fixes pluseq6.test and pluseq7.test.
1280         * automake.in (define_standard_variables): New sub.
1281         (read_main_am_file): Use two passes to scan standard variables.
1282         (read_am_file): Don't special-case configure variables with `+='.
1283         (initialize_per_input): Initialize %var_was_plus_eq.
1284         (read_am_file): Set var_was_plus_eq element correctly.
1285         (define_variable): Give error if variable assigned with `+=' is
1286         internally defined.
1287         (initialize_per_input): Initialize %am_var_defs.
1288         (file_contents_with_transform): Set element in %am_var_defs.
1289         (read_am_file): Use %am_var_defs.
1290
1291 1999-03-21  Tom Tromey  <tromey@cygnus.com>
1292
1293         * automake.in (initialize_per_input): Initialize %object_map.
1294         (handle_single_transform_list): Allow source files in
1295         subdirectories.
1296
1297 1999-03-21  Jim Meyering  <meyering@na-net.ornl.gov>
1298
1299         * automake.in (handle_dist): Add missing newline after the first
1300         semicolon.
1301
1302 1999-03-11  Tom Tromey  <tromey@cygnus.com>
1303
1304         * m4/error.m4, m4/mktime.m4, m4/obstack.m4, m4/regex.m4,
1305         m4/strtod.m4: Use $ac_objext, not `.o'.  From Jim Meyering.
1306
1307         From Jim Meyering:
1308         * automake.in (handle_dist): Add `;\' to end of distcheck-hook
1309         line.
1310         (scan_one_configure_file): In LIBOBJS, recognize `$ac_objext' as
1311         legitimate ending.  Fixes libobj9.test.
1312
1313         From Ralf Corsepius.  Fixes lex3.test.
1314         * automake.in (lang_yacc_finish): Include `.' in name pushed onto
1315         maintainer-clean list.
1316         (lang_lex_finish): Likewise.
1317
1318 1999-03-02  Tom Tromey  <tromey@cygnus.com>
1319
1320         * subdirs.am (maintainer-clean-recursive): Changed "&&" into "if"
1321         construct to work around FreeBSD make/sh problem.  From Rich Wales.
1322
1323 1999-03-01  Tom Tromey  <tromey@cygnus.com>
1324
1325         Fixes from Pavel Roskin:
1326         * automake.in (variable_conditions_sub): Sort list passed to
1327         variable_conditions_permutations.
1328         (variable_conditions): Sort list before returning.
1329
1330 1999-02-27  Tom Tromey  <tromey@cygnus.com>
1331
1332         * automake.in (lang_extensions): New sub.
1333         (handle_dependencies): Use it.
1334         (cxx_extensions): Removed.
1335         (lang_cxx_finish): Use lang_extensions.
1336         (f77_extensions): Removed.
1337         (lang_f77_finish): Use lang_extensions.
1338         (objc_extensions): Removed.
1339         (lang_ppf77_finish): Put `.' before extension.  Fixes ext.test.
1340         Report from Dave Morrison.
1341         (lang_ratfor_finish): Likewise.
1342
1343 1999-02-26  Tom Tromey  <tromey@cygnus.com>
1344
1345         * automake.in (finish_languages): Added AM_LDFLAGS.
1346         (lang_cxx_finish): Likewise.
1347         (lang_f77_finish): Likewise.
1348         (lang_ppf77_finish): Likewise.
1349         (lang_ratfor_finish): Likewise.
1350         (lang_objc_finish): Likewise.
1351
1352 1999-02-11  Tom Tromey  <tromey@cygnus.com>
1353
1354         * aclocal.in (obsolete_macros): Copied from automake.in.
1355         (obsolete_rx): Use only keys of obsolete_macros.
1356         (scan_configure): Report replacement macro for an obsolete macro.
1357         * automake.in (obsolete_macros): Added ud_GNU_GETTEXT.
1358
1359         * automake.in (obsolete_macros): Corrected typo in AM_EXEEXT
1360         entry.  Fixes obsolete2.test.
1361
1362         * automake.in (obsolete_macros): Use empty string to indicate no
1363         substitution.
1364         (scan_one_configure_file): Likewise.
1365
1366 1999-02-07  Paul Eggert  <eggert@twinsun.com>
1367
1368         * m4/ccstdc.m4 (AM_PROG_CC_STDC): Prefer -Ae to -Aa
1369         -D_HPUX_SOURCE, since -Ae allows `long long' and this is
1370         needed by some programs.
1371
1372 1999-02-10  Tom Tromey  <tromey@cygnus.com>
1373
1374         * automake.in (handle_texinfo): Added `pgs' to list of
1375         extensions.  From NISHIDA Keisuke.
1376
1377 1999-02-04  Akim Demaille  <demaille@inf.enst.fr>
1378
1379         * automake.in (handle_texinfo): remove texinfo.tex from
1380         TEXINFODIR.
1381
1382 1999-02-02  Tom Tromey  <tromey@cygnus.com>
1383
1384         * automake.in (handle_merge_targets): Use INSTALL_STRIP_FLAG.
1385         * progs.am (install-@DIR@PROGRAMS): Added INSTALL_STRIP_FLAG.
1386         * header-vars.am (INSTALL_PROGRAM): Removed
1387         AM_INSTALL_PROGRAM_FLAGS.
1388         (INSTALL_STRIP_FLAG): New macro.
1389
1390         * automake.in: Handle `ypp' as C++ yacc source and `lpp' as C++
1391         lex source.
1392         (lang_yacc_finish): Likewise.
1393         (lang_lex_finish): Likewise.
1394
1395 1999-02-01  Tom Tromey  <tromey@cygnus.com>
1396
1397         * automake.in (handle_dist_worker): Correctly find find in $$d,
1398         not $$.  From Bill Davidson.
1399
1400         * automake.in (finish_languages): Use "&", not "do".  From Pavel
1401         Roskin.
1402         (handle_single_transform_list): Likewise.
1403
1404 1999-01-29  Tom Tromey  <tromey@cygnus.com>
1405
1406         * automake.in (handle_configure): Removed unused variable.  From
1407         Pavel Roskin.
1408
1409         * ansi2knr.c: New version from L. Peter Deutsch.
1410
1411 1999-01-22  Tom Tromey  <tromey@cygnus.com>
1412
1413         * automake.in (require_file_internal): Correctly examine return
1414         value of `system'.  From Andris Pavenis.  Fixes copy.test.
1415
1416         * m4/init.m4 (AM_INIT_AUTOMAKE): Require autoconf 2.13.
1417
1418         * automake.in (lang_ppf77_rewrite): New function.  From Jochen
1419         Kuepper.  Fixes ppf77.test.
1420         (lang_ratfor_rewrite): New function
1421
1422         * automake.in (handle_configure): Use `&' before sub calls (Perl 4
1423         fix).  From Erez Zadok.
1424
1425 1999-01-15  Tom Tromey  <tromey@cygnus.com>
1426
1427         * configure.in: Version 1.4a (oops).
1428
1429         * configure.in: Updated version to 1.5a.
1430
1431 1999-01-14  Tom Tromey  <tromey@cygnus.com>
1432
1433         * automake.in (handle_configure): Compute $header_dir based on
1434         $one_name, not $one_hdr.  Reported by Erez Zadok.  Fixes
1435         confh2.test.
1436         (handle_configure): Compute relative path to input header
1437         correctly in all cases.
1438
1439         * automake.in (handle_tests): Avoid error messages from dejagnu
1440         test rules.  From Karl Heuer.
1441
1442         * automake.in (handle_texinfo): Add `/' to end of $conf_dir.
1443
1444         * Makefile.am (AUTOMAKE_OPTIONS): Added `1.4'.
1445
1446         * texi-vers.am ($(srcdir)/stamp-@VTI@): Find @TEXI@ in srcdir.
1447         From Alexandre Oliva and Erez Zadok.
1448
1449         * automake.in (create): Renamed from touch.
1450         (handle_configure): Use create, not touch.
1451
1452         * config.sub, config.guess: New versions from autoconf.
1453
1454         * mkinstalldirs: New version from autoconf.
1455
1456 1999-01-12  Tom Tromey  <tromey@cygnus.com>
1457
1458         * config.sub, config.guess, COPYING, texinfo.tex: New versions
1459         from FSF.
1460
1461 1999-01-11  Marcus G. Daniels  <mgd@chama.santafe.edu>
1462
1463         * automake.in (PATH_PATTERN): New variable:
1464         (INCLUDE_PATTERN): Use it.  Ignore all include commands using
1465         symbols besides $(top_srcdir) and $(srcdir).
1466
1467 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
1468
1469         * automake.in (handle_dist_worker): avoid failure in `make dist'
1470         if last file is a builddir-only file
1471
1472 1999-01-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
1473
1474         * missing (autoheader): `s' was missing from sed script; grr
1475
1476 1999-01-11  Tom Tromey  <tromey@cygnus.com>
1477
1478         * remake-hdr.am (@STAMP@): Reverted timestamp change.
1479         ($(srcdir)/@STAMP@.in): Likewise.
1480
1481 1999-01-10  Tom Tromey  <tromey@cygnus.com>
1482
1483         * Makefile.am (scriptdir): New macro.
1484         (script_DATA): Likewise.
1485         (install-data-hook): Use them.
1486         (EXTRA_DIST): Added script_DATA.
1487         (installcheck-local): Use script_DATA.
1488
1489         * Makefile.am (pkgdata_DATA): Removed duplicate definition.
1490
1491 1999-01-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
1492
1493         * missing (autoheader): accept multiple header files
1494         (automake): simplify sed processing
1495
1496 1999-01-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
1497
1498         * automake.in (handle_configure, stamp_dir): create only one stamp
1499         file per header, instead of one in the top-level directory and one
1500         in the directory that contains the header.
1501
1502 1999-01-10  Tom Tromey  <tromey@cygnus.com>
1503
1504         * automake.in (lang_objc_finish): Formatting fix.
1505
1506         * automake.in (objc_extensions): New sub.
1507         (handle_dependencies): Only generate dependency-tracking code for
1508         ObjC when ObjC source seen.