autoconf
[Top][All Lists]
Advanced

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

Re: Detect Autoconf run in preprocessor?


From: Jeffrey Walton
Subject: Re: Detect Autoconf run in preprocessor?
Date: Fri, 15 Jul 2016 15:17:59 -0400

On Fri, Jul 15, 2016 at 3:15 PM, Eric Blake <address@hidden> wrote:
> On 07/15/2016 01:00 PM, Jeffrey Walton wrote:
>
>>> Autoconf does not define anything specific. You can write an early
>>> AC_DEFINE in your configure.ac to trigger a specific witness used in all
>>> subsequent probes, but that's a per-package solution.
>>
>> Perfect, thanks.
>>
>> Can the Autoconf folks recommend a name for the define? Maybe
>> something like GNU_AUTOCONF or similar?
>
> The point of autoconf is to probe what your system behaves like when
> autoconf is not running.  If you are writing headers that specifically
> behave differently during configure than they do in normal usage, that
> goes contrary to the goal of autoconf.  I don't quite know what problem
> you are up against, but the best autoconf tests are the ones written as
> close to normal usage as possible, not ones that specifically try to
> circumvent normality.

OK, thanks.

I fear my Autotools ignorance is hindering efforts to get this fixed.
I'm going to ask Pablo to work with you guys on a solution.

Jeff



reply via email to

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