diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-10-31 19:40:41 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-10-31 19:43:07 +0100 |
commit | 388ec32d79616bbb9a69f67dea0bad1751d46f48 (patch) | |
tree | 4ecc0dd9d6551f9159a36d6188a282308a27a757 /configure.ac | |
parent | f09e4ae2737acb4b3e309e7342162439904939a1 (diff) |
configure: fix --with-parallelism, --without-parallelism
"make -jyes" considered useless
Change-Id: I044e95f76e8ea961e781e75c4b6923e700e0d375
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files 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" |