Re: Nested AS_IF calls

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

 



On Thu, Jun 7, 2012 at 3:09 PM, Peter Breitenlohner <peb@xxxxxxxxxxxx> wrote:

> according to the Autoconf manual (8.1 M4 Quotation) that should be
>
>
> AS_IF([test "$GCC" = yes],
>  [AS_IF([test "`$CC -v 2>&1 | grep -c 'clang_version'`" != "0"],[CLANG_CC=1])],
>  [CLANG_CC=])
>
> i.e., exactly one level of quotes for each macro argument.

Actually I made a typo and that's what I have. Still having the same problem.

> In addition it
> might be safer to replace
>  test "$GCC" = yes
> by
>  test "X$GCC" = Xyes
> and similar.

Thanks, I use a similar approach in other tests so I'll use the same here.

Cheers

Adam

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux