platform/upstream/automake.git
15 years agoMerge branch 'master' into next
Ralf Wildenhues [Sat, 28 Mar 2009 23:59:46 +0000 (00:59 +0100)]
Merge branch 'master' into next

* master:
  Rewrite maintainer-check in separate tests, parallelizable.
  Fix maintainer-check failure.
  Fix latex warning in manual.
  Sync auxiliary files from upstream.
  manual: minor cleanups.
  Sane (un)install for empty directory variables.
  Ensure that empty directory variables work with empty content variables.
  Use --tag=FC with libtool also for .f90 files.
  DISTFILES containing a directory and files in that directory.
  Fix a documentation typo.
  Define AM_RECURSIVE_TARGETS, for gnulib's GNUmakefile.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRewrite maintainer-check in separate tests, parallelizable.
Ralf Wildenhues [Sat, 28 Mar 2009 23:48:37 +0000 (00:48 +0100)]
Rewrite maintainer-check in separate tests, parallelizable.

* Makefile.am (sc_diff_automake_in_automake, sc_perl_syntax)
(sc_no_brace_variable_expansions, sc_rm_minus_f)
(sc_no_for_variable_in_macro, sc_mkinstalldirs)
(sc_pre_normal_post_install_uninstall, sc_perl_no_undef)
(sc_perl_no_split_regex_space, sc_cd_in_backquotes)
(sc_cd_relative_dir, sc_perl_at_uscore_in_scalar_context)
(sc_perl_local_no_parens, sc_perl_local)
(sc_AMDEP_TRUE_in_automake_in, sc_tests_make_without_am_makeflags)
(sc_tests_plain_make, sc_tests_plain_autoconf)
(sc_tests_plain_autoupdate, sc_tests_plain_automake)
(sc_tests_here_document_format, sc_tests_Exit_not_exit)
(sc_tests_automake_fails, sc_tests_plain_aclocal)
(sc_tests_plain_perl, sc_tests_required_after_defs)
(sc_tests_overriding_macros_on_cmdline, sc_tests_plain_sleep)
(sc_tests_plain_egrep_fgrep, sc_mkdir_p, sc_perl_at_substs)
(sc_unquoted_DESTDIR, sc_tabs_in_texi, sc_at_in_texi): New rules,
all phony, all listed in ...
(syntax_check_rules): ... this new variable and split out from ...
(maintainer-check): ... this rule.  Depend on $(syntax_check_rules).

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix maintainer-check failure.
Ralf Wildenhues [Sat, 28 Mar 2009 23:53:40 +0000 (00:53 +0100)]
Fix maintainer-check failure.

* Makefile.am (maintainer-check): Do not complain if DESTDIR is
passed as argument to `make'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix latex warning in manual.
Ralf Wildenhues [Sat, 28 Mar 2009 23:39:17 +0000 (00:39 +0100)]
Fix latex warning in manual.

* doc/automake.texi (Cross-Compilation): Fix underfull hbox.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSync auxiliary files from upstream.
Ralf Wildenhues [Sat, 28 Mar 2009 23:38:47 +0000 (00:38 +0100)]
Sync auxiliary files from upstream.

* INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub,
lib/texinfo.tex: Sync from upstream.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agomanual: minor cleanups.
Ralf Wildenhues [Mon, 24 Nov 2008 08:50:20 +0000 (09:50 +0100)]
manual: minor cleanups.

* doc/automake.texi (Yacc and Lex): Adjust spacing in example.
(Mixing Fortran 77 With C and C++): Drop unneeded @page breaks.

15 years agoSane (un)install for empty directory variables.
Ralf Wildenhues [Sat, 28 Mar 2009 17:04:48 +0000 (18:04 +0100)]
Sane (un)install for empty directory variables.

This patch fixes all install and uninstall rules to behave
sanely when $(wheredir) is the empty string, but $(where_HOW) is
nonempty, for all kinds of values of `where' and `HOW'.

* lib/am/data.am (install-%DIR%%PRIMARY%, uninstall-%DIR%%PRIMARY%):
Do not touch the install tree if the corresponding directory variable
$(%NDIR%dir) is empty.
* lib/am/java.am (install-%DIR%JAVA, uninstall-%DIR%JAVA): Likewise.
* lib/am/libs.am (install-%DIR%LIBRARIES, uninstall-%DIR%LIBRARIES):
Likewise.
* lib/am/lisp.am (install-%DIR%LISP, uninstall-%DIR%LISP): Likewise.
* lib/am/ltlib.am (install-%DIR%LTLIBRARIES, uninstall-%DIR%LTLIBRARIES):
Likewise.
* lib/am/mans.am (install-man%SECTION%, uninstall-man%SECTION%):
Likewise.
* lib/am/progs.am (install-%DIR%PROGRAMS, uninstall-%DIR%PROGRAMS):
Likewise.
* lib/am/python.am (install-%DIR%PYTHON, uninstall-%DIR%PYTHON):
Likewise.
* lib/am/scripts.am (install-%DIR%SCRIPTS, uninstall-%DIR%SCRIPTS):
Likewise.
* lib/am/texinfos.am (install-dvi-am, install-html-am, install-pdf-am)
(install-ps-am, uninstall-dvi-am, uninstall-html-am, uninstall-pdf-am)
(uninstall-ps-am): Likewise.
* tests/instdir2.test, tests/instdir-java.test,
tests/instdir-lisp.test, tests/instdir-ltlib.test,
tests/instdir-prog.test, tests/instdir-python.test,
tests/instdir-texi.test: New tests.
* tests/Makefile.am: Update.
* NEWS: Update.
Suggestion by Akim Demaille.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoEnsure that empty directory variables work with empty content variables.
Ralf Wildenhues [Sat, 28 Mar 2009 17:03:15 +0000 (18:03 +0100)]
Ensure that empty directory variables work with empty content variables.

This test ensures that, if both $(wheredir) and $(where_HOW) are
the empty string, then the `install' and `uninstall' rules behave
sanely, for several directory variables `wheredir' and several
primaries `HOW'.
* tests/instdir.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUse --tag=FC with libtool also for .f90 files.
Ralf Wildenhues [Mon, 23 Mar 2009 20:47:19 +0000 (21:47 +0100)]
Use --tag=FC with libtool also for .f90 files.

