]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
14 years agodocs: mention another issue with variable expansion
Eric Blake [Thu, 26 Aug 2010 04:05:45 +0000 (22:05 -0600)] 
docs: mention another issue with variable expansion

In particular, see http://austingroupbugs.net/view.php?id=221
and http://austingroupbugs.net/view.php?id=255.

* doc/autoconf.texi (Shell Substitutions) <${var+value}>: New
subsection.
<${var=literal}>: Tweak wording.  Add mention of an ambiguity
allowed by POSIX.
* tests/torture.at (Substitute and define special characters):
Make test more robust; here, the outer "" is in a here-doc, and
does not violate the quoting rules of thumb just documented.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agom4sh: revert incorrect mix of "${a='b'}"
Eric Blake [Thu, 26 Aug 2010 03:26:14 +0000 (21:26 -0600)] 
m4sh: revert incorrect mix of "${a='b'}"

Regression introduced in cb27df430d86d5a16bc1f210d36e29400369dbc2.

* bin/autoconf.as: Revert leak of literal '' into assignment.
* tests/tools.at (autom4te preselections): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agom4sh: revert regression in AS_TMPDIR
Eric Blake [Thu, 26 Aug 2010 03:06:16 +0000 (21:06 -0600)] 
m4sh: revert regression in AS_TMPDIR

Regression introduced in e0ac12089ea4c934029baf77741e659f0bebd653.

* lib/m4sugar/m4sh.m4 (AS_TMPDIR): The previous patch trying to
rename $tmp to $as_tmp was wrong; config.status relies on it.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agom4sh: reduce size of AS_VAR_TEST_SET
Eric Blake [Wed, 25 Aug 2010 22:22:45 +0000 (16:22 -0600)] 
m4sh: reduce size of AS_VAR_TEST_SET

* lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Make more compact.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: improve some shell assumption testing
Eric Blake [Wed, 25 Aug 2010 22:25:15 +0000 (16:25 -0600)] 
tests: improve some shell assumption testing

* tests/m4sh.at (Functions Support, Functions and return Support)
(Negated classes in globbing): Update comments.
(AS@&t@_VAR basics): Test comparison to empty string.

14 years agodocs: mention cost of globbing during variable expansion
Eric Blake [Wed, 25 Aug 2010 22:54:42 +0000 (16:54 -0600)] 
docs: mention cost of globbing during variable expansion

* doc/autoconf.texi (Shell Substitutions) <${var=literal}>:
Recommend quoting substitutions that might trigger globbing.
(Limitations of Builtins) <:>: Likewise.
* bin/autoconf.as: Follow our own advice.
* lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Likewise.
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Likewise.
* lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
* lib/autotest/general.m4 (_AT_FINISH): Likewise.
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Likewise.
* tests/autotest.at (parallel autotest and signal handling):
Likewise.
* tests/c.at (AC_OPENMP and C, AC_OPENMP and C++): Likewise.
* tests/foreign.at (shtool): Likewise.
* tests/fortran.at: Likewise.
* tests/tools.at (autom4te preselections): Likewise.
* tests/torture.at (VPATH): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agom4sh: fix some namespace safety issues
Eric Blake [Wed, 25 Aug 2010 22:21:39 +0000 (16:21 -0600)] 
m4sh: fix some namespace safety issues

* lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Avoid problems if
as_myself is inherited from environment.
(AS_TMPDIR): Be namespace clean.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: fix AC_CACHE_CHECK to skip with bad shells.
Ralf Wildenhues [Tue, 24 Aug 2010 20:59:13 +0000 (22:59 +0200)] 
tests: fix AC_CACHE_CHECK to skip with bad shells.

* tests/base.at (AC_CACHE_CHECK): Skip test with malformed
config.site file if the shell does not report syntax errors
from a sourced file.  Fixes test failure on AIX and FreeBSD.
Report from Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAC_HEADER_STDBOOL: avoid spurious failure with modern xlc
Paul Eggert [Tue, 24 Aug 2010 21:03:32 +0000 (14:03 -0700)] 
AC_HEADER_STDBOOL: avoid spurious failure with modern xlc

* lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Move the "bool e =
&s;" test into the main program, as C99 might plausibly be
interpreted as not requiring support for this construction in
static initializers.  Remove the "#if defined __xlc__" stuff, as
the bug is not present in recent xlc implementations, and they
reject the test for other (valid) reasons.  People using ancient
xlc versions, if any, are suggested to update to fixed versions.
Reported by Ralf Wildenhues in the thread starting at:
http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00103.html

14 years agoAC_FUNC_GETLOADAVG: don't define SVR4 on cygwin
Eric Blake [Tue, 24 Aug 2010 13:41:41 +0000 (07:41 -0600)] 
AC_FUNC_GETLOADAVG: don't define SVR4 on cygwin

* lib/autoconf/functions.m4 (_AC_LIBOBJ_GETLOADAVG): Only define
SVR4 when -lkvm is required.
* THANKS: Update.
Reported by Yaakov Selkowitz.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_HEADER_STDBOOL: avoid spurious clang failure
Eric Blake [Mon, 23 Aug 2010 20:35:48 +0000 (14:35 -0600)] 
AC_HEADER_STDBOOL: avoid spurious clang failure

* lib/autoconf/headers.m4 (AC_HEADER_STDBOOL): Drop gcc (and by
extension clang) check in favor of a gnulib test.  Force failure,
rather than merely testing for a compiler extension.
* THANKS: Update.
Reported by Anders Kaseorg.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: AIX sed dislikes indented comments.
Ralf Wildenhues [Sat, 21 Aug 2010 05:45:22 +0000 (07:45 +0200)] 
doc: AIX sed dislikes indented comments.

