Subject: Re: bug#8718: error when using nested conditionals

From: Bruno Haible <[email-masked]>
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>