* automake.in: Set 'libtool_tag' for language `fc'.
* tests/fort5.test: Grep for the tag.
* THANKS: Update.
Report by John R. Cary.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDISTFILES containing a directory and files in that directory.
Peter Breitenlohner [Sun, 22 Mar 2009 09:11:14 +0000 (10:11 +0100)]
DISTFILES containing a directory and files in that directory.

For PR automake/533:
When the source tree contains non-writable files or directories
(as happens during distcheck), and directories or entries
thereof are listed multiple times in variables to be
distributed, then the corresponding directories below $(distdir)
need to be made writable recursively.  Since file modes should
not change, they need to be copied recursively using `cp -f'.

* lib/am/distdir.am: Handle this situation.
* tests/distdir.test: Extend test to those cases.
* NEWS: Update.
Report by Peter Breitenlohner.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix a documentation typo.
Jim Meyering [Sun, 22 Mar 2009 09:00:27 +0000 (10:00 +0100)]
Fix a documentation typo.

* doc/automake.texi (Headers): Clarify the note telling when it's
better not to use noinst_HEADERS.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDefine AM_RECURSIVE_TARGETS, for gnulib's GNUmakefile.
Ralf Wildenhues [Sun, 22 Mar 2009 08:53:19 +0000 (09:53 +0100)]
Define AM_RECURSIVE_TARGETS, for gnulib's GNUmakefile.

This new macro lists all public targets which invoke `make'
recursively, or depend on targets which do so.  It allows to
prevent parallelism selectively, when multiple targets are
passed on the `make' command line.

* lib/am/distdir.am [%?SUBDIRS%] (AM_RECURSIVE_TARGETS): New
macro.
* lib/am/subdirs.am (AM_RECURSIVE_TARGETS): Likewise.
* lib/am/tags.am [%?SUBDIRS%] (AM_RECURSIVE_TARGETS):
Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMerge branch 'ad-parallel-tests' into next
Ralf Wildenhues [Sat, 14 Mar 2009 10:14:38 +0000 (11:14 +0100)]
Merge branch 'ad-parallel-tests' into next

* ad-parallel-tests:
  Fix LAZY_TEST_SUITE handling and $(TEST_SUITE_LOG) recreation.
  Fix parallel-tests with empty $(TESTS) for BSD make.
  Mark check-html and check-TESTS as recursive for BSD make.
  Match XFAIL_TESTS correctly with Solaris make.
  Use append mode to capture parallel test output.
  parallel-tests: Fix summary output.
  Overhaul of tests/README.
  Documentation for the parallel-tests driver.
  New tests for `parallel-tests'.
  parallel-tests: Ensure backward-compatible semantics.
  Parallel test execution: new option `parallel-tests'.

15 years agoMerge branch 'je-silent' into next
Ralf Wildenhues [Sat, 14 Mar 2009 10:13:18 +0000 (11:13 +0100)]
Merge branch 'je-silent' into next

* je-silent:
  Rename `silent' mode to `silent-rules' mode.
  `silent' mode unconditionally overrides portability-recursive.
  Drop extra line from compile rules when `silent' is not used.
  Keep `--silent-rules' across triggered automake reruns.
  Provide variables for silencing of user rules.
  Redo variable naming for `silent' machinery.
  Let -Wportability turn on/off the portability-recursive channel.
  New automake command line option `--silent-rules'.
  Documentation and tests for the `silent' option.
  Implement `silent' build rules.
  New channel `portability-recursive'.

15 years ago* NEWS: Update.
Ralf Wildenhues [Sat, 14 Mar 2009 10:02:34 +0000 (11:02 +0100)]
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix LAZY_TEST_SUITE handling and $(TEST_SUITE_LOG) recreation.
Ralf Wildenhues [Wed, 11 Mar 2009 19:36:14 +0000 (20:36 +0100)]
Fix LAZY_TEST_SUITE handling and $(TEST_SUITE_LOG) recreation.

* lib/am/check.am (check-TESTS): Expand `$(TEST_LOGS)' only once
in the rule command, for systems with low command line limits.
Remove $(TEST_SUITE_LOG) even in LAZY_TEST_SUITE mode.
($(TEST_SUITE_LOG)): Always recreate $(TEST_SUITE_LOG).  Mention
lazy mode in the summary output.
* tests/parallel-tests.test: Test LAZY_TEST_SUITE semantics.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix parallel-tests with empty $(TESTS) for BSD make.
Ralf Wildenhues [Tue, 10 Mar 2009 22:57:01 +0000 (23:57 +0100)]
Fix parallel-tests with empty $(TESTS) for BSD make.

* lib/am/check.am [PARALLEL_TESTS] ($(TEST_SUITE_LOG)): Ignore
empty line stemming from empty $(TEST_LOGS), to avoid counting
zero tests as one.
(check-TESTS): If `$(TESTS)' is empty, override TEST_LOGS to be
empty, rather than `.log', for BSD make.
* tests/parallel-tests6.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMark check-html and check-TESTS as recursive for BSD make.
Ralf Wildenhues [Tue, 10 Mar 2009 21:09:45 +0000 (22:09 +0100)]
Mark check-html and check-TESTS as recursive for BSD make.

* lib/am/check.am [PARALLEL_TESTS] (.MAKE): Add check-TESTS
and check-html prerequisites.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMatch XFAIL_TESTS correctly with Solaris make.
Ralf Wildenhues [Tue, 10 Mar 2009 21:02:15 +0000 (22:02 +0100)]
Match XFAIL_TESTS correctly with Solaris make.

* lib/am/check.am [PARALLEL_TESTS]: VPATH rewriting may have
changed test names, so srcdir needs to be taken into account
explicitly when checking against the list of tests expected
to fail.  Fixes spurious FAILures from XFAIL_TESTS.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUse append mode to capture parallel test output.
Ralf Wildenhues [Tue, 10 Mar 2009 20:33:47 +0000 (21:33 +0100)]
Use append mode to capture parallel test output.

* tests/lisp8.test: Use append mode for output from `make -j',
to avoid dropped lines.
* tests/parallel-tests3.test: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoparallel-tests: Fix summary output.
Ralf Wildenhues [Tue, 10 Mar 2009 20:10:25 +0000 (21:10 +0100)]
parallel-tests: Fix summary output.

* lib/am/check.am (am__text_box): Fix unportable sed script,
replacing `\n' in the right hand side of an `s' command with
a literal newline.  Kudos to Bruno Haible for the newline idea.
* tests/parallel-tests.test: Update test to expose this.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoOverhaul of tests/README.
Ralf Wildenhues [Sun, 8 Mar 2009 13:08:18 +0000 (14:08 +0100)]
Overhaul of tests/README.