* doc/autoconf.texi (Limitations of Usual Tools) <sed>: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoautoreconf: mention the AUTOM4TE environment variable
Stefano Lattarini [Thu, 19 Aug 2010 09:53:46 +0000 (11:53 +0200)] 
autoreconf: mention the AUTOM4TE environment variable

* doc/autoconf.texi (Using autoreconf to Update configure
Scripts): List `AUTOM4TE' among the environment variables
honored by autoreconf.
* bin/autoreconf.in ($help): Likewise.

15 years agodoc: improve AS_VAR_IF details
Eric Blake [Tue, 17 Aug 2010 14:17:36 +0000 (08:17 -0600)] 
doc: improve AS_VAR_IF details

* doc/autoconf.texi (Polymorphic Variables) <AS_VAR_IF>: Make it
clear that user must supply quotes as needed.
* THANKS: Update.
Suggested by Randall Cotton.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoFix Autotest --errexit to exit after XPASSing tests.
Ralf Wildenhues [Mon, 16 Aug 2010 19:14:20 +0000 (21:14 +0200)] 
Fix Autotest --errexit to exit after XPASSing tests.

* lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
Exit after an unexpected passing test if $at_errexit.
* tests/autotest.at (errexit): Also try tests that xpass, skip,
xfail, or fail hard.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAC_INIT: allow bugreport to contain '?'
Eric Blake [Sat, 14 Aug 2010 19:17:04 +0000 (13:17 -0600)] 
AC_INIT: allow bugreport to contain '?'

* lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Relax check.
* tests/base.at (AC_INIT with unusual version strings): Enhance
test.
* doc/autoconf.texi (Initializing configure): Document this.
* NEWS: Likewise.
* THANKS: Update.
Reported by Yavor Doganov and others.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoautotest: keep testsuite files on unexpected pass
Peter Rosin [Tue, 10 Aug 2010 21:08:03 +0000 (23:08 +0200)] 
autotest: keep testsuite files on unexpected pass

* lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
Don't cleanup the group directory when a test unexpectedly passes.
* tests/autotest.at (Cleanup): Check that an unexpected pass leaves
the test group directory intact.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoSkip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.
Ralf Wildenhues [Tue, 10 Aug 2010 20:45:49 +0000 (22:45 +0200)] 
Skip AC_FC_SRCEXT([f90]) tests with a Fortran 77 compiler in $FC.

* tests/fortran.at (AC_FC_FREEFORM with AC_FC_SRCEXT)
(AC_FC_FIXEDFORM with AC_FC_SRCEXT): Skip if the compiler cannot
handle files with .f90 extension.
Report by Luke Dalessandro.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix testsuite failures with typical m4-x.y.z program suffix.
Ralf Wildenhues [Tue, 10 Aug 2010 20:45:19 +0000 (22:45 +0200)] 
Fix testsuite failures with typical m4-x.y.z program suffix.

* tests/local.at (AT_CHECK_M4): Normalize hyphens and digits
after the `m4' program name.
* THANKS: Update.
Report by Luke Dalessandro.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix description of AC_CONFIG_TESTDIR to not mention atconfig.in.
Ralf Wildenhues [Fri, 6 Aug 2010 21:00:46 +0000 (23:00 +0200)] 
Fix description of AC_CONFIG_TESTDIR to not mention atconfig.in.

* doc/autoconf.texi (Making testsuite Scripts): atconfig is not
created from an input template.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAC_FUNC_ALLOCA: modernize
Bruno Haible [Thu, 5 Aug 2010 11:26:40 +0000 (13:26 +0200)] 
AC_FUNC_ALLOCA: modernize

* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Assume that alloca's
return type is 'void *', not 'char *'.  Supply C89 prototype.
Reported by Thomas Klausner.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoFix testsuite failure due to bugs in third-party aclocal macros.
Ralf Wildenhues [Wed, 4 Aug 2010 19:04:05 +0000 (21:04 +0200)] 
Fix testsuite failure due to bugs in third-party aclocal macros.

* tests/torture.at (Non-literal AC_CONFIG_SUBDIRS): Create a
hand-written aclocal.m4 file, so the -Werror test doesn't fail
over aclocal warnings about errors in third-party macro files.
Simplify test accordingly, calling autoreconf throughout.
Report by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix AC_LANG_SOURCE and AC_LANG_PROGRAM tests.
Ralf Wildenhues [Wed, 4 Aug 2010 18:31:06 +0000 (20:31 +0200)] 
Fix AC_LANG_SOURCE and AC_LANG_PROGRAM tests.

* tests/compile.at (AC_LANG_SOURCE example)
(AC_LANG_PROGRAM example): Fix broken sed script for
extracting the interesting part of the conftest.c file.
Fixes test failure on Haiku.
* THANKS: Update.
Report by Scott McCreary.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agodocs: mention bash bug with word splitting
Eric Blake [Tue, 3 Aug 2010 21:56:07 +0000 (15:56 -0600)] 
docs: mention bash bug with word splitting

* doc/autoconf.texi (Shell Substitutions): Document bash bug, and
zsh default behavior difference.
Reported by Ralf Wildenhues.

15 years agodocs: mention ksh bug with function syntax
Eric Blake [Tue, 3 Aug 2010 21:40:16 +0000 (15:40 -0600)] 
docs: mention ksh bug with function syntax

* doc/autoconf.texi (Shell Functions): Document ksh93 limitation.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoFix typo in Autotest color test, for dash testsuite failure.
Ralf Wildenhues [Tue, 3 Aug 2010 18:06:28 +0000 (20:06 +0200)] 
Fix typo in Autotest color test, for dash testsuite failure.

* tests/autotest.at (colored test results): Use exit not
Exit.  Fixes test failure with dash 0.5.4.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agodocs: track recent copyright assignment
Eric Blake [Mon, 2 Aug 2010 21:47:11 +0000 (15:47 -0600)] 
docs: track recent copyright assignment

