autoconf
[Top][All Lists]
Advanced

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

Re: if (...) then; AC_PROG_CC else AC_PROG_CC fi doesn't work?


From: Ralf Wildenhues
Subject: Re: if (...) then; AC_PROG_CC else AC_PROG_CC fi doesn't work?
Date: Wed, 24 Oct 2007 09:03:04 +0200
User-agent: Mutt/1.5.16 (2007-10-15)

* Eric Blake wrote on Wed, Oct 24, 2007 at 12:13:44AM CEST:
> You can try using AS_IF instead of raw shell 'if' for wrapping the
> AC_PROG_CC calls, since the purpose of AS_IF is to output a shell
> conditional AND correctly handle side effects of macros within that
> shell conditional.

Well, the AC_REQUIRE'd macros of the wrapped macro (AC_PROG_CC) will be
placed outside the shell conditional with AS_IF.  This may or may not
have the effect that is desired.  Especially, I don't think it will work
with AC_PROG_CC.

Also, you need to use AS_IF of Autoconf 2.61 or newer.

Cheers,
Ralf




reply via email to

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