]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
14 years agodocs: do not use AIX 5.3 cp -R.
Ralf Wildenhues [Sat, 22 Jan 2011 12:46:06 +0000 (13:46 +0100)] 
docs: do not use AIX 5.3 cp -R.

* doc/autoconf.texi (Limitations of Usual Tools): Document one
instance of the cp -R bug on AIX 5.3.  This seems to have been
fixed in 6.1 and newer releases.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: update entry about unset.
Ralf Wildenhues [Sat, 22 Jan 2011 08:28:44 +0000 (09:28 +0100)] 
docs: update entry about unset.

* doc/autoconf.texi (Limitations of Builtins): NetBSD sh unset
also fails upon `unset' of a variable that is not set.  Bash 2.01
could also dump core over `unset MAILPATH'.
Suggestion by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix LEXLIB and YYTEXT_POINTER with IRIX 6.5 flex 2.5.4.
Ralf Wildenhues [Fri, 21 Jan 2011 20:54:08 +0000 (21:54 +0100)] 
Fix LEXLIB and YYTEXT_POINTER with IRIX 6.5 flex 2.5.4.

* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL):
Overquote nontrivial yyless argument, to compensate for
underquoted macro definition in IRIX 6.5 flex 2.5.4
leading to compile failure due to incompatible operands.
Fixes Automake silent-lex-generic.test failure.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: Tru64/OSF sh treats read as special builtin
Ralf Wildenhues [Sun, 16 Jan 2011 11:48:57 +0000 (12:48 +0100)] 
docs: Tru64/OSF sh treats read as special builtin

* doc/autoconf.texi (Limitations of Builtins): read may exit
upon unreadable or non-existent file with Tru64/OSF 5.1 sh.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: fix description of m4_ifval
Eric Blake [Tue, 11 Jan 2011 23:17:55 +0000 (16:17 -0700)] 
docs: fix description of m4_ifval

* doc/autoconf.texi (Conditional constructs) <m4_ifval>: Use
correct argument order.
* THANKS: Update.
Reported by Mostafa.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAvoid reference to $CYGWIN in Fortran macros.
Ralf Wildenhues [Sun, 9 Jan 2011 09:16:33 +0000 (10:16 +0100)] 
Avoid reference to $CYGWIN in Fortran macros.

* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Require
AC_CANONICAL_HOST.  Replace test for $CYGWIN with $host_s test.
* tests/fortran.at (AC_F77_DUMMY_MAIN usage)
(AC_FC_DUMMY_MAIN usage, AC_F77_MAIN usage, AC_FC_MAIN usage):
Use AT_CONFIGURE_AC and simplify accordingly, so auxiliary
scripts are copied into the test directories.
(AC_F77_FUNC usage, AC_FC_FUNC usage): Likewise.  Adjust to
autoheader being used now.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: link to Gnulib configmake documentation.
Ralf Wildenhues [Mon, 10 Jan 2011 06:26:41 +0000 (07:26 +0100)] 
docs: link to Gnulib configmake documentation.

* doc/autoconf.texi (Defining Directories): Use proper crossref,
now that the Gnulib manual has a configmake section.
Thanks to Karl Berry.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: link to 'set -e' shell behavior overview.
Ralf Wildenhues [Sat, 8 Jan 2011 18:34:32 +0000 (19:34 +0100)] 
docs: link to 'set -e' shell behavior overview.

* doc/autoconf.texi (Limitations of Builtins): Add link to
Sven Mascheck's 'set -e' page.  Replace broken Opengroup link.
Suggestion by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: mention configmake module for defining directories.
Ralf Wildenhues [Sat, 8 Jan 2011 16:35:54 +0000 (17:35 +0100)] 
docs: mention configmake module for defining directories.

* doc/autoconf.texi (Defining Directories): Mention configmake
gnulib module.
Suggestion by Karl Berry and Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodoc: improve install.texi texinfo markup
Eric Blake [Tue, 4 Jan 2011 23:37:41 +0000 (16:37 -0700)] 
doc: improve install.texi texinfo markup

