Tom Tromey [Wed, 30 May 2001 02:02:50 +0000 (02:02 +0000)]
* lib/am/java.am (class%DIR%.stamp): Use AM_JAVACFLAGS.
Tom Tromey [Tue, 29 May 2001 21:04:18 +0000 (21:04 +0000)]
* automake.texi (A Program): Mention `check' prefix.
(Program and Library Variables): New node.
(Texinfo): Document UPDATED-MONTH, MAKEINFOFLAGS, and
AM_MAKEINFOFLAGS.
(etags): Mention per-program flags.
(Tests): Document AM_RUNTESTFLAGS; added sectioning; more
updates.
Tom Tromey [Tue, 29 May 2001 21:02:13 +0000 (21:02 +0000)]
* lib/am/texinfos.am (.PHONY): Always list uninstall-info-am and
install-info-am.
Tom Tromey [Tue, 29 May 2001 00:28:36 +0000 (00:28 +0000)]
* m4/Makefile.am (MAINT_CHARSET): Removed.
* Makefile.am (MAINT_CHARSET): Removed.
* automake.in (maint_charset, dist_charset): Removed.
(local_maint_charset): Removed.
(initialize_per_input): Don't use maint_charset.
(handle_dist): Don't compute maint_charset or check DIST_CHARSET.
Tom Tromey [Mon, 28 May 2001 23:58:45 +0000 (23:58 +0000)]
* lib/am/texibuild.am (.%SUFFIX%.info): Use MAKEINFOFLAGS and
AM_MAKEINFOFLAGS.
(.%SUFFIX%.dvi): Likewise.
(.%SUFFIX%): Likewise.
Tom Tromey [Sun, 27 May 2001 17:06:35 +0000 (17:06 +0000)]
* automake.in (handle_multilib): Only add multilib support code at
top level.
* lib/am/multilib.am: Handle invocation of *-multi targets
differently for SUBDIRS and non-SUBDIRS Makefiles.
* m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
Only add multilib code when the Makefile in question is actually
rebuilt.
Tom Tromey [Sun, 27 May 2001 16:57:45 +0000 (16:57 +0000)]
* lib/am/dejagnu.am (check-DEJAGNU): Added AM_RUNTESTFLAGS.
Tom Tromey [Sat, 26 May 2001 06:20:19 +0000 (06:20 +0000)]
2001-05-25 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (handle_single_transform_list): Skip unknown
extensions.
Tom Tromey [Fri, 25 May 2001 14:50:30 +0000 (14:50 +0000)]
* m4/init.m4 (AM_INIT_AUTOMAKE): Ignore AM_RUNTESTFLAGS.
Tom Tromey [Thu, 24 May 2001 06:23:20 +0000 (06:23 +0000)]
* automake.in (handle_texinfo_helper): Find mdate-sh in current
directory in some situations.
Tom Tromey [Thu, 24 May 2001 05:58:48 +0000 (05:58 +0000)]
* automake.in (generate_makefile): Better explanation for ansi2knr
fix.
Tom Tromey [Thu, 24 May 2001 05:57:26 +0000 (05:57 +0000)]
2001-05-23 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (handle_languages, handle_single_transform_list):
Skip unknown extensions.
(derive_suffix): Check whether $extension_map{$source_ext}
is undefined, not empty.
Tom Tromey [Thu, 24 May 2001 05:56:06 +0000 (05:56 +0000)]
2001-05-23 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (handle_languages, handle_single_transform_list): Use
language '' for unknown extensions.
(derive_suffix): Check whether $extension_map{$source_ext}
is undefined, not empty.
Tom Tromey [Thu, 24 May 2001 05:50:35 +0000 (05:50 +0000)]
2001-05-23 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (read_am_file): Ignore trailing backslash on
Tom Tromey [Wed, 23 May 2001 01:05:47 +0000 (01:05 +0000)]
2001-05-22 Alexandre Duret-Lutz <duret_g@epita.fr>
* automake.in (ASSIGNMENT_PATTERN): Forbid : and + in variable names.
Akim Demaille [Mon, 21 May 2001 08:31:45 +0000 (08:31 +0000)]
* automake.texi (Macros): Explain the ``AC_PROG_LEX invoked
multiple times'' warning.
Tom Tromey [Sun, 20 May 2001 18:05:06 +0000 (18:05 +0000)]
* configure.in: Updated to 1.4g.
Tom Tromey [Sun, 20 May 2001 17:17:45 +0000 (17:17 +0000)]
* configure.in: Updated to 1.4f.
Tom Tromey [Sun, 20 May 2001 17:10:11 +0000 (17:10 +0000)]
* Makefile.am (EXTRA_DIST): Added ChangeLog.2000.
Tom Tromey [Sun, 20 May 2001 05:59:43 +0000 (05:59 +0000)]
* lib/ansi2knr.c: New version.
* Makefile.am (FETCHFILES): Added ansi2knr.c.
(fetch): Likewise.
Tom Tromey [Sun, 20 May 2001 05:03:32 +0000 (05:03 +0000)]
* config.guess, config.sub: New versions from FSF.
* Makefile.am (fetch): Compare against files in srcdir.
Tom Tromey [Sun, 20 May 2001 04:40:51 +0000 (04:40 +0000)]
For for ansi2knr report from Harlan Stenn:
* automake.in (generate_makefile): Run handle_compile before
handle_languages.
Tom Tromey [Fri, 18 May 2001 17:43:46 +0000 (17:43 +0000)]
* automake.in: Reverted erroneous checkin.
Akim Demaille [Fri, 18 May 2001 17:08:23 +0000 (17:08 +0000)]
* lib/am/texinfos.am (install-info-am, uninstall-info-am): Be robust
to missing `install-info'.
Akim Demaille [Fri, 18 May 2001 14:01:39 +0000 (14:01 +0000)]
Regen.
Tom Tromey [Fri, 18 May 2001 02:20:39 +0000 (02:20 +0000)]
* automake.in (lang_c_finish): Use `rm -f'.
Tom Tromey [Fri, 18 May 2001 02:19:44 +0000 (02:19 +0000)]
* automake.in (lang_c_finish): Remove _.c file if ansi2knr fails.
* tests/Makefile.am (TESTS): Added new file.
* tests/ansi5.test: New file.
Tom Tromey [Fri, 18 May 2001 01:14:53 +0000 (01:14 +0000)]
2001-05-17 Alexandre Duret-Lutz <duret_g@epita.fr>
* lib/am/install.am (install-strip): Set INSTALL_PROGRAM_ENV if
STRIP is not empty.
* m4/strip.m4 (AM_PROG_INSTALL_STRIP): Set INSTALL_STRIP_PROGRAM
to install-sh unconditionally. Don't set INSTALL_STRIP_PROGRAM_ENV.
* automake.texi (Requirements): Document the use of the STRIP
variable in cross-compilation environments.
Tom Tromey [Fri, 18 May 2001 00:00:33 +0000 (00:00 +0000)]
* m4/depend.m4 (AM_DEPENDENCIES): If depcomp doesn't exist, revert
to no dependency tracking.
* tests/Makefile.am (TESTS): Added depcomp2.test.
* tests/depcomp2.test: New file. From Pavel Roskin.
Tom Tromey [Thu, 17 May 2001 18:29:08 +0000 (18:29 +0000)]
* lib/depcomp (aix): Bug fix and simplification from Larry Jones.
Tom Tromey [Thu, 17 May 2001 07:20:34 +0000 (07:20 +0000)]
* lib/depcomp (tru64): New dependency tracking mode.
Tom Tromey [Thu, 17 May 2001 06:56:21 +0000 (06:56 +0000)]
Fix for PR automake/159:
* lib/depcomp (aix): Rewrote.
(sgi): Likewise.
Tom Tromey [Thu, 17 May 2001 06:32:15 +0000 (06:32 +0000)]
Fix for PR automake/174:
* tests/Makefile.am (XFAIL_TESTS): Removed comment3.test.
* automake.in (read_am_file): Warn if `#' is at start of rule.
Tom Tromey [Thu, 17 May 2001 05:31:05 +0000 (05:31 +0000)]
For PR automake/174:
* tests/Makefile.am (TESTS): Added comment3.test.
(XFAIL_TESTS): Likewise.
* tests/comment3.test: New file.
Tom Tromey [Thu, 17 May 2001 04:50:52 +0000 (04:50 +0000)]
Fix for PR automake/175:
* tests/Makefile.am (XFAIL_TESTS): Removed make.test.
* m4/make.m4 (AM_MAKE_INCLUDE): Omit `Entering directory' and
`Leaving directory' messages.
Tom Tromey [Thu, 17 May 2001 03:14:24 +0000 (03:14 +0000)]
For PR automake/175:
* tests/Makefile.am (XFAIL_TESTS): Added make.test.
* tests/make.test: Run test with `make -w'.
Tom Tromey [Thu, 17 May 2001 03:02:38 +0000 (03:02 +0000)]
* tests/Makefile.am (TESTS): Removed maintclean.test.
* lib/am/clean.am (maintainer-clean-generic): Don't remove
Makefile.in.
* lib/am/configure.am (maintainer-clean-am): Removed.
(maintainer-clean-conf): Removed.
* tests/maintclean.test: Removed.
Tom Tromey [Wed, 16 May 2001 05:17:04 +0000 (05:17 +0000)]
Fix for PR automake/177:
* Makefile.am (maintainer-clean): Set perllibdir before invoking
automake or aclocal.
Tom Tromey [Wed, 16 May 2001 04:32:09 +0000 (04:32 +0000)]
Fix for maintclean.test:
* tests/Makefile.am (XFAIL_TESTS): Removed maintclean.test.
* lib/am/clean.am (distclean-generic): Don't remove config.cache
or config.log.
(distclean, maintainer-clean): Moved to...
* lib/am/configure.am: ... here.
(distclean): Remove config.cache and config.log.
(maintainer-clean): Removed.
(maintainer-clean-conf): New target.
(maintainer-clean-am): New target.
Tom Tromey [Wed, 16 May 2001 04:09:50 +0000 (04:09 +0000)]
* tests/Makefile.am (TESTS): Added maintclean.test.
(XFAIL_TESTS): Likewise.
* tests/maintclean.test: New file.
Tom Tromey [Tue, 15 May 2001 18:04:56 +0000 (18:04 +0000)]
Fixes PR automake/175:
* tests/target-cflags.test: Use $needs_gnu_make.
* tests/exsource.test: Use $needs_gnu_make.
* tests/make.test: Require GNU make.
* tests/defs (needs_gnu_make): Compute.
Tom Tromey [Tue, 15 May 2001 03:33:20 +0000 (03:33 +0000)]
* lib/ylwrap: Fixed quoting on regular expression. Fixes
yacc4.test.
Tom Tromey [Tue, 15 May 2001 02:49:51 +0000 (02:49 +0000)]
Fix for texinfo10.test.
* tests/Makefile.am (XFAIL_TESTS): Remove texinfo10.test.
* lib/am/texinfos.am: Use LOCAL-TEXIS liberally.
* automake.in (handle_texinfo_helper): New sub.
(handle_texinfo): Rewrote. Now defines LOCAL-TEXIS.
* tests/texinfo10.test: Added more cases.
Tom Tromey [Tue, 15 May 2001 02:21:54 +0000 (02:21 +0000)]
Fix for yaccvpath.test:
* tests/Makefile.am (XFAIL_TESTS): Removed yaccvpath.test.
* lib/am/distdir.am (distdir): Always look for file in build
directory first.
* lib/ylwrap: Quote the `#line' regular expression.
* lib/am/yacc.am (%YACC_SUFFIX%%C_SUFFIX%): Reverted earlier
change; don't run sed on the generated file.
* tests/yaccvpath.test: Create new parser in srcdir. Added test
to make sure parser will be rebuilt at dist time.
Pavel Roskin [Mon, 14 May 2001 16:15:03 +0000 (16:15 +0000)]
* automake.in ($IGNORE_PATTERN): Allow spaces before comments
beginning with `##'.
* automake.texi (General Operation): Document it.
Akim Demaille [Mon, 14 May 2001 12:25:11 +0000 (12:25 +0000)]
New.
Akim Demaille [Mon, 14 May 2001 12:14:37 +0000 (12:14 +0000)]
Typo.
Akim Demaille [Mon, 14 May 2001 09:39:24 +0000 (09:39 +0000)]
Typo.
Tom Tromey [Mon, 14 May 2001 05:09:31 +0000 (05:09 +0000)]
Reported by Rainer Orth:
* lib/am/distdir.am (?DISTDIR?distdir): Define conditional on
TOPDIR_P.
* tests/Makefile.am (TESTS): Added distname.test.
* tests/distname.test: New file.
Tom Tromey [Mon, 14 May 2001 04:52:44 +0000 (04:52 +0000)]
* Makefile.am (dist_pkgdata_DATA): Removed.
Tom Tromey [Mon, 14 May 2001 04:48:45 +0000 (04:48 +0000)]
2001-05-13 Tom Tromey <tromey@redhat.com>
* tests/defs: Find files to copy in lib/.
* automake.in (perllibdir): Set to Automake directory.
* ansi2knr.c, ansi2knr.1: Removed.
* Makefile.am (dist_am_DATA): Removed.
(amdir): Removed.
(maintainer-check): Look for lib/am/*.am. Expect 28 lines of
diffs.
(scriptdir): Removed.
(dist_script_DATA): Likewise.
(install-data-hook): Likewise.
(installcheck-local): Likewise.
(TAGS_FILES): Removed amfiles.
(dist_pkgdata_DATA): Removed ansi2knr.c and ansi2knr.1.
* tests/installsh.test (AUTOMAKE): Use --libdir, not --amdir, and
point it to the right directory.
* ansi2knr.am, check.am, clean-hdr.am, clean.am, comp-vars.am,
compile.am, configure.am, data.am, dejagnu.am, depend.am,
depend2.am, distdir.am, footer.am, header-vars.am, header.am,
install.am, java.am, lang-compile.am, lex.am, library.am, libs.am,
libtool.am, lisp.am, ltlib.am, ltlibrary.am, mans-vars.am,
mans.am, multilib.am, program.am, progs.am, python.am,
remake-hdr.am, scripts.am, subdirs.am, tags.am, texi-vers.am,
texibuild.am, texinfos.am, yacc.am: Moved to lib/am/.
* configure.in (AC_OUTPUT): Added lib/am/Makefile.
(AUTOMAKE): Use --libdir, not --amdir.
Ues AC_CONFIG_AUX_DIR.
* lib/Makefile.am (SUBDIRS): Added `am'.
(scriptdir): New macro.
(dist_script_DATA): Likewise.
(dist_pkgdata_DATA): Likewise.
(install-data-hook): New target.
(installcheck-local): Likewise.
* lib/am/Makefile.in: New file.
* lib/am/Makefile.am: Removed everything except amdir and
dist_am_DATA.
2001-05-13 Akim Demaille <akim@epita.fr>
* automake.in ($pkgdata_dir): Rename as...
($libdir): this.
($am_dir): Remove, replace it's uses with $libdir.
(&parse_arguments): Replace --amdir with --libdir.
* automake.texi (Invoking Automake): Document --libdir, not
--amdir.
* tests/defs (AUTOMAKE): Use --libdir, not --amdir.
Tom Tromey [Mon, 14 May 2001 00:01:09 +0000 (00:01 +0000)]
* m4/depout.m4 (AM_OUTPUT_DEPENDENCY_COMMANDS): Use AMDEP_TRUE,
not AMDEP.
* m4/depend.m4 (AM_DEPENDENCIES): Require AM_DEP_TRACK.
Correctly look at AMDEP_TRUE, not AMDEP.
Tom Tromey [Sun, 13 May 2001 23:45:33 +0000 (23:45 +0000)]
Report from Robert Boehne:
* tests/Makefile.am (TESTS): Added depend2.test.
* tests/depend2.test: New file.
Tom Tromey [Sun, 13 May 2001 23:31:05 +0000 (23:31 +0000)]
2001-05-13 James Henstridge <james@daa.com.au>
* m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
Point pythondir at site-packages directory. Rename
PYTHON_SITE_PACKAGE to pkgpythondir. Rename PYTHON_SITE_EXEC to
pyexecdir. Removed package/module argument. Removed
PYTHON_SITE_INSTALL. Added version checking.
Tom Tromey [Sun, 13 May 2001 23:06:35 +0000 (23:06 +0000)]
2001-05-14 Jim Meyering <meyering@lucent.com>
* automake.in (macro_define): Change one remaining use of
`variable_dump' to `macro_dump'.
Tom Tromey [Sun, 13 May 2001 23:02:41 +0000 (23:02 +0000)]
* m4/depend.m4 (AM_DEPENDENCIES): Prefer gcc3 over gcc for objc
and gcj.
Akim Demaille [Sun, 13 May 2001 17:51:16 +0000 (17:51 +0000)]
Remove wrong entry.
Akim Demaille [Sun, 13 May 2001 17:41:19 +0000 (17:41 +0000)]
* automake.in (&scan_texinfo_file, &handle_dist, &handle_gettext)
(&handle_footer, &handle_factored_dependencies, &handle_emacs_lisp)
(&am_primary_prefixes): Use `map' rather than `grep'.
Akim Demaille [Sun, 13 May 2001 17:20:11 +0000 (17:20 +0000)]
* automake.in (Language): Set config_vars for yacc, yaccxx, lex,
lexxx, asm.
(&lang_c_finish, &lang_yacc_finish, &lang_lex_finish): Simplify.
(&lang_asm_finish): Remove, set asm's finisher to C's one.
Akim Demaille [Sun, 13 May 2001 17:19:18 +0000 (17:19 +0000)]
* lang-compile.am: New file, loaded once per language.
* depend2.am: Move definitions loaded once per language in the
aforementioned file.
* automake.in (&handle_languages): Load it.
(&lang_ppf77_finish, &lang_ratfor_finish): Remove as it's now
handled by lang-compile.am.
Tom Tromey [Sun, 13 May 2001 16:40:28 +0000 (16:40 +0000)]
2001-05-13 Tom Tromey <tromey@redhat.com>
* tests/Makefile.am (TESTS): Added python.test.
* tests/python.test: New file.
* automake.in (handle_languages): Use
config_aux_dir_set_in_configure_in.
(handle_python): Correctly mention AM_PATH_PYTHON. Use
py-compile, not py_comp. Define py_compile macro.
2001-05-13 Derek Price <dprice@openavenue.com>
* automake.in (require_file_with_conf_line,
require_file_with_line, require_file): Pass a @require_file_path
of $relative_dir instead of '.' to require_file_internal so that
all the special casing of '.' can be removed elsewhere.
(require_config_file, require_conf_file_with_line,
require_conf_file_with_conf_line): Remove special casing for '.'
and make sure $config_aux_dir is maintained properly.
(require_file_internal): Remove special casing of '.' and set
@require_file_path when missing files are added.
(maybe_push_required_file): Remove special casing of '.'
(handle_dependencies): Remove a workaround for a bug now fixed
and remove $config_aux_dir special casing.
(handle_configure): Remove special casing for $config_aux_dir
(handle_python): Ditto.
(yacc_lex_finish_helper): Change $config_aux_dir switch to
switch on the value of $config_aux_dir_set_in_configure_in.
(handle_texinfo): Ditto.
(scan_one_configure_file): Set $config_aux_dir and
$config_aux_dir_set_in_configure_in properly so special casing
on the value of $config_aux_dir can be removed elsewhere.
* tests/depcomp.test: New file.
* tests/confsub.test: Look for depcomp in $(top_srcdir) instead of the
first subdir containing a C file.
* tests/libobj2.test: Ditto.
* tests/Makefile.am (TESTS): Added 'depcomp.test'.
Tom Tromey [Sun, 13 May 2001 04:26:21 +0000 (04:26 +0000)]
* tests/gcj.test: Updated for gcj dependency tracking.
* tests/gcj2.test: Likewise.
Tom Tromey [Sun, 13 May 2001 01:55:42 +0000 (01:55 +0000)]
Fixes PR automake/169.
* m4/depend.m4 (AM_DEPENDENCIES): Handle GCJ. Don't assume gcc
style for OBJC.
* automake.in (java): Added autodep entry.
* tests/Makefile.am (TESTS): Added gcj3.test.
* tests/gcj3.test: New file.
Tom Tromey [Sun, 13 May 2001 00:46:53 +0000 (00:46 +0000)]
2001-05-12 Raja R Harinath <harinath@cs.umn.edu>
* automake.in (ASSIGNMENT_PATTERN): Make variable-name pattern
stop at the first '='.
* tests/Makefile.am (TESTS): Added vars.test.
* tests/vars.test: New file.
Akim Demaille [Sat, 12 May 2001 12:36:03 +0000 (12:36 +0000)]
* automake.in (&handle_single_transform_list): Simplify
computation of $object and $this_obj_ext.
* tests/lex3.test: Merge into...
* tests/lex.test: here.
* tests/pr19.test: Improve and rename as...
* tests/lex3.test: this.
Tom Tromey [Thu, 10 May 2001 05:39:13 +0000 (05:39 +0000)]
* automake.in (read_am_file): Correctly compute $saw_bk.
(scan_autoconf_files): Ensure configure_dist_common is always
set.
* tests/defs (AUTOMAKE): Added --Werror.
Pavel Roskin [Wed, 9 May 2001 22:43:58 +0000 (22:43 +0000)]
* automake.in (define_compiler_variable): Escape $(LIBTOOL) in
double quotes.
Tom Tromey [Wed, 9 May 2001 19:11:45 +0000 (19:11 +0000)]
* tests/werror.test: Use `rm -f'.
Akim Demaille [Wed, 9 May 2001 18:29:37 +0000 (18:29 +0000)]
* automake.in (&am_line_warning): Invoke `am_line_error', not itself.
Akim Demaille [Wed, 9 May 2001 18:27:26 +0000 (18:27 +0000)]
* automake.in: Remove some code left from bad patches.
(&handle_dependency): Remove, for the same reason.
Akim Demaille [Wed, 9 May 2001 18:24:12 +0000 (18:24 +0000)]
* automake.in (&make_paragraphs): Transform BUILD, HOST and TARGET.
(&handle_tests_dejagnu, &define_standard_variables): Don't.
(&define_standard_variables): Don't transform %top_builddir% since...
* header-vars.am: Use %TOPDIR% instead.
Akim Demaille [Wed, 9 May 2001 06:31:20 +0000 (06:31 +0000)]
* automake.in (@objects): Remove, unused.
Remove all the code related to it, and to former `$(OBJECTS)'.
Tom Tromey [Wed, 9 May 2001 03:10:05 +0000 (03:10 +0000)]
For PR automake/29:
* ylwrap: Handle arguments to program. Remove old code that tried
to avoid absolute paths and add new code to do it in all cases.
Removed ancient logic that tried to deal with relative path.
* tests/Makefile.am (TESTS): Added yacc4.test.
* tests/yacc4.test: New file.
Tom Tromey [Wed, 9 May 2001 00:23:57 +0000 (00:23 +0000)]
Fix for PR automake/149 and werror.test:
* automake.in (require_file_internal): Use am_line_warning or
am_conf_line_warning when suppressing error.
(am_line_warning): New sub.
(am_conf_line_warning): Save and restore warning signal.
* tests/Makefile.am (XFAIL_TESTS): Removed werror.test.
Tom Tromey [Wed, 9 May 2001 00:03:32 +0000 (00:03 +0000)]
Fix for PR automake/36:
* tests/Makefile.am (TESTS): Added asm.test.
* tests/asm.test: New file.
* automake.in (asm): Use ASFLAGS and AS.
(lang_asm_finish): New sub.
Tom Tromey [Tue, 8 May 2001 23:50:53 +0000 (23:50 +0000)]
* automake.in (read_am_file): Removed debugging code.
Tom Tromey [Tue, 8 May 2001 23:34:19 +0000 (23:34 +0000)]
For PR automake/149:
* tests/Makefile.am (TESTS): Added werror.test.
(XFAIL_TESTS): Likewise.
* tests/werror.test: New file.
Tom Tromey [Tue, 8 May 2001 20:34:26 +0000 (20:34 +0000)]
* automake.in (conditional_true_when): Don't return if we see
`TRUE'.
Tom Tromey [Tue, 8 May 2001 19:29:35 +0000 (19:29 +0000)]
* tests/objc.test: Removed.
* tests/Makefile.am (XFAIL_TESTS): Removed objc.test.
(TESTS): Likewise.
Tom Tromey [Tue, 8 May 2001 19:12:54 +0000 (19:12 +0000)]
* automake.in (subst): New sub.
(handle_languages): Use it.
(output_lex_build_rule): Likewise; also use _am_quote.
(check_libobjs_sources): Likewise.
(make_paragraphs): Use subst.
Tom Tromey [Tue, 8 May 2001 18:30:45 +0000 (18:30 +0000)]
* automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
problem.
* automake.in (file_contents_internal): Prototype now `$$%'.
(register_language): Prototype now `%'.
Tom Tromey [Tue, 8 May 2001 17:58:03 +0000 (17:58 +0000)]
Fixes test subobj6.test and PR automake/160:
* tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
* compile.am (mostlyclean-compile): Added MOSTLYRMS.
(distclean-compile): Added DISTRMS.
* tests/subobj6.test (wish_SOURCES): Updated to reflect
`mostlyclean' use; added test for non-subdir case.
* automake.in (compile_clean_files): New global.
(MOSTLY_CLEAN, DIST_CLEAN): New constants.
(initialize_per_input): Initialize compile_clean_files.
(handle_single_transform_list): Set compile_clean_files entries.
(handle_compile): Handle compilation cleanups.
Akim Demaille [Tue, 8 May 2001 16:17:29 +0000 (16:17 +0000)]
* automake.texi (Canonicalizing Automake macros): Document not
canonicalizing strudels (@) anymore.
Akim Demaille [Tue, 8 May 2001 14:06:36 +0000 (14:06 +0000)]
* distdir.am (dist-all): Build all the flavors using a single
distdir.
Akim Demaille [Tue, 8 May 2001 13:53:30 +0000 (13:53 +0000)]
* automake.in (&file_contents_internal): Apply the @cond_stack to
the rules and assignments.
Don't rely on `$.' as it's biased by &make_paragraphs.
Don't remove backslashes in variable values.
Akim Demaille [Tue, 8 May 2001 13:12:59 +0000 (13:12 +0000)]
* automake.in ($IGNORE_PATTERN): Improve for multi-line matches.
($RULE_PATTERN): Use that from `&make_paragraphs'.
($MACRO_PATTERN): Just catch the name of a macro.
($BOGUS_MACRO_PATTERN): Remove.
($ASSIGNMENT_PATTERN): New.
(&file_contents_internal, &make_paragraphs): Adjust.
(¯o_define): Catch bad macro names.
(&cond_stack_endif): Better error message.
(&file_contents_internal): Don't remove backslashes in variable
values.
(¯o_define): Do it for `+=' user variables.
(&define_standard_variables): Use `undef' instead of a dummy
variable.
(&make_paragraph): Be sure not to chop the trail of hash only
lines: adjust the `##' regexp.
(&rule_define): Fix a bug: don't read $1 but $target.
* tests/condincl.test: Strengthen.
Akim Demaille [Tue, 8 May 2001 13:02:57 +0000 (13:02 +0000)]
* automake.in (Language): Add attributes `Name' and `config_vars'.
(&finish): Work properly if there is no _finish.
(Automake): Register language Names and AC_SUBST dependencies.
Register Fortran 77 variables upon which ratfor and ppf77 depend.
(&handle_languages): Once per language, invoke
`define_linker_variables', and check its config_vars.
(&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
(&lang_java_finish): Remove.
(&lang_ppf77_finish, &lang_ratfor_finish): Adjust.
Akim Demaille [Tue, 8 May 2001 12:36:33 +0000 (12:36 +0000)]
* automake.in (&file_contents_internal): Accept $IS_AM.
(&handle_compile, &define_standard_variables, &file_contents): Adjust.
Akim Demaille [Tue, 8 May 2001 12:33:12 +0000 (12:33 +0000)]
* automake.in (am_install_var): Use `next' instead of `if' on the
body of $X loop.
Akim Demaille [Tue, 8 May 2001 12:05:19 +0000 (12:05 +0000)]
* automake.in (Language): Add attributes `lder' and `ld'.
(®ister_language): Specify for cxx, objc, f77, gcj.
(&define_linker_variable): New.
(&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
(&lang_java_finish): Adjust.
(&libtool_compiler): Remove.
Akim Demaille [Tue, 8 May 2001 11:48:47 +0000 (11:48 +0000)]
* ext-compile.am: Remove.
Akim Demaille [Tue, 8 May 2001 11:38:47 +0000 (11:38 +0000)]
* automake.in (&handle_lib_objects_cond): Don't take $LEX_SEEN as
argument, as you don't use it.
Hence...
(&handle_lib_objects): Don't take $LEX_SEEN as argument, as you
don't use it.
Hence...
(&handle_programs): Don't mess with %lex_sources, as you don't use
it.
Akim Demaille [Tue, 8 May 2001 11:37:54 +0000 (11:37 +0000)]
* automake.in (Language): Add attribute `link'.
(®ister_language): Specify for cxx, objc, f77, gcj.
(&lang_cxx_finish, &lang_f77_finish, &lang_objc_finish)
(&lang_java_finish): Adjust.
Akim Demaille [Tue, 8 May 2001 11:27:22 +0000 (11:27 +0000)]
* automake.in (&define_compiler_variables): Use only $LANG as
argument.
(&handle_languages): Adjust.
Akim Demaille [Tue, 8 May 2001 11:18:05 +0000 (11:18 +0000)]
* automake.in (&define_program_variable): Remove.
(&scan_one_autoconf_file): Skip MAKEINFO when found in an
AM_MISSING_PROG.
(&handle_texinfo): Don't define MAKEINFO and TEXI2DVI.
* texinfos.am: Do it.
Akim Demaille [Tue, 8 May 2001 11:00:12 +0000 (11:00 +0000)]
* automake.in (&handle_tests_dejagnu): Don't define EXPECT and
RUNTEST.
* dejagnu.am: Do it.
(site.exp): Use `if'.
Akim Demaille [Tue, 8 May 2001 10:59:37 +0000 (10:59 +0000)]
* automake.in: Formatting changes.
(variable_dump, variables_dump): Rename as...
(macro_dump, macros_dump): these.
Akim Demaille [Tue, 8 May 2001 10:58:49 +0000 (10:58 +0000)]
Support `if !COND', `else COND', `end COND'.
* automake.texi (Conditionals): Document it.
* automake.in ($WHITE_PATTERN, $MACRO_PATTERN, $BOGUS_MACRO_PATTERN)
($GNITS_VERSION_PATTERN, $INCLUDE_PATTERN): Use `d' and `s'.
($IF_PATTERN, $ELSE_PATTERN, $ENDIF_PATTERN): Likewise, and accept
a leading `!' before the condition.
(&handle_options): Use `d'.
(&cond_stack_if, &cond_stack_else, &&cond_stack_endif): New.
(&read_am_file, &file_contents_internal): Use them.
(&transform): No longer substitute `%!COND%', forcing the use of
`! %?COND%'.
* ansi2knr.am, lex.am, tags.am, texinfos.am, yacc.am: Adjust.
Akim Demaille [Tue, 8 May 2001 10:42:21 +0000 (10:42 +0000)]
Uniform handling of per-object compilation rules.
Note: Automake is repaired.
* automake.in (&handle_languages): Output per object rules for all
the objects, not only for those which language supports dependency
tracking.
Fix Automake: when outputting per-object rules, use `-o' if the
language has no `output_flag', as it's really needed.
(&handle_single_transform_list): Instead of special casing files
which need per object rules but which language don't support
dependency tracking, keep them in the queue for processing by
`&handle_languages'.
Akim Demaille [Tue, 8 May 2001 10:39:49 +0000 (10:39 +0000)]
* automake.in (&handle_languages): `ext-compile.am' and
`depend2.am' are now equivalent for generic rules: output only the
latter.
* ext-compile.am: Remove.