automake
[Top][All Lists]
Advanced

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

Re: What is meant by, "XXX does not appear in AM_CONDITIONAL"?


From: Bruce Korb
Subject: Re: What is meant by, "XXX does not appear in AM_CONDITIONAL"?
Date: Mon, 10 Jan 2005 08:35:27 -0800
User-agent: KMail/1.6.2

Hi Stepan,

On Monday 10 January 2005 06:00 am, Stepan Kasal wrote:

> So it's usually enough to  write
....
> Well, I'd use
> 
> if [some-shell-script-test]
> then
>   ...
>   AM_CONDITIONAL([XXX], [true])
> else
>   ...
>   AM_CONDITIONAL([XXX], [false])
> fi

This is more-or-less exactly what is going on, except that
the "some-shell-script-test" includes (but is not exactly
limited to) some compile-and-link macros.  However, upon
reading the docs some more, they explicitly state to not do
this.  Is that overcaution in the docs?  Should one actually
do the following?

> if [some-shell-script-test]
> then
>   ...
>   set_XXX=true
> else
>   ...
>   set_XXX=false
> fi
> AM_CONDITIONAL([XXX], [${set_XXX}])




reply via email to

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