This partially reverts commit 02fa53b19528cbb849b08b68074dcbc31c5a9715.

* doc/install.texi: Don't force @firstparagraphindent on all
clients; instead, add it only when building INSTALL.  Compress
copyright.
* Makefile.am (INSTALL): Match gnulib's formatting.
Reported by Karl Berry.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: update copyright year
Eric Blake [Tue, 4 Jan 2011 23:13:09 +0000 (16:13 -0700)] 
maint: update copyright year

All files changed to add 2011, via 'make update-copyright'.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: resync upstream files
Eric Blake [Tue, 4 Jan 2011 23:11:08 +0000 (16:11 -0700)] 
maint: resync upstream files

* GNUmakefile: Regenerated by 'make fetch'.
* build-aux/config.guess: Likewise.
* build-aux/config.sub: Likewise.
* build-aux/gendocs.sh: Likewise.
* build-aux/git-version-gen: Likewise.
* build-aux/texinfo.tex: Likewise.
* doc/make-stds.texi: Likewise.
* lib/Autom4te/Channels.pm: Likewise.
* lib/Autom4te/Configure_ac.pm: Likewise.
* lib/Autom4te/FileUtils.pm: Likewise.
* lib/Autom4te/Struct.pm: Likewise.
* lib/Autom4te/XFile.pm: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: document use of copyright ranges
Eric Blake [Tue, 4 Jan 2011 23:04:12 +0000 (16:04 -0700)] 
maint: document use of copyright ranges

* README: Copy coreutils wording for allowing copyright year
ranges.
* cfg.mk (UPDATE_COPYRIGHT_USE_INTERVALS): Now that GNU Coding
Standards permit it, prefer shorthand copyright.
* .x-update-copyright: Exempt an imported file.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAvoid using @acronym in install.texi.
Karl Berry [Mon, 3 Jan 2011 02:49:25 +0000 (03:49 +0100)] 
Avoid using @acronym in install.texi.

* doc/install.texi (Basic Installation, Multiple Architectures)
(Installation Names): Write `GNU' instead of `@acronym{GNU}'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoautoconf: Use -D_STDC_C99=, not -xc99=all, with Solaris cc
Paul Eggert [Tue, 28 Dec 2010 07:31:43 +0000 (23:31 -0800)] 
autoconf: Use -D_STDC_C99=, not -xc99=all, with Solaris cc

* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Use -D_STDC_C99= rather than
-xc99=all to convince Solaris Studio cc to compile c99 programs.

14 years agoautotest: fix file descriptor leak
Paul Eggert [Fri, 26 Nov 2010 09:21:04 +0000 (01:21 -0800)] 
autotest: fix file descriptor leak

* lib/autotest/general.m4 (_AT_CHECK): Close AS_MESSAGE_LOG_FD
when running the test. Problem reported by Luke Mewburn in
<http://lists.gnu.org/archive/html/autoconf/2010-11/msg00036.html>.

14 years agoautoconf: don't assume sys/stat.h and sys/types.h when testing C89
Paul Eggert [Sat, 20 Nov 2010 23:26:39 +0000 (15:26 -0800)] 
autoconf: don't assume sys/stat.h and sys/types.h when testing C89

Problem reported by Patrick Pelissier in
<http://lists.gnu.org/archive/html/bug-autoconf/2010-11/msg00019.html>.
* lib/autoconf/c.m4 (_AC_PROG_CC_C89): Don't include sys/types.h
and sys/stat.h.  Instead, define a dummy struct stat.  C89 doesn't
guarantee sys/types.h and sys/stat.h.

14 years agodocs: avoid first person, and credit history to David MacKenzie
Reuben Thomas [Wed, 10 Nov 2010 22:01:49 +0000 (22:01 +0000)] 
docs: avoid first person, and credit history to David MacKenzie

