Wichert Akkerman wrote:
Doesn't AC_CONFIG(include/freeradius-client.h) work? There is no special logic in autoconf that checks file types as far as I know.
I think this works without polluting any namespace. configure.in: AC_CHECK_HEADERS(inttypes.h, [INCLUDE_INTTYPES='#include <inttypes.h>'], [INCLUDE_INTTYPES='/* inttypes.h not available on this system */']) AC_CHECK_HEADERS(stdint.h, [INCLUDE_STDINT='#include <stdint.h>'], [INCLUDE_STDINT='/* stdint.h not available on this system */']) AC_SUBST(INCLUDE_INTTYPES) AC_SUBST(INCLUDE_STDINT) ... AC_CONFIG_FILES([ ... include/freeradius-client.h ... ]) include/freeradius-client.h.in: ... #include <sys/types.h> @INCLUDE_INTTYPES@ @INCLUDE_STDINT@ #include <stdio.h> ... Enrik