From: Matthias Braun Date: Fri, 15 Dec 2006 12:29:51 +0000 (+0000) Subject: fix configure.in so autoheader produces a correct config.h.in again X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d7ca8d91f4983456dbd6bc6814731cd5a3b7671e;p=libfirm fix configure.in so autoheader produces a correct config.h.in again [r8463] --- diff --git a/config.h.in b/config.h.in index 9fe115ee2..429acd097 100644 --- a/config.h.in +++ b/config.h.in @@ -127,3 +127,17 @@ /* Define to empty if the keyword `volatile' does not work. Warning: valid code using `volatile' can become incorrect without. Disable with care. */ #undef volatile + + +#ifdef USE_INLINING +#define INLINE inline +#else +#define INLINE +#endif + +/* Firm statistics need hooks */ +#ifdef FIRM_STATISTICS +#ifndef FIRM_ENABLE_HOOKS +#define FIRM_ENABLE_HOOKS +#endif +#endif diff --git a/configure.in b/configure.in index 2919b2f8d..df182d177 100644 --- a/configure.in +++ b/configure.in @@ -28,6 +28,21 @@ ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/net/Makefile i dnl generate the config header file AC_CONFIG_HEADER(config.h) +AH_BOTTOM([ +#ifdef USE_INLINING +#define INLINE inline +#else +#define INLINE +#endif + +/* Firm statistics need hooks */ +#ifdef FIRM_STATISTICS +#ifndef FIRM_ENABLE_HOOKS +#define FIRM_ENABLE_HOOKS +#endif +#endif +]) + dnl keep track of the environment set by the user libfirm_conf_env="${CC+CC='$CC'} ${CFLAGS+CFLAGS='$CFLAGS'} ${CPP+CPP='$CPP'} ${CPPFLAGS+CPPFLAGS='$CPPFLAGS'} ${LDFLAGS+LDFLAGS='$LDFLAGS'} ${LIBS+LIBS='$LIBS'}" AC_SUBST(libfirm_conf_env)