* doc/autoconf.texi (History): Add credit.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: Posix now says "((cat))" isn't portable
Paul Eggert [Tue, 26 Oct 2010 23:12:46 +0000 (16:12 -0700)] 
docs: Posix now says "((cat))" isn't portable

* doc/autoconf.texi (Parenthesis): Update documentation to reflect
what Posix 1003.1-2008 says about "((".

14 years agodocs: document dash bug in <>
Eric Blake [Wed, 20 Oct 2010 22:56:40 +0000 (16:56 -0600)] 
docs: document dash bug in <>

* doc/autoconf.texi (File Descriptors): Dash 0.5.5 truncates on
<>; at least this was fixed in dash 0.5.6.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: avoid AC_CACHE_CHECK test failure with dash.
Ralf Wildenhues [Tue, 12 Oct 2010 18:29:58 +0000 (20:29 +0200)] 
tests: avoid AC_CACHE_CHECK test failure with dash.

* tests/base.at (AC_CACHE_CHECK): Normalize configure exit
status in presence of syntax error in sourced site file.
Do not error out if configure is aborted at this point.
Fixes testsuite failure with dash 0.5.5.1.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAS_LITERAL_IF: Treat raw = as literal again.
Eric Blake [Fri, 8 Oct 2010 16:54:31 +0000 (10:54 -0600)] 
AS_LITERAL_IF: Treat raw = as literal again.

* lib/m4sugar/m4sh.m4 (_AS_LITERAL_IF): Treat = like +.
* tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP)
(AS@&t@_LITERAL_IF): Expand tests.
* NEWS: Document the fix.
Reported via Ben Pfaff; originally http://bugs.debian.org/593838

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: suggest a few more workarounds
Eric Blake [Tue, 5 Oct 2010 15:59:56 +0000 (09:59 -0600)] 
doc: suggest a few more workarounds

* doc/autoconf.texi (Limitations of Usual Tools) <tr>: Mention
that 'redundant' brackets can work around Solaris bug.
(File Descriptors): Mention that {} works as well as () for
silencing file-not-found warnings.
* THANKS: Update.
Suggested by Pádraig Brady.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: fix typo in AC_CONFIG_FILES example code.
Joshua G. Hale [Fri, 24 Sep 2010 18:59:28 +0000 (20:59 +0200)] 
docs: fix typo in AC_CONFIG_FILES example code.

* doc/autoconf.texi (Configuration Actions): Fix typo.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: normalize trailing spaces in gcc -E -dD output.
Ralf Wildenhues [Fri, 24 Sep 2010 04:34:39 +0000 (06:34 +0200)] 
tests: normalize trailing spaces in gcc -E -dD output.

* tests/compile.at (AC_LANG_SOURCE example)
(AC_LANG_PROGRAM example): Remove trailing spaces before
comparing with expected output.  Fixes testsuite failure
with GCC 2.95.3 on Haiku.
Report by Scott McCreary.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agopost-release administrivia
Eric Blake [Wed, 22 Sep 2010 22:42:42 +0000 (16:42 -0600)] 
post-release administrivia

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

14 years agoRelease Version 2.68. v2.68
Eric Blake [Wed, 22 Sep 2010 22:34:13 +0000 (16:34 -0600)] 
Release Version 2.68.

* NEWS: Mention the release.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautom4te: add traces for likely future Automake macros
Ralf Wildenhues [Sun, 19 Sep 2010 08:29:22 +0000 (10:29 +0200)] 
autom4te: add traces for likely future Automake macros

* lib/autom4te.in (Automake-preselections): Trace
AM_MAKEFILE_INCLUDE, AM_NLS, AM_POT_TOOLS, AM_PATH_GUILE,
AM_PROG_MOC, AM_XGETTEXT_OPTION, _AM_MAKEFILE_INCLUDE.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_REPLACE_FUNCS: allow split lines again
Eric Blake [Wed, 22 Sep 2010 21:55:26 +0000 (15:55 -0600)] 
AC_REPLACE_FUNCS: allow split lines again

