]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
16 years agoOptimize clients of AS_REQUIRE.
Eric Blake [Thu, 23 Oct 2008 21:08:45 +0000 (15:08 -0600)] 
Optimize clients of AS_REQUIRE.

* lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
argument.
(m4_defun_init): New undocumented macro.
* lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
(_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
(AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
(AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
simplify these macros once the one-shot initialization is
complete.
* tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove m4_copy.
Eric Blake [Fri, 24 Oct 2008 03:17:25 +0000 (21:17 -0600)] 
Improve m4_copy.

* lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
public use.
(_m4_copy): New macro, which preserves pushdef stacks.
(_m4_defun_pro_outer): Bypass it, for speed.
(m4_init): Bypass new implementation, since it breaks on m4_defn.
* bin/autoupdate.in (handle_autoconf_macros): Likewise.
* lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
now that m4_copy checks this.
* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
this, as well as m4_rename.
* lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
renaming builtins.
* NEWS: Likewise.
* tests/m4sugar.at (m4@&t@_defn): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAC_FUNC_GETGROUPS: Revert regression.
Eric Blake [Fri, 24 Oct 2008 11:42:10 +0000 (05:42 -0600)] 
AC_FUNC_GETGROUPS: Revert regression.

* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
ac_cv_func_getgroups_works=no when it is not available.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoWhitespace cleanup.
Eric Blake [Fri, 24 Oct 2008 01:58:40 +0000 (19:58 -0600)] 
Whitespace cleanup.

* lib/autoconf/fortran.m4: Consistently use tabs.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFor gfortran on sh, ignore -little.
Chikama Masaki [Fri, 24 Oct 2008 01:41:06 +0000 (19:41 -0600)] 
For gfortran on sh, ignore -little.

* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
list of ignored arguments.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoEliminate empty lines after AC_*_IFELSE.
Paolo Bonzini [Thu, 23 Oct 2008 16:39:57 +0000 (18:39 +0200)] 
Eliminate empty lines after AC_*_IFELSE.

* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
_AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.

16 years agoAvoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
Paolo Bonzini [Thu, 23 Oct 2008 16:36:17 +0000 (18:36 +0200)] 
Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR

* lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
Return a boolean status code based on $ac_status.

16 years agoEnsure actions can look at conftest* files.
Paolo Bonzini [Thu, 23 Oct 2008 15:58:53 +0000 (17:58 +0200)] 
Ensure actions can look at conftest* files.

* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
Move rm commands, except IPA files and Apple debug symbols...
(_AC_PREPROC_IFELSE, __AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
_AC_RUN_IFELSE): ...in here.
* tests/compile.at: Add regression test.

16 years agoRemove excess dnl from m4sh.
Eric Blake [Thu, 23 Oct 2008 13:07:59 +0000 (07:07 -0600)] 
Remove excess dnl from m4sh.

* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
(_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
(AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
(_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
(AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
(_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
(AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
(_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
(_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
(AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUse a shell function for _AC_RUN_IFELSE.
Paolo Bonzini [Mon, 20 Oct 2008 13:35:43 +0000 (15:35 +0200)] 
Use a shell function for _AC_RUN_IFELSE.

* lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
(_AC_RUN_IFELSE): Use a shell function.
(_AC_RUN_LOG): Avoid subshell for logging.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFormatting tweak: balance () with m4sh case statements.
Eric Blake [Wed, 22 Oct 2008 20:24:02 +0000 (14:24 -0600)] 
Formatting tweak: balance () with m4sh case statements.

* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
(_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
(AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
(_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
allow output of strategic shell comments.
(AS_VERSION_COMPARE): Use AS_CASE.
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
Jim Meyering [Wed, 22 Oct 2008 15:25:46 +0000 (17:25 +0200)] 
AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works

* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
the shell variable, $ac_cv_func_getgroups_works.  Otherwise, if
it is set to "yes" in the environment and configure is run on
a system like mingw that lacks the getgroups function, it would
mistakenly define HAVE_GETGROUPS.  Reported by Simon Josefsson in
<http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.

16 years agoUse a shell function for _AC_LINK_IFELSE.
Paolo Bonzini [Mon, 20 Oct 2008 13:35:42 +0000 (15:35 +0200)] 
Use a shell function for _AC_LINK_IFELSE.

* lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
(_AC_LINK_IFELSE): Use a shell function.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix autoconf logging commands.
Eric Blake [Wed, 22 Oct 2008 16:50:26 +0000 (10:50 -0600)] 
Fix autoconf logging commands.

* lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
(_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
(_AC_DO_ECHO): Likewise, and use fewer dnl.
(_AC_RUN_LOG_STDERR): Avoid subshell for logging.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix testsuite failure.
Eric Blake [Wed, 22 Oct 2008 11:16:58 +0000 (05:16 -0600)] 
Fix testsuite failure.

* tests/mktests.sh (ac_exclude_list): Don't generate test for
AC_REQUIRE_SHELL_FN.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove wording related to automake and autotest.
Eric Blake [Thu, 16 Oct 2008 13:38:07 +0000 (07:38 -0600)] 
Improve wording related to automake and autotest.

* doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
relation to automake.  Mention dependency on package.m4.
Consolidate examples.  Define AUTOM4TE.
* THANKS: Update.
Reported by William Pursell.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAllow AS_VAR_SET_IF in shell lists.
Eric Blake [Mon, 20 Oct 2008 23:14:03 +0000 (17:14 -0600)] 
Allow AS_VAR_SET_IF in shell lists.

* lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
line.
* lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
provided by AS_VAR_SET_IF.
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
clients.
* lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
* tests/m4sh.at (AS@&t@_VAR basics): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAllow AS_VAR_IF in shell lists.
Eric Blake [Mon, 20 Oct 2008 22:56:12 +0000 (16:56 -0600)] 
Allow AS_VAR_IF in shell lists.

* lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
* lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
* lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
Likewise.
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
(_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
(_AC_CHECK_HEADER_DIRENT): Likewise.
* lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
Likewise.
* tests/m4sh.at (AS@&t@_VAR basics): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAllow AS_CASE in shell lists.
Eric Blake [Mon, 20 Oct 2008 22:43:41 +0000 (16:43 -0600)] 
Allow AS_CASE in shell lists.

* lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
side effects.  Allow continuation of script on same line as esac.
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
* NEWS: Document the subtle change.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAllow AS_IF in shell lists.
Eric Blake [Mon, 20 Oct 2008 22:18:05 +0000 (16:18 -0600)] 
Allow AS_IF in shell lists.

* lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
side effects.  Allow continuation of script on same line as fi.
(_AS_DETECT_BETTER_SHELL): Adjust clients.
(AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
given by AS_IF.
* lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
* lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
(AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
* lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
* doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
(Polymorphic Variables): Move mention of dnl to the only two
AS_VAR functions that need it.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUse a shell function for _AC_COMPILE_IFELSE.
Paolo Bonzini [Mon, 20 Oct 2008 13:35:24 +0000 (15:35 +0200)] 
Use a shell function for _AC_COMPILE_IFELSE.

* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
(_AC_COMPILE_IFELSE): Use a shell function.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUse AS_VAR_APPEND.
Eric Blake [Tue, 21 Oct 2008 16:28:19 +0000 (10:28 -0600)] 
Use AS_VAR_APPEND.

* lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
* lib/autoconf/general.m4 (_AC_INIT_PREPARE)
(_AC_LIBOBJS_NORMALIZE): Likewise.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
(_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd AS_VAR_APPEND.
Eric Blake [Mon, 20 Oct 2008 11:50:01 +0000 (05:50 -0600)] 
Add AS_VAR_APPEND.

* lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
(_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
(AS_PREPARE, _AS_PREPARE): Emit preparation.
* tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
* doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
Document new macro.
<AS_VAR_SET>: Mention ramification of `""` rules.
* NEWS: Mention new macro.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUse a shell function for _AC_PREPROC_IFELSE.
Paolo Bonzini [Tue, 21 Oct 2008 14:55:05 +0000 (08:55 -0600)] 
Use a shell function for _AC_PREPROC_IFELSE.

* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
(_AC_PREPROC_IFELSE): Use a shell function.
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
(AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
been provided.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd banners to generated files.
Eric Blake [Tue, 21 Oct 2008 14:27:07 +0000 (08:27 -0600)] 
Add banners to generated files.

* lib/autotest/general.m4 (AT_INIT): Make banners consistent.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd banners to generated files.
Eric Blake [Tue, 21 Oct 2008 14:00:57 +0000 (08:00 -0600)] 
Add banners to generated files.

* lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
existing banner.
(AS_INIT): Add new banners at strategic points.
* lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
make consistent with other banners.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
Paolo Bonzini [Sat, 18 Oct 2008 12:37:11 +0000 (14:37 +0200)] 
Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.

* lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
(m4_divert(SHELL_FN)): New.

16 years agoAvoid unportable use of echo in testsuite.
Eric Blake [Mon, 20 Oct 2008 20:03:36 +0000 (22:03 +0200)] 
Avoid unportable use of echo in testsuite.

* tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
contains backslash.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoMake sure that nested AS_REQUIRE do not lose the desired diversion.
Paolo Bonzini [Sat, 18 Oct 2008 13:08:17 +0000 (15:08 +0200)] 
Make sure that nested AS_REQUIRE do not lose the desired diversion.

* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
passing it to m4_divert_require, so that its content is not used
anymore.
* tests/m4sh.at (Nested AS_REQUIRE): New testcase.

16 years agoDocument bugs in { } handling.
Eric Blake [Sat, 18 Oct 2008 13:27:45 +0000 (07:27 -0600)] 
Document bugs in { } handling.

* doc/autoconf.texi (Limitations of Builtins): Mention bug on
empty list.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix some testsuite failures introduced two days ago.
Eric Blake [Sat, 18 Oct 2008 12:48:55 +0000 (06:48 -0600)] 
Fix some testsuite failures introduced two days ago.

* tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
(AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
API.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoShow how to extract single substitutions from config.status.
Ralf Wildenhues [Sat, 18 Oct 2008 12:40:56 +0000 (14:40 +0200)] 
Show how to extract single substitutions from config.status.

* doc/autoconf.texi (config.status Invocation): Show example
using `--file=-'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAdd m4_curry.
Eric Blake [Wed, 15 Oct 2008 17:55:45 +0000 (11:55 -0600)] 
Add m4_curry.

* lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
* tests/m4sugar.at (m4@&t@_map_args): Rename...
(m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
* doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
currying as a way to add parameters.
(Evaluation Macros) <m4_curry>: Document the new macro.
* NEWS: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove suggested test filtering.
Eric Blake [Fri, 17 Oct 2008 22:12:17 +0000 (16:12 -0600)] 
Improve suggested test filtering.

* lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
extracted from...
(_AS_DETECT_BETTER_SHELL): ...here, to use faster API.  No need to
check for an empty required set.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd m4_set_map.
Eric Blake [Mon, 13 Oct 2008 21:37:31 +0000 (15:37 -0600)] 
Add m4_set_map.

* lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
* tests/m4sugar.at (m4@&t@_set): Enhance test.
* doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
Document it.
* NEWS: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument m4_map_args.
Eric Blake [Mon, 13 Oct 2008 16:46:40 +0000 (10:46 -0600)] 
Document m4_map_args.

* lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
Rename...
(m4_map_args, m4_map_args_pair): ...to these names, and document.
(m4_version_unletter): Use the interface.
* lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
(_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
Perform same renames.
* lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
* tests/m4sugar.at (m4@&t@_map_args): New test.
(recursion): Adjust caller.
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
* doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
this interface.
* NEWS: Mention the new macros.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoReduce vertical whitespace in configure.
Eric Blake [Fri, 17 Oct 2008 19:27:20 +0000 (13:27 -0600)] 
Reduce vertical whitespace in configure.

* lib/autoconf/general.m4 (AC_INIT): Silence newline output during
m4 side effect initializations.
* lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument AS_VAR interfaces.
Eric Blake [Fri, 17 Oct 2008 16:36:18 +0000 (10:36 -0600)] 
Document AS_VAR interfaces.

* doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
(Polymorphic Variables): New node.
* NEWS: Update accordingly.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoTest AS_VAR interfaces.
Eric Blake [Fri, 17 Oct 2008 13:31:06 +0000 (07:31 -0600)] 
Test AS_VAR interfaces.

* tests/m4sh.at (AS@&t@_VAR): New test.
* lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
_AS_TR_SH_PREPARE at top level, rather than argument collection.
(AS_TR_SH): Support command substitution.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd AS_VAR_COPY.
Eric Blake [Fri, 17 Oct 2008 20:07:11 +0000 (14:07 -0600)] 
Add AS_VAR_COPY.

* lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
(AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
* lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
* lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
* lib/autotest/general.m4 (_AT_FINISH): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSort AS_VAR_* interfaces.
Eric Blake [Fri, 17 Oct 2008 20:01:49 +0000 (14:01 -0600)] 
Sort AS_VAR_* interfaces.

* lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
(AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
no code changes.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAllow comments before functions emitted by m4sh.
Eric Blake [Fri, 17 Oct 2008 02:08:06 +0000 (20:08 -0600)] 
Allow comments before functions emitted by m4sh.

* lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
argument.  Supply closing comment, to ease readability.
(_AS_MKDIR_P_PREPARE): Adjust caller.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd AS_FUNCTION_DESCRIBE.
Eric Blake [Fri, 17 Oct 2008 01:59:11 +0000 (19:59 -0600)] 
Add AS_FUNCTION_DESCRIBE.

* lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
* lib/autotest/general.m4 (AT_INIT): Use it.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoSpeed up m4_qlen with caching.
Eric Blake [Thu, 16 Oct 2008 16:14:09 +0000 (10:14 -0600)] 
Speed up m4_qlen with caching.

* lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
(m4_qlen): Cache results for speed.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd a testcase using more then one language.
Paolo Bonzini [Thu, 16 Oct 2008 08:41:20 +0000 (10:41 +0200)] 
Add a testcase using more then one language.

* tests/compile.at (Multiple languages): New test.

16 years agoFix Libtool's config.lt test.
Paolo Bonzini [Thu, 16 Oct 2008 06:19:15 +0000 (08:19 +0200)] 
Fix Libtool's config.lt test.

* lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
expanding it.

16 years agoBreak circular require chain in _AS_LINENO_PREPARE.
Eric Blake [Wed, 15 Oct 2008 22:15:52 +0000 (16:15 -0600)] 
Break circular require chain in _AS_LINENO_PREPARE.

* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
disabled when reporting LINENO failure, since logging requires
LINENO.
* doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
not m4_rename, since the latter is undocumented.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
m4_rename, as it does not yet handle pushdef stacks.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoCleanups to previous patches.
Eric Blake [Wed, 15 Oct 2008 17:22:25 +0000 (11:22 -0600)] 
Cleanups to previous patches.

* doc/autoconf.texi (Portable Shell): Minor edits.
(Limitations of Builtins): Touch up wording.
* lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
(_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUpdates to shell portability documentation
Paolo Bonzini [Wed, 15 Oct 2008 09:03:35 +0000 (11:03 +0200)] 
Updates to shell portability documentation

* doc/autoconf.texi: Updates all references to "Portable Shell" and
"Limitations of Builtins" to use three-argument commands.
(Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
(Portable Shell): Move here discussion about "Where is the POSIX
shell?"  Mention that M4sh provides a SVR2 shell and takes care
of unsetting variables if necessary.  Talk about M4sh and not only
Autoconf-generated scripts.
(Special Shell Variables): Talk about M4sh and not only
Autoconf-generated scripts.  Don't talk about things that Autoconf
does not do.  Mention problems of $LINENO with shell functions.
(Limitations of Builtins).  Mention AS_ECHO and AS_ECHO_N.  Move
discussion of eval bugs before discussion on proper use of eval.
Mention AS_IF.  Reword why not to use "shift N".  Mention "foo=;
unset foo" trick.  Include M4sh code that unsets MAIL for Bash 2.01.
* NEWS: Update list of documented M4sh macros.

16 years agoAssume a (possibly buggy) `unset' is present after a `better shell' was found.
Paolo Bonzini [Tue, 14 Oct 2008 05:16:48 +0000 (07:16 +0200)] 
Assume a (possibly buggy) `unset' is present after a `better shell' was found.

* lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
* lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
* lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
alias for AS_UNSET, for backwards compatibility.
(_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
the shell does not support unset.
(_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs.  Unset BASH_ENV.
(AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
(AS_UNSET): Assume it is there but it might fail if the variable is
not set.  Use it throughout instead of $as_unset.

16 years agoTurn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
Paolo Bonzini [Wed, 15 Oct 2008 09:02:09 +0000 (11:02 +0200)] 
Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.

* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
m4_require of _AS_DETECT_BETTER_SHELL.
(_AS_CLEANUP): Add it here.
(_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
to _AS_CLEANUP.
(_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
(AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
(AS_PREPARE): Use _AS_SHELL_SANITIZE.
(AS_INIT): Add m4_provide of itself.

16 years agoUse "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
Paolo Bonzini [Wed, 15 Oct 2008 13:59:42 +0000 (15:59 +0200)] 
Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.

* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
"test x$foo = xyes".

16 years agoTrim down the size of the better-shell test.
Paolo Bonzini [Tue, 14 Oct 2008 09:16:47 +0000 (11:16 +0200)] 
Trim down the size of the better-shell test.

* lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
snippets into shell variables.
(_AS_RUN): Rewrite.

16 years agoSupport a stack of LINENO values for AS_MESSAGE.
Paolo Bonzini [Mon, 13 Oct 2008 16:23:30 +0000 (18:23 +0200)] 
Support a stack of LINENO values for AS_MESSAGE.

* lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
the line number emitted to the log file.
(AS_LINENO_PUSH, AS_LINENO_POP): New.
* tests/m4sh.at (LINENO Stack): New test.

16 years agoCorrect previous patch.
Eric Blake [Tue, 14 Oct 2008 17:52:38 +0000 (11:52 -0600)] 
Correct previous patch.

* doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
all.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoDocument shell function environment pitfall.
Eric Blake [Tue, 14 Oct 2008 17:26:58 +0000 (11:26 -0600)] 
Document shell function environment pitfall.

* doc/autoconf.texi (Shell Functions): Document bugs in bash,
Solaris /bin/sh.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoUse m4_require to implement AS_REQUIRE.
Paolo Bonzini [Sun, 12 Oct 2008 12:20:53 +0000 (14:20 +0200)] 
Use m4_require to implement AS_REQUIRE.

* lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
(m4_require): Pass it.
(m4_divert_require): New.
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
Remove comment about differences with m4_require.
* tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
the expected behavior.
(Nested AS_REQUIRE_SHELL_FN): New test.

16 years agoTest AS_LINENO_PREPARE.
Paolo Bonzini [Sun, 12 Oct 2008 14:20:59 +0000 (16:20 +0200)] 
Test AS_LINENO_PREPARE.

* tests/m4sh.at: Use documented AS_LINENO_PREPARE.

16 years agoTest AS_ME_PREPARE.
Paolo Bonzini [Mon, 13 Oct 2008 14:22:26 +0000 (16:22 +0200)] 
Test AS_ME_PREPARE.

* tests/m4sh.at (as_me): New test.

16 years agoAdd and document AS_INIT_GENERATED.
Paolo Bonzini [Fri, 10 Oct 2008 07:02:36 +0000 (09:02 +0200)] 
Add and document AS_INIT_GENERATED.

* lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
* doc/autoconf.texi (Initialization macros): Document it.

16 years agoUse consistent shell function style.
Eric Blake [Mon, 13 Oct 2008 14:50:25 +0000 (08:50 -0600)] 
Use consistent shell function style.

* lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
(_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
functions.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agocommit missing changelog entry
Paolo Bonzini [Mon, 13 Oct 2008 12:29:06 +0000 (14:29 +0200)] 
commit missing changelog entry

16 years agoplace names of contributors under m4 rather than shell comments
Paolo Bonzini [Mon, 13 Oct 2008 06:40:25 +0000 (08:40 +0200)] 
place names of contributors under m4 rather than shell comments

2008-10-12  Paolo Bonzini  <bonzini@gnu.org>

* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
contributors under m4 rather than shell comments.

16 years agoAdd and document AS_ME_PREPARE and AS_LINENO_PREPARE
Paolo Bonzini [Fri, 10 Oct 2008 06:40:52 +0000 (08:40 +0200)] 
Add and document AS_ME_PREPARE and AS_LINENO_PREPARE

2008-10-10  Paolo Bonzini  <bonzini@gnu.org>

* lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
* doc/autoconf.texi (Initialization macros): Document them.
(Portable Shell): Refer to AS_LINENO_PREPARE.

* bin/autoconf.as: Invoke AS_ME_PREPARE.
* lib/autotest/general.m4: Likewise.

16 years agoextract "Programming in M4sh" into its own chapter
Paolo Bonzini [Fri, 10 Oct 2008 06:33:04 +0000 (08:33 +0200)] 
extract "Programming in M4sh" into its own chapter

2008-10-10  Paolo Bonzini  <bonzini@gnu.org>

* doc/autoconf.texi (Programming in M4sh): Make its own chapter.

16 years agoFix _AS_MKDIR_P usage.
Eric Blake [Fri, 10 Oct 2008 14:40:09 +0000 (08:40 -0600)] 
Fix _AS_MKDIR_P usage.

* lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
match implementation.
(_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
* doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
wording to better match behavior.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agodon't advertise shell function adversely
Paolo Bonzini [Thu, 18 Sep 2008 14:51:50 +0000 (16:51 +0200)] 
don't advertise shell function adversely

2008-10-08  Paolo Bonzini  <bonzini@gnu.org>

* doc/autoconf.texi: Be less wary of shell functions.

16 years agouse a shell function for AS_MKDIR_P
Paolo Bonzini [Fri, 10 Oct 2008 06:20:33 +0000 (08:20 +0200)] 
use a shell function for AS_MKDIR_P

2008-10-10  Paolo Bonzini  <bonzini@gnu.org>

* m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P.  Adjust
meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
(AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
(_AS_PREPARE): Define shell functions.
(_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
Define shell functions.

16 years agoOnly prepare $as_me if it will be used.
Eric Blake [Thu, 9 Oct 2008 16:58:11 +0000 (10:58 -0600)] 
Only prepare $as_me if it will be used.

* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
preparation.
(_AS_ECHO_LOG): Depend on $LINENO preparation.
(AS_MESSAGE): Depend on $as_me preparation.
(AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agomore cleanup before adding shell functions
Paolo Bonzini [Thu, 9 Oct 2008 13:13:10 +0000 (15:13 +0200)] 
more cleanup before adding shell functions

2008-10-09  Paolo Bonzini  <bonzini@gnu.org>

* m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
until the M4SH-INIT diversion using _AS_ME_PREPARE.
(_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
before _AS_LINENO_PREPARE.
(AS_PREPARE): Include all the AS_REQUIREs manually.
(_AS_ME_PREPARE): New.
(_AS_LINENO_PREPARE): Use m4_defun.

16 years agoavoid problems when _AS_BASENAME_EXPR are invoked before _AS_EXPR_PREPARE
Paolo Bonzini [Thu, 9 Oct 2008 13:28:06 +0000 (15:28 +0200)] 
avoid problems when _AS_BASENAME_EXPR are invoked before _AS_EXPR_PREPARE

2008-10-09  Paolo Bonzini  <bonzini@gnu.org>

* m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
require _AS_EXPR_PREPARE.
(_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
(_AS_PREPARE): Add _AS_BASENAME_PREPARE.

16 years agoResync from gnulib.
Eric Blake [Wed, 8 Oct 2008 15:33:48 +0000 (09:33 -0600)] 
Resync from gnulib.

* cfg.mk (cvs_executable_files, cvs_files): Rewrite...
(fetch): ...into new target.
(executable-update): Delete, now that it is unused.
* maint.mk (update, local_updates, cvs_files, gnulib_repo)
(wget-update, cvs-update): Likewise.
* HACKING (Update the foreign files): Document new procedure.
* GNUmakefile: Resync from upstream, via new 'make fetch'.
* build-aux/config.guess: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoremove shell function "spy"
Paolo Bonzini [Thu, 18 Sep 2008 12:14:45 +0000 (14:14 +0200)] 
remove shell function "spy"

16 years agoplace _AS_UNSET_PREPARE in the right diversion
Paolo Bonzini [Thu, 18 Sep 2008 12:14:11 +0000 (14:14 +0200)] 
place _AS_UNSET_PREPARE in the right diversion

16 years agoAvoid repeating required shell tests in suggested set.
Eric Blake [Wed, 8 Oct 2008 02:41:13 +0000 (20:41 -0600)] 
Avoid repeating required shell tests in suggested set.

* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
Use m4_set, rather than m4_expand_once/m4_append.
(_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
required tests out of suggested tests.
Reported by Paolo Bonzini.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoadd m4sh keyword to all m4sh.at tests
Paolo Bonzini [Wed, 8 Oct 2008 09:11:33 +0000 (11:11 +0200)] 
add m4sh keyword to all m4sh.at tests

2008-10-08  Paolo Bonzini  <bonzini@gnu.org>

Add m4sh keyword to all m4sh.at tests.
* tests/m4sh.at: Add m4sh keyword to all tests.  Fix comment
pastos.

16 years agoDocument AS_VERSION_COMPARE.
Ralf Wildenhues [Wed, 8 Oct 2008 05:38:54 +0000 (07:38 +0200)] 
Document AS_VERSION_COMPARE.

* doc/autoconf.texi (Programming in M4sh): Document
AS_VERSION_COMPARE.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDo not write to testsuite log fd before initialization.
Ralf Wildenhues [Wed, 8 Oct 2008 05:24:06 +0000 (07:24 +0200)] 
Do not write to testsuite log fd before initialization.

* lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
Define fds only when initializing the log fd so early error
messages do not try to write to it.
* tests/autotest.at (Startup error messages): New test.
* NEWS: Document this 2.63 regression.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoEnsure _AS_CLEANUP is defined.
Eric Blake [Tue, 7 Oct 2008 18:00:02 +0000 (12:00 -0600)] 
Ensure _AS_CLEANUP is defined.

* lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
* tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove m4sh maintainability.
Eric Blake [Tue, 7 Oct 2008 16:55:05 +0000 (10:55 -0600)] 
Improve m4sh maintainability.

* lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
code change.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix m4 quoting in previous patch.
Eric Blake [Tue, 7 Oct 2008 12:14:34 +0000 (06:14 -0600)] 
Fix m4 quoting in previous patch.

* lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
name prior to invoking AS_REQUIRE.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoadd a separate diversion for shell functions
Paolo Bonzini [Thu, 18 Sep 2008 12:12:46 +0000 (14:12 +0200)] 
add a separate diversion for shell functions

* lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
(AS_REQUIRE): Accept diversion parameter.
(AS_REQUIRE_SHELL_FN): Use it.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAdd m4_default_quoted.
Eric Blake [Tue, 23 Sep 2008 12:57:15 +0000 (06:57 -0600)] 
Add m4_default_quoted.

* lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
(m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
* doc/autoconf.texi (Conditional constructs): Document it.
* NEWS: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix build with case-insensitive make, again.
Eric Blake [Tue, 7 Oct 2008 02:06:00 +0000 (20:06 -0600)] 
Fix build with case-insensitive make, again.

* Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
Reported via Keith Marshall, originally by newthinker in
<http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoWarn about /usr/ucb on Solaris.
Bruno Haible [Mon, 6 Oct 2008 19:48:28 +0000 (21:48 +0200)] 
Warn about /usr/ucb on Solaris.

* doc/install.texi (Particular Systems): Recommend putting
/usr/ucb late in PATH, if at all.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix more testsuite hang corner cases.
Ralf Wildenhues [Fri, 3 Oct 2008 05:14:24 +0000 (07:14 +0200)] 
Fix more testsuite hang corner cases.

* lib/autotest/general.m4: Use the serial code path if no test
is to be run.
* tests/autotest.at (parallel test execution): Test -j and -jN
with `-k notmatched'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix hang with `testsuite -k notmatched'.
Ralf Wildenhues [Thu, 2 Oct 2008 18:44:22 +0000 (20:44 +0200)] 
Fix hang with `testsuite -k notmatched'.

* lib/autotest/general.m4: Do not reset $at_jobs if it is equal
to one.  Fixes hang with `-k notmatched'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDocument more binary file portability traps.
Eric Blake [Thu, 2 Oct 2008 15:02:37 +0000 (09:02 -0600)] 
Document more binary file portability traps.

* doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
reader that NUL and sed don't always mix.
<tr>: Mention Solaris /usr/ucb/tr bug with \0.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoChangeLog for previous commit.
Eric Blake [Thu, 2 Oct 2008 14:59:37 +0000 (08:59 -0600)] 
ChangeLog for previous commit.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImplement parallel Autotest test execution: testsuite --jobs.
Ralf Wildenhues [Thu, 2 Oct 2008 05:48:51 +0000 (07:48 +0200)] 
Implement parallel Autotest test execution: testsuite --jobs.

* lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
(AT_INIT): <at_jobs>: New variable.
Accept -j, -jN, --jobs[=N], document them in --help output.
Implement parallel driver loop using a FIFO, enabled with --jobs
and if mkfifo works; otherwise, fall back to sequential loop.
(AT_SETUP): Store, do not output summary progress line if
parallel.
* tests/autotest.at (parallel test execution, parallel truth)
(parallel fallacy, parallel skip): New tests.
* doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
the mkfifo requirement, and that --errexit may cause concurrent
jobs to finish.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix sample isinf definition.
Eric Blake [Sat, 20 Sep 2008 22:19:40 +0000 (16:19 -0600)] 
Fix sample isinf definition.

* doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
first.
* THANKS: Update.
Reported by David Cournapeau.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFix Erlang regression, introduced 2006-11-17.
Eric Blake [Tue, 16 Sep 2008 12:37:51 +0000 (06:37 -0600)] 
Fix Erlang regression, introduced 2006-11-17.

* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
caused by underquoting.
* NEWS: Mention this fix.
* THANKS: Update.
Reported by BJ Terry.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoImprove AC_CONFIG_AUX_DIRS a bit.
Ralf Wildenhues [Sat, 13 Sep 2008 13:19:25 +0000 (15:19 +0200)] 
Improve AC_CONFIG_AUX_DIRS a bit.

* lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoMention Solaris sh ':' redirection bug.
Ralf Wildenhues [Sat, 13 Sep 2008 13:17:54 +0000 (15:17 +0200)] 
Mention Solaris sh ':' redirection bug.

* doc/autoconf.texi (File Descriptors): Redirecting ':'
in a loop causes bogus optimization with Solaris sh.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAvoid testsuite bug when autom4te cache is disabled by user.
Eric Blake [Thu, 11 Sep 2008 02:06:05 +0000 (20:06 -0600)] 
Avoid testsuite bug when autom4te cache is disabled by user.

* tests/tools.at (autoconf: forbidden tokens, basic): Enable
cache, even if user normally disabled it.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoAvoid testsuite bug in presence of verbose config.site.
Eric Blake [Wed, 10 Sep 2008 20:06:33 +0000 (14:06 -0600)] 
Avoid testsuite bug in presence of verbose config.site.

* tests/base.at (Input/Output): Nullify config.site during test.
Reported by Bob Friesenhahn.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years ago./.prev-version: Record previous version: 2.63.
Eric Blake [Wed, 10 Sep 2008 01:01:46 +0000 (19:01 -0600)] 
./.prev-version: Record previous version: 2.63.

16 years agoRelease Version 2.63. v2.63
Eric Blake [Mon, 8 Sep 2008 12:21:10 +0000 (06:21 -0600)] 
Release Version 2.63.

* NEWS: Mention the release.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoFormatting tweaks to the manual.
Eric Blake [Sat, 6 Sep 2008 22:19:55 +0000 (16:19 -0600)] 
Formatting tweaks to the manual.

* doc/autoconf.texi (Introduction, Systemology)
(File System Conventions, Portable C and C++)
(Floating Point Portability): Allow URLs to split as needed.
(Indices): Add entries, to work around texinfo bug on indices that
start too close to a page break.
(Particular Functions): Mention ftello.
(Introduction, Language Choice): Use @enddots at sentence end.

Signed-off-by: Eric Blake <ebb9@byu.net>
16 years agoResync from gnulib.
Eric Blake [Tue, 2 Sep 2008 12:53:38 +0000 (06:53 -0600)] 
Resync from gnulib.

* cfg.mk (cvs_executable_files, cvs_files): Update list of files,
although for now, they are still manually sync'd.
* build-aux/gnupload: Update.
* build-aux/config.sub: Likewise.
* GNUmakefile: Likewise.

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