* AUTHORS: Add Peter Rosin.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAdd testsuite exposure for last-minute fix in 2.67.
Ralf Wildenhues [Mon, 2 Aug 2010 20:01:13 +0000 (22:01 +0200)] 
Add testsuite exposure for last-minute fix in 2.67.

* tests/autotest.at (parallel args but non-working mkfifo):
New test, to expose the failure v2.66-23-g991183c avoided.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoEnsure unnamed test group categories are separated from previous.
Ralf Wildenhues [Mon, 2 Aug 2010 19:10:00 +0000 (21:10 +0200)] 
Ensure unnamed test group categories are separated from previous.

* doc/autoconf.texi (Writing Testsuites) <AT_BANNER>: Update
description.
* lib/autotest/general.m4 (AT_INIT) <at_fn_banner>: Set banner
to single space, not empty line, once printed.  For empty
banners, print a single empty line to separate them from a
previous test group category.
* tests/autotest.at (Banners): Insert another test group; adjust
tests accordingly.  Extend test to cover semantic change.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix typos in perlpod docs.
Ralf Wildenhues [Sat, 31 Jul 2010 07:09:15 +0000 (09:09 +0200)] 
Fix typos in perlpod docs.

* lib/Autom4te/ChannelDefs.pm, lib/Autom4te/Channels.pm,
lib/Autom4te/General.pm: Fix typos and spacing in perlpod
documentation and in comments.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agodocs: mention ksh file descriptor limitation
Eric Blake [Thu, 29 Jul 2010 22:21:08 +0000 (16:21 -0600)] 
docs: mention ksh file descriptor limitation

* doc/autoconf.texi (File Descriptors): Document issue with fd 10
and above.
Reported by Ralf Wildenhues.

15 years agodocs: mention cd limitation
Eric Blake [Thu, 29 Jul 2010 22:10:26 +0000 (16:10 -0600)] 
docs: mention cd limitation

* doc/autoconf.texi (Limitations of Builtins) <cd>: Document
issues with empty argument.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAdd missing index entries to manual.
Ralf Wildenhues [Thu, 29 Jul 2010 20:01:56 +0000 (22:01 +0200)] 
Add missing index entries to manual.

* doc/autoconf.texi (Fortran Compiler, Language Choice): Add
index entries for AC_FC_DUMMY_MAIN, AC_LANG; reformat entry for
AC_LANG_ASSERT.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agopost-release administrivia
Eric Blake [Wed, 21 Jul 2010 22:19:14 +0000 (16:19 -0600)] 
post-release administrivia

* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.

15 years agoRelease Version 2.67. v2.67
Eric Blake [Tue, 20 Jul 2010 15:39:43 +0000 (09:39 -0600)] 
Release Version 2.67.

* NEWS: Mention the release.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoPrepare for release.
Eric Blake [Wed, 21 Jul 2010 16:31:52 +0000 (10:31 -0600)] 
Prepare for release.

* maint.mk (PREV_VERSION_REGEXP): New macro, missed when
backporting update-NEWS_hash from gnulib.
* cfg.mk (old_NEWS_hash): Correctly generate.
* build-aux/gendocs.sh: Temporarily break sync from upstream, to
avoid including spurious directories in info source tarball.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAvoid spurious testsuite failures.
Eric Blake [Wed, 21 Jul 2010 21:57:42 +0000 (15:57 -0600)] 
Avoid spurious testsuite failures.

* doc/autoconf.texi (Generating Sources): Don't mix gcc '-E' and
'-o -', since the former already implies stdout, while the latter
creates -.exe on cygwin.
* tests/compile.at (AC_LANG_SOURCE example)
(AC_LANG_PROGRAM example): Likewise.  Also prevent any config.site
interference.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoPartially revert previous patch.
Eric Blake [Wed, 21 Jul 2010 19:51:14 +0000 (13:51 -0600)] 
Partially revert previous patch.

* lib/autotest/general.m4 (AT_INIT) <serial testing>: Changing
at_jobs here breaks output if -j2 was requested but shell is
insufficient to support parallel testing.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoMinor testsuite size reduction.
Eric Blake [Wed, 21 Jul 2010 13:51:24 +0000 (07:51 -0600)] 
Minor testsuite size reduction.

* lib/autotest/general.m4 (AT_INIT) <serial testing>: Ensure
at_jobs is 1.
(AT_SETUP, AT_CLEANUP): Factor initialization code...
(AT_INIT) <at_fn_group_banner>: ...into new function.
Based in part on suggestion by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoClose job control fd before running tests.
Eric Blake [Wed, 21 Jul 2010 04:11:14 +0000 (22:11 -0600)] 
Close job control fd before running tests.

* doc/autoconf.texi (File Descriptors): Clarify limitations.
* lib/autotest/general.m4 (AT_CLEANUP): Avoid leaking job control
fifo fd to user tests.
(AT_INIT): Delete comment, now that close is done elsewhere.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoPlug race in parallel autotest.
Eric Blake [Wed, 21 Jul 2010 03:14:14 +0000 (21:14 -0600)] 
Plug race in parallel autotest.

* lib/autotest/general.m4 (AT_INIT) <Fifo job dispatcher>: Track
two fds to fifo in parent, to avoid race where parent can see EOF
before child opens fifo.  Avoid any atomicity problems with tokens
larger than one byte.
* NEWS: Document the bug fix.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAnother empty argument through expr workaround.
Eric Blake [Tue, 20 Jul 2010 14:06:16 +0000 (08:06 -0600)] 
Another empty argument through expr workaround.

* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Detect empty
arguments.  Reject empty file argument.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Check for missing argument.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAlso reject ' and newline from AC_INIT strings.
Eric Blake [Tue, 20 Jul 2010 13:43:56 +0000 (07:43 -0600)] 
Also reject ' and newline from AC_INIT strings.

