Hello!
I just found that the testsuite fails on stock RedHat 6.2 with Midnight
Commander (!!!) installed in syntax.m4 when testing AC_FUNC_GETLOADAVG.
It appears that bash-1.14.7 (not sure about 7.0, but RedHat 6.2 uses it as
/bin/sh) prints functions in a different way after it encounters some
shell constructs.
For example, this script:
#! /bin/sh
foo()
{
bar
}
type foo
(
{
:
}
)
type foo
prints:
foo is a function
foo ()
{
bar
}
foo is a function
foo ()
{
bar
}
This means that if a macro uses braces inside parentheses the contents of
expout and env-after is different. AC_ENV_SAVE filters out strings that
don't look like variable assignments, but the infamous "mc" function
contains a variable assignment.
The result is a failure in the testsuite. It doesn't indicate any problem
in autoconf itself. I see no clean workaround except filtering out
functions, which could surpass the abilities of egrep and would introduce
more headache than it would eliminate.
In short - ignore failure reports about AC_FUNC_GETLOADAVG from RedHat
users. If it's you, add "unset -f mc" to ~/.bashrc and forget it.
Regards,
Pavel Roskin