automake
[Top][All Lists]
Advanced

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

Re: AM_COND_IF for earlier Automake


From: Dave Hart
Subject: Re: AM_COND_IF for earlier Automake
Date: Sat, 18 Dec 2010 18:57:13 +0000

On Sat, Dec 18, 2010 at 18:28 UTC, Dave Hart <address@hidden> wrote:
> How is this for a AM_COND_IF that works at the m4sh level on older Automake:

I did not properly integrate Ralf's latest AM_COND_IF changes
considering Stefano's feedback about _AM_COND_VALUE_foo on older
Automake.  3rd time's charmed?

m4_ifndef([AM_COND_IF], [AC_DEFUN([AM_COND_IF],
[m4_ifndef([$1_TRUE],
         [m4_fatal([$0: no such condition "$1"])])dnl
if test -z "$$1_TRUE"; then :
  m4_n([$2])[]dnl
m4_ifval([$3],
[else
  $3
])dnl
fi[]dnl
])])

Thanks for your time,
Dave Hart



reply via email to

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