]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
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>
17 years agoDocument interaction of recent m4_append change with Libtool HEAD.
Eric Blake [Thu, 11 Oct 2007 20:46:40 +0000 (14:46 -0600)] 
Document interaction of recent m4_append change with Libtool HEAD.

* lib/m4sugar/m4sugar.m4 (m4_append): Document semantics change.
(m4_append_uniq): Add new parameters, based on lt_append_uniq.
* tests/m4sugar.at (m4@&t@_append): New test.
* NEWS: Document semantics change.
* doc/autoconf.texi (Text processing Macros): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agos/AC_VERSION/AC_AUTOCONF_VERSION/.
Eric Blake [Fri, 12 Oct 2007 18:14:03 +0000 (12:14 -0600)] 
s/AC_VERSION/AC_AUTOCONF_VERSION/.

* doc/autoconf.texi (Versioning): Change the name.
* NEWS: Likewise.
* lib/autoconf/general.m4 (AC_AUTOCONF_VERSION): Likewise.
* tests/tools.at (autoconf: AC_AUTOCONF_VERSION): Likewise.
Suggested by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoNamespace cleanup.
Eric Blake [Fri, 12 Oct 2007 16:34:27 +0000 (10:34 -0600)] 
Namespace cleanup.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE)
(_AC_OUTPUT_HEADERS_PREPARE): Convert here-doc delimiters into
autoconf namespace.
* doc/autoconf.texi (Programming in M4sugar, Forbidden Patterns)
(Programming in M4sh, Macro Names): Beef up description of
namespaces reserved for autoconf.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSpeed up execution of subset of testsuite.
Eric Blake [Fri, 12 Oct 2007 15:29:10 +0000 (09:29 -0600)] 
Speed up execution of subset of testsuite.

* lib/autotest/general.m4 (TEST_FUNCTIONS): New diversion.
(AT_INIT) <at_func_test>: New shell function.
(AT_INIT) <at_myself>: New variable, set to absolute $as_myself.
(AT_INIT) <at_test_source> New variable, names file that holds
current test function definition.
(AT_SETUP): Start the shell function at_func_test_#, into the
TEST_FUNCTIONS diversion.
(AT_CLEANUP): End the shell function.  Simplify the TESTS
diversion to invoke the function.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* .gitignore: Ignore tags and TAGS files.
Ralf Wildenhues [Thu, 11 Oct 2007 17:30:24 +0000 (19:30 +0200)] 
* .gitignore: Ignore tags and TAGS files.

17 years agoConfig header generation followup.
Eric Blake [Wed, 10 Oct 2007 20:02:16 +0000 (14:02 -0600)] 
Config header generation followup.

* lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
which won't work with the preprocessor nor with the awk
implementation.
* tests/torture.at (Define a newline): Test raw newline detection,
removing the XFAIL.
* doc/autoconf.texi (Defining Symbols): Document recent change to
allow backslash-newline.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* lib/autotest/general.m4: Put function braces in separate line.
Ralf Wildenhues [Wed, 10 Oct 2007 23:49:50 +0000 (01:49 +0200)] 
* lib/autotest/general.m4: Put function braces in separate line.

17 years agoAvoid some overhead from m4_defn and m4_popdef.
Eric Blake [Wed, 10 Oct 2007 18:17:59 +0000 (12:17 -0600)] 
Avoid some overhead from m4_defn and m4_popdef.

* lib/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine): Only
pass on first argument, since we are documented that way.
(m4_for, m4_append_uniq, m4_text_wrap): Optimize out defined-ness
check where it is safe to do so.
(m4_append): Likewise, and quote the separator.
(m4_text_box): Likewise, and avoid regex, also be robust to
expansion and quadrigraphs.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAnother AC_DEFINE speedup.
Eric Blake [Wed, 10 Oct 2007 20:29:22 +0000 (14:29 -0600)] 
Another AC_DEFINE speedup.

* lib/autoconf/general.m4 (AC_DEFINE_TRACE): Move parameter
elision...
(_AC_DEFINE_Q): ...here, and only do it once.
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid overquoting.
* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Fix m4_defn overquoting
introduced 2007-10-05.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWhitespace cleanup.
Eric Blake [Wed, 10 Oct 2007 20:29:04 +0000 (14:29 -0600)] 
Whitespace cleanup.

