From 388ec32d79616bbb9a69f67dea0bad1751d46f48 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 31 Oct 2012 19:40:41 +0100 Subject: configure: fix --with-parallelism, --without-parallelism "make -jyes" considered useless Change-Id: I044e95f76e8ea961e781e75c4b6923e700e0d375 --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 145569b95917..b420286e2031 100644 --- a/configure.ac +++ b/configure.ac @@ -12531,8 +12531,13 @@ dnl =================================================================== dnl Number of CPUs to use during the build dnl =================================================================== AC_MSG_CHECKING([for number of processors to use]) -if test -n "$with_parallelism"; then - PARALLELISM=$with_parallelism +# plain --with-parallelism is just the default +if test -n "$with_parallelism" -a "$with_parallelism" != "yes"; then + if test "$with_parallelism" = "no"; then + PARALLELISM=1 + else + PARALLELISM=$with_parallelism + fi else if test "$enable_icecream" = "yes"; then PARALLELISM="10" -- cgit v1.2.3