is_SubClass_of() check only once for transitive closure state
[libfirm] / configure.in
index 2919b2f..04532d8 100644 (file)
@@ -28,6 +28,25 @@ 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_TOP([
+
+])
+
+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)
@@ -89,9 +108,9 @@ dnl -------------
 AC_ARG_ENABLE(debug,
 [  --enable-debug          enable assertions and additional debugging routines],
 [if test "$enableval" = yes; then
-  AC_DEFINE(DEBUG_libfirm)
+  AC_DEFINE([DEBUG_libfirm], [], [define to enable debugging stuff])
 else
-  AC_DEFINE(NDEBUG)
+  AC_DEFINE([NDEBUG], [], [Define to disable assertion checking.])
 fi])
 AC_SUBST(enable_debug_libfirm)