From ae4fbbab2a2a619fe08fc551abbb83bf5cd53323 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 19 Dec 2019 01:00:38 -0800 Subject: configure: better check for missing make. * configure: don't fail with a "unbound variable $3" error if make is not found; correctly print "missing" and quit cleanly. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c24b10ac..f79a71ff 100755 --- a/configure +++ b/configure @@ -499,14 +499,14 @@ if [ -z "$make" ] ; then output=$($make --version 2> /dev/null) || true set -- $output - if [ $# -lt 2 ] || [ $1 != "GNU" -o $2 != "Make" ] ; then + if [ $# -lt 3 ] || [ $1 != "GNU" -o $2 != "Make" ] ; then continue fi break done fi -if [ -z "$make" ] ; then +if [ $# -lt 3 ] ; then printf "missing\n" exit 1 fi -- cgit v1.2.3