[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Empty else part in AS_IF
From: |
Russ Allbery |
Subject: |
Re: Empty else part in AS_IF |
Date: |
Thu, 10 Oct 2013 15:41:11 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Eric Blake <address@hidden> writes:
> Another solution is to ensure that AM_CONDITIONAL is always defined
> (where its definition is a no-op if using an old automake that did not
> already define it):
> m4_define_default([AM_CONDITIONAL])
> AS_IF([test x"$var" != xfalse],
> [$test=1],
> [AM_CONDITIONAL([TEST], [false])])
This would reintroduce the same problem, though, wouldn't it?
AM_CONDITIONAL would expand to nothing, and then the else branch of AS_IF
would be empty. Or does this give AS_IF enough information to figure that
out because it avoids using the lower-level m4_* function?
--
Russ Allbery (address@hidden) <http://www.eyrie.org/~eagle/>
Re: Empty else part in AS_IF, Russ Allbery, 2013/10/10