+2005-09-16 Peter Ekberg <peda@lysator.liu.se>,
+
+ * tests/testsuite.at (LT_AT_EXEC_CHECK): Make sure
+ that the exit status of the tested program is
+ propagated as the exit status of the expression
+ fed to AT_CHECK.
+
2005-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/argz.c <HAVE_CONFIG_H>: Avoid redefinition warning.
# LT_AT_EXEC_CHECK(EXECUTABLE, [STATUS = 0], [STDOUT], [STDERR])
# --------------------------------------------------------------
m4_define([LT_AT_EXEC_CHECK],
-[AT_CHECK([if $1; then :;
+[AT_CHECK([$1; lt_status=$?; if test $lt_status -eq 0; then :;
elif test "X$host" != "X$build" && \
{ test -x "$1" || test -x "$1"$EXEEXT; }
- then (exit 77); fi],[$2],[$3],[$4])
+ then (exit 77); else (exit $lt_status); fi],[$2],[$3],[$4])
])