a config option --enable-charmdebug/--disable-charmdebug
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 23 Apr 2010 16:16:49 +0000 (11:16 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 23 Apr 2010 16:16:49 +0000 (11:16 -0500)
default is enabled

src/scripts/configure
src/scripts/configure.in
src/scripts/conv-autoconfig.h.in

index d707e6a2d82fd1b0e04d1a029c836996e632eb90..fe439e04e10c682c842e3089b57e870e07adb4d0 100755 (executable)
@@ -1191,6 +1191,7 @@ Optional Features:
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --enable-tracing        enable tracing modules
+  --enable-charmdebug     enable charmDebug
   --enable-replay         enable record/replay
 
 _ACEOF
@@ -1639,6 +1640,7 @@ fi
 
 if test "$enable_tracing" = "no"
 then
+  echo "Charm tracing is disabled"
 
 cat >>confdefs.h <<_ACEOF
 #define CMK_TRACE_DISABLED 1
@@ -1646,6 +1648,30 @@ _ACEOF
 
 fi
 
+# Check whether --enable-charmdebug was given.
+if test "${enable_charmdebug+set}" = set; then
+  enableval=$enable_charmdebug; enable_charmdebug=$enableval
+else
+  enable_charmdebug=yes
+fi
+
+
+if test "$enable_charmdebug" = "no"
+then
+  echo "CharmDebug is disabled"
+
+cat >>confdefs.h <<_ACEOF
+#define CMK_CHARMDEBUG 0
+_ACEOF
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define CMK_CHARMDEBUG 1
+_ACEOF
+
+fi
+
 # Check whether --enable-replay was given.
 if test "${enable_replay+set}" = set; then
   enableval=$enable_replay; enable_replay=$enableval
@@ -1654,8 +1680,14 @@ else
 fi
 
 
+if test "$enable_charmdebug" = "no"
+then
+  enable_replay=no
+fi
+
 if test "$enable_replay" = "no"
 then
+  echo "Charm record/replay is disabled"
 
 cat >>confdefs.h <<_ACEOF
 #define CMK_REPLAYSYSTEM 0
index d69ac81d107461385412326dee06079d912073c1..4de37faf5c0dda2434837a7ffadb58ea99c8622a 100644 (file)
@@ -20,17 +20,38 @@ AC_ARG_ENABLE([tracing],
 
 if test "$enable_tracing" = "no"
 then
+  echo "Charm tracing is disabled"
   AC_DEFINE_UNQUOTED(CMK_TRACE_DISABLED, 1, [disable tracing])
 fi
 
+AC_ARG_ENABLE([charmdebug],
+            [AS_HELP_STRING([--enable-charmdebug],
+              [enable charmDebug])],
+            [enable_charmdebug=$enableval],
+            [enable_charmdebug=yes])
+
+if test "$enable_charmdebug" = "no"
+then
+  echo "CharmDebug is disabled"
+  AC_DEFINE_UNQUOTED(CMK_CHARMDEBUG, 0, [disable charmdebug])
+else
+  AC_DEFINE_UNQUOTED(CMK_CHARMDEBUG, 1, [enable charmdebug])
+fi
+
 AC_ARG_ENABLE([replay],
             [AS_HELP_STRING([--enable-replay],
               [enable record/replay])],
             [enable_replay=$enableval],
             [enable_replay=yes])
 
+if test "$enable_charmdebug" = "no"
+then
+  enable_replay=no
+fi
+
 if test "$enable_replay" = "no"
 then
+  echo "Charm record/replay is disabled"
   AC_DEFINE_UNQUOTED(CMK_REPLAYSYSTEM, 0, [disable replay])
 fi
 
index 9e281b9eb98ba1d8ffb4a4fec0256e8654cf6c1e..189f74a473bf8a3615b48a360b112717d1bc5145 100644 (file)
@@ -12,6 +12,9 @@
 /* build MPI. */
 #undef CMK_BUILD_ON_MPI
 
+/* enable charmdebug */
+#undef CMK_CHARMDEBUG
+
 /* whether ucontext has pointer */
 #undef CMK_CONTEXT_FPU_POINTER