More fallout from the same 2.66 regression that was partially fixed
yesterday, but until yesterday's AS_LITERAL_IF actually treated \ as a
non-literal, apparently no one noticed the latent bug of a spurious
call to AC_CHECK_FUNC([\]) during automake's libobj5.test.

* lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Flatten newlines
and move guts...
(_AC_REPLACE_FUNCS): ...to new helper.
* tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_LIBOBJ: optimize internal use
Eric Blake [Tue, 21 Sep 2010 23:09:09 +0000 (17:09 -0600)] 
AC_LIBOBJ: optimize internal use

* lib/autoconf/general.m4 (_AC_LIBOBJ): Move literal check...
(AC_LIBOBJ): ...into callers.
* lib/autoconf/functions.m4 (_AC_REPLACE_FUNC): Likewise, thus
avoiding a second call to AS_LITERAL_IF.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_REPLACE_FUNCS: restore shell loop for non-literal
Eric Blake [Tue, 21 Sep 2010 23:00:09 +0000 (17:00 -0600)] 
AC_REPLACE_FUNCS: restore shell loop for non-literal

* lib/autoconf/functions.m4 (AC_REPLACE_FUNCS): Handle
non-literals, which was lost in 2010-02-26 optimization.
* tests/semantics.at (AC_REPLACE_FUNCS): Enhance test.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Wiseman Jun.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint: resync upstream files
Eric Blake [Fri, 17 Sep 2010 22:59:32 +0000 (16:59 -0600)] 
maint: resync upstream files

* build-aux/gendocs.sh: Resync via 'make fetch'.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: XFAIL in the face of a MacOS X bug
Eric Blake [Tue, 21 Sep 2010 18:09:55 +0000 (12:09 -0600)] 
tests: XFAIL in the face of a MacOS X bug

* doc/autoconf.texi (Limitations of Usual Tools) <sed>: Mention
the issue.
* tests/torture.at (Substitute and define special characters):
Detect if sed cannot process 8-bit bytes in the C locale.
* THANKS: Update.
Reported by Rochan.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautom4te: don't filter out portions of location traces
Eric Blake [Mon, 20 Sep 2010 21:00:28 +0000 (15:00 -0600)] 
autom4te: don't filter out portions of location traces

* bin/autom4te.in (_m4_warn): Pass warnings through the channels
machinery as a single chunk, to avoid partial filtering.
* lib/m4sugar/m4sugar.m4 (_m4_warn): Document the conventions.
* tests/m4sugar.at (m4@&t@_warn): Enhance test to catch this.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agobuild: support autobuild
Eric Blake [Fri, 17 Sep 2010 12:16:07 +0000 (06:16 -0600)] 
build: support autobuild

* cfg.mk (gnulib-update): Add autobuild.m4.
* configure.ac (AB_INIT): Output autobuild header.
* m4/autobuild.m4: New file, from gnulib.
* build-aux/config.guess: Resync from upstream.
* build-aux/config.sub: Likewise.
* build-aux/texinfo.tex: Likewise.
* doc/fdl.texi: Likewise.
* doc/gnu-oids.texi: Likewise.
* doc/make-stds.texi: Likewise.
* doc/standards.texi: Likewise.
* build-aux/gendocs.sh: Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoconfig.status: avoid corrupting $ac_t
Eric Blake [Fri, 17 Sep 2010 16:39:29 +0000 (10:39 -0600)] 
config.status: avoid corrupting $ac_t

* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): Use a
different name, so as not to clash with pre-2.50 usage of "$ac_t"
as a tab character.
Reported by Sam Steingold.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: mark several macros obsolete
Bruno Haible [Fri, 17 Sep 2010 15:56:27 +0000 (09:56 -0600)] 
docs: mark several macros obsolete

* doc/autoconf.texi (Particular Functions): Mark AC_FUNC_ERROR_AT_LINE,
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_MKTIME, AC_FUNC_STRTOD
as obsolete and refer to Gnulib.
* NEWS: Mention the change.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_FUNC_STRNLEN: more realistic cross-compilation guess
Bruno Haible [Fri, 17 Sep 2010 15:50:34 +0000 (09:50 -0600)] 
AC_FUNC_STRNLEN: more realistic cross-compilation guess

* lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): Require
AC_CANONICAL_HOST. When cross-compiling, guess it works everywhere
except on AIX.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agom4sh: fix today's AS_BOX regression
Eric Blake [Thu, 16 Sep 2010 22:46:36 +0000 (16:46 -0600)] 
m4sh: fix today's AS_BOX regression

* lib/m4sugar/m4sh.m4 (_AS_BOX_LITERAL): Fix underquotation.
Reported by Stefano Lattarini.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agofortran: avoid misparsed FCLIBS from Fortran compiler
Eric Blake [Thu, 16 Sep 2010 22:19:11 +0000 (16:19 -0600)] 
fortran: avoid misparsed FCLIBS from Fortran compiler

* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Also skip
'Configured by:' lines from gfortran.
* NEWS: Mention it.
Reported by Stefano Lattarini.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAdd autom4te trace for AM_PROG_AR.
Ralf Wildenhues [Thu, 16 Sep 2010 17:52:21 +0000 (19:52 +0200)] 
Add autom4te trace for AM_PROG_AR.

* lib/autom4te.in (Automake-preselections): Trace
AM_PROG_AR.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agom4sugar: fix regression in AC_MSG_ERROR expansion
Eric Blake [Thu, 16 Sep 2010 14:43:27 +0000 (08:43 -0600)] 
m4sugar: fix regression in AC_MSG_ERROR expansion

AS_ERROR Regression introduced in commit cffdc3947, but the
underlying problem stems from the introduction of m4_defun_init
in commit d0c5f482.

* lib/m4sugar/m4sugar.m4 (m4_defun_init): Avoid macro
concatenation on subsequent expansions
* tests/m4sh.at (AS_WARN and AS_ERROR): New test.
* tests/m4sugar.at (m4@&t@_require: one-shot initialization):
Enhance test.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Adrian Bunk and and Nishio Futoshi.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: simplify grepping of 'automake --version'.
Stefano Lattarini [Mon, 13 Sep 2010 18:26:40 +0000 (20:26 +0200)] 
tests: simplify grepping of 'automake --version'.

* tests/tools.at (autom4te preselections): Remove minor
redundancies in regular expressions used to grep the output
'automake --version' for test skipping.
* tests/torture.at (Configuring subdirectories)
(Unusual Automake input files): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautotest: work around zsh bug
Eric Blake [Mon, 13 Sep 2010 17:31:23 +0000 (11:31 -0600)] 
autotest: work around zsh bug

* lib/autotest/general.m4 (AT_DATA): Special case an empty data
file, since zsh botches empty here-docs.
* doc/autoconf.texi (Writing Testsuites) <AT_DATA>: Document that
this allows empty contents.
* tests/autotest.at (AT_DATA): New test.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: mention gnulib portability docs
Eric Blake [Mon, 13 Sep 2010 16:42:09 +0000 (10:42 -0600)] 
docs: mention gnulib portability docs

* doc/autoconf.texi (Function Portability, Header Portability):
Add external links to gnulib.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: document zsh specialty with empty here-documents.
Ralf Wildenhues [Sun, 12 Sep 2010 16:37:08 +0000 (18:37 +0200)] 
docs: document zsh specialty with empty here-documents.

* doc/autoconf.texi (Here-Documents): zsh 4.3.10 adds a newline
to empty here-docs.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: document zsh special array $options.
Ralf Wildenhues [Sun, 12 Sep 2010 15:04:49 +0000 (17:04 +0200)] 
docs: document zsh special array $options.

