Re: config.h and its defines.

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

 



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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux