autoconf
[Top][All Lists]
Advanced

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

Re: config.h and its defines.


From: Ralf Wildenhues
Subject: Re: config.h and its defines.
Date: Wed, 6 Aug 2008 22:15:36 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Václav,

* Václav Haisman wrote on Wed, Aug 06, 2008 at 09:19:41PM CEST:
> I have this library, it includes autoconf generated config.h in its 
> public headers.

The right approach is to never install config.h, and never let installed
headers include it.  If you must, then have a second config header for
which you write the input file yourself (IOW, not generated by
autoheader) and put only nonconflicting defines in there.

Alternatively, there is a macro in the Autoconf Macro Archive to mangle
config.h to prefix each defined with a package-specific prefix.

This topic has come up several times on this list, the list archives
should include further useful hints.  Any volunteers for writing a FAQ
entry?

Cheers,
Ralf




reply via email to

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