Install a misc/_config.h to hide all the defines that clutter the

built output.

This is also a step towards better checks for things like
__attribute__ or std::tr1.

* m4/ax_prefix_config_h.m4: New file.
* configure.ac: Call AC_CONFIG_HEADERS and AX_PREFIX_CONFIG_H.
* src/misc/Makefile.am: Install misc/_config.h.
* src/misc/random.cc, src/misc/version.cc: Include misc/_config.h.
This commit is contained in:
Alexandre Duret-Lutz 2011-06-03 18:05:06 +02:00
parent 78f932081b
commit 67ff9f203f
7 changed files with 246 additions and 4 deletions

View file

@ -26,6 +26,9 @@ AM_CXXFLAGS = $(WARNING_CXXFLAGS)
miscdir = $(pkgincludedir)/misc
nodist_misc_HEADERS = _config.h
DISTCLEANFILES = _config.h
misc_HEADERS = \
bareword.hh \
bddalloc.hh \