autoconf
[Top][All Lists]
Advanced

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

Re: Embed newlines in AC_MSG_* output


From: Nick Bowler
Subject: Re: Embed newlines in AC_MSG_* output
Date: Sat, 27 Jan 2024 21:32:54 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0

Hi,

On 2024-01-27 15:46, Dave Hart wrote:
> What is the right way to embed newlines in AC_MSG_FAIL or other AC_MSG_*
> macros?
[...]
> I tried:
> 
> AC_MSG_FAILURE(
> [--enable-openssl-random was used but no suitable SSL library was\
> found.  Remove --enable-openssl-random if you wish to build without\
> a cryptographically secure RNG.\
> WARNING: Use of ntp-keygen without a secure RNG may generate keys\
> that are predictable.])

Just don't end your lines with backslashes (which causes the shell to
delete the following newline) and AC_MSG_FAILURE will give you multiple
lines of output.  Normally you'll want the first line to be somewhat
shorter (since configure will insert a prefix in front of the message).

Hope that helps,
  Nick



reply via email to

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