* lib/autoconf/general.m4: Use consistent indentation.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* NEWS: Announce recent round of speed optimizations.
Eric Blake [Wed, 10 Oct 2007 20:11:05 +0000 (14:11 -0600)] 
* NEWS: Announce recent round of speed optimizations.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* NEWS: Announce shell function usage in Autotest.
Ralf Wildenhues [Wed, 10 Oct 2007 18:02:03 +0000 (20:02 +0200)] 
* NEWS: Announce shell function usage in Autotest.

17 years agoFix ChangeLog entry.
Ralf Wildenhues [Wed, 10 Oct 2007 18:01:24 +0000 (20:01 +0200)] 
Fix ChangeLog entry.

17 years agoReduce number of forks at startup.
Eric Blake [Wed, 10 Oct 2007 03:41:22 +0000 (21:41 -0600)] 
Reduce number of forks at startup.

* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Speed up NLS
sanitization.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix ChangeLog entry.
Ralf Wildenhues [Wed, 10 Oct 2007 06:51:34 +0000 (08:51 +0200)] 
Fix ChangeLog entry.

17 years agoUse awk for config header generation.
Ralf Wildenhues [Wed, 10 Oct 2007 05:18:34 +0000 (07:18 +0200)] 
Use awk for config header generation.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix comments.
(_AC_OUTPUT_HEADERS_PREPARE): New macro.  Rewrite of the config
header machinery for use with awk and placement outside the main
config.status instantiation loop.  Retain multi-line defines
through backslash-newline combinations, do not split the script
any more.
(_AC_OUTPUT_HEADER): Simplify accordingly, use $AWK.
(_AC_OUTPUT_MAIN_LOOP): Call _AC_OUTPUT_HEADERS_PREPARE if
needed.
(AC_OUTPUT_MAKE_DEFS): Remove backslash-newline combinations
from define values.
* NEWS: Update.
* tests/torture.at (#define header templates): Extend test by
several more cases: white space before and after `#', macros
with parameters in config.hin and as defines, multi-line macro
values.
(Torturing config.status): Use a define value twice the length
in order to exercise the awk literal string limit.
(Substitute and define special characters): Also try special
delimiter, to exercise the special-case code.
Suggestion by Eric Lemings.

17 years ago* tests/local.at (AT_COPYRIGHT): Bump copyright years.
Ralf Wildenhues [Wed, 10 Oct 2007 05:07:45 +0000 (07:07 +0200)] 
* tests/local.at (AT_COPYRIGHT): Bump copyright years.

17 years agoImprove header of bin/autoconf.
Eric Blake [Tue, 9 Oct 2007 23:14:35 +0000 (17:14 -0600)] 
Improve header of bin/autoconf.

* lib/m4sugar/m4sh.m4 (AS_INIT): Add a 'generated from' notice.
* lib/autoconf/general.m4 (_AC_INIT_NOTICE): Override new notice
from M4sh.
* bin/autoconf.as: Put copyright up front in generated file.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix font-lock for bin/autoconf.
Eric Blake [Tue, 9 Oct 2007 22:06:44 +0000 (16:06 -0600)] 
Fix font-lock for bin/autoconf.

* bin/autoconf.as (exit_missing_arg): Font-lock tweak.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoDocument `uninstall' in INSTALL.
Ralf Wildenhues [Tue, 9 Oct 2007 19:24:39 +0000 (21:24 +0200)] 
Document `uninstall' in INSTALL.

* doc/install.texi (Basic Installation): Document `uninstall'.
* INSTALL: Regenerate.
Suggestion by Roberto Bagnara.

17 years ago* doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
Paul Eggert [Mon, 8 Oct 2007 22:15:17 +0000 (15:15 -0700)] 
* doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.

17 years ago* doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.
Paul Eggert [Mon, 8 Oct 2007 22:14:25 +0000 (15:14 -0700)] 
* doc/autoconf.texi (Limitations of Usual Tools): V7 awk had 'index'.

17 years agoAdjust doc. to match latest gnulib.
Paul Eggert [Mon, 8 Oct 2007 22:08:10 +0000 (15:08 -0700)] 
Adjust doc. to match latest gnulib.
* build-aux/texinfo.tex: Sync from gnulib.
* doc/standards.texi: Likewise.
* doc/autoconf.texi (Copying This Manual): Rename to "GNU Free
Documentation License" and remove the subsection.  This simplifies
the manual a bit and is more like what other GNU projects do
nowadays.

17 years agoUse recent changes.
Eric Blake [Mon, 8 Oct 2007 20:34:12 +0000 (14:34 -0600)] 
Use recent changes.

* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix regression in m4_text_wrap from 2007-10-05.
Eric Blake [Mon, 8 Oct 2007 20:09:22 +0000 (14:09 -0600)] 
Fix regression in m4_text_wrap from 2007-10-05.

* lib/m4sugar/m4sugar.m4 (m4_max, m4_min): New macros.
(m4_sign): Sort.
(m4_text_wrap): Fix off-by-one error in rewrite from m4_for to
m4_format.
* lib/autotest/general.m4 (AT_SETUP): Avoid negative width.
* tests/autotest.at (Long test title, Longer test title): Test
this fix, beyond what AS_HELP_STRING already tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid m4 warnings on bad m4_format usage.
Eric Blake [Mon, 8 Oct 2007 16:46:21 +0000 (10:46 -0600)] 
Avoid m4 warnings on bad m4_format usage.

* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Use %*s, in case width
evaulates to 0.
* lib/autotest/general.m4 (AT_ordinal): Likewise; also ensure that
enough arguments are provided.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agodocument shell function portability
Paolo Bonzini [Sat, 6 Oct 2007 09:25:49 +0000 (11:25 +0200)] 
document shell function portability

2007-10-06  Paolo Bonzini  <bonzini@gnu.org>

        * doc/autoconf.texi (Shell portability): Document shell function
        portability.

Signed-Off-By: Paolo Bonzini <bonzini@gnu.org>
17 years agoautotest speed improvements
Paolo Bonzini [Sat, 6 Oct 2007 09:24:26 +0000 (11:24 +0200)] 
autotest speed improvements

2007-10-06  Paolo Bonzini  <bonzini@gnu.org>

* lib/autotest/general.m4 (AT_INIT): Add at_func_diff_devnull,
at_func_check_skip, at_func_check_status, at_func_filter_trace,
at_func_log_failure shell functions.  Use test -s to avoid
useless diff invocations.
(AT_SETUP): Define AT_captured_files to empty.
(AT_DIFF_STDERR(*), AT_DIFF_STDOUT(*)): New, extracted from _AT_CHECK.
(_AT_CHECK): Replace m4_case with m4_ifdef/m4_indir.  Use all
the shell functions.

Signed-Off-By: Paolo Bonzini <bonzini@gnu.org>
17 years agoCredit S. G. Johnson for the 2007-05-21 OpenMP patch.
Paul Eggert [Sat, 6 Oct 2007 02:35:46 +0000 (19:35 -0700)] 
Credit S. G. Johnson for the 2007-05-21 OpenMP patch.

17 years agoDon't assume "." is writeable, for commands like "autoconf --version".
Paul Eggert [Fri, 5 Oct 2007 22:31:06 +0000 (15:31 -0700)] 
Don't assume "." is writeable, for commands like "autoconf --version".
* lib/m4sugar/m4sh.m4 (_AS_PATH_SEPARATOR_PREPARE): Use a
different heuristic instead, one that doesn't rely on creating
files.

17 years ago* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
Paul Eggert [Fri, 5 Oct 2007 20:52:01 +0000 (13:52 -0700)] 
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle "///"
correctly.

17 years agoAvoid makeinfo warnings.
Jim Meyering [Fri, 5 Oct 2007 18:16:09 +0000 (20:16 +0200)] 
Avoid makeinfo warnings.

* doc/autoconf.texi (Redefined M4 Macros): Add a `,' after @xref.
(Looping constructs): Add ` ' after @defmac'd name, m4_do.

17 years agoResolve Python issue 1676135 regarding configure directory args.
Eric Blake [Fri, 5 Oct 2007 17:26:26 +0000 (11:26 -0600)] 
Resolve Python issue 1676135 regarding configure directory args.

* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
slashes from directory arguments.
* tests/base.at (configure directories): New test.
* doc/autoconf.texi (Installation Directory Variables): Document
the change.
* NEWS: Likewise.
* THANKS: Update.
Reported by Björn Lindqvist.
http://bugs.python.org/issue1676135

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoProvide better short-circuiting operation.
Eric Blake [Thu, 4 Oct 2007 18:29:45 +0000 (12:29 -0600)] 
Provide better short-circuiting operation.

* lib/m4sugar/m4sugar.m4 (m4_cond, m4_newline): New macros.
(m4_text_wrap): Use it.  Also avoid useless m4_for.
* lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE, AS_LITERAL_IF): Use
new macro.
(_AS_IDENTIFIER_IF): Likewise, and fix bug when $1 is [,].
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Use new macros
to avoid regexps.
* doc/autoconf.texi (Redefined M4 Macros): Expand m4_if
documentation.  Sort m4_mkstemp, m4_undefine.  Move m4_ifndef...
(Conditional constructs): ...here, to new section.  Also document
m4_cond, m4_ifval, m4_n, m4_ifvaln, m4_ifset, m4_case, m4_bmatch,
m4_bpatsubsts, and m4_default.
(Looping constructs): Document m4_shiftn, m4_shift2, m4_shift3,
m4_do.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix recent testsuite failures.
Eric Blake [Thu, 4 Oct 2007 21:31:41 +0000 (15:31 -0600)] 
Fix recent testsuite failures.

