From 80251acb64d54477dc93e6e0a0cfd359844c32ef Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 10 2021 20:54:36 +0000 Subject: build system: configure: automatically detect make mode if not already set. --- 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