autoconf-patches
[Top][All Lists]
Advanced

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

AC_MSG_ERROR - documentation patch


From: Pavel Roskin
Subject: AC_MSG_ERROR - documentation patch
Date: Fri, 27 Oct 2000 12:18:33 -0400 (EDT)

Hello!

As promised.

ChangeLog:
        * doc/autoconf.texi (Limitations of Builtins): Recommend using
        AC_MSG_ERROR instead of exit.
        (Autoconf Language): Fix examples.

_________________________________
Index: doc/autoconf.texi
--- doc/autoconf.texi   Thu Oct 26 18:28:32 2000
+++ doc/autoconf.texi   Fri Oct 27 12:11:16 2000
@@ -739,7 +739,7 @@
 i.e., expect one level of quotes to be lost.  For instance
 
 @example
-AC_COMPILE_IFELSE([char b[10];],, (exit 1); exit)
+AC_COMPILE_IFELSE([char b[10];],, [AC_MSG_ERROR([you lose])])
 @end example
 
 @noindent
@@ -752,7 +752,7 @@
 twice:
 
 @example
-AC_COMPILE_IFELSE([[char b[10];]],, (exit 1); exit)
+AC_COMPILE_IFELSE([[char b[10];]],, AC_MSG_ERROR([you lose]))
 @end example
 
 @noindent
@@ -5313,8 +5313,8 @@
 Unfortunately, in some shells, such as Solaris 8 @command{sh}, an exit
 trap ignores the @code{exit} command's status.  In these shells, a trap
 cannot determine whether it was invoked by plain @code{exit} or by
address@hidden 1}.  To work around this problem, use @code{(exit 1); exit}
-instead of @samp{exit 1}.
address@hidden 1}.  Instead of calling @code{exit} directly, use the
address@hidden macro that has a workaround for this problem.
 
 @item @command{export}
 @cindex @command{export}
_________________________________

Regards,
Pavel Roskin





reply via email to

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