* tests/README: General overhaul.  Mention parallel test suite
execution, the test-suite.log file; document `Exit' vs. `exit',
`defs' vs. `defs-p', the naming of `parallel-tests' tests.
* README: Simplify, point to tests/README.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDocumentation for the parallel-tests driver.
Ralf Wildenhues [Sun, 8 Mar 2009 13:07:37 +0000 (14:07 +0100)]
Documentation for the parallel-tests driver.

* doc/automake.texi (Tests, Options): Document the `parallel-tests'
option, including new features of the test driver.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoNew tests for `parallel-tests'.
Ralf Wildenhues [Sun, 8 Mar 2009 13:05:56 +0000 (14:05 +0100)]
New tests for `parallel-tests'.

* tests/parallel-tests.test: New file, to expose a bunch of
features of `parallel-tests': VERBOSE, clean, TEST_SUITE_LOG,
test dependencies, DISABLE_HARD_ERRORS.
* tests/parallel-tests2.test: New file, test check-html.
* tests/parallel-tests3.test: New file, test concurrency.
* tests/parallel-tests4.test: New file, test suffix rules.
* tests/parallel-tests5.test: New file, demonstrate compile/test
concurrency.
* tests/defs.in: Add a `required' check for rst2html.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoparallel-tests: Ensure backward-compatible semantics.
Ralf Wildenhues [Sun, 8 Mar 2009 13:04:38 +0000 (14:04 +0100)]
parallel-tests: Ensure backward-compatible semantics.

For each test in Automake's test suite that uses TESTS, generate
an identical one that uses the `parallel-tests' option, for
coverage of backward-compatible functionality.

* tests/gen-parallel-tests: New file, generates distributed
Makefile.am snippet tests/parallel-tests.am to list all tests
that use the TESTS interface but not yet the `parallel-tests'
option, with names mangled to use suffix `-p.test', in ...
(parallel_tests): ... this new make macro.
* tests/Makefile.am ($(srcdir)/parallel-tests.am)
($(parallel_tests), defs-p): New rules.
(TESTS): Add check11.test and $(parallel_tests).
(check_SCRIPTS): Add defs-p, $(parallel_tests).
(check-clean-local): Remove `defs-p'.
(EXTRA_DIST): Distribute gen-parallel-tests.
(MAINTAINERCLEANFILES): New variable, remove $(parallel_tests).
* bootstrap: Generate parallel-tests.am.
* tests/check8.test: Check for circular dependencies in rules.
* tests/check11.test: New test, check that SKIPs are not counted
as passed tests.
* tests/defs.in: Unset DISABLE_HARD_ERRORS, LAZY_TEST_SUITE,
VERBOSE, so the tests are not influenced by the way our test
suite is invoked.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoParallel test execution: new option `parallel-tests'.
Akim Demaille [Sun, 8 Mar 2009 10:29:03 +0000 (11:29 +0100)]
Parallel test execution: new option `parallel-tests'.

* automake.in (handle_tests): Set new conditional PARALLEL_TESTS
when reading check.am.  Handle option `parallel-tests' and all
its semantics.  Define macros TEST_EXTENSIONS, TEST_SUITE_LOG,
TEST_SUITE_HTML, TEST_LOGS, TEST_LOGS_TMP, suffix rules if
applicable, and per-target rules for other tests.  Add all log
files to %clean_files at the `MOSTLY_CLEAN' level.
* lib/Automake/Options.pm (_process_option_list): Accept
`parallel-tests'.
* lib/am/check.am [!PARALLEL_TESTS] (check-TESTS): Move existing
testsuite driver under this new conditional.
[PARALLEL_TESTS]
(am__rst_title, am__rst_section, am__text_box am__sh_e_setup)
(am__check_pre, am__check_post): New internal macros.
($(TEST_SUITE_LOG), check-TESTS, .log.html, check-html): New
rules.
* lib/am/check2.am: New file.
* lib/am/Makefile.am (dist_am_DATA): Add check2.am.
* tests/Makefile.am (AUTOMAKE_OPTIONS): Use `parallel-tests'.
(clean-local): Renamed from distclean-local.
* tests/defs.in: Drop VERBOSE handling, not needed here any more.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoIgnore warnings from autom4te about Libtool macros.
Ralf Wildenhues [Thu, 12 Mar 2009 21:03:43 +0000 (22:03 +0100)]
Ignore warnings from autom4te about Libtool macros.

* tests/ltinstloc.test: When testing for presence of warnings,
filter out any that are not interesting for this test, e.g.,
warnings about installed files or about bogusly named cache
variables in libtool.m4, emitted by recent Autoconf when older
Libtool is used.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRename `silent' mode to `silent-rules' mode.
Ralf Wildenhues [Thu, 12 Mar 2009 06:40:20 +0000 (07:40 +0100)]
Rename `silent' mode to `silent-rules' mode.

* automake.in (define_verbose_var, verbose_flag)
(define_verbose_tagvar, handle_options, handle_languages)
(handle_configure, parse_arguments): Rename the `silent' option
to `silent-rules', so it coincides with the `--silent-rules'
command line option; adjust all code and comments.
* lib/Automake/Options.pm (_process_option_list): Likewise.
* doc/automake.texi (Invoking Automake, Libtool Flags, Options):
Likewise.
* NEWS: Adjust.
* tests/dollarvar.test, tests/silent.test, tests/silent2.test,
tests/silent3.test, tests/silent4.test, tests/silent5.test,
tests/silent6.test, tests/silent7.test: Likewise.
Suggestion by Jan Engelhardt.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago`silent' mode unconditionally overrides portability-recursive.
Ralf Wildenhues [Wed, 11 Mar 2009 19:53:24 +0000 (20:53 +0100)]
`silent' mode unconditionally overrides portability-recursive.

* automake.in (parse_arguments): Don't handle a global `silent'
option here; instead, ...
(handle_options): ... handle the "normal" `silent' option here.
Override `portability-recursive' here, at the last point we deal
with options, instead ...
* lib/Automake/Options.pm (_process_option_list): ... of here.
* tests/silent6.test: Replace unportable make snippet, remove
FIXME note, add more test cases of options passed in the various
locations.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDrop extra line from compile rules when `silent' is not used.
Ralf Wildenhues [Wed, 11 Mar 2009 18:50:16 +0000 (19:50 +0100)]
Drop extra line from compile rules when `silent' is not used.