* lib/autoconf/general.m4 (_AC_INIT_LITERAL): Reject a couple more
problematic characters.
* tests/base.at (AC_INIT with unusual version strings): Enhance
test.
* doc/autoconf.texi (Initializing configure) <AC_INIT>: Further
clarifications, and clean up wording about use of m4_esyscmd.
* NEWS: Update previous news entry.
Suggested by Paolo Bonzini.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoLet autoreconf pass warning flags to new-enough aclocal.
Ralf Wildenhues [Tue, 20 Jul 2010 05:35:01 +0000 (07:35 +0200)] 
Let autoreconf pass warning flags to new-enough aclocal.

* bin/autoreconf.in ($aclocal_supports_warnings)
($automake_supports_warnings): New globals.
(parse_args): Set and use them.  Be sure to invoke `aclocal
--help' and `automake --help' just once each.
* NEWS: Update.
Prompted by report from Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoFix parsing of empty variable settings on the command line.
Ralf Wildenhues [Tue, 20 Jul 2010 05:58:14 +0000 (07:58 +0200)] 
Fix parsing of empty variable settings on the command line.

* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Work around
expr bug returning 0 instead of the empty string.
* lib/autotest/general.m4 (AT_INIT): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix typo in the manual.
Ralf Wildenhues [Tue, 20 Jul 2010 03:36:38 +0000 (05:36 +0200)] 
Fix typo in the manual.

* doc/autoconf.texi (AC_ACT_IFELSE vs AC_TRY_ACT): Fix typo.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix up AC_INIT vs. " issues, and document it.
Eric Blake [Mon, 19 Jul 2010 22:39:45 +0000 (16:39 -0600)] 
Fix up AC_INIT vs. " issues, and document it.

* doc/autoconf.texi (Initializing configure): Improve
documentation on argument restrictions.
* NEWS: Tweak information.
* lib/autoconf/general.m4 (_AC_INIT_GENERAL): New macro, that also
rejects literal ".
(_AC_INIT_PACKAGE): Use it to plug hole in last patch.
* tests/base.at (AC_INIT with unusual version strings): Enhance
test.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoRelax AC_INIT requirements for PACKAGE and VERSION strings again.
Ralf Wildenhues [Mon, 19 Jul 2010 21:50:45 +0000 (15:50 -0600)] 
Relax AC_INIT requirements for PACKAGE and VERSION strings again.

* lib/m4sugar/m4sh.m4 (AS_LITERAL_HEREDOC_IF): New macro.
(_AS_LITERAL_HEREDOC_IF, _AS_LITERAL_HEREDOC_IF_YES)
(_AS_LITERAL_HEREDOC_IF_NO): New helper macros.
* lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Use
AS_LITERAL_HEREDOC_IF for PACKAGE and VERSION strings.
* tests/base.at (AC_INIT with unusual version strings): New test.
* tests/m4sh.at (AS@&t@_LITERAL_IF): Extend test.
* NEWS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoFix testsuite failures from previous patch.
Eric Blake [Mon, 19 Jul 2010 23:31:45 +0000 (17:31 -0600)] 
Fix testsuite failures from previous patch.

* lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Also remove
conftest.i when preprocessor tests break out of a loop.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAllow inspecting AC_PREPROC_IFELSE output in true branch.
Ralf Wildenhues [Mon, 19 Jul 2010 17:59:19 +0000 (19:59 +0200)] 
Allow inspecting AC_PREPROC_IFELSE output in true branch.

* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): Redirect
preprocessor output to conftest.i rather than /dev/null.
(_AC_PREPROC_IFELSE): Remove conftest.i in the postprocessing.
* tests/compile.at (Order of user actions and cleanup): Extend
test in the ACTION-IF-TRUE branch.
* doc/autoconf.texi (Running the Preprocessor): Document new
feature.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix AC_FC_LIBRARY_LDFLAGS detection for BlueGene xlf -qipa.
Ralf Wildenhues [Mon, 19 Jul 2010 17:52:44 +0000 (19:52 +0200)] 
Fix AC_FC_LIBRARY_LDFLAGS detection for BlueGene xlf -qipa.

* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
'-link', added spuriously when -qipa is used with the XL
Fortran compilers on BlueGene.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agomanual: compiler flags -D and -L should not be followed by space
Ralf Wildenhues [Sun, 11 Jul 2010 10:12:57 +0000 (12:12 +0200)] 
manual: compiler flags -D and -L should not be followed by space

* doc/autoconf.texi (Preset Output Variables): Remove space
between -D and -L flags and their arguments, traditional cpp
implementations like Solaris 10, IRIX 6.5, OSF Tru64 5.1D,
AIX 5.3 do not accept it.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoFix comment typo in the manual.
Ralf Wildenhues [Sat, 10 Jul 2010 16:38:09 +0000 (18:38 +0200)] 
Fix comment typo in the manual.

* doc/autoconf.texi (Generic Compiler Characteristics): Refer
to the right test in the example marker comment.
Spotted by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoNew Fortran macro AC_FC_LINE_LENGTH.
Ralf Wildenhues [Sat, 10 Jul 2010 16:40:43 +0000 (18:40 +0200)] 
New Fortran macro AC_FC_LINE_LENGTH.

* lib/autoconf/fortran.m4 (AC_FC_LINE_LENGTH): New macro.
* doc/autoconf.texi (Fortran Compiler): Document it.
* tests/fortran.at (AC_FC_LINE_LENGTH): New test.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix wording about AC_CONFIG_SUBDIRS warning.
Ralf Wildenhues [Sat, 10 Jul 2010 06:44:07 +0000 (08:44 +0200)] 
Fix wording about AC_CONFIG_SUBDIRS warning.

