added --disable-ccs to disable CCS at compile time.
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 23 Jul 2011 04:30:26 +0000 (23:30 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 23 Jul 2011 04:30:26 +0000 (23:30 -0500)
src/arch/net/conv-common.h
src/scripts/configure
src/scripts/configure.in
src/scripts/conv-autoconfig.h.in

index aadec43b392889597ee26c2b9f0a51e8b307aff4..96d8e53abd079208b7dda4d78551e4d6276136e0 100644 (file)
@@ -1,8 +1,6 @@
 
 #define CMK_NET_VERSION                                           1
 
-#define CMK_CCS_AVAILABLE                                  1
-
 #define CMK_CMIPRINTF_IS_A_BUILTIN                         1
 
 #define CMK_CMIDELIVERS_USE_COMMON_CODE                    1
index 2ad1f65d12ba7feb79ca3d41a19a802349cf3e1d..5fe68992b8a8b84a8dbaffdad41feb307f2d034b 100755 (executable)
@@ -604,6 +604,7 @@ enable_stats
 enable_tracing
 enable_charmdebug
 enable_replay
+enable_ccs
 enable_controlpoint
 with_numa
 with_lbtime_type
@@ -1226,6 +1227,7 @@ Optional Features:
   --enable-tracing        enable tracing modules
   --enable-charmdebug     enable charmDebug
   --enable-replay         enable record/replay
+  --enable-ccs            enable CCS
   --enable-controlpoint   enable control point
 
 Optional Packages:
@@ -1808,6 +1810,30 @@ _ACEOF
 
 fi
 
+# Check whether --enable-ccs was given.
+if test "${enable_ccs+set}" = set; then :
+  enableval=$enable_ccs;
+else
+  enable_ccs=yes
+fi
+
+
+if test "$enable_ccs" = "no"
+then
+  Echo "CCS is disabled"
+
+cat >>confdefs.h <<_ACEOF
+#define CMK_CCS_AVAILABLE 0
+_ACEOF
+
+else
+
+cat >>confdefs.h <<_ACEOF
+#define CMK_CCS_AVAILABLE 1
+_ACEOF
+
+fi
+
 # Check whether --enable-controlpoint was given.
 if test "${enable_controlpoint+set}" = set; then :
   enableval=$enable_controlpoint; enable_controlpoint=$enableval
index 1d1ee50b7dbd6e521fe301c978d0bd0b80a4ff58..5abb27424ac79beefb3677a0bdfc63ef23d4356d 100644 (file)
@@ -89,6 +89,19 @@ then
   AC_DEFINE_UNQUOTED(CMK_REPLAYSYSTEM, 0, [disable replay])
 fi
 
+AC_ARG_ENABLE([ccs],
+            [AS_HELP_STRING([--enable-ccs],
+              [enable CCS])], ,
+            [enable_ccs=yes])
+
+if test "$enable_ccs" = "no"
+then
+  Echo "CCS is disabled" 
+  AC_DEFINE_UNQUOTED(CMK_CCS_AVAILABLE, 0, [disable ccs])
+else
+  AC_DEFINE_UNQUOTED(CMK_CCS_AVAILABLE, 1, [enable ccs])
+fi
+
 AC_ARG_ENABLE([controlpoint],
             [AS_HELP_STRING([--enable-controlpoint],
               [enable control point])],
index 4c3ca130dce971d872094b76e78b144775e2374a..498a6c9285c3dd80f67ed17c777f6893db936441 100644 (file)
@@ -12,6 +12,9 @@
 /* build MPI. */
 #undef CMK_BUILD_ON_MPI
 
+/* enable ccs */
+#undef CMK_CCS_AVAILABLE
+
 /* enable charmdebug */
 #undef CMK_CHARMDEBUG