* lib/am/depend2.am [!%FASTDEP%]: Only use the `%VERBOSE%
@AM_BACKSLASH@' extra line if ?VERBOSE?.
Report by Ralf Corsepius.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoKeep `--silent-rules' across triggered automake reruns.
Ralf Wildenhues [Tue, 10 Mar 2009 21:59:00 +0000 (22:59 +0100)]
Keep `--silent-rules' across triggered automake reruns.

* automake.in (usage): Reformat to be a bit clearer.
(handle_configure): Remove substitutions %STRICTNESS% and
%USE-DEPS% in favor of a new substitution %AUTOMAKE-OPTIONS%
that carries over all needed flags.
* lib/am/configure.am (%MAKEFILE-IN%): Adjust rule.
* tests/flavor.test: New test, to ensure --$flavor (gnu,
gnits, foreign, cygnus), --ignore-deps, and --silent-rules are
preserved across automake reruns.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRelax depcomp test for MSVC to not require minuso.
Ralf Wildenhues [Mon, 9 Mar 2009 21:06:22 +0000 (22:06 +0100)]
Relax depcomp test for MSVC to not require minuso.

* m4/depend.m4 (_AM_DEPENDENCIES): When checking the msvisualcpp
and msvcmsys depmodes, do not require `-c -o' to work just yet.
It is not needed by the depcomp script for these depmodes, and
works around the ordering issue between the tests.
Report by Peter Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoProvide variables for silencing of user rules.
Ralf Wildenhues [Mon, 9 Mar 2009 20:57:49 +0000 (21:57 +0100)]
Provide variables for silencing of user rules.

* automake.in (handle_languages): Always define `AM_V_GEN' and
`AM_V_at'.
* doc/automake.texi (Options): Document these flags.
* tests/silent7.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRedo variable naming for `silent' machinery.
Ralf Wildenhues [Mon, 9 Mar 2009 20:45:57 +0000 (21:45 +0100)]
Redo variable naming for `silent' machinery.

The public variables are named `AM_V_' plus the compiler
short-hand now, e.g.: AM_V_CC, AM_V_CXXLD, AM_V_GEN.  The
dispatch variables are internal details and begin with
`am__v_'.

* automake.in (verbose_var): Update comment.
(verbose_private_var): New function.  Order functions so that
ones not needed outside this section are listed first.
(verbose_dispatch): Remove, no need to factor this.
(define_verbose_var, define_verbose_libtool): Use
verbose_private_var.
(define_verbose_tagvar): Likewise; and simplify.
Report by Jan Engelhardt.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoLet -Wportability turn on/off the portability-recursive channel.
Ralf Wildenhues [Mon, 9 Mar 2009 20:20:20 +0000 (21:20 +0100)]
Let -Wportability turn on/off the portability-recursive channel.

* lib/Automake/ChannelDefs.pm (switch_warning): switch
`portability-recursive' channel as well if changing the
`portability' channel.
* tests/dollarvar2.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago* tests/compile2.test: Fix typo.
Peter Rosin [Mon, 9 Mar 2009 15:53:11 +0000 (16:53 +0100)]
* tests/compile2.test: Fix typo.

15 years agoNew automake command line option `--silent-rules'.
Ralf Wildenhues [Sat, 7 Mar 2009 15:01:34 +0000 (16:01 +0100)]
New automake command line option `--silent-rules'.

* automake.in (parse_arguments): Accept `--silent-rules; let it
override command line warning settings.
(usage): Document it.
* doc/automake.texi (Invoking Automake): Document it.
* NEWS: Update.
* tests/dollarvar.test: Also test `--silent-rules'.
* tests/pr300-ltlib.test: Use `$MAKE V=1' to enable verbose
output, which is matched later in the test.
* tests/silent6.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDocumentation and tests for the `silent' option.
Ralf Wildenhues [Sat, 7 Mar 2009 14:59:24 +0000 (15:59 +0100)]
Documentation and tests for the `silent' option.

* NEWS: Update.
* doc/automake.texi (Invoking Automake): `silent' turns off some
portability warnings.
(Libtool Flags): `silent' silences libtool.
(Options): Document the `silent' flag.
* tests/dollarvar.test, tests/silent.test, tests/silent2.test,
tests/silent3.test, tests/silent4.test, tests/silent5.test: New
tests.
* tests/Makefile.am: Update.
* Makefile.am (maintainer-check): Ignore `DESTDIR' and `V' when
checking for make variables that should not be overridden from
the command line.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoImplement `silent' build rules.
Jan Engelhardt [Sat, 7 Mar 2009 14:58:07 +0000 (15:58 +0100)]
Implement `silent' build rules.

* automake.in (ccer): New field in the language structure.
Initialize it for all registered languages.
(verbose_var, verbose_flag, verbose_dispatch)
(silent_flag, define_verbose_var, define_verbose_tagvar)
(define_verbose_libtool): New functions.
(handle_languages, handle_programs, handle_libraries)
(handle_ltlibraries, handle_configure)
(define_compiler_variable, define_linker_variable)
(define_per_target_linker_variable): Use them where appropriate
to define variables to implement the silent output machinery.
* lib/Automake/Options.pm (_process_option_list): Accept
`silent', turning off `portability-recursive'.
* lib/am/depend2.am: Add %VERBOSE% and %SILENT% prefixes where
appropriate.
* lib/am/lex.am: Likewise.
* lib/am/library.am: Likewise.
* lib/am/ltlibrary.am: Likewise.
* lib/am/program.am: Likewise.
* lib/am/yacc.am: Likewise.
* m4/init.m4 (AM_INIT_AUTOMAKE): Substitute, but do not define,
AM_BACKSLASH.
* tests/defs.in: Unset `V', to avoid influencing inner tests.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoNew channel `portability-recursive'.
Ralf Wildenhues [Sat, 7 Mar 2009 14:57:22 +0000 (15:57 +0100)]
New channel `portability-recursive'.

Add new channel for portability warnings about recursive make
variable expansions `$(var1$(var2))'.  Enable it alongside
`-Wportability'.

* lib/Automake/ChannelDefs.pm (Automake::ChannelDefs): Register
channel `portability-recursive'.
* lib/Automake/Variable.pm (_VARIABLE_CHARACTERS)
(_VARIABLE_RECURSIVE_PATTERN): New variables.
(check_variable_expansions): Diagnose recursive variable
expansions through the new channel.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoImprove NetBSD 'make -n' output for many standard targets.
Ralf Wildenhues [Sat, 7 Mar 2009 09:42:34 +0000 (10:42 +0100)]
Improve NetBSD 'make -n' output for many standard targets.

