For PR automake/297:
* lex.m4 (AM_PROG_LEX): Don't set LEX=${am_missing_run}flex until
after AC_PROG_LEX, since it will try to run it and fail (in autoconf
2.52 at least).
* automake.in (scan_one_autoconf_file): Declare
LEX_OUTPUT_ROOT and LEXLIB as configure variables when
AM_PROG_LEX or AC_PROG_LEX are seen. This allows to ...
* lib/am/lex.am: ... remove the LEX_OUTPUT_ROOT and LEXLIB
definitions. Search %SOURCE% in $(srcdir). Use s||| instead
of s/// in the sed invocation, to support filenames containing
slashes.
* lib/am/yacc.am: Search %SOURCE% in $(srcdir). Use s||| too.
* tests/lex5.test, tests/yacc8.test: New files.
* tests/Makefile.am (TESTS): Add them.
Tim Van Holder [Wed, 20 Feb 2002 18:10:17 +0000 (18:10 +0000)]
* m4/lispdir.m4: Redirect /dev/null to stdin when running $EMACS
to try and prevent a non-lisp emacs from starting in interactive
mode.
* automake.texi: Document this change.
* automake.in (handle_lib_objects_cond): Tell the user to put
global linker flags in AM_LDFLAGS, not LDFLAGS.
* automake.texi (General Operation): AC_SUBST'ed variables
override Automake's variables.
(Uniform): More words and @refs.
(Auxiliary Programs) <config.sub, config.guess>: Add URL.
(etags): More explanations about the first example.
(Invoking Automake): Mention autoreconf. More @refs.
(Requirements): Mention AC_CONFIG_FILES.
(Optional): AC_CHECK_TOOL will no longer install config.sub and
config.guess. Mention AC_LIBOBJ, AC_LIBSOURCE, and AC_LIBSOURCES.
(Invoking aclocal): aclocal no longer warn about duplicates.
(Macros) <AM_INIT_AUTOMAKE>: More explanations.
(Extending aclocal): Suggest using the output of
`aclocal --print-ac-dir` to install third-party macros.
(Alternative): Specify ordering of dist_, nodist_, and nobase_
prefixes.
(A Program): Mention scripts. The global LDADD variable is not
meant to hold link flags, suggest using AM_LDFLAGS instead.
(Program and Library Variables) <maude_LIBADD, maude_LDADD>:
_LIBADD and _LDADD are subject to the same restriction wrt to
link flags.
(Program and Library Variables) <maude_DEPENDECIES>: Is also
derived from maude_LIBADD.
(Program variables): Define AM_LDFLAGS.
(Dependencies): Passing the no-dependencies option to
AM_INIT_AUTOMAKE is prefered.
(Scripts): Explain why automake is magically cleaned.
Mention noinst_SCRIPTS and check_SCRIPTS.
(Data): Use dist_ in Automake's example.
(Dist): Reference AM_INIT_AUTOMAKE for PACKAGE and VERSION.
Mention AC_CONFIG_FILES instead of AC_OUTPUT.
* Makefile.am (FETCHFILES): Add Automake/XFile.pm.
(fetch): Fetch XFile.pm. Update the files in $(srcdir) instead
of asking the maintainer to do it manually.
* lib/config.guess, lib/config.sub, lib/texinfo.tex,
Automake/XFile.pm: New upstream versions.
Tom Tromey [Fri, 1 Feb 2002 20:40:48 +0000 (20:40 +0000)]
Change per GNU coding standards:
* aclocal.in (parse_arguments): Only mention most recent year in
copyright output.
* automake.in (version): Only mention most recent year.
* automake.in (scan_one_autoconf_file): Don't treat AC_CHECK_TOOL
as AC_CANONICAL_HOST (the former does not require the latter since
Autoconf 2.50).
* m4/strip.m4 (AM_PROG_INSTALL_STRIP): Check for strip.
* automake.texi (Requirements): Do not require STRIP to be
defined by the user.
* lib/am/depend.am (distclean-depend): Erase %DEPDIRS%, not $(DEPDIRS).
* automake.in (handle_languages): Compute and substitute %DEPDIRS%.
* tests/pr224.test: Make sure .deps subdirectories are
erased by distclean.
Tom Tromey [Tue, 22 Jan 2002 00:11:26 +0000 (00:11 +0000)]
* automake.texi (Macros): Updated for new variable names.
(Program and Library Variables): Likewise.
(Assembly Support): Likewise.
* m4/as.m4: Use CCAS and CCASFLAGS.
* automake.in (asm): Use CCAS and CCASFLAGS.
Tom Tromey [Sun, 20 Jan 2002 21:30:17 +0000 (21:30 +0000)]
For PR automake/224:
* tests/Makefile.am (TESTS): Added pr224.test.
* tests/pr224.test: New file.
* lib/depcomp: Fixed computation of depfile.
* lib/am/depend2.am: Use %DEPBASE%, not $(DEPDIR).
* automake.in (handle_single_transform_list): Only reject `..'
component for Java. Put dependencies in directory near object.
(handle_languages): Set DEPBASE. Handle de-ansi-fication.
Tom Tromey [Fri, 18 Jan 2002 22:20:28 +0000 (22:20 +0000)]
For PR automake/288:
* automake.in (lang_c_rewrite): Don't prepend directory to base if
directory is `.'. Also, properly compute de_ansi_files entry in
subdir-objects case
* tests/Makefile.am (TESTS): Added ansi7.test.
* tests/ansi7.test: New file.
Tom Tromey [Wed, 16 Jan 2002 19:05:41 +0000 (19:05 +0000)]
* Makefile.am (install-exec-hook): Use APIVERSION.
* m4/init.m4 (AM_INIT_AUTOMAKE): Use am__api_version.
* m4/amversion.in (AM_AUTOMAKE_VERSION): Set am__api_version from
APIVERSION.
* automake.in (perllibdir): Use APIVERSION.
(libdir): Likewise.
* aclocal.in (perllibdir): Use APIVERSION.
(APIVERSION): New global.
(parse_arguments): Use APIVERSION.
* configure.in (APIVERSION): New subst.
(pkgvdatadir): Use APIVERSION.
Tom Tromey [Mon, 14 Jan 2002 00:29:16 +0000 (00:29 +0000)]
2002-01-13 Tom Tromey <tromey@redhat.com>
For PR automake/288:
* automake.in (lang_c_rewrite): Set value for de_ansi_files entry
to directory.
(lang_c_finish): Likewise. Also, use directory information from
de_ansi_files.
2002-01-13 Kevin Ryde <user42@zip.com.au>
For PR automake/288:
* tests/Makefile.am (TESTS): Added ansi6.test.
* tests/ansi6.test: New file.
Tom Tromey [Sun, 13 Jan 2002 20:33:38 +0000 (20:33 +0000)]
For PR automake/287:
* lib/am/distdir.am (distdir): Use `$$list' trick when looping
over subdirs.
* tests/Makefile.am (TESTS): Added pr287.test.
* tests/pr287.test: New file.
* m4/init.m4 (AM_INIT_AUTOMAKE): Set PACKAGE and VERSION from
AM_INIT_AUTOMAKE arguments when using the old-style call.
Use AC_PACKAGE_TARNAME and AC_PACKAGE_VERSION in the new form only.
Suggested by Pavel Roskin.
* test/nodefine.test, test/nodefine2.test: Check that no-define
works, not the contrary...
* m4/options.m4 (_AM_IF_OPTIONS): Use m4_ifset.
* m4/init.m4 (AM_INIT_AUTOMAKE): A third argument implies no-define,
not the contrary.
* automake.in (file_contents_internal): Introduce two variables,
$is_rule and $discard_rules to track rules spanning across multiple
paragraphs. This fixes a very nasty bug reported by Dmitry Mikhin
where only the first paragraph of such a multi-paragraph rule was
discarded; but it leaves many similar latent bugs (see the FIXMEs).
* automake.texi (Complete, Macros, Options): Document the new style
AM_INIT_AUTOMAKE. Remove AM_AUTOMAKE_OPTIONS documentaion.
* m4/init.m4 (AM_INIT_AUTOMAKE): Get PACKAGE and VERSION from
AC_INIT if they are available there. Support a new call form
where the only argument is an optional space-separated list of
Automake options.
* m4/options.m4 (AM_AUTOMAKE_OPTIONS): Remove.
(_AM_MANGLE_OPTION, _AM_SET_OPTION, _AM_SET_OPTIONS,
_AM_IF_OPTION): New functions.
* automake.in (AC_INIT_PATTERN): New variable.
(global_options_line): Remove, use $seen_init_automake instead.
(scan_one_autoconf_file, scan_autoconf_traces): Set $package_version
from AC_INIT if available. Support the new style AM_INIT_AUTOMAKE.
Remove the AM_AUTOMAKE_OPTIONS handling.
* configure.in: Modernize.
* tests/defs (configure.in): Modernize. One third of the tests
still overwrite the default configure.in and use an old
AM_INIT_AUTOMAKE call, so that makes testing for both.
* tests/nodefine.test, tests/nodefine2.test: New files.
* tests/Makefile.am (TESTS): Add them.
Fix for PR automake/278:
* m4/python.m4 (AM_PYTHON_CHECK_VERSION): Use `sys.hexversion' to cope
with versions such as '2.2c1'. Also, use `int' instead of the
obsoleted `string.atoi'.
Reported by Enrico Scholz.
* lib/am/install.am (install-strip): Set INSTALL_STRIP_FLAG=-s,
it is needed by install-%DIR%LTLIBRARIES in ltlib.am.
This fixes a bug introduced on 2001-01-28.
Reported by Jared Davis.
Tom Tromey [Mon, 31 Dec 2001 02:44:37 +0000 (02:44 +0000)]
* automake.in (define_configure_variable): Define a user macro,
not an automake macro.
* tests/Makefile.am (TESTS): Added ar.test.
* tests/ar.test: New file.
Tom Tromey [Mon, 31 Dec 2001 01:01:02 +0000 (01:01 +0000)]
For PR automake/211:
* automake.in (object_compilation_map): New global.
(initialize_per_input): Initialize it.
(COMPILE_LIBTOOL): New constant.
(COMPILE_ORDINARY): Likewise.
* tests/Makefile.am (TESTS): Added pr211.test.
* tests/pr211.test: New file.
Tom Tromey [Sun, 30 Dec 2001 20:07:35 +0000 (20:07 +0000)]
For PR automake/220:
* tests/Makefile.am (TESTS): Added pr220.test.
* tests/pr220.test: New file.
* m4/cond.m4 (AM_CONDITIONAL): Cause config.status to fail if
conditional was never run.
Tom Tromey [Sun, 30 Dec 2001 00:19:41 +0000 (00:19 +0000)]
For PR automake/266:
* tests/Makefile.am (TESTS): Added pr266.test.
* tests/pr266.test: New file.
* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Handle
non-standard name for makefile.