* doc/autoconf.texi (Subdirectories): We warn, not error, about
nonexistent config subdirs, but only at configure run time.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix regression of AC_CHECK_SIZEOF on pointer types.
Eric Blake [Tue, 6 Jul 2010 20:00:44 +0000 (22:00 +0200)] 
Fix regression of AC_CHECK_SIZEOF on pointer types.

* lib/autoconf/types.m4 (AC_CHECK_SIZEOF): Translate `*' to `p'
when checking literal-ness of the type, for pointer types.
* lib/m4sugar/m4sh.m4 (_AS_TR_SH): Also consider `*' as literal.
(_AS_TR_CPP): Likewise.
* tests/semantics.at (AC_CHECK_ALIGNOF struct): When checking
for numeric answer, be sure to not allow variable references.
(AC_CHECK_SIZEOF struct): Likewise.  Also, test the
`AC_CHECK_SIZEOF([int *])' example from the manual.
* doc/autoconf.texi (Generic Compiler Characteristics): Add
example marker.
* NEWS: Update.
Reports by Nishio Futoshi and Roberto Bagnara.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix regression of AC_CONFIG_SUBDIRS with multiple arguments.
Ralf Wildenhues [Tue, 6 Jul 2010 20:31:33 +0000 (22:31 +0200)] 
Fix regression of AC_CONFIG_SUBDIRS with multiple arguments.

* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Do not assume the
argument is a single word.
* tests/torture.at (Deep Package): Extend test to cover this.
(Non-literal AC_CONFIG_SUBDIRS): New test.
* doc/autoconf.texi (Subdirectories): Add example marker.
* NEWS: Update.
Report by Bruno Haible.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix minor copy&paste leftover in m4sh tests.
Stefano Lattarini [Sat, 3 Jul 2010 20:41:03 +0000 (22:41 +0200)] 
Fix minor copy&paste leftover in m4sh tests.

* tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): Remove
useless variables assignements ($var, $vAr, $VAR).

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix testsuite to not trigger Solaris sh for bug.
Ralf Wildenhues [Sun, 4 Jul 2010 18:22:29 +0000 (20:22 +0200)] 
Fix testsuite to not trigger Solaris sh for bug.

* tests/torture.at (Torturing config.status)
(Substitute a 2000-byte string)
(Substitute and define special characters)
(Substitute a newline): Quote first argument in for list so
that it does not look like an assignment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agopost-release administrivia
Eric Blake [Fri, 2 Jul 2010 22:54:35 +0000 (16:54 -0600)] 
post-release administrivia

* maint.mk (NEWS_hash): Define.
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.

15 years agoRelease Version 2.66. v2.66
Eric Blake [Fri, 2 Jul 2010 22:32:08 +0000 (16:32 -0600)] 
Release Version 2.66.

* NEWS: Mention the release.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoPick up some maint.mk improvements from gnulib.
Eric Blake [Fri, 2 Jul 2010 22:31:03 +0000 (16:31 -0600)] 
Pick up some maint.mk improvements from gnulib.

* configure.ac (AM_INIT_AUTOMAKE): Require 1.11, and build xz
archives by default now.
* maint.mk (gzip_rsyncable): Avoid non-portable echo.
(VC-tag): Depend on gpg_key_ID.
(PREV_VERSION): Don't parse error as version.
(announcement): Populate email addresses with defaults.
(emit_upload_commands, web-manual): Reflect changes in scripts.
(update-NEWS-hash, emit-commit-log, release-prep): New macros.
* cfg.mk (announcement_Cc_, announcement_mail_headers_): Override
defaults.
* HACKING: Modernize a bit.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoResync upstream files.
Eric Blake [Fri, 2 Jul 2010 21:58:07 +0000 (15:58 -0600)] 
Resync upstream files.

* GNUmakefile: Run 'make fetch'.
* build-aux/announce-gen: Likewise.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* build-aux/gendocs.sh: Likewise.
* build-aux/git-version-gen: Likewise.
* build-aux/gnupload: Likewise.
* build-aux/texinfo.tex: Likewise.
* build-aux/vc-list-files: Likewise.
* doc/gendocs_template: Likewise.
* doc/gnu-oids.texi: Likewise.
* doc/make-stds.texi: Likewise.
* doc/standards.texi: Likewise.
* lib/Autom4te/Channels.pm: Likewise.
* lib/Autom4te/Configure_ac.pm: Likewise.
* lib/Autom4te/FileUtils.pm: Likewise.
* lib/Autom4te/XFile.pm: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoMake AS_TR_SH and AS_TR_CPP similar.
Eric Blake [Fri, 2 Jul 2010 21:35:45 +0000 (15:35 -0600)] 
Make AS_TR_SH and AS_TR_CPP similar.

* lib/m4sugar/m4sh.m4 (_AS_TR_CPP_LITERAL): Avoid underquoting.
(_AS_TR_CPP_INDIR): Handle all polymorphic variables.
* tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): New test.
* NEWS: Document the fix.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoReduce startup cost of autotest.
Eric Blake [Fri, 2 Jul 2010 20:03:50 +0000 (14:03 -0600)] 
Reduce startup cost of autotest.

* lib/autotest/general.m4 (_AT_FINISH) <banners>: Rather than
doing a recursive find, limit ourselves to top ChangeLog only.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoNew macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage.
Ralf Wildenhues [Mon, 28 Jun 2010 22:15:25 +0000 (00:15 +0200)] 
New macro AC_FC_FIXEDFORM, improved AC_FC_FREEFORM, coverage.