* automake.in (handle_tags): Let .MAKE depend on
`tags-recursive' and `ctags-recursive' if appropriate.
(handle_all): Likewise for `all'.
(do_check_merge_target): Likewise for `check-am' and `check'.
* lib/am/ansi2knr.am (.MAKE): Depend on %ANSI2KNR-DIR%/ansi2knr.
* lib/am/install.am [%?maybe_BUILT_SOURCES%] (.MAKE): Depend on
`install'.
* tests/maken3.test, tests/maken4.test: New tests.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoImprove `make -n dist' and `make -n distcheck' for GNU make.
Ralf Wildenhues [Sat, 7 Mar 2009 08:00:19 +0000 (09:00 +0100)]
Improve `make -n dist' and `make -n distcheck' for GNU make.

Ensure that `make -n dist' and `make -n distcheck' do not change
files, due to GNU make executing rules containing `$(MAKE)'.

* lib/am/distdir.am (distdir): Separate the creation of
`$(distdir)/$$subdir' for `$(DIST_SUBDIRS)' and the recursion
into the `$(DIST_SUBDIRS)' in two separate rule commands.
(distcheck): Exit recursive rule early when run with `make -n',
as detected by a witness file.
* tests/maken.test, tests/maken2.test: New tests.
* tests/Makefile.am: Update.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSolaris make testsuite fixes.
Ralf Wildenhues [Sat, 7 Mar 2009 06:40:06 +0000 (07:40 +0100)]
Solaris make testsuite fixes.

* tests/check10.test: When a rule fails, Solaris make will
output the complete command that failed; in this case the test
suite driver.  Adjust the test to not bogusly match lines from
the driver, rather than its output.
* tests/distcleancheck.test: Avoid triggering VPATH rewriting,
not desirable in this test.
* tests/specflg10.test: Use BUILT_SOURCES to specify an
intermediate target, so Solaris make knows what to do.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agotestsuite: SKIP compile tests if configure found no compiler.
Ralf Wildenhues [Sat, 7 Mar 2009 00:41:29 +0000 (01:41 +0100)]
testsuite: SKIP compile tests if configure found no compiler.

* tests/depend6.test: configure will exit 77 if AC_PROG_CC found
no working compiler.  Allow the test to be SKIPped in that case.
* tests/postproc.test: Likewise.
* tests/pr243.test: Likewise.
* tests/pr266.test: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix maintainer-check fallout.
Ralf Wildenhues [Sat, 7 Mar 2009 00:27:11 +0000 (01:27 +0100)]
Fix maintainer-check fallout.

* tests/compile2.test: Use `Exit', not `exit'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoExtract correct man section from files in man_MANS.
Peter Breitenlohner [Sat, 7 Mar 2009 00:06:18 +0000 (01:06 +0100)]
Extract correct man section from files in man_MANS.

* lib/am/mans.am: Extract correct man section in the presence of
multiple dots in the file base name and/or directory components.
* tests/man5.test: New test case.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agomanual: Fix logic in AM_MAINTAINER_MODE description.
Ralf Wildenhues [Fri, 6 Mar 2009 06:34:08 +0000 (07:34 +0100)]
manual: Fix logic in AM_MAINTAINER_MODE description.

* doc/automake.texi (maintainer-mode): Fix logic in
AM_MAINTAINER_MODE description.
* THANKS: Update.
Report by Daniel Kahn Gillmor.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago* lib/gnupload: Change conffile name to `.gnuploadrc'.
Ralf Wildenhues [Thu, 5 Mar 2009 19:02:03 +0000 (20:02 +0100)]
* lib/gnupload: Change conffile name to `.gnuploadrc'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoReplace bare `automake' with `@command{automake}' or `Automake'.
William Pursell [Mon, 1 Dec 2008 21:06:10 +0000 (21:06 +0000)]
Replace bare `automake' with `@command{automake}' or `Automake'.

* doc/automake.texi: Avoid bare `automake' in the manual,
replacing occurrences with `@command{automake}' when the command
is meant, and `Automake' when speaking about the software
package in general.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago* lib/depcomp: Various portability and quoting nits.
Ralf Wildenhues [Wed, 4 Mar 2009 20:19:49 +0000 (21:19 +0100)]
* lib/depcomp: Various portability and quoting nits.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoreformat gnupload script.
Ralf Wildenhues [Wed, 4 Mar 2009 19:41:05 +0000 (20:41 +0100)]
reformat gnupload script.

* lib/gnupload: Reformat and reindent.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agognupload touchups.
Ralf Wildenhues [Wed, 4 Mar 2009 19:40:43 +0000 (20:40 +0100)]
gnupload touchups.

* lib/gnupload (conffile): New variable.  Use throughout.
(dry_run): Use `false' and `:' values.  Show, don't execute,
gpg signing commands upon --dry-run.
(usage): Typo and formatting fixes.  Mention that commands are
applied in order.
(argument loop): Factorize a bit, fix quoting.
(dprint, mkdirective, mksymlink, upload): Formatting and
portability fixes.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoVarious gnupload improvements.
Sergey Poznyakoff [Wed, 4 Mar 2009 19:39:56 +0000 (20:39 +0100)]
Various gnupload improvements.

Add support for uploading to download.gnu.org.ua.
Add support for a .gnupload configuration file.
Support creating and removing symlinks.
Allow for several operations in a single invocation.
Add debugging features.

* lib/gnupload: New options --delete, --symlink, --rmsymlink,
--symlink-regex, --dry-run; support `--' to separate options and
commands from files.  New target download.gnu.org.ua.  Expand
`.gnupload' file contents before command line arguments.
(usage): Expand.
(dprint, mkdirective, mksymlink, upload): New functions.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAdd depmode=msvcmsys for Microsoft Visual C++ on MSYS.
Peter Rosin [Tue, 3 Mar 2009 21:29:12 +0000 (22:29 +0100)]
Add depmode=msvcmsys for Microsoft Visual C++ on MSYS.

* lib/depcomp [msvisualcpp]: Fork fewer processes. Filter out
libtool in the preprocessor invocation (as is done in
depmode=cpp). Silence compiler stderr.
[msvcmsys]: New depmode as a derivative of depmode=msvisualcpp.
msvcmsys transforms any backslashes into forward slashes to
make the grep in depend.m4 match, instead of the "cygpath -u"
that is used in msvisualcpp.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix w32 path handling in the `compile' script.
Ralf Wildenhues [Tue, 3 Mar 2009 20:10:43 +0000 (21:10 +0100)]
Fix w32 path handling in the `compile' script.

