]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Do not use read-only variable $status.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 16 Nov 2008 16:54:54 +0000 (17:54 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 16 Nov 2008 16:54:54 +0000 (17:54 +0100)
* tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
$status, for zsh.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/compile.at

index 81f28fbf3ccafe562b1e1eeedd3c18699eaa2530..ec89991bfe9838de462a9218b8a36645269116c0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Do not use read-only variable $status.
+       * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
+       $status, for zsh.
+
 2008-11-15  Eric Blake  <ebb9@byu.net>
 
        Use the new AS_FOR function.
index ba931fcbdd01388b50bfae29ddbe7a988ceb597e..628996002bc53ba5b76e7373cf6d5f92129da6f7 100644 (file)
@@ -2,7 +2,7 @@
 
 AT_BANNER([Low level compiling/preprocessing macros.])
 
-# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007 Free Software
+# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007, 2008 Free Software
 # Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
@@ -123,16 +123,16 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 0])],
 
 AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 2])],
              [AC_MSG_ERROR([saw `return 2' as a success])],
-             [status=$?
-test $status != 2 &&
-  AC_MSG_ERROR([did not get as 2 exit status: $status])])
+             [estatus=$?
+test $estatus != 2 &&
+  AC_MSG_ERROR([did not get as 2 exit status: $estatus])])
 
 # The old stinky one.
 AC_TRY_RUN([int main () { return 3; }],
           [AC_MSG_ERROR([saw `return 3' as a success])],
-          [status=$?
-test $status != 3 &&
-  AC_MSG_ERROR([did not get 3 as exit status: $status])])
+          [estatus=$?
+test $estatus != 3 &&
+  AC_MSG_ERROR([did not get 3 as exit status: $estatus])])
 
 ]])