]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
17 years ago* doc/autoconf.texi (Generic Programs): Fix typo.
Ralf Wildenhues [Sat, 17 Nov 2007 08:24:52 +0000 (09:24 +0100)] 
* doc/autoconf.texi (Generic Programs): Fix typo.

17 years agoadd a chlog entry for the prev commit
Stepan Kasal [Fri, 16 Nov 2007 22:00:41 +0000 (23:00 +0100)] 
add a chlog entry for the prev commit

17 years agodoc: AC_*_TOOL does not canonicalize the prefix
Stepan Kasal [Fri, 16 Nov 2007 13:47:00 +0000 (14:47 +0100)] 
doc: AC_*_TOOL does not canonicalize the prefix

* doc/autoconf.texi (Generic Programs): Do not say that the *_TOOL
macros canonicalize, they simply use the `host_alias'.

17 years agoDiagnose write errors in config.status instantiations.
Ralf Wildenhues [Fri, 16 Nov 2007 06:51:10 +0000 (07:51 +0100)] 
Diagnose write errors in config.status instantiations.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILE)
(_AC_OUTPUT_HEADER, _AC_OUTPUT_MAIN_LOOP): Bail out
on write errors.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Extend test to also check for some write error failures, using...
<AT_CHECK_CONFIG_CREATION_NOWRITE>: ...this new macro.
Report by Bruno Haible.

17 years agoIndentation fixups.
Ralf Wildenhues [Fri, 16 Nov 2007 06:48:55 +0000 (07:48 +0100)] 
Indentation fixups.

* lib/autotest/general.m4 (AT_INIT) <at_func_log_failure>: Fix
indentation.
(_AT_CHECK): Use less indentation, to save space.

17 years agoAdd witness macro for @top_build_prefix@ substitution.
Ralf Wildenhues [Thu, 15 Nov 2007 21:30:15 +0000 (22:30 +0100)] 
Add witness macro for @top_build_prefix@ substitution.

* lib/autoconf/status.m4 (_AC_HAVE_TOP_BUILD_PREFIX): New macro.
(_AC_OUTPUT_FILE): Mention it here.

17 years ago* lib/autotest/general.m4 (at_func_test): Remove.
Ralf Wildenhues [Thu, 15 Nov 2007 21:23:59 +0000 (22:23 +0100)] 
* lib/autotest/general.m4 (at_func_test): Remove.
(AT_INIT): Pre-extract test groups into separate files.
(AT_CLEANUP): Source pre-extracted file instead of calling at_func_test.
Remove at-test-source files together with the $at_group_dir.
* tests/autotest.at (Long test source lines): New test.

17 years agoShell functions and variables may share a namespace.
Ralf Wildenhues [Thu, 15 Nov 2007 06:58:03 +0000 (07:58 +0100)] 
Shell functions and variables may share a namespace.

* doc/autoconf.texi (Portable Shell): Mention Solaris sh
limitation.

17 years ago* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match
Paul Eggert [Wed, 14 Nov 2007 23:42:59 +0000 (15:42 -0800)] 
* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Make comment match

gnulib.

17 years ago* lib/autoconf/status.m4: Fix a couple of comment typos.
Ralf Wildenhues [Wed, 14 Nov 2007 20:57:37 +0000 (21:57 +0100)] 
* lib/autoconf/status.m4: Fix a couple of comment typos.

17 years ago* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.
Ralf Wildenhues [Wed, 14 Nov 2007 20:55:59 +0000 (21:55 +0100)] 
* lib/m4sugar/m4sh.m4 (AS_TMPDIR): Use $as_me, not $me.

17 years agoFix typo in my previous changelog entry.
Paul Eggert [Tue, 13 Nov 2007 20:42:02 +0000 (12:42 -0800)] 
Fix typo in my previous changelog entry.

17 years agoClean up the rule to create "expr".
Jim Meyering [Tue, 13 Nov 2007 08:34:52 +0000 (09:34 +0100)] 
Clean up the rule to create "expr".

* tests/Makefile.am (expr): Don't redirect directly to target.
Redirect just once, not for each echo statement.
Use $@, not literal "expr".

17 years agoDon't worry about preprocessor when testing long long.
Paul Eggert [Tue, 13 Nov 2007 08:16:19 +0000 (00:16 -0800)] 
Don't worry about preprocessor when testing long long.

See: http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00075.html
* doc/autoconf.texi (Preprocessor Arithmetic): New section.
(AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT):
These no longer check for preprocessor flaws.
* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET):
Do not check for preprocessor flows.

17 years agoAdapt dependencies, now that a version change doesn't modify configure.ac
Jim Meyering [Tue, 13 Nov 2007 07:56:32 +0000 (08:56 +0100)] 
Adapt dependencies, now that a version change doesn't modify configure.ac

* GNUmakefile: Remove "make clean" kludge.
* lib/m4sugar/Makefile.am (version.m4): Depend on Makefile, not
configure.ac.
Don't redirect directly to target.
Use $@, not literal "version.m4".

17 years ago* doc/autoconf.texi (Making testsuite Scripts): Document
Ralf Wildenhues [Tue, 13 Nov 2007 07:30:58 +0000 (23:30 -0800)] 
* doc/autoconf.texi (Making testsuite Scripts): Document

":;{" shorthand as in previous patch.

2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>

* doc/autoconf.texi (Limitations of Builtins): Document problem
with { ... } a bit more clearly.  Suggest ":;{" as a shorthand
for the workaround.
* lib/m4sugar/Makefile.am (version.m4): Detect 'echo' failure.
Use ":;{" shorthand.
* tests/Makefile.am ($(srcdir)/package.m4): Likewise.

17 years agoAdd more non-srcdir build support.
Jim Meyering [Mon, 12 Nov 2007 19:09:13 +0000 (20:09 +0100)] 
Add more non-srcdir build support.

* GNUmakefile (dummy): Split a long line.
Add -v option to autoreconf invocation.

17 years agoAdd autoreconf's -v option, to give some feedback.
Jim Meyering [Sun, 11 Nov 2007 20:46:53 +0000 (21:46 +0100)] 
Add autoreconf's -v option, to give some feedback.
Don't imply that $(_curr-ver) is the new version string.

17 years agoRemove the autoreconf-provided INSTALL, so that we regenerate it.
Jim Meyering [Sun, 11 Nov 2007 20:14:20 +0000 (21:14 +0100)] 
Remove the autoreconf-provided INSTALL, so that we regenerate it.

* GNUmakefile (dummy): Remove INSTALL.

17 years agoRemove racy commands to build scripts in bin/ and tests/.
Jim Meyering [Sun, 11 Nov 2007 19:08:52 +0000 (20:08 +0100)] 
Remove racy commands to build scripts in bin/ and tests/.

* man/Makefile.am (.x.1): Now that scripts in bin/ and tests/
are guaranteed to be built, remove the rules that tried to build
them.  Before, with a parallel build, these rules could lead to
two processes writing tests/wrapper.in concurrently.

17 years agoBuild in man/ only *after* building in bin/ and tests/.
Jim Meyering [Sun, 11 Nov 2007 17:02:34 +0000 (18:02 +0100)] 
Build in man/ only *after* building in bin/ and tests/.

* Makefile.am (SUBDIRS): The man-page-creation process runs $(MAKE)
in both bin/ and tests/.

Signed-off-by: Jim Meyering <meyering@redhat.com>
17 years agoAccommodate non-srcdir build-from-checkout.
Jim Meyering [Sun, 11 Nov 2007 19:05:08 +0000 (20:05 +0100)] 
Accommodate non-srcdir build-from-checkout.

* build-aux/git-version-gen: Require an additional parameter: $srcdir.
Use git's --git-dir=$srcdir/.git option.
Add quotes, in case tarball_version_file contains shell meta-characters.
* GNUmakefile (_curr-ver): Pass $(srcdir) to git-version-gen.
* configure.ac: Pass "." to git-version-gen.

17 years agoAvoid spurious test failures due to version skew.
Jim Meyering [Sun, 11 Nov 2007 17:08:53 +0000 (18:08 +0100)] 
Avoid spurious test failures due to version skew.

* GNUmakefile (dummy): Run $(MAKE) clean after autoreconf -i.

17 years agoAvoid warnings about conftest.dSYM directories on Mac OS X Leopard.
Ralf Wildenhues [Mon, 12 Nov 2007 19:34:44 +0000 (20:34 +0100)] 
Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.

* lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
Remove conftest.dSYM directory.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
(_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
Remove `conftest.*' recursively.
* lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
Likewise.
(_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
* THANKS: Update.
Report and analysis by Jeff Squyres and Peter O'Gorman.

17 years agoFix typos in variable names.
Benoit Sigoure [Mon, 12 Nov 2007 08:46:16 +0000 (09:46 +0100)] 
Fix typos in variable names.

* tests/semantics.at (test for AC_CHECK_LIB): s/at_m/ac_m/.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
17 years agoDocument that $((expression)) is not portable.
Benoit Sigoure [Sun, 11 Nov 2007 17:41:58 +0000 (18:41 +0100)] 
Document that $((expression)) is not portable.

* doc/autoconf.texi (Shell Substitutions): Here.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
17 years agoIgnore configure --help* errors due to LINENO-impaired shells.
Ralf Wildenhues [Sun, 11 Nov 2007 17:55:24 +0000 (18:55 +0100)] 
Ignore configure --help* errors due to LINENO-impaired shells.

* tests/torture.at (Configuring subdirectories, Deep Package):
In the --help* tests in read-only trees, make `.' temporarily
writable again for the `stderr' file, and ignore errors due to
the attempt to write configure.lineno.
Report by Patrick Welche.

17 years agoGenerate package.m4 in build-dir, not srcdir.
Jim Meyering [Sat, 10 Nov 2007 21:26:01 +0000 (22:26 +0100)] 
Generate package.m4 in build-dir, not srcdir.

* tests/Makefile.am (package.m4): Adjust target.
Don't redirect directly to $@.
(CLEANFILES): Add package.m4.
($(TESTSUITE)): Depend on just-built package.m4, not the one
in $(srcdir).
When running $(AUTOTEST), search "." before searching $(srcdir).

17 years agoAvoid a race condition that would make parallel "distclean" fail.
Jim Meyering [Sat, 10 Nov 2007 21:22:44 +0000 (22:22 +0100)] 
Avoid a race condition that would make parallel "distclean" fail.

* tests/Makefile.am (distclean-generic): Replace the default,
automake-provided rule with an identical one, but with an additional
dependency on distclean-local.  Simply adding the dependency would
cause automake not to emit the rule at all.
* BUGS: Building with -jN works, now.

17 years agoDistribute git-version-gen.
Jim Meyering [Sat, 10 Nov 2007 21:03:12 +0000 (22:03 +0100)] 
Distribute git-version-gen.

* Makefile.am (EXTRA_DIST): Add build-aux/git-version-gen,
since GNUmakefile is distributed, and requires it for dist* rules.

17 years agoRemove two more generated files from version control.
Jim Meyering [Sat, 10 Nov 2007 11:22:46 +0000 (12:22 +0100)] 
Remove two more generated files from version control.

* INSTALL: Remove generated file.
* lib/autoscan/autoscan.list: Remove generated file.

17 years ago* GNUmakefile (PATH): Remove stray apostrophes; they become
Paul Eggert [Sun, 11 Nov 2007 07:47:46 +0000 (08:47 +0100)] 
* GNUmakefile (PATH): Remove stray apostrophes; they become

part of PATH, which isn't wanted here.

17 years agoNew config files output variable `top_build_prefix'.
Ralf Wildenhues [Fri, 9 Nov 2007 06:51:19 +0000 (07:51 +0100)] 
New config files output variable `top_build_prefix'.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Substitute
`top_build_prefix'.
* doc/autoconf.texi (Preset Output Variables): Document it.
* NEWS: Update.
Report by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoAvoid expr for arithmetic evaluation if the shell accepts $((...)).
Ralf Wildenhues [Fri, 9 Nov 2007 06:49:29 +0000 (07:49 +0100)] 
Avoid expr for arithmetic evaluation if the shell accepts $((...)).

* lib/autotest/general.m4 (AT_INIT) <at_func_arith>: New
function, to parametrize arithmetic with expr vs. the shell.
Use it where possible.
Suggestion by Benoit Sigoure.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17 years agoAdjust the documentation of autotest WRT atlocal.
Benoit Sigoure [Sat, 3 Nov 2007 18:33:38 +0000 (19:33 +0100)] 
Adjust the documentation of autotest WRT atlocal.

* doc/autoconf.texi (Making testsuite Scripts): It is not necessary,
when using Automake, to write a rule to produce atlocal, since it's
an AC_CONFIG_FILES.  Mention that atlocal.in needs to be
distributed, not atconfig.in.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
17 years agoUpdate list information.
Eric Blake [Sun, 4 Nov 2007 16:47:21 +0000 (09:47 -0700)] 
Update list information.

* README: Mention new autoconf-commit list.
* doc/autoconf.texi (Introduction): Mention autoconf-commit list.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.
Ralf Wildenhues [Sun, 4 Nov 2007 16:02:30 +0000 (17:02 +0100)] 
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF): Fix comment typo.

17 years ago* lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.
Ralf Wildenhues [Sun, 4 Nov 2007 16:00:57 +0000 (17:00 +0100)] 
* lib/m4sugar/Makefile.am (version.m4): Another bash bug workaround.

17 years ago* build-aux/.gitignore: Ignore mkinstalldirs.
Ralf Wildenhues [Sun, 4 Nov 2007 15:59:38 +0000 (16:59 +0100)] 
* build-aux/.gitignore: Ignore mkinstalldirs.

17 years ago* doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.
Ralf Wildenhues [Sun, 4 Nov 2007 15:58:26 +0000 (16:58 +0100)] 
* doc/autoconf.texi (autoreconf Invocation): Fix an underfull line.

17 years agos/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556
Jim Meyering [Sat, 3 Nov 2007 21:56:26 +0000 (22:56 +0100)] 
s/-/./ in snapshot version string: 2.61a-256-8b556 -> 2.61a.256-8b556

* build-aux/git-version-gen: This syncs from coreutils.

17 years agoAdjust the build procedure so "make check" works reliably.
Jim Meyering [Sat, 3 Nov 2007 18:17:32 +0000 (19:17 +0100)] 
Adjust the build procedure so "make check" works reliably.

* README-hacking: Include an extra step between "make" and
"make check" to ensure that the latter passes.

17 years agoUse just-built tools, when possible.
Jim Meyering [Sat, 3 Nov 2007 09:27:02 +0000 (10:27 +0100)] 
Use just-built tools, when possible.

* GNUmakefile (PATH): Set and export here, ...
(dummy): ... rather than here.

17 years ago* tests/Makefile.am ($(srcdir)/package.m4): Work around bash
Ralf Wildenhues [Sat, 3 Nov 2007 17:55:09 +0000 (18:55 +0100)] 
* tests/Makefile.am ($(srcdir)/package.m4): Work around bash
exit status bug.

17 years ago* configure.ac (AC_PREREQ): Require version 2.60, for
Ralf Wildenhues [Sat, 3 Nov 2007 17:47:50 +0000 (18:47 +0100)] 
* configure.ac (AC_PREREQ): Require version 2.60, for
AC_PROG_SED, AC_PROG_GREP.

17 years agoDocument a bug in GNU Bash with compound commands and redirections.
Benoit Sigoure [Fri, 2 Nov 2007 20:57:30 +0000 (21:57 +0100)] 
Document a bug in GNU Bash with compound commands and redirections.

* doc/autoconf.texi (Limitations of Builtins): Mention that GNU
Bash doesn't properly set $? when `{ ... } >/bad' fails, and give
workaround.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSupport m4 1.4.5 in testsuite.
Eric Blake [Sat, 3 Nov 2007 14:44:44 +0000 (08:44 -0600)] 
Support m4 1.4.5 in testsuite.

* tests/torture.at (Define a newline): Exclude line numbers in
error message.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoRemove automake-provided files from version control.
Jim Meyering [Thu, 1 Nov 2007 11:36:42 +0000 (12:36 +0100)] 
Remove automake-provided files from version control.

* build-aux/elisp-comp: Remove file.
* build-aux/install-sh: Remove file.
* build-aux/missing: Remove file.
* build-aux/mdate-sh: Remove file.
* build-aux/.gitignore: New file.
Suggestion from Ralf Wildenhues.

17 years agoAdjust version comparison to account for git snapshot numbers.
Eric Blake [Sat, 3 Nov 2007 13:20:47 +0000 (07:20 -0600)] 
Adjust version comparison to account for git snapshot numbers.

* lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Also treat - as a
component separator.
* doc/autoconf.texi (Number processing Macros)
<m4_version_compare>: Document this change.
* tests/m4sugar.at (m4@&t@_version_compare): Test it.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,
Bruno Haible [Wed, 31 Oct 2007 02:09:54 +0000 (19:09 -0700)] 
* lib/autoconf/types.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro,

extracted from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
(AC_TYPE_LONG_LONG_INT, AC_TYPE_UNSIGNED_LONG_LONG_INT): Use it.
Fixes problem with Sun C 5.[0-8] in 32-bit mode, reported in
<http://lists.gnu.org/archive/html/autoconf-patches/2007-10/msg00210.html>
Suggested by Paul Eggert.

17 years agoREADME-hacking: Only Autoconf, Automake, and Perl are required to _build_.
Jim Meyering [Sun, 28 Oct 2007 14:25:01 +0000 (15:25 +0100)] 
README-hacking: Only Autoconf, Automake, and Perl are required to _build_.

List Gzip and Tar separately.  Suggested by Ralf Wildenhues.

17 years agoREADME-hacking: Recommend running autoreconf -vi.
Jim Meyering [Sat, 27 Oct 2007 19:57:32 +0000 (21:57 +0200)] 
README-hacking: Recommend running autoreconf -vi.

* GNUmakefile (dummy): Use autoreconf -i, with appropriate PATH,
so that we use just-built tools when they're available.
Suggestions from Ralf Wildenhues.

17 years agoMake inter-release --version output more useful.
Jim Meyering [Mon, 22 Oct 2007 17:54:52 +0000 (19:54 +0200)] 
Make inter-release --version output more useful.

Now, each unofficial build has a version "number" like 2.61a-19-58dd,
which indicates that it is built using the 19th change set
(in _some_ repository) following the "v2.61a" tag, and that 58dd
is a prefix of the commit SHA1.
* build-aux/git-version-gen: New file.
* configure.ac: Run it to set the version.
(AM_INIT_AUTOMAKE): Don't check NEWS here.
* Makefile.am (dist-hook): Arrange so that .version appears only
in distribution tarballs, never in a checked-out repository.
* .gitignore: Add .version here, too.  Just in case.
* tests/Makefile.am ($(srcdir)/package.m4): Depend on Makefile,
not configure.ac, now that the version number changes automatically.

Ensure that $(VERSION) is up to date for dist-related targets.
* GNUmakefile: Arrange to rerun autoconf, if the version reported by
git-version-gen doesn't match $(VERSION), but only for dist targets.

17 years agoFix `Deep Package' failure with a configure script early in PATH
Ralf Wildenhues [Sat, 27 Oct 2007 17:10:50 +0000 (19:10 +0200)] 
Fix `Deep Package' failure with a configure script early in PATH
* tests/torture.at (Deep Package): Add `.' early in PATH.
Report by Jim Meyering.

17 years agoRemove all generated files from version control.
Jim Meyering [Sat, 27 Oct 2007 10:14:35 +0000 (12:14 +0200)] 
Remove all generated files from version control.

* aclocal.m4: Remove.
* configure: Remove.
* Makefile.in: Remove, along with all other Makefile.in in subdirs.
* .gitignore: Add aclocal.m4, configure and Makefile.in.  Sort.
* README-hacking: New file: how to build from just-checked-out sources.

17 years agoImprove corner case of m4_expand.
Eric Blake [Wed, 24 Oct 2007 02:47:08 +0000 (20:47 -0600)] 
Improve corner case of m4_expand.

* lib/m4sugar/m4sugar.m4 (m4_expand, _m4_expand): Rewrite more
efficiently.
* tests/m4sh.at (AS@&t@_HELP_STRING): Test overquoted comma.
* doc/autoconf.texi (Evaluation Macros) <m4_expand>: Update
documentation.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* doc/make-stds.texi: Update from gnulib.
Paul Eggert [Tue, 23 Oct 2007 20:43:16 +0000 (13:43 -0700)] 
* doc/make-stds.texi: Update from gnulib.

17 years ago* lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility
Paul Eggert [Mon, 22 Oct 2007 21:29:02 +0000 (14:29 -0700)] 
* lib/autoconf/c.m4 (AC_C_RESTRICT): Work around Sun C++ compatibility

problem reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00027.html>.

17 years agoDocument previous patch.
Eric Blake [Mon, 22 Oct 2007 17:54:27 +0000 (11:54 -0600)] 
Document previous patch.

* doc/autoconf.texi (Particular Types): Mention bug in HP-UX 11.00
preprocessor.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDon't check for bug in HP-UX 11.00 cpp.
Paul Eggert [Mon, 22 Oct 2007 16:55:30 +0000 (09:55 -0700)] 
Don't check for bug in HP-UX 11.00 cpp.

* lib/autoconf/types.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT):
Use -1ull rather than -1u, since that causes problems with gnulib; see
<http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.

17 years agoFix typos in test names.
Ralf Wildenhues [Mon, 22 Oct 2007 05:24:46 +0000 (07:24 +0200)] 
Fix typos in test names.

* tests/autotest.at (Backquote command substitution)
(Multiline backquote command substitution)
(Parenthetical command substitution)
(Multiline parenthetical command substitution): Fix typos in
test names.

17 years ago* configure: Regenerate.
Eric Blake [Sun, 21 Oct 2007 23:46:05 +0000 (17:46 -0600)] 
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix config status generation with Tru64 ksh.
Ralf Wildenhues [Sun, 21 Oct 2007 18:49:50 +0000 (20:49 +0200)] 
Fix config status generation with Tru64 ksh.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix
escaping of backslash in here-documents.

17 years agoFix `Deep Package' test failure on FreeBSD.
Ralf Wildenhues [Sun, 21 Oct 2007 18:15:38 +0000 (20:15 +0200)] 
Fix `Deep Package' test failure on FreeBSD.

* tests/torture.at (Deep Package): Do not add `.' to $PATH
unnecessarily.  Do not try running `/bin/sh configure' with a
configure script to be found in $PATH, if the shell does not do
this resolution.  Fixes test failure on FreeBSD.

17 years agoFix config header generation with AIX awk.
Ralf Wildenhues [Sun, 21 Oct 2007 17:41:00 +0000 (19:41 +0200)] 
Fix config header generation with AIX awk.

* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In awk
script, use helper array D_is_set, as `" 0"' does not evaluate
to true for AIX awk.

17 years ago* tests/autotest.at (Banners): Reinstate test, with typo corrected.
Eric Blake [Sun, 21 Oct 2007 15:30:56 +0000 (09:30 -0600)] 
* tests/autotest.at (Banners): Reinstate test, with typo corrected.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoValidate testsuite range arguments.
Ralf Wildenhues [Sun, 21 Oct 2007 10:42:09 +0000 (12:42 +0200)] 
Validate testsuite range arguments.

* lib/autotest/general.m4 (Defaults): Validate input ranges ...
<at_func_validate_ranges>: ... using this new function.
* tests/autotest.at (Keywords and ranges): Test invalid ranges.
Test --list with ranges and keywords.
(Banners): Remove one now-failing test.

17 years agoFix testsuite --list subset.
Eric Blake [Sun, 21 Oct 2007 04:29:44 +0000 (22:29 -0600)] 
Fix testsuite --list subset.

* lib/autotest/general.m4 (AT_INIT) <at_list_p>: Swap newlines
back to spaces, before listing subset of tests.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agos/parenthesis/parentheses/ where appropriate.
Eric Blake [Fri, 19 Oct 2007 13:08:59 +0000 (07:08 -0600)] 
s/parenthesis/parentheses/ where appropriate.

* doc/autoconf.texi: Fix typos.
* lib/m4sugar/m4sugar.m4: Likewise.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDocument m4_expand limitation.
Eric Blake [Fri, 19 Oct 2007 12:35:37 +0000 (06:35 -0600)] 
Document m4_expand limitation.

* lib/m4sugar/m4sugar.m4 (m4_expand): Mention problem with
unbalanced parse.
* doc/autoconf.texi (Pretty Help Strings, Evaluation Macros)
(Writing Testsuites): Mention limitations inherited from
m4_expand.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove AT_BANNER handling.
Eric Blake [Fri, 19 Oct 2007 12:27:46 +0000 (06:27 -0600)] 
Improve AT_BANNER handling.

* lib/autotest/general.m4 (BANNERS): New named diversion.
(TESTS_END): Diversion no longer used.
(AT_INIT) <at_func_banner, BANNERS>: Factor all banners into a
shell function, which prints only as needed, using an associative
array of banner text from a special diversion.
<PARSE_ARGS_END>: No longer need awk to find banners.
<TESTS>: Banners are no longer processed by main driver loop, so
we no longer need case statement.
(AT_BANNER): Rewrite to populate new diversion.
(AT_SETUP): Each test invokes its own banner.  No output is needed
to the TESTS diversion.
* doc/autoconf.texi (Writing Testsuites): Document slight
semantics change.
* tests/autotest.at (AT_BANNERS): Enhance test.
* NEWS: Document AT_BANNER.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDocument and test AT_BANNER.
Eric Blake [Fri, 19 Oct 2007 11:33:55 +0000 (05:33 -0600)] 
Document and test AT_BANNER.

* doc/autoconf.texi (Writing Testsuites): Document AT_BANNER.
* tests/autotest.at (AT_CHECK_EGREP): Share between tests.
(AT_CHECK_BANNERS): New test.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDoc touchups.
Eric Blake [Fri, 19 Oct 2007 11:11:51 +0000 (05:11 -0600)] 
Doc touchups.

* doc/autoconf.texi (Text processing Macros) <m4_strip>
<m4_text_wrap>: Clarify and fix typos.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoIgnore `make dist' changelogs in testsuite.log.
Eric Blake [Fri, 19 Oct 2007 00:38:34 +0000 (18:38 -0600)] 
Ignore `make dist' changelogs in testsuite.log.

* lib/autotest/general.m4 (AT_INIT) <ChangeLogs>: Prune
directories matching AT_PACKAGE_TARNAME-*.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix AT_TESTED, AT_KEYWORDS.
Eric Blake [Thu, 18 Oct 2007 15:05:09 +0000 (09:05 -0600)] 
Fix AT_TESTED, AT_KEYWORDS.

* lib/m4sugar/m4sugar.m4 (m4_append_uniq): Warn if separator
occurs in string, as duplicates may be added.
(_m4_append_uniq): New helper macro.
(m4_append_uniq_w): New macro.
* lib/autotest/general.m4 (AT_TESTED, AT_KEYWORDS): Fix
duplication bug by using new macro.
(AT_INIT) <at_tested>: Restore newline separators.  Invoke tested
programs with stdin redirected, so programs that don't
understand --version won't try to behave interactively.
* tests/autotest.at (Tested programs): Catch this bug.
* tests/m4sugar.at (m4@&t@_append): Test new macro.
* tests/local.at (AT_TESTED): Add m4, perl.
* doc/autoconf.texi (Text processing Macros): Document
m4_append_uniq_w, and update text on m4_append.
* NEWS: Document the addition.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFunction cleanup.
Eric Blake [Thu, 18 Oct 2007 02:59:01 +0000 (20:59 -0600)] 
Function cleanup.

* lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Convert
from m4 macro...
(AT_INIT) <at_func_create_debugging_script>: ...to shell
function.
(AT_INIT): Defer function declarations until after --help,
--version.  Format functions consistently, trying to fit in 80
columns.
(TEST_FUNCTIONS): Based on recent changes, rename...
(TEST_GROUPS): ...to this.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoReject FreeBSD m4.
Eric Blake [Wed, 17 Oct 2007 23:09:14 +0000 (17:09 -0600)] 
Reject FreeBSD m4.

* m4/m4.m4 (AC_PROG_GNU_M4): Also check for frozen file support.
* configure: Regenerate.
Reported by Bob Friesenhahn.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoKill trailing whitespace.
Eric Blake [Wed, 17 Oct 2007 20:41:41 +0000 (14:41 -0600)] 
Kill trailing whitespace.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoTest recent additions.
Eric Blake [Wed, 17 Oct 2007 19:51:26 +0000 (13:51 -0600)] 
Test recent additions.

* tests/m4sugar.at (m4@&t@_map, m4@&t@_combine)
(m4@&t_max and m4@&t_min): New tests.
* doc/autoconf.texi (Evaluation Macros) <m4_apply>: Enhance
description.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* TODO: multiline args in config files and headers work now.
Ralf Wildenhues [Wed, 17 Oct 2007 19:20:19 +0000 (21:20 +0200)] 
* TODO: multiline args in config files and headers work now.

17 years agoAutotest: do not use shell functions for individual tests.
Ralf Wildenhues [Wed, 17 Oct 2007 19:12:36 +0000 (21:12 +0200)] 
Autotest: do not use shell functions for individual tests.

* lib/autotest/general.m4 (AT_INIT) <at_func_test>: Merely
extract the source test source, do not invoke it.
(AT_SETUP, AT_CLEANUP): Source test code outside shell function.
* tests/autotest.at (Fallacy): Actually let the inner suite fail,
expect exit status of 1.
* tests/autotest.at (Skip): New test, for bogus zsh exit status.

17 years ago* lib/autotest/general.m4 (at_func_test): Fix test extraction script.
Ralf Wildenhues [Wed, 17 Oct 2007 19:11:07 +0000 (21:11 +0200)] 
* lib/autotest/general.m4 (at_func_test): Fix test extraction script.

17 years agoFix m4_combine for empty suffix list.
Eric Blake [Wed, 17 Oct 2007 16:02:04 +0000 (10:02 -0600)] 
Fix m4_combine for empty suffix list.

* lib/m4sugar/m4sugar.m4 (m4_combine): Check for suffix list.
* doc/autoconf.texi (Text processing Macros): Document this.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAdd m4_combine, based on Libtool's lt_combine.
Eric Blake [Wed, 17 Oct 2007 13:13:00 +0000 (07:13 -0600)] 
Add m4_combine, based on Libtool's lt_combine.

* lib/m4sugar/m4sugar.m4 (m4_combine): New macro.
* doc/autoconf.texi (Text processing Macros): Document it.
* NEWS: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix `configure --help=recursive' in unconfigured/read-only trees.
Ralf Wildenhues [Tue, 16 Oct 2007 21:50:03 +0000 (23:50 +0200)] 
Fix `configure --help=recursive' in unconfigured/read-only trees.

* lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
is not writable, use 'cp -p' in this case, in the hope that it
will not actually be needed.  Still try removing files, in case
of other write errors.
* lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
use $as_myself, not $0.
(_AC_INIT_HELP): For --help=recursive, if the subdir does not
exist, try again in the the source tree.  This change assumes
that the subpackage configure script is capable of running
--help=recursive in the source tree.
* tests/torture.at (Configuring subdirectories, Deep Package):
Adjust tests to expose both issues, also try invocation as
`sh configure ...' and plain `configure ...' with PATH adjusted.
* NEWS, THANKS: Update.
Report by Hans Ulrich Niedermann.

17 years agoCheck for 64-bit int errors in HP-UX 10.20 preprocessor.
Paul Eggert [Tue, 16 Oct 2007 20:25:57 +0000 (13:25 -0700)] 
Check for 64-bit int errors in HP-UX 10.20 preprocessor.

Problem reported by H.Merijn Brand in
<http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT):
Check that preprocessor handles 64-bit ints, too.