* lib/compile: Handle colons and backslashes in win32 paths.
* tests/compile2.test: New test.
* tests/Makefile.am: Update.
Report and initial patch by Peter Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAdd ChangeLog for last commit
Ralf Wildenhues [Tue, 3 Mar 2009 20:03:57 +0000 (21:03 +0100)]
Add ChangeLog for last commit

15 years agoFix `use constant' usage for MSYS Perl 5.6.0.
Ralf Wildenhues [Tue, 3 Mar 2009 19:44:42 +0000 (20:44 +0100)]
Fix `use constant' usage for MSYS Perl 5.6.0.

* automake.in (QUEUE_MESSAGE, QUEUE_CONF_FILE, QUEUE_LOCATION)
(QUEUE_STRING): Define using one `use constant' each; as perl
5.6.0 (on MSYS) does not understand `use constant { ... }'.
* THANKS: Update.
Report by Peter Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix recursive html and install-* doc rules for BSD make.
Ralf Wildenhues [Sun, 1 Mar 2009 15:51:34 +0000 (16:51 +0100)]
Fix recursive html and install-* doc rules for BSD make.

* automake.in (%required_targets): Add html-am,
install-html-am, install-dvi-am, install-pdf-am, install-ps-am,
install-info-am.
* tests/txinfo32.test: New test.
* tests/Makefile.am: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix comment typo.
Ralf Wildenhues [Sun, 1 Mar 2009 15:47:45 +0000 (16:47 +0100)]
Fix comment typo.

* lib/am/distdir.am (distcheck): Fix typo in comment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoIgnore generated files below doc/amhello for git.
Ralf Wildenhues [Sun, 1 Mar 2009 14:01:44 +0000 (15:01 +0100)]
Ignore generated files below doc/amhello for git.

* doc/amhello/.gitignore: New file.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoCross-reference `Flag Variables Ordering' from `Program variables'.
Ralf Wildenhues [Tue, 17 Feb 2009 06:29:04 +0000 (07:29 +0100)]
Cross-reference `Flag Variables Ordering' from `Program variables'.

* doc/automake.texi (Program variables): Add cross reference to
`Flag Variables Ordering' node.
Report by Karl Berry.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix mmodely.test to work on Solaris 10.
Ralf Wildenhues [Sat, 31 Jan 2009 09:33:00 +0000 (10:33 +0100)]
Fix mmodely.test to work on Solaris 10.

* tests/mmodely.test: Define yylex, to satisfy needed symbol in
libfl.  Return from main instead of using exit, undeclared.
* THANKS: Update.
Report by Chris Hoogendyk.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago* lib/gnupload: Add download URL to --help output.
Karl Berry [Thu, 29 Jan 2009 23:20:00 +0000 (00:20 +0100)]
* lib/gnupload: Add download URL to --help output.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUse no-arg macros via AC_REQUIRE for consistency.
Eric Blake [Fri, 23 Jan 2009 22:34:17 +0000 (15:34 -0700)]
Use no-arg macros via AC_REQUIRE for consistency.

* m4/init.m4 (AM_INIT_AUTOMAKE): Require, rather than directly
expand, AM_PROG_INSTALL_SH and AM_PROG_INSTALL_STRIP.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoBump copyright years.
Ralf Wildenhues [Tue, 20 Jan 2009 19:58:48 +0000 (20:58 +0100)]
Bump copyright years.

* aclocal.in (write_aclocal, version): Bump copyright years.
* automake.in (gen_copyright, version): Likewise.
* doc/automake.texi: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoClarify overriding of `*_DEPENDENCIES' in LIBOBJS node.
Chris Pickett [Mon, 29 Dec 2008 19:32:56 +0000 (20:32 +0100)]
Clarify overriding of `*_DEPENDENCIES' in LIBOBJS node.

* doc/automake.texi (LIBOBJS): Clarify overriding of
`*_DEPENDENCIES'.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRevamp semantics for `missing help2man' and manpage distribution.
Ralf Wildenhues [Sun, 21 Dec 2008 21:38:37 +0000 (22:38 +0100)]
Revamp semantics for `missing help2man' and manpage distribution.

Previously, `missing help2man' would create a missing man page
containing an error message, and exit 1.  This does not play
well with `make': the next run will see this particular man page
as being up to date, and will only error out on the next
generated man page, if any; repeat until all pages are done.
This patch changes `missing' to exit successfully in this case,
but `make dist' will ensure that no such man pages are packaged.

* lib/missing: Exit successfully even if we create a replacement
page due to missing help2man.
* automake.in (make_paragraphs): Define %HAVE-MANS% to be true
if this makefile deals with man pages.
* lib/am/distdir.am (distdir): If %INSTALL-MAN% and %HAVE-MANS%,
check that no man page in $(MANS) contains the replacement text
from `missing'.
* tests/man4.test: New test.
* tests/Makefile.am: Update.
* NEWS: Reorder a bit, update.
* THANKS: Update.
Report by Werner Lemberg and Karl Berry.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDo not use 'global' for makefile-wide settings.
Ralf Wildenhues [Sun, 21 Dec 2008 21:26:14 +0000 (22:26 +0100)]
Do not use 'global' for makefile-wide settings.

