aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2014-07-13 00:51:36 +0100
committerRobert Savoye <rob.savoye@linaro.org>2014-07-22 12:26:34 +0000
commitdb161edcd0fa1604f5c3ff0a3ec0907276f64b9d (patch)
treeccc0670f4e11aa57324e254eca50ae649cfe3252 /configure
parent6faf6ea3fae5d931230a28d22bc308887ee9ae87 (diff)
Enable parallelism by default
Also add --enable parallel and --disable parallel option handling and --enable-parallel / --disable-parallel configure options to set the default. Change-Id: I3d41101e2a863490a9efaf5d07a41b6c1a5ed280
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index 42f39752..8fb5a678 100755
--- a/configure
+++ b/configure
@@ -569,6 +569,7 @@ DEJAGNU
LIBTOOL
AUTOMAKE
AUTOCONF
+ENABLE_PARALLEL
ENABLE_SOURCE_UPDATE
ENABLE_SCHROOT_TEST
ENABLE_MAKE_DOCS
@@ -675,6 +676,7 @@ enable_install
enable_make_docs
enable_schroot_test
enable_source_update
+enable_parallel
'
ac_precious_vars='build_alias
host_alias
@@ -1305,6 +1307,8 @@ Optional Features:
--enable-make-docs If you want to enable making package documentation
--enable-schroot-test If you want to used schroot-based testing by default
--enable-source-update If you want to update sources by default
+ --enable-parallel If you want to build with make -j<number of CPUs> by
+ default
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -3815,6 +3819,20 @@ fi
+# Check whether --enable-parallel was given.
+if test "${enable_parallel+set}" = set; then :
+ enableval=$enable_parallel; case "${enableval}" in
+ yes) ENABLE_PARALLEL=yes ;;
+ no) ENABLE_PARALLEL=no ;;
+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bad value ${enableval} for enable-parallel option" >&5
+$as_echo "$as_me: WARNING: bad value ${enableval} for enable-parallel option" >&2;} ;;
+esac
+else
+ ENABLE_PARALLEL=yes
+fi
+
+
+
for ac_prog in autoconf
do