17 years agoMerge branch 'master' of /home/eggert/src/gnu/autoconf-savannah/
Paul Eggert [Tue, 16 Oct 2007 20:11:38 +0000 (13:11 -0700)] 
Merge branch 'master' of /home/eggert/src/gnu/autoconf-savannah/

17 years agom4_map is a looping construct.
Eric Blake [Tue, 16 Oct 2007 18:18:24 +0000 (12:18 -0600)] 
m4_map is a looping construct.

* lib/m4sugar/m4sugar.m4 (m4_map, _m4_map, m4_map_sep): Move.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix m4_map, and add some more utility macros.
Eric Blake [Tue, 16 Oct 2007 18:00:00 +0000 (12:00 -0600)] 
Fix m4_map, and add some more utility macros.

* lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
(m4_echo, m4_make_list): New documented macros.
(_m4_quote, _m4_shift2): New helper macros.
(m4_map): Change semantics to allow calling macro without
arguments.
(m4_map_sep): Likewise.  Also change semantics to quote separator,
to match m4_join and m4_append.
(m4_version_unletter): Fix use of m4_map.
* doc/autoconf.texi (Evaluation Macros): Document m4_apply,
m4_count, m4_dquote_elt, m4_echo, m4_make_list.
(Text processing Macros): Mention m4_dquote as a faster
alternative to joining with commas.
(Looping constructs): Document m4_map, m4_map_sep.
* NEWS: Mention new macros.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoA few more m4sugar improvements, to benefit libtool.
Eric Blake [Tue, 16 Oct 2007 12:22:56 +0000 (06:22 -0600)] 
A few more m4sugar improvements, to benefit libtool.