* doc/automake.texi (Linking, Libtool Flags)
(Program and Library Variables, Flag Variables Ordering):
Reword instances of `global variables' that really mean
makefile-wide ones.
* THANKS: Update.
Report by Andreas Bergmeier.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix config.status depfiles failure.
Ralf Wildenhues [Sun, 21 Dec 2008 16:33:17 +0000 (17:33 +0100)]
Fix config.status depfiles failure.

* m4/depout.m4 (_AM_OUTPUT_DEPENDENCY_COMMANDS): Commands are
again a single shell brace group, so they are correctly skipped
when dependencies are turned off.  The failure is noisy with
ksh only.
* tests/depend6.test: New test.
* tests/Makefile.am: Adjust.
* THANKS: Update.
Report and different suggested patch by Markus Duft.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix a couple of typos in the manual.
Zoltan Rado [Sun, 21 Dec 2008 16:13:37 +0000 (17:13 +0100)]
Fix a couple of typos in the manual.

* doc/automake.texi (DESTDIR): Fix a couple of typos.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix nonportable sed script in 'missing'.
Ralf Wildenhues [Sat, 13 Dec 2008 13:04:29 +0000 (14:04 +0100)]
Fix nonportable sed script in 'missing'.

* lib/missing: In sed script, do not use ';' after 't' commands.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRelease procedure: check for broken links.
Ralf Wildenhues [Sun, 7 Dec 2008 12:09:09 +0000 (13:09 +0100)]
Release procedure: check for broken links.

* HACKING: when uploading the manual at release time,
check for broken links.
Report by Michael Ploujnikov.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix some broken links, for PR automake/531.
Ralf Wildenhues [Sun, 7 Dec 2008 11:39:00 +0000 (12:39 +0100)]
Fix some broken links, for PR automake/531.

* doc/automake.texi (amhello Explained)
(Mixing Fortran 77 With C and C++): Fix broken links to
Autoconf manual.
Report by Michael Ploujnikov.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoVarious spelling and grammar fixes.
Michael Ploujnikov [Sun, 7 Dec 2008 11:10:18 +0000 (12:10 +0100)]
Various spelling and grammar fixes.

* doc/automake.texi (Optional, Future of aclocal): Various
spelling and grammar fixes.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSimple typographical and grammar errors in automake.texi.
William Pursell [Mon, 1 Dec 2008 21:06:32 +0000 (21:06 +0000)]
Simple typographical and grammar errors in automake.texi.

* doc/automake.texi: Fix object/article consistency (eg "an
flag" becomes "a flag"), correct minor punctuation errors, etc.

15 years agoReplace 'configure' with '@command{configure}' as appropriate.
William Pursell [Mon, 1 Dec 2008 21:06:18 +0000 (21:06 +0000)]
Replace 'configure' with '@command{configure}' as appropriate.

* doc/automake.texi (Auxiliary Programs, Python, Rebuilding):
Replace 'configure' with '@command{configure}' as appropriate.

15 years agoFixup release rules.
Ralf Wildenhues [Sat, 29 Nov 2008 10:03:32 +0000 (11:03 +0100)]
Fixup release rules.

* Makefile.am (cvs-diff): Remove.
(git-dist): Do not use clcommit any more.  Use new-style tag
name.  Pass $(AM_MAKEFLAGS) to $(MAKE).
(git-diff): Adjust.
(git-release): Do not upload to sources.redhat.com.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix portability issues in distcleancheck_listfiles doc example.
Ralf Wildenhues [Thu, 27 Nov 2008 21:27:15 +0000 (22:27 +0100)]
Fix portability issues in distcleancheck_listfiles doc example.

* doc/automake.texi (Dist): In the `distcleancheck_listfiles'
code example, add `.' path, for Solaris `find', also rewrite so
`{}' appears only once and as separate argument, for Posix.
* tests/distcleancheck.test: New test.
* tests/Makefile.am: Update.
* THANKS: Update.
Report by Jan Engelhardt and Andreas Schwab.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoCope with whitespace in $MISSING and $install_sh.
Ralf Wildenhues [Thu, 27 Nov 2008 20:46:36 +0000 (21:46 +0100)]
Cope with whitespace in $MISSING and $install_sh.

* configure.ac (am_AUTOHEADER): New substitution, save the value
of $AUTOHEADER before AM_INIT_AUTOMAKE may add $MISSING.
* tests/defs.in: Use am_AUTOHEADER.
* lib/am/install.am: Fix typo.
* m4/install-sh.m4 (AM_PROG_INSTALL_SH): Add suitable
single-quote quoting to install_sh, but only if needed.
* m4/missing.m4 (AM_MISSING_HAS_RUN): Add suitable double-quote
quoting to MISSING, but only if needed.
* m4/sanity.m4 (AM_SANITY_CHECK): Abort configure if `pwd` or
$srcdir contain shell meta-characters that cannot be handled;
space and tab are allowed in the former only.
* tests/sanity.test: New test.
* tests/Makefile.am: Adjust.
* NEWS: Update.
Reports by Jim Meyering and others.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoLet `missing' also work with versioned and prefixed programs.
Ralf Wildenhues [Mon, 24 Nov 2008 06:44:33 +0000 (07:44 +0100)]
Let `missing' also work with versioned and prefixed programs.

* lib/missing: Ignore prefixes of `gnu-', `gnu', and `g' when
testing for known programs; also, ignore suffixes.
* tests/missing.test: Amend test.
* NEWS, THANKS: Update.
Report by Tim Rice.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix tenses, plurals, swap words, cleanup in manual.
William Pursell [Sun, 23 Nov 2008 21:23:12 +0000 (22:23 +0100)]
Fix tenses, plurals, swap words, cleanup in manual.

* doc/automake.texi (Macro search path, Extending aclocal)
(Local Macros, Serials, Public macros, Directories)
(Conditional Subdirectories, Nesting Packages)
(Building a program, Libtool Modules)
(Program and Library Variables, Default _SOURCES, LIBOBJS):
Correct verb/object tense agreement, swap some words,
and general trivial cleanup.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix more typos and grammaros in the manual.
William Pursell [Sat, 22 Nov 2008 14:06:50 +0000 (15:06 +0100)]
Fix more typos and grammaros in the manual.

* doc/automake.texi (VPATH Builds, Nested Packages)
(Length limitations, Auxiliary Programs, Invoking Automake)
(Requirements, Optional): Fix typos and grammaros, correct URL
to 'config' source repository.  Rewrite description of AC_SUBST.
(true): Cross-reference to `Default _SOURCES' node.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoQuote APIVERSION in configure.ac.
William Pursell [Sat, 22 Nov 2008 13:53:40 +0000 (14:53 +0100)]
Quote APIVERSION in configure.ac.

* configure.ac: Quote APIVERSION.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix typo introduced by Committer in last patch.
Jim Meyering [Sat, 22 Nov 2008 13:19:35 +0000 (14:19 +0100)]
Fix typo introduced by Committer in last patch.

* tests/xz.test: Fix typo introduced by Ralf in last patch.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAdd xz compression support.
Jim Meyering [Sat, 22 Nov 2008 11:02:36 +0000 (12:02 +0100)]
Add xz compression support.

* NEWS: Mention xz, as well as lzma (xz will displace lzma).
* automake.in (handle_dist): Recognize dist-xz.
(make_paragraphs): Map XZ to dist-xz.
* doc/automake.texi (Dist): Add dist-xz.
(Options): Likewise.
* lib/Automake/Options.pm (_process_option_list): Accept
dist-xz.
* lib/am/distdir.am (dist-xz): New rule.
(dist dist-all): Add command to create an xz-compressed tarball.
(distcheck): Handle xz-compressed tarballs just like the others.
* tests/xz.test: New file, based on nogzip.test.
* tests/Makefile.am (TESTS): Add xz.test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoWhen installing COPYING, recommend adding the file to VCS.
Ralf Wildenhues [Sat, 22 Nov 2008 10:46:39 +0000 (11:46 +0100)]
When installing COPYING, recommend adding the file to VCS.

