fix configure.in so autoheader produces a correct config.h.in again
authorMatthias Braun <matze@braunis.de>
Fri, 15 Dec 2006 12:29:51 +0000 (12:29 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 15 Dec 2006 12:29:51 +0000 (12:29 +0000)
[r8463]

config.h.in
configure.in

index 9fe115e..429acd0 100644 (file)
 /* 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
index 2919b2f..df182d1 100644 (file)
@@ -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)