* lib/autotest/general.m4 (AT_INIT, AT_SETUP): Double-quote text
that must not be re-expanded after AS_ESCAPE.
* lib/m4sugar/m4sh.m4 (_AS_IDENTIFIER_IF): Don't expand $1 when
checking if it is an identifier.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWhitespace cleanup.
Eric Blake [Thu, 4 Oct 2007 20:23:52 +0000 (14:23 -0600)] 
Whitespace cleanup.

* lib/autotest/general.m4 (_AT_CREATE_DEBUGGING_SCRIPT): Avoid
leading whitespace, as it caused space-tab in testsuite.
(AT_INIT): Avoid trailing newlines in testsuite.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agouse shell functions to speed up autotest and produce slimmer testsuites
Paolo Bonzini [Thu, 4 Oct 2007 16:53:10 +0000 (18:53 +0200)] 
use shell functions to speed up autotest and produce slimmer testsuites

2007-10-04  Paolo Bonzini  <bonzini@gnu.org>

* general.m4 (AT_INIT): Add at_check_newline function.
(_AT_DECIDE_TRACEABLE): Include at_traceon test, use shell function.
(_AT_CHECK): Don't use at_trace_this.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
17 years agoOne more round of m4_foreach_w speedups.
Eric Blake [Thu, 4 Oct 2007 15:43:59 +0000 (09:43 -0600)] 
One more round of m4_foreach_w speedups.

