From: Michael Beck Date: Thu, 16 Jun 2005 14:41:18 +0000 (+0000) Subject: added option for disabling inplace edges X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=8128f777cc27c17fd528e09fd8b639a40a53bb1b;p=libfirm added option for disabling inplace edges [r6029] --- diff --git a/config.h.in b/config.h.in index b9c3bf541..db55620fb 100644 --- a/config.h.in +++ b/config.h.in @@ -101,6 +101,9 @@ /* undef to disable inlining */ #undef USE_INLINING +/* Define to 1 if Firm inplace edges are activated */ +#undef FIRM_EDGES_INPLACE + /* Define to 1 if Firm hooks are activated */ #undef FIRM_ENABLE_HOOKS diff --git a/configure b/configure index 2d5f9f317..9be332fbf 100755 --- a/configure +++ b/configure @@ -850,6 +850,7 @@ Optional Features: --enable-heapanalysis Compile with heap analysis. --disable-libiberty disable own libiberty parts --disable-hooks disable Firm hooks + --disable-inplace-edges disable Firm inplace edges --enable-statistics enable Firm statistics --enable-libcore enable libcore debugging --disable-external-effects disable descriptions of external effects in XML @@ -1505,6 +1506,23 @@ else _ACEOF +fi; + +# Check whether --enable-inplace_edges or --disable-inplace_edges was given. +if test "${enable_inplace_edges+set}" = set; then + enableval="$enable_inplace_edges" + if test "$enableval" = yes; then + cat >>confdefs.h <<\_ACEOF +#define FIRM_EDGES_INPLACE 1 +_ACEOF + +fi +else + cat >>confdefs.h <<\_ACEOF +#define FIRM_EDGES_INPLACE 1 +_ACEOF + + fi; # Check whether --enable-statistics or --disable-statistics was given. diff --git a/configure.in b/configure.in index 44c4f549d..4bca26dc9 100644 --- a/configure.in +++ b/configure.in @@ -160,6 +160,16 @@ fi], AC_DEFINE(FIRM_ENABLE_HOOKS) ) +dnl enable Firm inplace edges +dnl ------------- +AC_ARG_ENABLE(inplace_edges, +[ --disable-inplace-edges disable Firm inplace edges], +[if test "$enableval" = yes; then + AC_DEFINE(FIRM_EDGES_INPLACE) +fi], +AC_DEFINE(FIRM_EDGES_INPLACE) +) + dnl enable Firm statistics dnl ------------- AC_ARG_ENABLE(statistics,