automake
[Top][All Lists]
Advanced

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

Re: Public header files


From: Ralf Wildenhues
Subject: Re: Public header files
Date: Tue, 2 Mar 2010 22:17:01 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

* Jef Driesen wrote on Tue, Mar 02, 2010 at 10:03:35PM CET:
> On 01/03/10 19:35, Ralf Wildenhues wrote:
> >* Jef Driesen wrote on Mon, Mar 01, 2010 at 01:33:46PM CET:
> >>Since a config.h header files is not supposed to be public, that's
> >>not an option. But how can I do this correctly?
> >
> >Use a second config header.  Its input template will not be generated by
> >autoheader; you write it yourself.  That way you can be sure to only put
> >safe stuff in there.
> 
> Can you give me some info to guide me into the right direction. I
> don't know where or what I should be looking for.

Hmm, put
  AC_CONFIG_HEADERS([config.h foo-api.h])
  ...
  AC_DEFINE([ticks_t], [...], [...])

in configure.ac, create foo-api.h.in with contents
  /* Public API header of package Foo */
  ...
  #undef ticks_t

and add foo-api.h to include_HEADERS in Makefile.am.  Untested,
be sure to test distcheck.

Cheers,
Ralf




reply via email to

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