|
From: | Vincent Torri |
Subject: | Re: AS_HELP_STRING in an m4 macro: different decription wrt arguments |
Date: | Thu, 28 Jan 2010 08:26:08 +0100 (CET) |
On Thu, 28 Jan 2010, Ralf Wildenhues wrote:
* Vincent Torri wrote on Wed, Jan 27, 2010 at 08:35:36AM CET:On Wed, 27 Jan 2010, Ralf Wildenhues wrote:Use something like m4_if([$2], [yes], [enabled], [no], [disabled], [unknown default])I always confuse m4_if with m4_case. With that, the above should work. m4_if usage should be like this m4_if([$2], [yes], [enabled], [$2], [no], [disabled], [unknown default]) Sorry about that.
Np. Ok, it will not work, as i call the macro with variables : ECORE_CHECK_MODULE([txt], [${want_ecore_txt}], [Txt], [$have_iconv]) so $2 is ${want_ecore_txt} at autoreconf time. thank you for your answers anyway :-) Vincent Torri
[Prev in Thread] | Current Thread | [Next in Thread] |