* lib/autoconf/fortran.m4 (_AC_FC_DIALECT_YEAR): Fix typo in
comment.
(AC_FC_FREEFORM): Update list of known options for Sun, HP,
Lahey/Fujitsu Fortran compilers.  Use M4 quoting consistently.
(AC_FC_FIXEDFORM): New macro.
* tests/fortran.at (AC_FC_DUMMY_MAIN usage, AC_FC_MAIN usage):
Use AC_FC_FIXEDFORM, to avoid testsuite failure with FC=xlf95.
(AC_FC_FREEFORM with AC_FC_SRCEXT, AC_FC_FIXEDFORM)
(AC_FC_FIXEDFORM with AC_FC_SRCEXT): New tests.
* tests/mktests.sh: No need to exclude AC_FC_FREEFORM, it uses
AC_LANG_PUSH/AC_LANG_POP.
* doc/autoconf.texi (Fortran Compiler): Document it.
* NEWS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoOptimize AS_BOX.
Eric Blake [Tue, 2 Mar 2010 00:17:40 +0000 (17:17 -0700)] 
Optimize AS_BOX.

* lib/m4sugar/m4sh.m4 (AS_BOX): Use less m4 time.
(_AS_BOX_LITERAL): Use fewer forks in the common case.
* doc/autoconf.texi (Common Shell Constructs) <AS_BOX>: Document
the macro.
* NEWS: Mention it.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoUse new AS_LITERAL_IF argument when appropriate.
Eric Blake [Sat, 27 Feb 2010 18:43:21 +0000 (11:43 -0700)] 
Use new AS_LITERAL_IF argument when appropriate.

* lib/m4sugar/m4sh.m4 (AS_VAR_SET): Reduce m4 overhead.
(AS_VAR_IF, AS_VAR_TEST_SET): Provide shorter variant for simple
references.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAdd tests for AS_BOX.
Eric Blake [Wed, 17 Mar 2010 00:49:07 +0000 (18:49 -0600)] 
Add tests for AS_BOX.

* tests/m4sugar.at (m4@&t@_text_box): New test.
* tests/m4sh.at (AS@&t@_BOX): Likewise.
* lib/m4sugar/m4sugar.m4 (m4_text_box): Support comma.
* doc/autoconf.texi (Text processing Macros) <m4_text_box>:
Document further limitations.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAdd optional argument to AS_LITERAL_IF.
Eric Blake [Wed, 17 Mar 2010 00:12:02 +0000 (18:12 -0600)] 
Add optional argument to AS_LITERAL_IF.

* lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Rewrite to generate macro
name, without using m4_cond.
(_AS_LITERAL_IF_, _AS_LITERAL_IF_YES, _AS_LITERAL_IF_NO): New
helpers.
(AS_LITERAL_IF, AS_LITERAL_WORD_IF, _AS_TR_SH, _AS_TR_CPP)
(_AS_VAR_PUSHDEF): Adjust callers.
* lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Relax restrictions on
invalid bytes, since this allows inline struct layouts.
(_AC_CHECK_ALIGNOF): New helper macro.
* tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.
* doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
Update documentation.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoUse AS_LITERAL_WORD_IF as appropriate.
Eric Blake [Tue, 16 Mar 2010 23:52:12 +0000 (17:52 -0600)] 
Use AS_LITERAL_WORD_IF as appropriate.

* lib/autoconf/autoheader.m4 (AH_VERBATIM): Use new macro.
* lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_CACHE_VAL)
(AS_CACHE_CHECK, AC_DEFINE_TRACE, _AC_LIBOBJ): Likewise.
* lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
* lib/m4sugar/m4sh.m4 (AS_UNSET, AS_VAR_COPY, AS_VAR_GET)
(AS_VAR_IF, AS_VAR_SET, AS_VAR_TEST_SET): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAdd AS_LITERAL_WORD_IF.
Eric Blake [Tue, 16 Mar 2010 21:51:23 +0000 (15:51 -0600)] 
Add AS_LITERAL_WORD_IF.

* lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Also reject shell quoting
characters as non-literal, and provide way to reject space.
(AS_LITERAL_WORD_IF): New macro.
* doc/autoconf.texi (Polymorphic Variables) <AS_LITERAL_IF>:
Document new macro.  Fix example to match reality.
* NEWS: Document change and new macro.
* tests/m4sh.at (AS@&t@_LITERAL_IF): Update test.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoOptimize AC_DEFINE.
Eric Blake [Tue, 16 Mar 2010 21:48:44 +0000 (15:48 -0600)] 
Optimize AC_DEFINE.

* lib/autoconf/general.m4 (_AC_DEFINE_Q): Avoid overhead of
AS_LITERAL_IF.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoDescribe a Solaris /bin/sh bug w.r.t. for loops.
Stefano Lattarini [Fri, 2 Jul 2010 16:14:52 +0000 (18:14 +0200)] 
Describe a Solaris /bin/sh bug w.r.t. for loops.

Fix the commit (forgot to 'git add .').

* doc/autoconf.texi (Limitations of Shell Builtins) <for>:
Document a bug of the 'for' builtin in Solaris /bin/sh, w.r.t.
tokens seeming variable assignment in the list of arguments.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoDescribe a Solaris /bin/sh bug w.r.t. for loops.
Stefano Lattarini [Fri, 2 Jul 2010 16:14:52 +0000 (18:14 +0200)] 
Describe a Solaris /bin/sh bug w.r.t. for loops.

* doc/autoconf.texi (Limitations of Shell Builtins) <for>:
Document a bug of the 'for' builtin in Solaris /bin/sh, w.r.t.
tokens seeming variable assignment in the list of arguments.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoImprove VPATH handling in config.status for non-Automake projects.
Ralf Wildenhues [Wed, 23 Jun 2010 17:23:12 +0000 (19:23 +0200)] 
Improve VPATH handling in config.status for non-Automake projects.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Be sure not
to remove references to a subdir of srcdir.  Fix treatment of
multiple colon-separated VPATH entries.
* tests/torture.at (VPATH): New test.
Report by Keith Marshall.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFurther improve docs about nested double-quotes and backquotes.
Ralf Wildenhues [Wed, 23 Jun 2010 17:55:02 +0000 (19:55 +0200)] 
Further improve docs about nested double-quotes and backquotes.

