From 482bef3a788161bf7473535ef9fbbe2198a1e9cd 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(+) (limited to 'configure') 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