* lib/m4sugar/m4sugar.m4 (m4_flatten): Only use regex if newline
is present.
(_m4_split): Avoid useless expansions inside definition.  Move
argument defaulting...
(m4_split): ...here.  Change alternate quote to something less
likely to appear in $1.  Also, special case space as regexp...
(m4_foreach_w): ...to avoid regexp on single-term list.
(m4_default, m4_defn, m4_popdef, m4_undefine, _m4_foreach): Avoid
useless expansions inside definition.
* tests/m4sugar.at (m4@&t@_split): Add tests.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix previous commit.
Paolo Bonzini [Thu, 4 Oct 2007 15:15:21 +0000 (17:15 +0200)] 
Fix previous commit.

* lib/autotest/general.m4 (AT_LINE): Fix regex.

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
17 years agoSpeed up building testsuites.
Eric Blake [Thu, 4 Oct 2007 13:13:50 +0000 (07:13 -0600)] 
Speed up building testsuites.

* lib/autotest/general.m4 (AT_LINE): Only use regex when file
changed since last time.  Use simpler regex.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize checking for identifiers.
Eric Blake [Wed, 3 Oct 2007 23:18:59 +0000 (17:18 -0600)] 
Optimize checking for identifiers.

* lib/m4sugar/m4sh.m4 (AS_IDENTIFIER_IF, _AS_IDENTIFIER_IF): New
macros, more efficient than regex on m4_re_word.
* lib/autoconf/general.m4 (AC_SUBST, AC_DEFINE_TRACE_LITERAL):
Rewrite in terms of new macro.  As a side-effect, AC_DEFINE can
now use @&t@.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoRemove some XFAILs, and make AT_SETUP output line up.
Eric Blake [Wed, 26 Sep 2007 23:23:00 +0000 (17:23 -0600)] 
Remove some XFAILs, and make AT_SETUP output line up.

