GNU bug report logs - #8718
error when using nested conditionals

Previous Next

Package: automake;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Sun, 22 May 2011 22:31:02 UTC

Severity: normal

Tags: wontfix

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bruno Haible <bruno <at> clisp.org>
To: "Ralf Wildenhues" <Ralf.Wildenhues <at> gmx.de>
Cc: 8718 <at> debbugs.gnu.org, Stefano Lattarini <stefano.lattarini <at> gmail.com>
Subject: bug#8718: error when using nested conditionals
Date: Fri, 17 Jun 2011 11:56:09 +0200
Hi Ralf,

> More danger ahead:
> 
> if $foo; then result=ok; else result=bad; fi
> AM_CONDITIONAL([COND1], [test $result = ok])
> if $bar; then result=ok; else result=bad; fi
> AM_CONDITIONAL([COND2], [test $result = ok])
> 
> I've seen such code in third party projects, it will break if you delay
> the AM_CONDITIONAL evaluation.

Thanks for the heads-up. The code I posted does not delay the evaluation of
the condition; it only delays the invocation of AM_CONDITIONAL. So it will
work fine in this situation.

Bruno
-- 
In memoriam The victims of the East German uprising <http://en.wikipedia.org/wiki/Uprising_of_1953_in_East_Germany>




This bug report was last modified 13 years and 345 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.