summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-10 16:15:25 +0000
committermidipix <writeonce@midipix.org>2021-04-10 20:54:49 +0000
commit482bef3a788161bf7473535ef9fbbe2198a1e9cd (patch)
tree401216a36fee4cead0b84edaf51519cf48db0aca /configure
parent0e867e9a3b76e7f65d2f99d03ea390a03a1987de (diff)
downloadperk-482bef3a788161bf7473535ef9fbbe2198a1e9cd.tar.bz2
perk-482bef3a788161bf7473535ef9fbbe2198a1e9cd.tar.xz
build system: configure: automatically detect make mode if not already set.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index ff05411..9224416 100755
--- a/configure
+++ b/configure
@@ -611,6 +611,15 @@ common_defaults()
if [ -z "$mb_makemode" ]; then
mb_makemode='posix'
+
+ printf '%s\n%s\n%s\n\n%s\n\n' \
+ 'ifeq (a,b)' \
+ 'VAR = val' \
+ 'endif' \
+ 'all:' \
+ | ${mb_make} -s -f - 2>/dev/null \
+ && mb_makemode='modern'
+
fi
# shell