summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 1fbce3b5..b65bbaf5 100755
--- a/configure
+++ b/configure
@@ -141,6 +141,8 @@ bindir='bin'
datadir='share/txr'
mandir='share/man'
maintainer=
+parallelmake=
+parallelmake_given=
make=
cross=
compiler_prefix=
@@ -332,6 +334,13 @@ maintainer [$maintainer]
the parser.l and parser.y files will have no effect. In maintainer mode,
also, c90 is used if compiling the code as C.
+parallelmake [$parallelmake]
+
+ Boolean. If set to 'y', it specifies that parallel building with make -j
+ is permitted. Otherwise the Makefile asserts no parallelism with
+ a .NOTOPARALLEL: directive. The above maintainer mode also implies
+ parallel building being permited.
+
prefix [$prefix]
Specifies root directory where the software will ultimately be installed and
@@ -886,6 +895,9 @@ termios_define := $termios_define
# do we compile in debug support?
debug_support := $debug_support
+# allow parallel make?
+parallelmake := $parallelmake
+
# EXE suffix
EXE := $exe
@@ -1777,6 +1789,13 @@ if [ $maintainer ] ; then
fi
#
+# Check for parallel build
+#
+if [ $maintainer ] && ! [ $parallelmake_given ] ; then
+ parallelmake=y
+fi
+
+#
# sys/wait.h
#