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

Dimitrios Apostolou <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches,gmane.comp.sysutils.automake.patches
Message-ID <alpine.DEB.2.10.1407172041080.3268@localhost>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.