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

2005-01-13 Thread Alexandre Duret-Lutz
Ralf == Ralf Corsepius [EMAIL PROTECTED] writes: [...] Ralf A semi-classic example of such a situation is this one: [...] Ralf AS_IF([test $enable_cxx = yes], Ralf [AC_PROG_CXX]) [...] Ralf = Not even automake and autoconf are to treat this situation properly. No. But if someone

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

2005-01-11 Thread Stepan Kasal
Hi Bruce, On Mon, Jan 10, 2005 at 08:35:27AM -0800, Bruce Korb wrote: if [some-shell-script-test] then ... AM_CONDITIONAL([XXX], [true]) else ... AM_CONDITIONAL([XXX], [false]) fi reading the docs some more, they explicitly state to not do this. I re-read the node

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

2005-01-11 Thread Ralf Corsepius
On Tue, 2005-01-11 at 11:09 +0100, Stepan Kasal wrote: Hi Bruce, On Mon, Jan 10, 2005 at 08:35:27AM -0800, Bruce Korb wrote: if [some-shell-script-test] then ... AM_CONDITIONAL([XXX], [true]) else ... AM_CONDITIONAL([XXX], [false]) fi reading the docs some

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

2005-01-10 Thread Stepan Kasal
Hi On Sat, Jan 08, 2005 at 03:21:44PM -0800, Bruce Korb wrote: [`some-shell-script-test` if test $? -eq 0 then] AM_CONDITIONAL([XXX], [true]) [else] AM_CONDITIONAL([XXX],[false]) [fi] one usually relies that `else', `fi', etc. are not m4 macros. So it's usually enough to write

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

2005-01-10 Thread Bruce Korb
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,

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

2005-01-08 Thread Alexandre Duret-Lutz
Bruce == Bruce Korb [EMAIL PROTECTED] writes: Bruce The problem is is that XXX *DOES* actually appear in an AM_CONDITIONAL. But these macros are not evaluated because of your quoting, so effectively XXX is not defined at all. [...] Bruce [`some-shell-script-test` Bruce if test $? -eq 0

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

2005-01-08 Thread Bruce Korb
On Saturday 08 January 2005 01:53 pm, Alexandre Duret-Lutz wrote: Bruce == Bruce Korb [EMAIL PROTECTED] writes: Bruce The problem is is that XXX *DOES* actually appear in an AM_CONDITIONAL. But these macros are not evaluated because of your quoting, so effectively XXX is not defined at