autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: exits in the test suite


From: Akim Demaille
Subject: Re: FYI: exits in the test suite
Date: 27 Oct 2000 17:03:11 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

| Hello, Akim!
| > >   * tests/semantics.at: Don't just `exit 1' or `exit 77' from
| > >   configure.in: call AC_MSG_ERROR.
| 
| You probably want to improve AC_MSG_ERROR as well, since the real problem
| (probably responsible for multiple test failures on FreeBSD) is not
| addressed by this patch.

My other patches are waiting for your approval :)

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * acgeneral.m4 (AC_MSG_ERROR): When trapping an `exit N' some
        shells, such as Zsh, don't set $? to N.  Hence run `(exit N); exit
        N' instead of plain `exit N'.

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.596
diff -u -u -r1.596 acgeneral.m4
--- acgeneral.m4 2000/10/25 17:51:10 1.596
+++ acgeneral.m4 2000/10/27 12:56:38
@@ -2795,7 +2761,8 @@
 define([AC_MSG_ERROR],
 [{ _AC_ECHO([configure:__oline__: error: $1], AC_FD_LOG)
   _AC_ECHO([configure: error: $1], 2)
-  exit m4_default([$2], 1); }])
+  (exit m4_default([$2], 1))
+  exit m4_default([$2], 1); }])
 
 
 # AU::AC_CHECKING(FEATURE)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]