* lib/autotest/general.m4 (AT_SETUP): Only expand description
once; thereafter, use its expansion, properly quoted.
* tests/autotest.at (AT_CHECK_AT_TITLE): Also check macro
expansion with arguments, and check for aligned output.
(AT_CHECK_AT_TITLE_CHAR): Remove XFAILs for tests that now pass.
Add a test for macros with parameters.
* NEWS: Document the semantics change.
* tests/base.at: Fix test titles containing commas.
* tests/compile.at: Likewise.
* tests/tools.at: Likewise.
* tests/torture.at: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAnother round of regex avoidance.
Eric Blake [Wed, 3 Oct 2007 21:26:51 +0000 (15:26 -0600)] 
Another round of regex avoidance.

* lib/m4sugar/m4sugar.m4 (m4_cr_alnum, m4_cr_all)
(_m4_define_cr_not, m4_cr_not_letters, m4_cr_not_LETTERS)
(m4_cr_not_Letters, m4_cr_not_digits, m4_cr_not_alnum)
(m4_cr_not_symbols1, m4_cr_not_symbols2): New macros, implementing
character ranges useful in m4_translit.
(m4_toupper, m4_tolower): Optimize the constant portion of
definition.
* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Also reject @S|@ because it
creates $, and reject [] thanks to AS_TR_SH rewrite.
(AS_TR_SH, AS_TR_CPP): Use just translit, not bpatsubst.
(AS_ESCAPE): Factor...
(_AS_ESCAPE): ...into new macro, with second argument required.
Avoid regex in common case.
(_AS_QUOTE): Use new macro.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWhitespace cleanup.
Eric Blake [Wed, 3 Oct 2007 14:29:59 +0000 (08:29 -0600)] 
Whitespace cleanup.

* lib/autoconf/types.m4: Avoid space-tab.
* lib/m4sugar/m4sh.m4: Use tab consistently.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years ago* lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
Paul Eggert [Wed, 3 Oct 2007 20:06:08 +0000 (13:06 -0700)] 
* lib/m4sugar/m4sugar.m4 (m4_shift2, m4_shift3): New macros.
(m4_shiftn): Remove no-longer-needed optimization.  Perhaps we
should remove m4_shiftn entirely?
(m4_case, b4_bmatch, m4_map_sep, m4_bpatsubsts, m4_join):
Prefer m4_shift2 and m4_shift3 to m4_shiftn.
* lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
* lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Likewise.
* tests/autotest.at (AT_CHECK_AT_TEST): Likewise.

17 years agoComment touchups.
Eric Blake [Wed, 3 Oct 2007 14:09:04 +0000 (08:09 -0600)] 
Comment touchups.

* lib/m4sugar/m4sugar.m4: Grammar fixes in comments.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize appending text.
Eric Blake [Wed, 3 Oct 2007 02:23:03 +0000 (20:23 -0600)] 
Optimize appending text.

* lib/m4sugar/m4sugar.m4 (m4_append_uniq): Use index, not regular
expressions.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize recursion.
Eric Blake [Tue, 2 Oct 2007 21:26:34 +0000 (15:26 -0600)] 
Optimize recursion.

* lib/m4sugar/m4sugar.m4 (m4_shiftn): This macro is called in a
lot of hot spots; optimize it for 2 and 3 shifts.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOptimize AC_PREREQ and other m4sugar numerics.
Eric Blake [Tue, 2 Oct 2007 13:04:11 +0000 (07:04 -0600)] 
Optimize AC_PREREQ and other m4sugar numerics.

