autoconf-patches
[Top][All Lists]
Advanced

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

Re: AM_CONDITIONAL fails with line break at the end of $2


From: Dimitrios Apostolou
Subject: Re: AM_CONDITIONAL fails with line break at the end of $2
Date: Thu, 17 Jul 2014 20:44:35 +0200 (CEST)
User-agent: Alpine 2.10 (DEB 1266 2009-07-14)

Hi Erik, thank you for forwarding to the appropriate list!

On Thu, 17 Jul 2014, Eric Blake wrote:

I don't know if automake should work around your bad syntax, or if you
should just fix your configure.ac to use correct syntax to begin with. I

Is my syntax illegal? Can't I put line-breaks there? If I knew I wouldn't bother with this patch, it's just that I consumed some time to figure out this failure, so I thought it would be helpful to others.

also wonder if automake could use AS_IF instead of open-coding the if to
try and take advantage of autoconf's smarts for trying to sanitize
conditions.

However, even autoconf's AS_IF current implementation prefers the 'if
cond; then' rather than 'if cond $newline then', so it is likewise not
robust to conditions ending in a spurious newline.  If changing AS_IF to
use newline separator does not increase configure size, I could see
making that change in autoconf.  I'll play with the idea.

Thanks, please keep me posted!

Dimitris




reply via email to

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