From c5e54ca6234d9568e1185e1ff92f4d04c41faa6c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Apr 2015 02:11:35 +0300 Subject: Add configure option for enable/disable CilkPlus support. By default disabled. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index dbf134319..d8abded8c 100755 --- a/configure.ac +++ b/configure.ac @@ -368,6 +368,17 @@ esac],[googleprofiler_enabled=false]) AM_CONDITIONAL(ENABLE_GOOGLE_PROFILER, test x$googleprofiler_enabled = xtrue) +# Enable cilk plus +AC_ARG_ENABLE(cilkplus, +[ --enable-cilkplus Turn on parallelisation with CilkPlus], +[case "${enableval}" in + yes) cilkplus_enabled=true ;; + no) cilkplus_enabled=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-cilkplus) ;; +esac],[cilkplus_enabled=false]) + +AM_CONDITIONAL(ENABLE_CILKPLUS, test x$cilkplus_enabled = xtrue) + AC_CONFIG_FILES([ manaplus.spec Makefile -- cgit v1.2.3-70-g09d2