* doc/autoconf.texi (Shellology): Remove anchor for pdksh.
Move quoting bug example to ...
(Shell Substitutions): ... here.  Document which behavior is
specified by Posix.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoCoverage for Fortran compiler macros.
Ralf Wildenhues [Wed, 23 Jun 2010 17:18:14 +0000 (19:18 +0200)] 
Coverage for Fortran compiler macros.

* tests/fortran.at (AC_OPENMP and Fortran 77)
(AC_OPENMP and Fortran): Simplify, using AT_CHECK_CONFIGURE.
(AC_F77_DUMMY_MAIN usage, AC_FC_DUMMY_MAIN usage)
(AC_F77_MAIN usage, AC_FC_MAIN usage, AC_F77_FUNC usage)
(AC_FC_FUNC usage, AC_FC_SRCEXT usage, AC_FC_FREEFORM): New
tests.
* doc/autoconf.texi (Fortran Compiler): Use GNU coding style
on C code snippets.  Add markers for tested examples.
Suggest AC_FC_FREEFORM for source file extensions which the
compiler might not natively support but which are accepted
with help from AC_FC_SRCEXT.  Suggest AC_CONFIG_HEADERS for
setups using one of the AC_*MAIN macros.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAccept any nonzero exit status upon config.status write failure.
Ralf Wildenhues [Sat, 19 Jun 2010 18:17:09 +0000 (20:17 +0200)] 
Accept any nonzero exit status upon config.status write failure.

* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Normalize nonzero status to 1 for writing to /dev/full, for HP-UX
11.31 cat which exits 2.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix testsuite failure with Tru64 preprocessor.
Ralf Wildenhues [Sat, 19 Jun 2010 15:49:21 +0000 (17:49 +0200)] 
Fix testsuite failure with Tru64 preprocessor.

* tests/compile.at (Order of user actions and cleanup): Add
incomplete comment to provoke failure with Tru64/OSF 5.1 cc
preprocessor.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFurther clarification on sed -e portability.
Ralf Wildenhues [Tue, 22 Jun 2010 05:29:35 +0000 (07:29 +0200)] 
Further clarification on sed -e portability.

See also http://austingroupbugs.net/view.php?id=262 and
http://austingroupbugs.net/view.php?id=264.

* doc/autoconf.texi (Limitations of Usual Tools) <sed>: Clarify
more about sed -e and Posix limitations.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoDocument how to use literal newlines in makefile rules.
Bruno Haible [Fri, 18 Jun 2010 22:49:48 +0000 (00:49 +0200)] 
Document how to use literal newlines in makefile rules.

* doc/autoconf.texi (Newlines in Make Rules): New section.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoDocument how to write comments in makefile rules.
Bruno Haible [Fri, 18 Jun 2010 22:06:37 +0000 (00:06 +0200)] 
Document how to write comments in makefile rules.

* doc/autoconf.texi (Comments in Make Rules): Mention a workaround
syntax.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoDocument how to propogate variables to submakes.
Ben Pfaff [Tue, 15 Jun 2010 04:10:48 +0000 (21:10 -0700)] 
Document how to propogate variables to submakes.

On bug-gnulib, archived at
     http://permalink.gmane.org/gmane.comp.lib.gnulib.bugs/22132
Ralf Wildenhues taught me a bit about how Automake propagates
variables to submakes.  I thought that it would good to document
this in the Autoconf manual, which currently has no detail at
all.

* doc/autoconf.texi: Describe technique used by Automake to
propagate variables to submakes in more detail.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoBe consistent in doc example.
Peter Johansson [Wed, 23 Jun 2010 01:09:04 +0000 (21:09 -0400)] 
Be consistent in doc example.

* doc/autoconf.texi: (Polymorphic Variables) be consistent in code
example and output

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAdd comments for vim syntax highlighting.
Ralf Wildenhues [Tue, 22 Jun 2010 21:50:33 +0000 (23:50 +0200)] 
Add comments for vim syntax highlighting.

* doc/autoconf.texi: Restore font-lock in some examples using
$$, for vim.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFormatting cleanups for optional arguments.
Ralf Wildenhues [Tue, 22 Jun 2010 21:50:03 +0000 (23:50 +0200)] 
Formatting cleanups for optional arguments.

* doc/autoconf.texi (Configuration Actions, Help Formatting)
(External Software): Use @r{} for brackets denoting optional
arguments, where @ovar is not safe to use.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoClarify nested double-quotes and backquotes shell issues.
Ralf Wildenhues [Tue, 22 Jun 2010 18:05:38 +0000 (20:05 +0200)] 
Clarify nested double-quotes and backquotes shell issues.

* doc/autoconf.texi (Shellology): New anchor for pdksh.
(Shell Substitutions): Link to it for escaped double-quotes
within double-quoted backquotes; add ksh example for unescaped
inner double-quotes problem.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMention Tru64 5.1 fgrep limitation with emtpy patterns.
Ralf Wildenhues [Tue, 22 Jun 2010 18:27:31 +0000 (20:27 +0200)] 
Mention Tru64 5.1 fgrep limitation with emtpy patterns.

* doc/autoconf.texi (Limitations of Usual Tools): Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoOverhaul the manual, esp. the Autotest chapter.
Ralf Wildenhues [Tue, 22 Jun 2010 18:26:33 +0000 (20:26 +0200)] 
Overhaul the manual, esp. the Autotest chapter.