* doc/autoconf.texi (Special Shell Variables): Add entry for
`options'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodoc: minor updates.
Ralf Wildenhues [Sun, 12 Sep 2010 07:46:41 +0000 (09:46 +0200)] 
doc: minor updates.

* doc/autoconf.texi (Generic Compiler Characteristics): Use
second argument of @uref consistently, for nicer OpenMP link.
(Polymorphic Variables): Restore font-lock.
(Debugging): Add item for bashdb.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoDocument and test AT_CHECK args shell execution environment.
Ralf Wildenhues [Sun, 12 Sep 2010 07:45:34 +0000 (09:45 +0200)] 
Document and test AT_CHECK args shell execution environment.

* doc/autoconf.texi (Writing Testsuites): Document that COMMANDS
is run in a subshell, but RUN-IF-FAIL and RUN-IF-PASS are not.
* tests/autotest.at (AT@&t@_CHECK execution environment): New
test.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoautotest: document and test at_status semantics.
Ralf Wildenhues [Sun, 12 Sep 2010 07:45:04 +0000 (09:45 +0200)] 
autotest: document and test at_status semantics.

* doc/autoconf.texi (Writing Testsuites): Document $at_status.
* tests/autotest.at (at_status): New test.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodoc: index entries for non-environment, non-output variables.
Ralf Wildenhues [Sun, 12 Sep 2010 07:42:22 +0000 (09:42 +0200)] 
doc: index entries for non-environment, non-output variables.

* doc/autoconf.texi: Clarify the meaning of the various variable
indices.  Merge variable index `vr' into concept index using
syncodeindex.
(Configuration Actions, Generic Programs, Generic Functions)
(Writing Testsuites): Add index entries for documented shell
variables used during in configure and testsuite scripts.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: fix minor typo and 'See See foo' instances
Fernando Carrijo [Sun, 12 Sep 2010 10:22:01 +0000 (07:22 -0300)] 
docs: fix minor typo and 'See See foo' instances

* doc/autoconf.texi (Buffer Overruns and Subscript Errors): Fix
usage of TeX superscript notation to correctly represent number
exponent.
(Shell Functions): s/[Ss]ee @xref/@xref/
(Limitations of Shell Builtins, Canonicalizing): Likewise.
* THANKS: Update.

Signed-off-by: Fernando Carrijo <fcarrijo@freedesktop.org>
Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: skip broken automake wrapper on MirBSD
Eric Blake [Mon, 13 Sep 2010 16:02:50 +0000 (10:02 -0600)] 
tests: skip broken automake wrapper on MirBSD

On a fresh default install, MirBSD ships with an automake wrapper
script that has bad behavior:

$ automake --version; echo $?
Provide an AUTOMAKE_VERSION environment variable, please
0

* tests/tools.at (autom4te preselections): Skip, rather than fail,
if 'automake --version' succeeds without printing a version when
an environment variable is not set.
* tests/torture.at (Configuring subdirectories)
(Unusual Automake input files): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: minor indexing update.
Ralf Wildenhues [Sun, 12 Sep 2010 07:40:20 +0000 (09:40 +0200)] 
doc: minor indexing update.

(Shell Substitutions, Site Defaults): Fix markup for indexed
entried, using @code and @file as appropriate.
(M4 Macro Index): Clarify which of the indexed macros have m4_
and which have AS_ prefix.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agom4sh: preserve set -vx over re-exec
Eric Blake [Wed, 8 Sep 2010 16:31:50 +0000 (10:31 -0600)] 
m4sh: preserve set -vx over re-exec

See http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00035.html
for the motivation for this patch.

* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Trace through
re-exec, to make it easier to debug script startup issues.
Idea from recent bug-gnulib change to init.sh.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: update alloca recommendations
Eric Blake [Wed, 8 Sep 2010 15:23:03 +0000 (09:23 -0600)] 
docs: update alloca recommendations

* doc/autoconf.texi (Particular Functions): Don't redeclare alloca
on FreeBSD.
* THANKS: Update.
Reported by Giorgos Keramidas.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: link to GNU Coding Standards in intro
Eric Blake [Wed, 8 Sep 2010 15:11:31 +0000 (09:11 -0600)] 
docs: link to GNU Coding Standards in intro

* doc/autoconf.texi (Introduction): Actually link to the
standards.  Make other references consistent.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: mention traditional awk limitation
Eric Blake [Tue, 7 Sep 2010 21:51:47 +0000 (15:51 -0600)] 
docs: mention traditional awk limitation

* doc/autoconf.texi (Limitations of Usual Tools) <awk>: Mention
that traditional awk lacks ENVIRON.  Add reference to awk manual.
(Particular Programs) <AC_PROG_AWK>: Add reference to awk section.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: mention bash vs. POSIXLY_CORRECT
Eric Blake [Tue, 7 Sep 2010 19:49:03 +0000 (13:49 -0600)] 
docs: mention bash vs. POSIXLY_CORRECT

* doc/autoconf.texi (Special Shell Variables) <POSIXLY_CORRECT>:
Document bash behavior.
* THANKS: Update.
Reported by Dustin J. Mitchell, via bug-gnulib list.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: enhance recommendations on test usage
Eric Blake [Tue, 7 Sep 2010 14:40:46 +0000 (08:40 -0600)] 
docs: enhance recommendations on test usage

* doc/autoconf.texi (Limitations of Builtins) <test (strings)>:
Mention yet another Solaris issue.
Reported by Stefano Lattarini.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotests: avoid trashing /
Eric Blake [Mon, 30 Aug 2010 17:59:40 +0000 (11:59 -0600)] 
tests: avoid trashing /

* tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
Use a relative path, rather than risking issues with /.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: mention Solaris here-docs vs. ${a-"b c"}
Eric Blake [Mon, 30 Aug 2010 17:11:32 +0000 (11:11 -0600)] 
docs: mention Solaris here-docs vs. ${a-"b c"}

* doc/autoconf.texi (Shell Substitutions) <${var:=value}>:
Document problem of "" within here-docs.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agofortran: always avoid AC_LANG_CONFTEST warning
Eric Blake [Mon, 30 Aug 2010 15:51:11 +0000 (09:51 -0600)] 
fortran: always avoid AC_LANG_CONFTEST warning

* lib/autoconf/lang.m4 (AC_LANG_CONFTEST()): Make the default
match the fact that the default AC_LANG_SOURCE does not inline
confdefs.h in the first place.
* lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
(AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Revert previous use of
AC_LANG_DEFINES_PROVIDED.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoconfig.status: minimize use of $tmp
Eric Blake [Fri, 27 Aug 2010 19:15:22 +0000 (13:15 -0600)] 
config.status: minimize use of $tmp

* lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP)
(_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_FILE)
(_AC_OUTPUT_HEADERS_PREPARE, _AC_OUTPUT_HEADER): Use $ac_tmp
internally, while preserving $tmp for existing users.
* tests/torture.at (AC_CONFIG_COMMANDS with temporary directory):
New test, that $tmp is available but not essential.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: avoid use of $tmp outside of config.status use
Eric Blake [Fri, 27 Aug 2010 18:55:54 +0000 (12:55 -0600)] 
docs: avoid use of $tmp outside of config.status use

* doc/autoconf.texi (Polymorphic Variables, Shell Substitutions):
Use $var or $t instead.
(Limitations of Usual Tools): Use $dir instead.
(Initialization Macros) <AS_TMPDIR>: Make good on the NEWS
regarding AS_TMPDIR being documented as consuming $tmp.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAC_PROG_YACC: fix comment re what "yacc" stands for
Paul Eggert [Mon, 30 Aug 2010 03:21:01 +0000 (20:21 -0700)] 
AC_PROG_YACC: fix comment re what "yacc" stands for

* lib/autoconf/programs.m4 (AC_PROG_YACC): YACC stands for
"Yet Another Compiler Compiler", not "Yet Another C Compiler".
Problem reported by Chris Long in
<http://lists.gnu.org/archive/html/bug-autoconf/2010-08/msg00134.html>.

