+2005-09-27 Stepan Kasal <kasal@ucw.cz>
+
+ * tests/semantics.at (AC_C_BIGENDIAN): Pass --force to autoheader,
+ in case the computer is too quick. Double quote the configure.ac
+ snippets.
+
+ * tests/local.at (AT_CHECK_AUTOCONF): Always pass --force to prevent
+ problems if the testsuite were running too fast.
+
2005-09-18 Paul Eggert <eggert@cs.ucla.edu>
* lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
# AT_CHECK_AUTOCONF(ARGS, [EXIT-STATUS = 0], STDOUT, STDERR)
# ----------------------------------------------------------
+# We always use "--force", to prevent problems with timestamps if the testsuite
+# were running too fast.
m4_define([AT_CHECK_AUTOCONF],
-[AT_CHECK([autoconf $1], [$2], [$3], [$4])
+[AT_CHECK([autoconf --force $1], [$2], [$3], [$4])
if test -s configure; then
AT_CHECK_SHELL_SYNTAX(configure)
fi
# cross-compiling or not.
_AT_CHECK_AC_MACRO(
- [AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
+ [[AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
echo $ac_endian > at-endian
-])
+]])
rm -f config.hin # So that next run of autoheader is quiet.
_AT_CHECK_AC_MACRO(
- [cross_compiling=yes
+ [[cross_compiling=yes
AC_C_BIGENDIAN([ac_endian=big],[ac_endian=little],[ac_endian=unknown])
ac_prevendian=`cat at-endian`
# Check that we have found the same result as in the previous run
if test $ac_endian != $ac_prevendian && test $ac_endian != unknown; then
AC_MSG_ERROR([unexpected endianness: first run found '$ac_prevendian' but second run found '$ac_endian'])
fi
-])
+]])
# Make sure AC_C_BIGENDIAN with no argument will define WORDS_BIGENDIAN
-AT_CONFIGURE_AC([AC_C_BIGENDIAN])
-AT_CHECK_AUTOHEADER
+AT_CONFIGURE_AC([[AC_C_BIGENDIAN]])
+# --force is necessary, the computer might be too fast.
+AT_CHECK_AUTOHEADER([--force])
AT_CHECK([grep WORDS_BIGENDIAN config.hin], [], [ignore])
AT_CLEANUP(at-endian)