autoconf
[Top][All Lists]
Advanced

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

Re: question about how to continue a line of text in AC_MSG_ERROR macro


From: John Calcote
Subject: Re: question about how to continue a line of text in AC_MSG_ERROR macro call...
Date: Tue, 21 Apr 2009 10:00:12 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2

Ed,

On 4/21/2009 7:45 AM, Ed Hartnett wrote:
Howdy all!

I want to put a line break in the error message so that I don't have
such a long line in my configure.ac file. But if I do this:

       AC_MSG_ERROR([NetCDF-4 requires HDF5, but hdf5.h cannot be found. Try 
using \
       the --with-hdf5 option to specify location of HDF5.])
This is actually quite simple: Just wrap the line, with no trailing back-slash, like this:

        AC_MSG_ERROR([NetCDF-4 requires HDF5, but hdf5.h cannot be found. Try 
using
the --with-hdf5 option to specify location of HDF5.])


If your text is indented as this one is, simply start the second line in the column in which you wish to have it start in the output (column 1 in this example). These AC_MSG macros take whatever text you have in Autoconf quotes, double-quote it and display it as is, including any embedded newlines.

Regards,
John





reply via email to

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