14 years agoAvoid long lines in testsuite script.
Ralf Wildenhues [Mon, 2 Aug 2010 20:42:55 +0000 (22:42 +0200)] 
Avoid long lines in testsuite script.

* lib/autotest/general.m4 (AT_INIT): Remove definition of
AT_groups_all.  Initialize at_groups from at_help_all, with
newlines instead of spaces separating test groups numbers.
Adjust all code to newlines.
* NEWS: Update.
* tests/autotest.at (Huge testsuite): New test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoTry to update config.cache atomically; respect symlinks.
Ralf Wildenhues [Sat, 14 Aug 2010 06:34:01 +0000 (08:34 +0200)] 
Try to update config.cache atomically; respect symlinks.

* lib/autoconf/general.m4 (AC_CACHE_SAVE): Use `mv -f' to update
the cache file if it is a regular file and not a symlink.  Move
first to temporary name in the target directory if not in the
current directory for atomicity across mount points.
* tests/base.at (AC_CACHE_CHECK): Try symlinked cache file.
* doc/autoconf.texi (Cache Files): Leftover temporary cache
files may be deleted by the user.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agom4sh: protect LINENO against stray macro
Eric Blake [Fri, 27 Aug 2010 16:59:40 +0000 (10:59 -0600)] 
m4sh: protect LINENO against stray macro

* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Double quote entire
sed script, to avoid issue uncovered by automake testsuite where
'b' was an m4 macro that broke execution on dash.
Reported by Stefano Lattarini.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agom4sh: assume ${a:-b} support
Eric Blake [Wed, 25 Aug 2010 22:56:37 +0000 (16:56 -0600)] 
m4sh: assume ${a:-b} support

* tests/m4sh.at (Null variable substitution): New test.
* doc/autoconf.texi (Shell Substitutions) <${var:-value}>: Mention
that m4sh guarantees support.
(Limitations of Usual Tools) <mktemp>: Use it.
* lib/m4sugar/m4sh.m4 (AS_LINENO_POP, AS_VAR_IF, AS_TMPDIR):
Exploit use of colon for smaller files.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodocs: document m4_define_default
Eric Blake [Thu, 26 Aug 2010 22:10:44 +0000 (16:10 -0600)] 
docs: document m4_define_default

* doc/autoconf.texi (Conditional constructs) <m4_define_default>:
Document it, since gnulib wants to use it.
* NEWS: Mention this.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautoconf: warn if AC_*_IFELSE lacks complete program
Eric Blake [Thu, 26 Aug 2010 21:07:38 +0000 (15:07 -0600)] 
autoconf: warn if AC_*_IFELSE lacks complete program

* lib/autoconf/lang.m4 (AC_LANG_DEFINES_PROVIDED): New macro.
(AC_LANG_SOURCE): Call it.
(AC_LANG_CONFTEST): Add warning if new macro is not called.
* lib/autoconf/c.m4 (_AC_LANG_OPENMP): Add missing AC_LANG_SOURCE.
* lib/autoconf/fortran.m4 (AC_FC_FREEFORM, AC_FC_FIXEDFORM)
(AC_FC_LINE_LENGTH, __AC_FC_NAME_MANGLING): Intentionally bypass
AC_LANG_SOURCE.
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Likewise.
* tests/compile.at (AC_COMPILE_IFELSE): New test.
* doc/autoconf.texi (Generating Sources) <AC_LANG_CONFTEST>:
Document new warning.
<AC_LANG_DEFINES_PROVIDED>: Document new macro.
<AC_LANG_SOURCE>: Document use of new macro.
* NEWS: Document the improvement.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautoconf: fix regression in AC_FUNC_SELECT_ARGTYPES
Eric Blake [Thu, 26 Aug 2010 17:54:11 +0000 (11:54 -0600)] 
autoconf: fix regression in AC_FUNC_SELECT_ARGTYPES

* lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): Fix
quoting; regression from yesteray leaked '' into default value.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <eblake@redhat.com>
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.

14 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>
14 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>
14 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>
14 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>
14 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>
14 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>