mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-19 14:40:24 +08:00
* bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
doesn't neutralize SIGINT, making autoconf etc. non interruptible. * lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package related variables into `at_package_*'. * lib/autotest/general.m4 (AT_VICTIMS): New. (AT_INIT): Adjust for stand-alone/embedded test suites. (AS_MESSAGE_LOG_FD): Define and use it. * tests/suite.at (AT_VICTIMS): Use it. * tests/tools.at (autoupdating AC_PREREQ): Don't depend upon at_version.
This commit is contained in:
parent
c7ae939c1d
commit
5fd6e6f70a
15
ChangeLog
15
ChangeLog
@ -1,3 +1,16 @@
|
||||
2001-09-07 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* bin/autom4te.in (&handle_m4): `< /dev/null' so that GNU M4 1.5
|
||||
doesn't neutralize SIGINT, making autoconf etc. non interruptible.
|
||||
* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Move the package
|
||||
related variables into `at_package_*'.
|
||||
* lib/autotest/general.m4 (AT_VICTIMS): New.
|
||||
(AT_INIT): Adjust for stand-alone/embedded test suites.
|
||||
(AS_MESSAGE_LOG_FD): Define and use it.
|
||||
* tests/suite.at (AT_VICTIMS): Use it.
|
||||
* tests/tools.at (autoupdating AC_PREREQ): Don't depend upon
|
||||
at_version.
|
||||
|
||||
2001-09-07 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Move toward possibly stand-alone test suites.
|
||||
@ -13,7 +26,6 @@
|
||||
* lib/autoconf/Makefile.am (autoconf.m4f): Depends upon
|
||||
m4sugar/version.m4.
|
||||
|
||||
|
||||
2001-09-05 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* lib/autoconf/c.m4 (AC_LANG_BOOL_COMPILE_TRY(C)): Use `_array_'
|
||||
@ -49,7 +61,6 @@
|
||||
* bin/autoupdate.in (&handle_m4_macros) <unm4.m4>: Undefine iff
|
||||
defined.
|
||||
|
||||
|
||||
2001-09-05 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* lib/Autom4te/General.pm (&getopt): Work around the `-' Getopt bug.
|
||||
|
@ -572,6 +572,9 @@ sub handle_m4 ($@)
|
||||
unlink ($tcache . $req->id);
|
||||
|
||||
# Run m4.
|
||||
#
|
||||
# Neutralize its stdin, so that GNU M4 1.5 doesn't neutralize SIGINT.
|
||||
#
|
||||
# Be extremely cautious to reverse the includes when talking to M4:
|
||||
# it doesn't speak the same --include as we do.
|
||||
my $command = ("$m4"
|
||||
@ -581,6 +584,7 @@ sub handle_m4 ($@)
|
||||
. " --error-output=$tcache" . $req->id
|
||||
. join (' --trace=', '', sort @macro)
|
||||
. $files
|
||||
. ' </dev/null'
|
||||
. " >$ocache" . $req->id);
|
||||
verbose "running: $command";
|
||||
system $command;
|
||||
|
141
configure
vendored
141
configure
vendored
@ -721,9 +721,15 @@ hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
||||
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
||||
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
||||
|
||||
PATH = $PATH
|
||||
|
||||
_ASUNAME
|
||||
|
||||
as_save_IFS=$IFS
|
||||
IFS=:
|
||||
for as_dir in $PATH
|
||||
do
|
||||
echo "PATH: $as_dir"
|
||||
done
|
||||
IFS=$as_save_IFS
|
||||
} >&5
|
||||
|
||||
cat >&5 <<_ACEOF
|
||||
@ -824,7 +830,7 @@ if test -z "$CONFIG_SITE"; then
|
||||
fi
|
||||
for ac_site_file in $CONFIG_SITE; do
|
||||
if test -r "$ac_site_file"; then
|
||||
{ echo "$as_me:827: loading site script $ac_site_file" >&5
|
||||
{ echo "$as_me:833: loading site script $ac_site_file" >&5
|
||||
echo "$as_me: loading site script $ac_site_file" >&6;}
|
||||
sed 's/^/| /' "$ac_site_file" >&5
|
||||
. "$ac_site_file"
|
||||
@ -835,7 +841,7 @@ if test -r "$cache_file"; then
|
||||
# Some versions of bash will fail to source /dev/null (special
|
||||
# files actually), so we avoid doing that.
|
||||
if test -f "$cache_file"; then
|
||||
{ echo "$as_me:838: loading cache $cache_file" >&5
|
||||
{ echo "$as_me:844: loading cache $cache_file" >&5
|
||||
echo "$as_me: loading cache $cache_file" >&6;}
|
||||
case $cache_file in
|
||||
[\\/]* | ?:[\\/]* ) . $cache_file;;
|
||||
@ -843,7 +849,7 @@ echo "$as_me: loading cache $cache_file" >&6;}
|
||||
esac
|
||||
fi
|
||||
else
|
||||
{ echo "$as_me:846: creating cache $cache_file" >&5
|
||||
{ echo "$as_me:852: creating cache $cache_file" >&5
|
||||
echo "$as_me: creating cache $cache_file" >&6;}
|
||||
>$cache_file
|
||||
fi
|
||||
@ -859,21 +865,21 @@ for ac_var in `(set) 2>&1 |
|
||||
eval ac_new_val="\$ac_env_${ac_var}_value"
|
||||
case $ac_old_set,$ac_new_set in
|
||||
set,)
|
||||
{ echo "$as_me:862: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
||||
{ echo "$as_me:868: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
||||
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
||||
ac_cache_corrupted=: ;;
|
||||
,set)
|
||||
{ echo "$as_me:866: error: \`$ac_var' was not set in the previous run" >&5
|
||||
{ echo "$as_me:872: error: \`$ac_var' was not set in the previous run" >&5
|
||||
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
||||
ac_cache_corrupted=: ;;
|
||||
,);;
|
||||
*)
|
||||
if test "x$ac_old_val" != "x$ac_new_val"; then
|
||||
{ echo "$as_me:872: error: \`$ac_var' has changed since the previous run:" >&5
|
||||
{ echo "$as_me:878: error: \`$ac_var' has changed since the previous run:" >&5
|
||||
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
||||
{ echo "$as_me:874: former value: $ac_old_val" >&5
|
||||
{ echo "$as_me:880: former value: $ac_old_val" >&5
|
||||
echo "$as_me: former value: $ac_old_val" >&2;}
|
||||
{ echo "$as_me:876: current value: $ac_new_val" >&5
|
||||
{ echo "$as_me:882: current value: $ac_new_val" >&5
|
||||
echo "$as_me: current value: $ac_new_val" >&2;}
|
||||
ac_cache_corrupted=:
|
||||
fi;;
|
||||
@ -892,9 +898,9 @@ echo "$as_me: current value: $ac_new_val" >&2;}
|
||||
fi
|
||||
done
|
||||
if $ac_cache_corrupted; then
|
||||
{ echo "$as_me:895: error: changes in the environment can compromise the build" >&5
|
||||
{ echo "$as_me:901: error: changes in the environment can compromise the build" >&5
|
||||
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
||||
{ { echo "$as_me:897: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
||||
{ { echo "$as_me:903: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
||||
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
@ -914,10 +920,10 @@ esac
|
||||
echo "#! $SHELL" >conftest.sh
|
||||
echo "exit 0" >>conftest.sh
|
||||
chmod +x conftest.sh
|
||||
if { (echo "$as_me:917: PATH=\".;.\"; conftest.sh") >&5
|
||||
if { (echo "$as_me:923: PATH=\".;.\"; conftest.sh") >&5
|
||||
(PATH=".;."; conftest.sh) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:920: \$? = $ac_status" >&5
|
||||
echo "$as_me:926: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; then
|
||||
ac_path_separator=';'
|
||||
else
|
||||
@ -943,7 +949,7 @@ for ac_dir in config $srcdir/config; do
|
||||
fi
|
||||
done
|
||||
if test -z "$ac_aux_dir"; then
|
||||
{ { echo "$as_me:946: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
|
||||
{ { echo "$as_me:952: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
|
||||
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
@ -963,7 +969,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
||||
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
||||
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
||||
# ./install, which can be erroneously created by make from ./install.sh.
|
||||
echo "$as_me:966: checking for a BSD compatible install" >&5
|
||||
echo "$as_me:972: checking for a BSD compatible install" >&5
|
||||
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
|
||||
if test -z "$INSTALL"; then
|
||||
if test "${ac_cv_path_install+set}" = set; then
|
||||
@ -1012,7 +1018,7 @@ fi
|
||||
INSTALL=$ac_install_sh
|
||||
fi
|
||||
fi
|
||||
echo "$as_me:1015: result: $INSTALL" >&5
|
||||
echo "$as_me:1021: result: $INSTALL" >&5
|
||||
echo "${ECHO_T}$INSTALL" >&6
|
||||
|
||||
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
||||
@ -1023,7 +1029,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
||||
|
||||
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
||||
|
||||
echo "$as_me:1026: checking whether build environment is sane" >&5
|
||||
echo "$as_me:1032: checking whether build environment is sane" >&5
|
||||
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
|
||||
# Just in case
|
||||
sleep 1
|
||||
@ -1047,7 +1053,7 @@ if (
|
||||
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||
# broken ls alias from the environment. This has actually
|
||||
# happened. Such a system could not be considered "sane".
|
||||
{ { echo "$as_me:1050: error: ls -t appears to fail. Make sure there is not a broken
|
||||
{ { echo "$as_me:1056: error: ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment" >&5
|
||||
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment" >&2;}
|
||||
@ -1060,13 +1066,13 @@ then
|
||||
# Ok.
|
||||
:
|
||||
else
|
||||
{ { echo "$as_me:1063: error: newly created file is older than distributed files!
|
||||
{ { echo "$as_me:1069: error: newly created file is older than distributed files!
|
||||
Check your system clock" >&5
|
||||
echo "$as_me: error: newly created file is older than distributed files!
|
||||
Check your system clock" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
echo "$as_me:1069: result: yes" >&5
|
||||
echo "$as_me:1075: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
test "$program_prefix" != NONE &&
|
||||
program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
||||
@ -1089,7 +1095,7 @@ if eval "$MISSING --run true"; then
|
||||
else
|
||||
am_missing_run=
|
||||
am_backtick='`'
|
||||
{ echo "$as_me:1092: WARNING: ${am_backtick}missing' script is too old or missing" >&5
|
||||
{ echo "$as_me:1098: WARNING: ${am_backtick}missing' script is too old or missing" >&5
|
||||
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
|
||||
fi
|
||||
|
||||
@ -1100,7 +1106,7 @@ for ac_prog in mawk gawk nawk awk
|
||||
do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
echo "$as_me:1103: checking for $ac_word" >&5
|
||||
echo "$as_me:1109: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
||||
if test "${ac_cv_prog_AWK+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
@ -1115,7 +1121,7 @@ for ac_dir in $ac_dummy; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
$as_executable_p "$ac_dir/$ac_word" || continue
|
||||
ac_cv_prog_AWK="$ac_prog"
|
||||
echo "$as_me:1118: found $ac_dir/$ac_word" >&5
|
||||
echo "$as_me:1124: found $ac_dir/$ac_word" >&5
|
||||
break
|
||||
done
|
||||
|
||||
@ -1123,17 +1129,17 @@ fi
|
||||
fi
|
||||
AWK=$ac_cv_prog_AWK
|
||||
if test -n "$AWK"; then
|
||||
echo "$as_me:1126: result: $AWK" >&5
|
||||
echo "$as_me:1132: result: $AWK" >&5
|
||||
echo "${ECHO_T}$AWK" >&6
|
||||
else
|
||||
echo "$as_me:1129: result: no" >&5
|
||||
echo "$as_me:1135: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
test -n "$AWK" && break
|
||||
done
|
||||
|
||||
echo "$as_me:1136: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
||||
echo "$as_me:1142: checking whether ${MAKE-make} sets \${MAKE}" >&5
|
||||
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
|
||||
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
|
||||
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
||||
@ -1153,11 +1159,11 @@ fi
|
||||
rm -f conftest.make
|
||||
fi
|
||||
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
||||
echo "$as_me:1156: result: yes" >&5
|
||||
echo "$as_me:1162: result: yes" >&5
|
||||
echo "${ECHO_T}yes" >&6
|
||||
SET_MAKE=
|
||||
else
|
||||
echo "$as_me:1160: result: no" >&5
|
||||
echo "$as_me:1166: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
SET_MAKE="MAKE=${MAKE-make}"
|
||||
fi
|
||||
@ -1193,7 +1199,7 @@ rmdir .deps 2>/dev/null
|
||||
# test to see if srcdir already configured
|
||||
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
|
||||
test -f $srcdir/config.status; then
|
||||
{ { echo "$as_me:1196: error: source directory already configured; run \"make distclean\" there first" >&5
|
||||
{ { echo "$as_me:1202: error: source directory already configured; run \"make distclean\" there first" >&5
|
||||
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
@ -1254,7 +1260,7 @@ fi
|
||||
|
||||
# Extract the first word of "expr", so it can be a program name with args.
|
||||
set dummy expr; ac_word=$2
|
||||
echo "$as_me:1257: checking for $ac_word" >&5
|
||||
echo "$as_me:1263: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
||||
if test "${ac_cv_path_EXPR+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
@ -1271,7 +1277,7 @@ for ac_dir in $ac_dummy; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if $as_executable_p "$ac_dir/$ac_word"; then
|
||||
ac_cv_path_EXPR="$ac_dir/$ac_word"
|
||||
echo "$as_me:1274: found $ac_dir/$ac_word" >&5
|
||||
echo "$as_me:1280: found $ac_dir/$ac_word" >&5
|
||||
break
|
||||
fi
|
||||
done
|
||||
@ -1282,10 +1288,10 @@ fi
|
||||
EXPR=$ac_cv_path_EXPR
|
||||
|
||||
if test -n "$EXPR"; then
|
||||
echo "$as_me:1285: result: $EXPR" >&5
|
||||
echo "$as_me:1291: result: $EXPR" >&5
|
||||
echo "${ECHO_T}$EXPR" >&6
|
||||
else
|
||||
echo "$as_me:1288: result: no" >&5
|
||||
echo "$as_me:1294: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
@ -1297,7 +1303,7 @@ for ac_prog in gm4 gnum4 m4
|
||||
do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
echo "$as_me:1300: checking for $ac_word" >&5
|
||||
echo "$as_me:1306: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
||||
if test "${ac_cv_path_M4+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
@ -1314,7 +1320,7 @@ for ac_dir in $ac_dummy; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if $as_executable_p "$ac_dir/$ac_word"; then
|
||||
ac_cv_path_M4="$ac_dir/$ac_word"
|
||||
echo "$as_me:1317: found $ac_dir/$ac_word" >&5
|
||||
echo "$as_me:1323: found $ac_dir/$ac_word" >&5
|
||||
break
|
||||
fi
|
||||
done
|
||||
@ -1325,10 +1331,10 @@ fi
|
||||
M4=$ac_cv_path_M4
|
||||
|
||||
if test -n "$M4"; then
|
||||
echo "$as_me:1328: result: $M4" >&5
|
||||
echo "$as_me:1334: result: $M4" >&5
|
||||
echo "${ECHO_T}$M4" >&6
|
||||
else
|
||||
echo "$as_me:1331: result: no" >&5
|
||||
echo "$as_me:1337: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
@ -1336,7 +1342,7 @@ fi
|
||||
done
|
||||
test -n "$M4" || M4="m4"
|
||||
|
||||
echo "$as_me:1339: checking whether m4 supports frozen files" >&5
|
||||
echo "$as_me:1345: checking whether m4 supports frozen files" >&5
|
||||
echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
|
||||
if test "${ac_cv_prog_gnu_m4+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
@ -1348,10 +1354,10 @@ if test x"$M4" != x; then
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
echo "$as_me:1351: result: $ac_cv_prog_gnu_m4" >&5
|
||||
echo "$as_me:1357: result: $ac_cv_prog_gnu_m4" >&5
|
||||
echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
|
||||
if test x"$ac_cv_prog_gnu_m4" != xyes; then
|
||||
{ { echo "$as_me:1354: error: GNU M4 1.4 is required" >&5
|
||||
{ { echo "$as_me:1360: error: GNU M4 1.4 is required" >&5
|
||||
echo "$as_me: error: GNU M4 1.4 is required" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
@ -1363,7 +1369,7 @@ for ac_prog in mawk gawk nawk awk
|
||||
do
|
||||
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||
set dummy $ac_prog; ac_word=$2
|
||||
echo "$as_me:1366: checking for $ac_word" >&5
|
||||
echo "$as_me:1372: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
||||
if test "${ac_cv_prog_AWK+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
@ -1378,7 +1384,7 @@ for ac_dir in $ac_dummy; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
$as_executable_p "$ac_dir/$ac_word" || continue
|
||||
ac_cv_prog_AWK="$ac_prog"
|
||||
echo "$as_me:1381: found $ac_dir/$ac_word" >&5
|
||||
echo "$as_me:1387: found $ac_dir/$ac_word" >&5
|
||||
break
|
||||
done
|
||||
|
||||
@ -1386,10 +1392,10 @@ fi
|
||||
fi
|
||||
AWK=$ac_cv_prog_AWK
|
||||
if test -n "$AWK"; then
|
||||
echo "$as_me:1389: result: $AWK" >&5
|
||||
echo "$as_me:1395: result: $AWK" >&5
|
||||
echo "${ECHO_T}$AWK" >&6
|
||||
else
|
||||
echo "$as_me:1392: result: no" >&5
|
||||
echo "$as_me:1398: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
@ -1403,7 +1409,7 @@ HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
|
||||
# We use a path for perl so the #! line in autoscan will work.
|
||||
# Extract the first word of "perl", so it can be a program name with args.
|
||||
set dummy perl; ac_word=$2
|
||||
echo "$as_me:1406: checking for $ac_word" >&5
|
||||
echo "$as_me:1412: checking for $ac_word" >&5
|
||||
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
||||
if test "${ac_cv_path_PERL+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
@ -1420,7 +1426,7 @@ for ac_dir in $ac_dummy; do
|
||||
test -z "$ac_dir" && ac_dir=.
|
||||
if $as_executable_p "$ac_dir/$ac_word"; then
|
||||
ac_cv_path_PERL="$ac_dir/$ac_word"
|
||||
echo "$as_me:1423: found $ac_dir/$ac_word" >&5
|
||||
echo "$as_me:1429: found $ac_dir/$ac_word" >&5
|
||||
break
|
||||
fi
|
||||
done
|
||||
@ -1432,20 +1438,20 @@ fi
|
||||
PERL=$ac_cv_path_PERL
|
||||
|
||||
if test -n "$PERL"; then
|
||||
echo "$as_me:1435: result: $PERL" >&5
|
||||
echo "$as_me:1441: result: $PERL" >&5
|
||||
echo "${ECHO_T}$PERL" >&6
|
||||
else
|
||||
echo "$as_me:1438: result: no" >&5
|
||||
echo "$as_me:1444: result: no" >&5
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
if test "$PERL" = no; then
|
||||
{ { echo "$as_me:1443: error: perl is not found" >&5
|
||||
{ { echo "$as_me:1449: error: perl is not found" >&5
|
||||
echo "$as_me: error: perl is not found" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi
|
||||
$PERL -e 'require 5.005;' || {
|
||||
{ { echo "$as_me:1448: error: Perl 5.005 or better is required" >&5
|
||||
{ { echo "$as_me:1454: error: Perl 5.005 or better is required" >&5
|
||||
echo "$as_me: error: Perl 5.005 or better is required" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
}
|
||||
@ -1564,7 +1570,7 @@ rm -f confdef2opt.sed
|
||||
: ${CONFIG_STATUS=./config.status}
|
||||
ac_clean_files_save=$ac_clean_files
|
||||
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
||||
{ echo "$as_me:1567: creating $CONFIG_STATUS" >&5
|
||||
{ echo "$as_me:1573: creating $CONFIG_STATUS" >&5
|
||||
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
||||
cat >$CONFIG_STATUS <<_ACEOF
|
||||
#! $SHELL
|
||||
@ -1762,7 +1768,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF
|
||||
echo "$ac_cs_version"; exit 0 ;;
|
||||
--he | --h)
|
||||
# Conflict between --help and --header
|
||||
{ { echo "$as_me:1765: error: ambiguous option: $1
|
||||
{ { echo "$as_me:1771: error: ambiguous option: $1
|
||||
Try \`$0 --help' for more information." >&5
|
||||
echo "$as_me: error: ambiguous option: $1
|
||||
Try \`$0 --help' for more information." >&2;}
|
||||
@ -1781,7 +1787,7 @@ Try \`$0 --help' for more information." >&2;}
|
||||
ac_need_defaults=false;;
|
||||
|
||||
# This is an error.
|
||||
-*) { { echo "$as_me:1784: error: unrecognized option: $1
|
||||
-*) { { echo "$as_me:1790: error: unrecognized option: $1
|
||||
Try \`$0 --help' for more information." >&5
|
||||
echo "$as_me: error: unrecognized option: $1
|
||||
Try \`$0 --help' for more information." >&2;}
|
||||
@ -1800,8 +1806,9 @@ cat >>$CONFIG_STATUS <<_ACEOF
|
||||
# INIT-COMMANDS section.
|
||||
#
|
||||
|
||||
at_package='$PACKAGE_NAME'
|
||||
at_version='$PACKAGE_VERSION'
|
||||
at_package_name='$PACKAGE_NAME'
|
||||
at_package_version='$PACKAGE_VERSION'
|
||||
at_package_string='$PACKAGE_STRING'
|
||||
at_bugreport='$PACKAGE_BUGREPORT'
|
||||
|
||||
at_n='$ECHO_N'
|
||||
@ -1832,7 +1839,7 @@ do
|
||||
"bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
|
||||
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
|
||||
"tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
|
||||
*) { { echo "$as_me:1835: error: invalid argument: $ac_config_target" >&5
|
||||
*) { { echo "$as_me:1842: error: invalid argument: $ac_config_target" >&5
|
||||
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
||||
{ (exit 1); exit 1; }; };;
|
||||
esac
|
||||
@ -2020,7 +2027,7 @@ for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
|
||||
as_incr_dir=$as_incr_dir/$as_mkdir_dir
|
||||
test -d "$as_incr_dir" ||
|
||||
mkdir "$as_incr_dir" ||
|
||||
{ { echo "$as_me:2023: error: cannot create \"$ac_dir\"" >&5
|
||||
{ { echo "$as_me:2030: error: cannot create \"$ac_dir\"" >&5
|
||||
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
;;
|
||||
@ -2057,7 +2064,7 @@ esac
|
||||
esac
|
||||
|
||||
if test x"$ac_file" != x-; then
|
||||
{ echo "$as_me:2060: creating $ac_file" >&5
|
||||
{ echo "$as_me:2067: creating $ac_file" >&5
|
||||
echo "$as_me: creating $ac_file" >&6;}
|
||||
rm -f "$ac_file"
|
||||
fi
|
||||
@ -2075,7 +2082,7 @@ echo "$as_me: creating $ac_file" >&6;}
|
||||
-) echo $tmp/stdin ;;
|
||||
[\\/$]*)
|
||||
# Absolute (can't be DOS-style, as IFS=:)
|
||||
test -f "$f" || { { echo "$as_me:2078: error: cannot find input file: $f" >&5
|
||||
test -f "$f" || { { echo "$as_me:2085: error: cannot find input file: $f" >&5
|
||||
echo "$as_me: error: cannot find input file: $f" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
echo $f;;
|
||||
@ -2088,7 +2095,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;}
|
||||
echo $srcdir/$f
|
||||
else
|
||||
# /dev/null tree
|
||||
{ { echo "$as_me:2091: error: cannot find input file: $f" >&5
|
||||
{ { echo "$as_me:2098: error: cannot find input file: $f" >&5
|
||||
echo "$as_me: error: cannot find input file: $f" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
fi;;
|
||||
@ -2160,16 +2167,19 @@ case $srcdir in
|
||||
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
||||
esac
|
||||
|
||||
{ echo "$as_me:2163: executing $ac_dest commands" >&5
|
||||
{ echo "$as_me:2170: executing $ac_dest commands" >&5
|
||||
echo "$as_me: executing $ac_dest commands" >&6;}
|
||||
case $ac_dest in
|
||||
tests/atconfig ) cat >tests/atconfig <<ATEOF
|
||||
tests/atconfig ) # Do not use _ACEOF as we are being dumped into config.status via
|
||||
# an _ACEOF-heredoe.
|
||||
cat >tests/atconfig <<ATEOF
|
||||
# Configurable variable values for building test suites.
|
||||
# Generated by $0
|
||||
# Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
at_package='$at_package'
|
||||
at_version='$at_version'
|
||||
at_package_name='$at_package_name'
|
||||
at_package_version='$at_package_version'
|
||||
at_package_string='$at_package_string'
|
||||
at_bugreport='$at_bugreport'
|
||||
|
||||
at_n='$at_n'
|
||||
@ -2184,7 +2194,6 @@ AUTOTEST_PATH='tests:bin'
|
||||
|
||||
SHELL=\${CONFIG_SHELL-'$at_shell'}
|
||||
PATH_SEPARATOR='$at_path_separator'
|
||||
|
||||
ATEOF
|
||||
;;
|
||||
esac
|
||||
|
@ -60,13 +60,16 @@
|
||||
# into all the build dirs of AUTOTEST-PATH, then all the src dirs.
|
||||
AC_DEFUN([AC_CONFIG_TESTDIR],
|
||||
[AC_CONFIG_COMMANDS([$1/atconfig],
|
||||
[cat >$1/atconfig <<ATEOF
|
||||
[# Do not use _ACEOF as we are being dumped into config.status via
|
||||
# an _ACEOF-heredoe.
|
||||
cat >$1/atconfig <<ATEOF
|
||||
@%:@ Configurable variable values for building test suites.
|
||||
@%:@ Generated by $[0]
|
||||
@%:@ Copyright 2000, 2001 Free Software Foundation, Inc.
|
||||
|
||||
at_package='$at_package'
|
||||
at_version='$at_version'
|
||||
at_package_name='$at_package_name'
|
||||
at_package_version='$at_package_version'
|
||||
at_package_string='$at_package_string'
|
||||
at_bugreport='$at_bugreport'
|
||||
|
||||
at_n='$at_n'
|
||||
@ -81,11 +84,11 @@ AUTOTEST_PATH='m4_default([$2], [$1])'
|
||||
|
||||
SHELL=\${CONFIG_SHELL-'$at_shell'}
|
||||
PATH_SEPARATOR='$at_path_separator'
|
||||
|
||||
ATEOF
|
||||
],
|
||||
[at_package='$PACKAGE_NAME'
|
||||
at_version='$PACKAGE_VERSION'
|
||||
[at_package_name='$PACKAGE_NAME'
|
||||
at_package_version='$PACKAGE_VERSION'
|
||||
at_package_string='$PACKAGE_STRING'
|
||||
at_bugreport='$PACKAGE_BUGREPORT'
|
||||
|
||||
at_n='$ECHO_N'
|
||||
|
@ -90,10 +90,9 @@ m4_define([AT_LINE],
|
||||
[m4_patsubst(__file__, [^\(.*/\)*\(.*\)], [[\2]]):__line__])
|
||||
|
||||
|
||||
# AT_INIT(PROGRAM)
|
||||
# ----------------
|
||||
# Begin test suite, using PROGRAM to check version. The search path
|
||||
# should be already preset so the proper executable will be selected.
|
||||
# AT_INIT([TESTSUITE-NAME], [BUG-REPORT])
|
||||
# ---------------------------------------
|
||||
# Begin test suite.
|
||||
m4_define([AT_INIT],
|
||||
[AS_INIT
|
||||
m4_pattern_forbid([^_?AT_])
|
||||
@ -108,7 +107,10 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
||||
|
||||
# How were we run?
|
||||
at_cli_args=${1+"$[@]"}
|
||||
at_debug_args=
|
||||
|
||||
# Who are we?
|
||||
at_testsuite_name='$1'
|
||||
at_bugreport='$2'
|
||||
|
||||
# Load the config file.
|
||||
for at_file in atconfig atlocal
|
||||
@ -126,6 +128,8 @@ at_top_srcdir=`cd "$top_srcdir" && pwd`
|
||||
at_times=:
|
||||
(times) >/dev/null 2>&1 && at_times=times
|
||||
|
||||
# CLI Arguments to pass to the debugging scripts.
|
||||
at_debug_args=
|
||||
# -e sets to true
|
||||
at_stop_on_error=false
|
||||
# Shall we be verbose?
|
||||
@ -144,7 +148,15 @@ m4_divert([OPTIONS])
|
||||
while test $[@%:@] -gt 0; do
|
||||
case $[1] in
|
||||
--help | -h) at_help=: ;;
|
||||
--version) echo "$as_me ($at_package) $at_version"; exit 0 ;;
|
||||
--version)
|
||||
if test -n "$at_package_string"; then
|
||||
echo "$as_me ($at_package_string)"
|
||||
echo "Embedded test suite."
|
||||
else
|
||||
echo "$as_me ($at_testsuite_name)"
|
||||
echo "Stand-alone test suite."
|
||||
fi
|
||||
exit 0 ;;
|
||||
--clean | -c )
|
||||
rm -rf $at_data_files debug-*.sh $as_me.log devnull
|
||||
exit 0;;
|
||||
@ -230,6 +242,7 @@ _ATEOF
|
||||
egrep -e "$at_tests_pattern" <<_ATEOF
|
||||
m4_divert([HELP])dnl Help message inserted here.
|
||||
m4_divert([SETUP])dnl
|
||||
Report bugs to <$at_bugreport>.
|
||||
_ATEOF
|
||||
exit 0
|
||||
fi
|
||||
@ -261,7 +274,7 @@ do
|
||||
# Stand-alone test suite.
|
||||
at_path=$at_path$PATH_SEPARATOR$at_dir
|
||||
else
|
||||
# Embbeded test suite.
|
||||
# Embedded test suite.
|
||||
at_path=$at_path$PATH_SEPARATOR$top_builddir/$at_dir
|
||||
at_path=$at_path$PATH_SEPARATOR$top_srcdir/$at_dir
|
||||
fi
|
||||
@ -311,28 +324,37 @@ else
|
||||
fi
|
||||
|
||||
# 6 is the log file. To be preserved if `-d'.
|
||||
m4_define([AS_MESSAGE_LOG_FD], [6])
|
||||
if $at_debug; then
|
||||
exec 6>/dev/null
|
||||
exec AS_MESSAGE_LOG_FD>/dev/null
|
||||
else
|
||||
exec 6>$as_me.log
|
||||
exec AS_MESSAGE_LOG_FD>$as_me.log
|
||||
fi
|
||||
|
||||
# Tester and tested.
|
||||
if $1 --version | grep "$at_package.*$at_version" >/dev/null; then
|
||||
AS_BOX([Test suite for $at_package $at_version])
|
||||
{
|
||||
AS_BOX([ Test suite log for $at_package $at_version. ])
|
||||
echo
|
||||
# Banners and logs.
|
||||
if test -n "$at_package_string"; then
|
||||
AS_BOX([$at_package_string test suite.])
|
||||
else
|
||||
AS_BOX([$at_testsuite_name test suite.])
|
||||
fi
|
||||
{
|
||||
if test -n "$at_package_string"; then
|
||||
AS_BOX([Embedded $at_package_string test suite.])
|
||||
else
|
||||
AS_BOX([$at_testsuite_name test suite.])
|
||||
fi
|
||||
echo
|
||||
|
||||
echo "$as_me: command line was:"
|
||||
echo " $ $[0] $at_cli_args"
|
||||
echo
|
||||
echo "$as_me: command line was:"
|
||||
echo " $ $[0] $at_cli_args"
|
||||
echo
|
||||
|
||||
# Try to find a few ChangeLogs in case it might help determining the
|
||||
# exact version. Use the relative dir: if the top dir is a symlink,
|
||||
# find will not follow it (and options to follow the links are not
|
||||
# portable), which would result in no output here.
|
||||
# Try to find a few ChangeLogs in case it might help determining the
|
||||
# exact version. Use the relative dir: if the top dir is a symlink,
|
||||
# find will not follow it (and options to follow the links are not
|
||||
# portable), which would result in no output here.
|
||||
|
||||
if test -n "$top_srcdir"; then
|
||||
AS_BOX([ChangeLogs.])
|
||||
echo
|
||||
find "$top_srcdir" -name ChangeLog \
|
||||
@ -349,26 +371,44 @@ if $1 --version | grep "$at_package.*$at_version" >/dev/null; then
|
||||
-exec echo "$as_me: {}:" ';' \
|
||||
-exec sed 's/^/| /' {} ';' \
|
||||
-exec echo ';'
|
||||
fi
|
||||
|
||||
# Inform about the contents of the config files.
|
||||
for at_file in atconfig atlocal
|
||||
do
|
||||
test -r $at_file || continue
|
||||
echo "$as_me: $at_file:" >&6
|
||||
sed 's/^/| /' $at_file >&6
|
||||
echo
|
||||
done
|
||||
# Inform about the contents of the config files.
|
||||
for at_file in atconfig atlocal
|
||||
do
|
||||
test -r $at_file || continue
|
||||
echo "$as_me: $at_file:"
|
||||
sed 's/^/| /' $at_file
|
||||
echo
|
||||
done
|
||||
|
||||
AS_BOX([Silently running the tests])
|
||||
} >&6
|
||||
else
|
||||
AS_BOX([ERROR: Version mismatch (need $at_package $at_version); no tests performed.])
|
||||
exit 1
|
||||
fi
|
||||
AS_BOX([Victims.])
|
||||
} >&AS_MESSAGE_LOG_FD
|
||||
|
||||
# If we are an embedded test suite, be sure to check we are running
|
||||
# the proper version of the programs. And in either case, report
|
||||
# what program is being used.
|
||||
for at_program in $at_victims
|
||||
do
|
||||
(
|
||||
echo "AT_LINE: $at_program --version"
|
||||
$at_program --version
|
||||
echo
|
||||
) >&AS_MESSAGE_LOG_FD 2>&1
|
||||
if test -n "$at_package_name" && test -n "$at_package_version"; then
|
||||
($at_program --version |
|
||||
grep "$at_package_name.*$at_package_version") >/dev/null 2>&1 ||
|
||||
AS_ERROR([version mismatch (need $at_package_name $at_package_version): $at_program])
|
||||
fi
|
||||
done
|
||||
|
||||
{
|
||||
AS_BOX([Silently running the tests.])
|
||||
} >&AS_MESSAGE_LOG_FD
|
||||
|
||||
at_start_date=`date`
|
||||
at_start_time=`(date +%s) 2>/dev/null`
|
||||
echo "$as_me: starting at: $at_start_date" >&6
|
||||
echo "$as_me: starting at: $at_start_date" >&AS_MESSAGE_LOG_FD
|
||||
at_fail_list=
|
||||
at_skip_list=
|
||||
at_test_count=0
|
||||
@ -416,7 +456,7 @@ _ATEOF
|
||||
at_log_msg="$at_test. $at_setup_line: $at_msg"
|
||||
# If the test failed, at-times is not available.
|
||||
test -f at-times && at_log_msg="$at_log_msg (`sed 1d at-times`)"
|
||||
echo "$at_log_msg" >&6
|
||||
echo "$at_log_msg" >&AS_MESSAGE_LOG_FD
|
||||
$at_stop_on_error && test -n "$at_fail_list" && break
|
||||
;;
|
||||
esac
|
||||
@ -424,7 +464,7 @@ done
|
||||
|
||||
at_stop_date=`date`
|
||||
at_stop_time=`(date +%s) 2>/dev/null`
|
||||
echo "$as_me: ending at: $at_stop_date" >&6
|
||||
echo "$as_me: ending at: $at_stop_date" >&AS_MESSAGE_LOG_FD
|
||||
at_duration_s=`(expr $at_stop_time - $at_start_time) 2>/dev/null`
|
||||
at_duration_m=`(expr $at_duration_s / 60) 2>/dev/null`
|
||||
at_duration_h=`(expr $at_duration_m / 60) 2>/dev/null`
|
||||
@ -432,7 +472,7 @@ at_duration_s=`(expr $at_duration_s % 60) 2>/dev/null`
|
||||
at_duration_m=`(expr $at_duration_m % 60) 2>/dev/null`
|
||||
at_duration="${at_duration_h}h ${at_duration_m}m ${at_duration_s}s"
|
||||
if test "$at_duration" != "h m s"; then
|
||||
echo "$as_me: test suite duration: $at_duration" >&6
|
||||
echo "$as_me: test suite duration: $at_duration" >&AS_MESSAGE_LOG_FD
|
||||
fi
|
||||
|
||||
# Cleanup everything unless the user wants the files.
|
||||
@ -495,7 +535,7 @@ elif test $at_debug = false; then
|
||||
|
||||
AS_BOX([Verbosely re-running the failing tests])
|
||||
echo
|
||||
} >&6
|
||||
} >&AS_MESSAGE_LOG_FD
|
||||
|
||||
$SHELL $[0] -v -d $at_fail_list 2>&1 | tee -a $as_me.log
|
||||
AS_BOX([$as_me.log is created.])
|
||||
@ -516,6 +556,19 @@ at_data_files="AT_data_files "])])dnl
|
||||
])# AT_INIT
|
||||
|
||||
|
||||
# AT_VICTIMS(PROGRAMS)
|
||||
# --------------------
|
||||
# Specify the list of programs exercised by the test suite. Their
|
||||
# versions are logged, and in the case of embedded test suite, they
|
||||
# must correspond to the version of the package.. The PATH should be
|
||||
# already preset so the proper executable will be selected.
|
||||
m4_define([AT_VICTIMS],
|
||||
[m4_divert_text([DEFAULT],
|
||||
[# List of the tested programs.
|
||||
at_victims="$1"
|
||||
])
|
||||
])# AT_VICTIMS
|
||||
|
||||
|
||||
# AT_SETUP(DESCRIPTION)
|
||||
# ---------------------
|
||||
|
@ -29,7 +29,10 @@ m4_include([atspecific.m4])
|
||||
# like contributing new tests? If you do, you may tell your intent to
|
||||
# `autoconf@gnu.org', so no two people work at the same thing.
|
||||
|
||||
AT_INIT([autoconf])
|
||||
AT_INIT
|
||||
|
||||
AT_VICTIMS([autom4te autoconf autoheader autoupdate
|
||||
autoreconf])
|
||||
|
||||
AT_BANNER(
|
||||
[Some tests might be skipped if you don't have the software which the
|
||||
|
@ -530,14 +530,15 @@ AT_CLEANUP(src1 src2 configure.ac~)
|
||||
# ----------------------
|
||||
AT_SETUP([autoupdating AC_PREREQ])
|
||||
|
||||
cat >expout <<EOF
|
||||
AC_PREREQ($at_version)
|
||||
EOF
|
||||
# Produce `AC_PREREQ(<AUTOUPDATE VERSION>)'.
|
||||
AT_CHECK([autoupdate --version | sed 's/.*) //;q'], 0, [stdout])
|
||||
autoupdate_version=`cat stdout`
|
||||
echo "AC_PREREQ($autoupdate_version)" >expout
|
||||
|
||||
AT_CHECK([echo "AC_PREREQ(1.0)" | autoupdate -],
|
||||
0, [expout], [])
|
||||
|
||||
AT_CHECK([echo "AC_PREREQ($at_version)" | autoupdate -],
|
||||
AT_CHECK([echo "AC_PREREQ($autoupdate_version)" | autoupdate -],
|
||||
0, [expout], [])
|
||||
|
||||
AT_CHECK([echo "AC_PREREQ(999.99)" | autoupdate -],
|
||||
|
Loading…
x
Reference in New Issue
Block a user