* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* tests/base.at: Use AS_EXIT instead of exit in configure.in.
* tests/m4sh.at: Likewise.
* tests/semantics.at: Likewise.
+2000-11-01 Pavel Roskin <proski@gnu.org>
+
+ * autoconf.sh: Using trap-safe "exit".
+ * autoreconf.sh: Likewise.
+ * autoupdate.sh: Likewise.
+ * tests/base.at: Use AS_EXIT instead of exit in configure.in.
+ * tests/m4sh.at: Likewise.
+ * tests/semantics.at: Likewise.
+
2000-11-01 Akim Demaille <akim@epita.fr>
In M4sugar, move `define', `undefine', and `defn' into the `m4_'
}
}
EOF
- $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
+ $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || { (exit 1); exit; }
;; # End of the task script.
}
}
EOF
- $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
+ $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || { (exit 1); exit; }
;; # End of the task script.
# update.sh --
# Exit 0 if the first argument is not the most recent of all or is missing.
cat >$tmp/update.sh <<\EOF
-test -f "$1" || exit 0
+test -f "$1" || { :; exit; }
test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
EOF
update="@SHELL@ $tmp/update.sh"
# update.sh --
# Exit 0 if the first argument is not the most recent of all or is missing.
cat >$tmp/update.sh <<\EOF
-test -f "$1" || exit 0
+test -f "$1" || { :; exit; }
test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
EOF
update="@SHELL@ $tmp/update.sh"
}
}
EOF
- $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || exit 1
+ $AWK -f $tmp/finalize.awk <$tmp/configure >&4 || { (exit 1); exit; }
;; # End of the task script.
# update.sh --
# Exit 0 if the first argument is not the most recent of all or is missing.
cat >$tmp/update.sh <<\EOF
-test -f "$1" || exit 0
+test -f "$1" || { :; exit; }
test x`ls -1dt "$@" 2>/dev/null | sed 1q` != x"$1"
EOF
update="@SHELL@ $tmp/update.sh"
AT_DATA(configure.in,
[[define([REQUIRE_AND_CHECK],
[AC_REQUIRE([$1])dnl
-test -z "$translit([$1], [A-Z], [a-z])" && exit 1])
+test -z "$translit([$1], [A-Z], [a-z])" && AS_EXIT(1)])
AC_DEFUN([TEST1],
[REQUIRE_AND_CHECK([TEST2a])
TEST1
test -z "$test1" &&
AC_MSG_ERROR([\$test1 is empty])
-exit 0
+AS_EXIT(0)
]])
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AS_MKDIR_P(a/b/c/d/e/f)
test -d a/b/c/d/e/f ||
AC_MSG_ERROR([a/b/c/d/e/f has not been properly created])
-exit 0
+AS_EXIT(0)
]])
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AS_DIRNAME_SED_TEST([/1//3/], [/1])
AS_DIRNAME_SED_TEST([./1//3/], [./1])
AS_DIRNAME_SED_TEST([../../2//3/], [../../2])
-exit 0
+AS_EXIT(0)
]])
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
# But there are systems without libm, on which we don't want to have
# this test fail, so exit successfully if `cos' is in libc.
AT_CHECK_MACRO(AC_CHECK_LIB,
-[AC_TRY_LINK_FUNC(cos, exit 0)
+[AC_TRY_LINK_FUNC(cos, [AS_EXIT(0)])
AC_CHECK_LIB(m, cos,,
[AC_MSG_ERROR([cannot find `cos'])])])
# no AC_OUTPUT, we don't need config.status.
$fail &&
AC_MSG_ERROR([[CHECK_PROG failed]])
-exit 0
+AS_EXIT(0)
]])
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
# no AC_OUTPUT, we don't need config.status.
$fail &&
AC_MSG_ERROR([[PATH_PROG failed]])
-exit 0
+AS_EXIT(0)
]])
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])