autoconf
[Top][All Lists]
Advanced

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

Re: #define warnings when using various autotools projects


From: Bob Friesenhahn
Subject: Re: #define warnings when using various autotools projects
Date: Tue, 13 May 2008 15:16:58 -0500 (CDT)

On Tue, 13 May 2008, aaragon wrote:

Could you please expand on this? I don't really understand what you're
talking about. The config.h file has just a bunch of #define statements and
there is no namespace (and I don't think that hardcoding one is the way
out).

I use this in configure.ac:

AC_CONFIG_HEADERS([magick/magick_config.h magick/magick_config_api.h])

with magick/magick_config.h being used to build the software, and magick/magick_config_api.h installed as magick/magick_config.h at installation time. The magick/magick_config_api.h.in template file needs to be hand-maintained and contains only what is required to satisfy the library headers.

It seems that I (somewhat) lied about the define naming. As long as the number of definitions required is small, you can provide your own with a useful prefix (e.g. "ARAGON_FOO") so that they won't be confused with some other package's definitions.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/





reply via email to

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