* lib/m4sugar/m4sugar.m4 (m4_sign): Write with m4_eval.
(m4_cmp): Compare arbitrary expressions, without overflow.
(m4_version_unletter): Also recognize capital letters.
(m4_version_compare): Avoid regex when splitting version number
string.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOnce again, reject IRIX m4.
Eric Blake [Mon, 1 Oct 2007 22:22:54 +0000 (16:22 -0600)] 
Once again, reject IRIX m4.

* m4/m4.m4 (AC_PROG_GNU_M4): Use indir builtin to root out non-GNU
implementations that ignore --trace.
* configure: Regenerate.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix regression in AC_DEFINE([macro(with_arg)]).
Eric Blake [Mon, 1 Oct 2007 16:10:42 +0000 (10:10 -0600)] 
Fix regression in AC_DEFINE([macro(with_arg)]).

* lib/autoconf/general.m4 (AC_DEFINE_TRACE): Don't chop off close
quotes with a careless m4_substr.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAllow nameless iteration.
Eric Blake [Sun, 30 Sep 2007 12:27:46 +0000 (06:27 -0600)] 
Allow nameless iteration.

* lib/m4sugar/m4sugar.m4 (m4_for, _m4_for): Access variable
indirectly.
* tests/m4sugar.at (myvar): Test this.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoSpeed optimization: avoid m4 regex when other algorithms work.
Eric Blake [Sun, 30 Sep 2007 03:44:10 +0000 (21:44 -0600)] 
Speed optimization: avoid m4 regex when other algorithms work.

* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Rewrite without regex.
(_AS_QUOTE_IFELSE): Likewise.
* lib/m4sugar/m4sugar.m4 (m4_strip): Reduce from 3 to 2 regex.
(m4_bpatsubsts): Split...
(_m4_bpatsubsts): ...so that recursion can avoid patsubst on empty
regex.
(_m4_divert()): Define, to avoid m4 warning on `m4_divert'.
(m4_qlen): Optimize on short strings, to avoid regex.
(m4_sign): Avoid regex, and fix bug with `01' and `-0'.
* lib/autoconf/general.m4 (AC_CACHE_VAL): Rewrite without regex.
(AC_DEFINE_TRACE): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoOops - my earlier 'optimization' caused a regression.
Eric Blake [Fri, 28 Sep 2007 12:14:11 +0000 (06:14 -0600)] 
Oops - my earlier 'optimization' caused a regression.

* tests/local.at (AT_CHECK_M4): Fix typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoCatch even more common AC_CACHE_VAL mistakes.
Ralf Wildenhues [Fri, 28 Sep 2007 04:14:06 +0000 (22:14 -0600)] 
Catch even more common AC_CACHE_VAL mistakes.

* lib/autoconf/general.m4 (AC_CACHE_VAL): Warn if cache variable
lacks '_cv_', or if AC_SUBST appears in body.
* tests/base.at (AC_CACHE_CHECK): Test this change.

17 years agoAutotest no longer caters to Ultrix redirection limitation.
Stepan Kasal [Fri, 28 Sep 2007 03:09:18 +0000 (21:09 -0600)] 
Autotest no longer caters to Ultrix redirection limitation.

* doc/autoconf.texi (Writing testsuite.at): Remove the
limitation that the first parameter of AT_CHECK cannot
contain redirection.
(File Descriptors): Mention that Ultrix limitation is no longer a
show-stopper in modern code.
* tests/local.at (AT_CHECK_M4): Fix for cases when the fourth
parameter is `stderr' or `experr'.  Optimize if it was `ignore'.
* lib/autotest/general.m4 (AT_CHECK): Update comment.

17 years agoSquelch changeword in m4sugar.
Eric Blake [Fri, 28 Sep 2007 01:55:38 +0000 (19:55 -0600)] 
Squelch changeword in m4sugar.

* lib/m4sugar/m4sugar.m4 (changeword): Disable this experimental
feature of m4 1.4.x.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoConfigure whitespace touchups.
Eric Blake [Fri, 28 Sep 2007 01:35:55 +0000 (19:35 -0600)] 
Configure whitespace touchups.

