You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by Christophe de VIENNE <cd...@alphacent.com> on 2004/06/29 17:08:17 UTC
config_auto.h
Hi,
I've been thinking about the macro definitions problem.
I think I've found a more simple solution than what we discussed previously.
The idea would be to keep a config_auto.h.in file, but hand-written,
with only the macros that are necessary to have the header compile
correctly, and another file, corresponding to the current
config_auto.h.in, name config.h, placed in src, auto-generated by
configure, and included only in the implementation files.
This way the more problematic macros (PACKAGE, VERSION...) wouldn't
pollute the headers.
This could be a temporary solution, easy to do, before completely
removing all those macros.
I can try to make a patch if you want.
Regards,
Christophe
Re: config_auto.h
Posted by Christophe de VIENNE <cd...@alphacent.com>.
Michaël CATANZARITI wrote:
> ok for the patch !
Unfortunately it does not work as expected. I cannot generate a
config_unix.h file from config_unix.h.in the same way config_auto.h was
generated from config_auto.h.in.
So I had a look to autoconf and how to optionally install headers. It's
quite simple using AM_CONDITIONAL. I'll work on that and propose a patch
soon.
Regards,
Christophe
Re: config_auto.h
Posted by Michaël CATANZARITI <mc...@apache.org>.
ok for the patch !
Christophe de VIENNE wrote:
> Hi,
>
> I've been thinking about the macro definitions problem.
> I think I've found a more simple solution than what we discussed
> previously.
>
> The idea would be to keep a config_auto.h.in file, but hand-written,
> with only the macros that are necessary to have the header compile
> correctly, and another file, corresponding to the current
> config_auto.h.in, name config.h, placed in src, auto-generated by
> configure, and included only in the implementation files.
> This way the more problematic macros (PACKAGE, VERSION...) wouldn't
> pollute the headers.
>
> This could be a temporary solution, easy to do, before completely
> removing all those macros.
>
> I can try to make a patch if you want.
>
> Regards,
>
> Christophe
>
>
>
--
Michaël CATANZARITI
log4cxx project manager
log4cxx user mailing list:
log4cxx-user-subscribe@logging.apache.org
log4cxx developer mailing list:
mailto:log4cxx-dev-subscribe@logging.apache.org