autoconf
[Top][All Lists]
Advanced

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

Re: Detect Autoconf run in preprocessor?


From: Eric Blake
Subject: Re: Detect Autoconf run in preprocessor?
Date: Fri, 15 Jul 2016 13:15:01 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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.


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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