summaryrefslogtreecommitdiff
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:35 +0000
commit1cd97c01ce6bdc5116a1b56ae4189927f92cc774 (patch)
treeab42307d35243af69d6a292c14e852f55210719a
parentbe97f4c223cce6e716f3fd044c6829ffc97b7c45 (diff)
downloadbautomake-1cd97c01ce6bdc5116a1b56ae4189927f92cc774.tar.bz2
bautomake-1cd97c01ce6bdc5116a1b56ae4189927f92cc774.tar.xz
build system: configure: automatically detect make mode if not already set.
-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