From 80251acb64d54477dc93e6e0a0cfd359844c32ef Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 10 Apr 2021 16:15:25 +0000 Subject: build system: configure: automatically detect make mode if not already set. --- configure | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3