* lib/m4sugar/m4sugar.m4 (m4_bpatsubsts, _m4_shiftn): Reduce size
of expansion by avoiding extra uses of $@.
(m4_shiftn): Avoid extra dnl, and forbid shifting by 0.
(_m4_cdr): New helper macro.
(_m4_map, m4_map_sep): Use it to reduce size of expansion.
(_m4_shift3): New helper macro.
(_m4_foreach): Swap argument order, and use new macro to reduce
size of expansion.
* doc/autoconf.texi (Looping constructs) <m4_shiftn>: Mention that
count must be positive.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix typo.
Eric Blake [Tue, 16 Oct 2007 12:11:13 +0000 (06:11 -0600)] 
Fix typo.

* doc/autoconf.texi (Evaluation Macros) <m4_expand>: Fix typo.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* doc/autoconf.texi (Portable Shell): Improve description of zsh
Ralf Wildenhues [Mon, 15 Oct 2007 21:15:39 +0000 (23:15 +0200)] 
* doc/autoconf.texi (Portable Shell): Improve description of zsh
4.x function subshell bug with exit and trap.

17 years agoEnhance AS_HELP_STRING.
Eric Blake [Mon, 15 Oct 2007 18:18:24 +0000 (12:18 -0600)] 
Enhance AS_HELP_STRING.

* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't expand arguments,
and reduce number of expansions.
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Rework to use m4_expand,
and to take indent and wrap column numbers.
* tests/m4sh.at (AS@&t@_HELP_STRING): Update the test.
* doc/autoconf.texi (Pretty Help Strings): Document details about
arguments.
(Text processing Macros): Minor tweaks.
* NEWS: Document this change.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix 2007-10-03 regression with AT_SETUP([a, b]).
Eric Blake [Mon, 8 Oct 2007 17:53:00 +0000 (11:53 -0600)] 
Fix 2007-10-03 regression with AT_SETUP([a, b]).

* lib/m4sugar/m4sugar.m4 (m4_expand): New macro.
* lib/autotest/general.m4 (AT_SETUP): Use it to preserve
whitespace after single-quoted comma.
* tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Test this.
* NEWS: Revert caveat about semantics change on comma.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing.
(Redefined M4 Macros): Touch up wording on M4 builtins.
(Evaluation Macros): Document m4_expand.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoChange m4_join to match libtool's ltsugar semantics.
Eric Blake [Sat, 13 Oct 2007 17:11:44 +0000 (11:11 -0600)] 
Change m4_join to match libtool's ltsugar semantics.

* lib/m4sugar/m4sugar.m4 (m4_join): Just define this, not defun.
Ignore empty arguments, using...
(_m4_join): ...this new helper.
* tests/m4sugar.at (m4@&t@_join): New test.
* doc/autoconf.texi (Text processing Macros): Document new
semantics of m4_join.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMake AC_PREREQ faster and more robust.
Eric Blake [Sat, 13 Oct 2007 13:47:46 +0000 (07:47 -0600)] 
Make AC_PREREQ faster and more robust.

* lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
(m4_version_prereq): Inline constant expansions.
(m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
Rewrite in terms of [] list, not () list.
(_m4_list_cmp, _m4_version_unletter): New helper macros.
(m4_version_unletter): Write wrapper around new implementation to
preserve old semantics.
(m4_version_compare): Pass correct type of list, and avoid
overhead of flattening expressions too early.
(m4_do): Move to be near other quoting macros.
(m4_max, m4_min): Always result in decimal output.
* doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
Move m4_do...
(Evaluation Macros): ...here.  Add m4_ignore, m4_unquote.
(Text processing Macros): Move m4_version_compare...
(Number processing Macros): ...to this new node; document m4_cmp,
m4_list_cmp, m4_sign, m4_max, m4_min.
* tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
up on bugs fixed by this patch.
* NEWS: Document new macros.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMerge branch 'master' of /home/eggert/src/gnu/autoconf-savannah/
Paul Eggert [Sat, 13 Oct 2007 06:29:12 +0000 (23:29 -0700)] 
Merge branch 'master' of /home/eggert/src/gnu/autoconf-savannah/

17 years agoAvoid underfull hbox.
Eric Blake [Sat, 13 Oct 2007 03:45:24 +0000 (21:45 -0600)] 
Avoid underfull hbox.

* doc/autoconf.texi (Reporting Messages): Fix underfull hbox.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix 'make info' after last patch.
Eric Blake [Sat, 13 Oct 2007 03:40:10 +0000 (21:40 -0600)] 
Fix 'make info' after last patch.

* doc/autoconf.texi (Text processing Macros): Fix bad merge.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSome more m4sugar documentation.
Eric Blake [Thu, 11 Oct 2007 20:17:13 +0000 (14:17 -0600)] 
Some more m4sugar documentation.

* lib/m4sugar/m4sugar.m4: Clean up macro order.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing and useful.
(Redefined M4 Macros): Touch up wording on M4 builtins; sort.  Add
m4_divert, m4_undivert, __file__, __line__, __oline__.
(Diagnostics): New node, documenting m4_assert, m4_errprintn,
m4_fatal, m4_location, m4_warn.
(Diversion support): New node, documenting m4_divert_push,
m4_divert_pop, m4_divert_text, m4_divert_once.
(Text processing Macros): Sort.  Add m4_flatten, m4_join,
m4_newline, m4_strip, m4_text_box, m4_text_wrap.
(Programming in M4sh, Macro Names): Document namespace
limitations.  Mention that non-Automake macros should not begin
with `AM_'.
(Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
as obsolescent.
(Printing Messages): Change cross-reference.

Signed-off-by: Eric Blake <ebb9@byu.net>