* lib/autoconf/general.m4 (_AC_INIT_HELP): Fix alignment of
installation directories, and avoid TAB, in configure --help
output.
* configure.ac: Avoid extra trailing newline.
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Avoid space-tab.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid TAB in
config.status --help output.
* configure: Regenerate.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix underquotation in AS_HELP_STRING.
Eric Blake [Fri, 28 Sep 2007 01:16:51 +0000 (19:16 -0600)] 
Fix underquotation in AS_HELP_STRING.

* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Don't underquote lhs
argument.
* lib/m4sugar/m4sugar.m4 (m4_text_wrap): Don't underquote
first-prefix argument.
* tests/m4sh.at (AS@&t@_HELP_STRING): Test this fix.
* NEWS: Document AS_HELP_STRING fix.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAutotest formatting touchups.
Eric Blake [Thu, 27 Sep 2007 15:17:14 +0000 (09:17 -0600)] 
Autotest formatting touchups.

* lib/autotest/general.m4 (HELP_TUNING): Avoid TAB in terminal
output.
(PATH): Simplify computation of new PATH.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoFix testsuite breakage in last patch.
Eric Blake [Wed, 26 Sep 2007 17:13:08 +0000 (11:13 -0600)] 
Fix testsuite breakage in last patch.

* tests/autotest.at (AT_CHECK_AT_TITLE): Properly quote the
font-lock fix.
* tests/torture.at (@%:@define header templates): Rename, so that
output lines up correctly.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoMore font-lock happiness.
Eric Blake [Wed, 26 Sep 2007 12:14:09 +0000 (06:14 -0600)] 
More font-lock happiness.

* tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Clean up font
confusion.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoTypo fixes.
Eric Blake [Tue, 25 Sep 2007 23:02:44 +0000 (17:02 -0600)] 
Typo fixes.

* lib/autoconf/general.m4 (AC_SUBST): Fix typo in comment.
* lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove documentation of M4 parameter expansion.
Eric Blake [Tue, 25 Sep 2007 17:58:50 +0000 (11:58 -0600)] 
Improve documentation of M4 parameter expansion.

* doc/autoconf.texi (Quoting and Parameters): New section.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoAvoid committing editor backup files.
Eric Blake [Tue, 25 Sep 2007 12:31:17 +0000 (06:31 -0600)] 
Avoid committing editor backup files.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoImprove C99 detection.
Eric Blake [Tue, 25 Sep 2007 12:23:03 +0000 (06:23 -0600)] 
Improve C99 detection.

* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
avoid deprecation warning with icc.
* THANKS: Update.
Reported by Ted Bullock.

Signed-off-by: Eric Blake <ebb9@byu.net>
17 years agoWhenever possible, use the vertical bar as sed delimiter.
Jim Meyering [Sat, 22 Sep 2007 12:04:51 +0000 (14:04 +0200)] 
Whenever possible, use the vertical bar as sed delimiter.

* lib/autoconf/functions.m4 (GETLOADAVG_LIBS) [AC_FUNC_GETLOADAVG]:
Use "|", not "!".
* lib/autoconf/status.m4 (_AC_SRCDIRS) [ac_top_builddir_sub]:
[ac_dir_suffix]: Use "|", not "," as sed delimiter.
* tests/mktests.sh (as_me): Likewise.
* lib/freeze.mk (check-forbidden-patterns): Likewise.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Likewise.
* configure: Regenerate.
* doc/autoconf.texi (Shell Substitutions): Use "|", not "," in examples.
* lib/autotest/general.m4 (AT_INIT): Use "|", not "&" as sed delimiter
in the : -> $PATH_SEPARATOR transformation of $AUTOTEST_PATH.  This is fine,
as long as $PATH_SEPARATOR doesn't contain "|".

17 years agoAdd a comment.
Jim Meyering [Sat, 22 Sep 2007 12:19:03 +0000 (14:19 +0200)] 
Add a comment.

* lib/autoconf/headers.m4 (HAVE_STDBOOL_H): Document the
2004-05-31 change also with a comment in the code.