* doc/autoconf.texi (Installation Directory Variables):
Replace some uses of @var with @code.
(Special Shell Variables): Fix misordered paragraph about IFS.
(Writing Testsuites): Include paragraph following AT_TESTED in
the macro definition.
(testsuite Invocation): Failed tests are not rerun.
(testsuite Scripts, Autotest Logs, testsuite Invocation)
(Making testsuite Scripts): Minor edits for consistency and
language.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDocument sed -e limitation.
Bruno Haible [Fri, 18 Jun 2010 15:05:29 +0000 (09:05 -0600)] 
Document sed -e limitation.

* doc/autoconf.texi (Limitations of Usual Tools): Mention portability
problem of sed -e option with script fragments.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoDocument, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.
Ralf Wildenhues [Thu, 17 Jun 2010 20:44:02 +0000 (22:44 +0200)] 
Document, test, and fix AT_ARG_OPTION, AT_ARG_OPTION_ARG.

* lib/autotest/general.m4 (_AT_ARG_OPTION): Fix translation of
hyphens to underscores when turning option names to variables.
Avoid macro name concatenation garbage with trailing `dnl'.
(AT_ARG_OPTION, AT_ARG_OPTION_ARG): Overhaul macro description.
The OPTIONS are space-separated, not comma-separated.  The
negative form of AT_ARG_OPTION is prefixed with `--no-'.
* tests/autotest.at (AT@&t@_ARG_OPTION, AT@&t@_ARG_OPTION_ARG):
New tests.
* NEWS: Update.
* doc/autoconf.texi (Writing Testsuites): Document AT_ARG_OPTION
and AT_ARG_OPTION_ARG.
(testsuite Invocation): Call the thingies passed to the
testsuite options, not arguments.  Note that the testsuite
author may add further package-specific options.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAutotest: enable colored test results.
Ralf Wildenhues [Thu, 17 Jun 2010 20:26:30 +0000 (22:26 +0200)] 
Autotest: enable colored test results.

* lib/autotest/general.m4 (HELP_TUNING_BEGIN): New diversion.
(HELP_TUNING, HELP_OTHER, HELP_END): Bump diversion numbers.
(AT_INIT): Accept
--color and --color=never|auto|always.  If desired, colorize
test results and testsuite summary on standard output.
[HELP_TUNING]: Divert content instead to ...
[HELP_TUNING_BEGIN]: ... this diversion, m4_wrapped until the
end, when we know whether AT_COLOR_TESTS has been specified.
(AT_COLOR_TESTS): New macro, set the default for color to auto.
* doc/autoconf.texi (Writing Testsuites): Document it.
(testsuite Invocation): Document --color* options.
* tests/local.at: Call AT_COLOR_TESTS for Autoconf's testsuite.
* tests/autotest.at (color test results): New test, mirroring
color.test from Automake.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAvoid texinfo bug with backslashes in macro arguments.
Ralf Wildenhues [Tue, 15 Jun 2010 03:36:19 +0000 (05:36 +0200)] 
Avoid texinfo bug with backslashes in macro arguments.

* doc/autoconf.texi (Text processing Macros)
(Common Shell Constructs): Do not use @dvar with backslashes.

15 years agoMake CONFIG_SITE handling more robust.
Eric Blake [Tue, 8 Jun 2010 12:25:35 +0000 (06:25 -0600)] 
Make CONFIG_SITE handling more robust.

* lib/autoconf/general.m4 (AC_SITE_LOAD): Avoid leading - and path
search, and check for failure to load.
* tests/base.at (AC_CACHE_CHECK): Enhance test.
* doc/autoconf.texi (Site Defaults): Mention that CONFIG_SITE
works best as an absolute path.
* NEWS: Document the semantic change.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAllow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.
Bruno Haible [Tue, 16 Mar 2010 06:04:40 +0000 (07:04 +0100)] 
Allow plus signs in AC_ARG_ENABLE and AC_ARG_WITH.

* doc/autoconf.texi (External Software): Mention that AC_ARG_WITH
accepts packages with a + sign in it.
(Package Options): Likewise for AC_ARG_ENABLE.
* lib/autoconf/general.m4 (_AC_ENABLE_IF): Also replace '+' with '_'.
* tests/base.at (AC_ARG_ENABLE and AC_ARG_WITH): New test.
* NEWS: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoAutotest: simplify logic to compute test group result.
Ralf Wildenhues [Sun, 13 Jun 2010 06:38:09 +0000 (08:38 +0200)] 
Autotest: simplify logic to compute test group result.

* lib/autotest/general.m4 (AT_INIT): Compactify result
computation logic.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoNew Autotest testsuite option --recheck.
Ralf Wildenhues [Mon, 14 Jun 2010 18:31:58 +0000 (20:31 +0200)] 
New Autotest testsuite option --recheck.

* lib/autotest/general.m4 (AT_INIT): New variable $at_recheck.
Escape hyphen in $at_dir early.  Accept command line switch
--recheck.  Set $at_suite_log early, based on --directory
switch; with --recheck, include the list of FAILed and XPASSed
tests from old testsuite.log file in $at_groups.  Document
--recheck in --help output.
* tests/autotest.at (recheck): New test.
* doc/autoconf.texi (testsuite Invocation): Document --recheck.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoClarify comment about old system.
Karl Berry [Mon, 14 Jun 2010 18:21:08 +0000 (12:21 -0600)] 
Clarify comment about old system.

* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Prefer GNU/Linux,
and note that bug has long since been fixed.

Signed-off-by: Eric Blake <eblake@redhat.com>
15 years agoRun libtool test with modern libtool.
Eric Blake [Mon, 7 Jun 2010 16:11:07 +0000 (10:11 -0600)] 
Run libtool test with modern libtool.

* tests/foreign.at (Libtool): Request that libtoolize install
auxiliary files.  Assume libtool 2.x is modern.

Signed-off-by: Eric Blake <eblake@redhat.com>