summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rwxr-xr-xconfigure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f9d6d374ea28..f245355bd265 100755
--- a/configure.in
+++ b/configure.in
@@ -9026,6 +9026,18 @@ fi
AC_MSG_RESULT([$BUILD_MAX_JOBS])
AC_SUBST(BUILD_MAX_JOBS)
+# =====================================================================
+# determine the parallelism for tail_build
+# =====================================================================
+AC_MSG_CHECKING([for maximum parallelism for gmake])
+if test $BUILD_MAX_JOBS -gt $BUILD_NCPUS ; then
+ GMAKE_PARALLELISM="$BUILD_MAX_JOBS"
+else
+ GMAKE_PARALLELISM="$BUILD_NCPUS"
+fi
+AC_MSG_RESULT([$GMAKE_PARALLELISM])
+AC_SUBST(GMAKE_PARALLELISM)
+
dnl ===================================================================
dnl Setting up the environment.
dnl ===================================================================