* 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