nixgemacht
[libfirm] / configure
index 9999106..c795493 100755 (executable)
--- a/configure
+++ b/configure
@@ -829,6 +829,7 @@ Optional Features:
   --enable-profile        enable profiling
   --enable-autodoc        enable auto documentation
   --enable-firmjni        check for tools necesarry to construct a java native interface for Firm
+  --enable-heapanalysis       Compile with heap analysis.
   --disable-libiberty     disable own libiberty parts
   --enable-statistics     enable Firm statistics
 
@@ -1209,6 +1210,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 ac_output_file="Makefile MakeRules ir/Makefile ir/adt/Makefile ir/debug/Makefile \
                ir/tv/Makefile ir/common/Makefile ir/ident/Makefile ir/ir/Makefile \
                ir/ana/Makefile ir/tr/Makefile ir/st/Makefile ir/stat/Makefile \
+               ir/opt/Makefile ir/external/Makefile \
                testprograms/Makefile firmjni/Makefile firmjni/testprograms/Makefile \
                libfirm.doxygen"
 
@@ -1257,18 +1259,19 @@ fi;
 # Check whether --enable-inlining or --disable-inlining was given.
 if test "${enable_inlining+set}" = set; then
   enableval="$enable_inlining"
-  enable_inlining=yes
-else
   if test "$enableval" = yes; then
   cat >>confdefs.h <<\_ACEOF
 #define USE_INLINING 1
 _ACEOF
 
 fi
-
-fi;
+else
+  cat >>confdefs.h <<\_ACEOF
+#define USE_INLINING 1
+_ACEOF
 
 
+fi;
 
 # Check whether --enable-profile or --disable-profile was given.
 if test "${enable_profile+set}" = set; then
@@ -1304,6 +1307,26 @@ else
 fi;
 
 
+# Check whether --enable-heapanalysis or --disable-heapanalysis was given.
+if test "${enable_heapanalysis+set}" = set; then
+  enableval="$enable_heapanalysis"
+  enable_heapanalysis=$enableval
+else
+  enable_heapanalysis="no"
+fi;
+if test "$enable_heapanalysis" = "no"; then
+  echo "$as_me:$LINENO: result: heapanalysis disabled" >&5
+echo "${ECHO_T}heapanalysis disabled" >&6
+else
+  cat >>confdefs.h <<\_ACEOF
+#define DO_HEAPANALYSIS 1
+_ACEOF
+
+  echo "$as_me:$LINENO: result: heapanalysis enabled" >&5
+echo "${ECHO_T}heapanalysis enabled" >&6
+fi
+
+
 # Check whether --enable-libiberty or --disable-libiberty was given.
 if test "${enable_libiberty+set}" = set; then
   enableval="$enable_libiberty"
@@ -4857,10 +4880,10 @@ s,@ECHO_T@,$ECHO_T,;t t
 s,@LIBS@,$LIBS,;t t
 s,@libfirm_conf_env@,$libfirm_conf_env,;t t
 s,@enable_debug_libfirm@,$enable_debug_libfirm,;t t
-s,@enable_inlining@,$enable_inlining,;t t
 s,@enable_profile_libfirm@,$enable_profile_libfirm,;t t
 s,@enable_auto_documentation@,$enable_auto_documentation,;t t
 s,@enable_firm_jni@,$enable_firm_jni,;t t
+s,@enable_heapanalysis@,$enable_heapanalysis,;t t
 s,@disable_libiberty@,$disable_libiberty,;t t
 s,@enable_statistics@,$enable_statistics,;t t
 s,@CC@,$CC,;t t