* automake.in (require_file_internal): If installing `COPYING',
mention that we install the GPLv3 file and recommend adding the
file to version control.
* doc/automake.texi (Invoking Automake): Point to `Gnits' node
for `--add-missing'.
(Gnits): Clarify semantics: that for strictness gnu or higher,
INSTALL is installed, and that COPYING is installed as GPLv3
if no COPYING file exists.
* tests/license2.test: New test.
* tests/Makefile.am: Update.
* NEWS, THANKS: Update.
Report by Brian Cameron.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix typos and grammaros in the documentation.
William Pursell [Thu, 20 Nov 2008 05:33:58 +0000 (06:33 +0100)]
Fix typos and grammaros in the documentation.

* doc/automake.texi (Timeline): Fix typos and grammaros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoNew gnupload option --delete to remove archive files.
Karl Berry [Wed, 12 Nov 2008 19:52:03 +0000 (20:52 +0100)]
New gnupload option --delete to remove archive files.

* lib/gnupload: Accept --delete to remove files from
alpha.gnu.org or ftp.gnu.org.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoTestsuite fixes for ksh.
Ralf Wildenhues [Wed, 12 Nov 2008 06:07:31 +0000 (07:07 +0100)]
Testsuite fixes for ksh.

* tests/check10.test: Add ':' as last command in subshell, for
zero exit status of the subshell.
* tests/parallel-am.test: Do not let failing 'unset' of
nonexistent variable exit the test.
* tests/parallel-am2.test: Likewise.
* tests/parallel-am3.test: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoCleanup config.lt in case LT_OUTPUT is in use.
Charles Wilson [Tue, 11 Nov 2008 22:34:47 +0000 (23:34 +0100)]
Cleanup config.lt in case LT_OUTPUT is in use.

* lib/am/libtool.am [TOPDIR_P] (distclean-libtool): clean up
config.lt as well as libtool.
* tests/libtoo11.test: New test.
* tests/Makefile.am: Update.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSync auxiliary files from upstream.
Ralf Wildenhues [Tue, 11 Nov 2008 06:10:30 +0000 (07:10 +0100)]
Sync auxiliary files from upstream.

* INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub,
lib/texinfo.tex: Sync from upstream.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUpdate to GFDL 1.3.
Ralf Wildenhues [Mon, 10 Nov 2008 21:27:14 +0000 (22:27 +0100)]
Update to GFDL 1.3.

* doc/fdl.texi: Update to GFDL 1.3.
* doc/automake.texi (GNU Free Documentation License): Adjust.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix typos.
Ralf Wildenhues [Mon, 10 Nov 2008 20:47:06 +0000 (21:47 +0100)]
Fix typos.

* NEWS: Fix typos.
* automake.in: Fix typos in comments.  Remove extraneous
whitespace.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoCope with absent Perl modules threads and Thread::Queue.
Ralf Wildenhues [Thu, 6 Nov 2008 20:06:01 +0000 (21:06 +0100)]
Cope with absent Perl modules threads and Thread::Queue.

* automake.in: Instead of `use threads', use `require threads;
import threads' inside a BEGIN section.  Likewise for
Thread::Queue.
* lib/Automake/ChannelDefs.pm (Automake::ChannelDefs): Likewise.
* lib/Automake/tests/Condition-t.pl: Likewise.
* lib/Automake/tests/DisjConditions-t.pl: Likewise.
* configure.ac: Likewise, use `require' and `import'.
Report by Eric Blake, fix suggested by Ben Pfaff.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoMultiple 'make uninstall' should not fail even for TEXINFOS.
Ralf Wildenhues [Tue, 4 Nov 2008 21:42:23 +0000 (22:42 +0100)]
Multiple 'make uninstall' should not fail even for TEXINFOS.

* lib/am/texinfos.am (uninstall-info-am): Do not fail due to
install-info if the installed file does not exist (any more).
* tests/txinfo26.test: Issue multiple `make uninstall'.
* tests/instmany-mans.test: Likewise.
* tests/instmany-python.test: Likewise.
* tests/instmany.test: Likewise.
* tests/txinfo26.test: Likewise.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoNew public macro AM_SUBST_NOTMAKE.
Ralf Wildenhues [Mon, 3 Nov 2008 21:56:22 +0000 (22:56 +0100)]
New public macro AM_SUBST_NOTMAKE.

* m4/substnot.m4 (AM_SUBST_NOTMAKE): New public macro; invoke
_AM_SUBST_NOTMAKE with arguments.
* doc/automake.texi (Optional): Document it.
* NEWS: Update.
* tests/subst4.test: New test.
* tests/Makefile.am: Update.
Suggestion by Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix regression introduced by AM_DEFAULT_SOURCE_EXT.
Ralf Wildenhues [Mon, 3 Nov 2008 21:50:16 +0000 (22:50 +0100)]
Fix regression introduced by AM_DEFAULT_SOURCE_EXT.

* automake.in (handle_source_transform): Use the right variable
when determining whether to apply the old rule for the libtool
library default source name.
Testsuite failure exposed by Bob Proulx' build daemon.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoNew maintainer target release-stats.
Ralf Wildenhues [Sun, 2 Nov 2008 21:59:38 +0000 (22:59 +0100)]
New maintainer target release-stats.

* Makefile.am (release-stats): New target, to help computing the
entries in the statistics table in automake.texi.
* doc/automake.texi (Releases): Reformat a bit.  Add number of
generated files.  Add entry for 1.10.1.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoChoose default source extension: AM_DEFAULT_SOURCE_EXT.
Ralf Wildenhues [Sun, 2 Nov 2008 21:55:30 +0000 (22:55 +0100)]
Choose default source extension: AM_DEFAULT_SOURCE_EXT.

* automake.in (handle_source_transform): Accept unconditional
literal extension in AM_DEFAULT_SOURCE_EXT as override for the
default source extension `.c'.  If set, ignore the old default
source rule for libtool libraries.
* doc/automake.texi (Default _SOURCES): Document this.
* NEWS: Update.
* tests/specflg10.test: New test.
* tests/Makefile.am: Update.
Suggestion by Akim Demaille.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix maintainer-check failure.
Ralf Wildenhues [Sun, 2 Nov 2008 21:52:27 +0000 (22:52 +0100)]
Fix maintainer-check failure.

* tests/parallel-am.test: Rename variable to not match pattern
used in maintainer-check.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>