From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1iqIzT-0003zP-HS for ptxdist@pengutronix.de; Sat, 11 Jan 2020 16:47:59 +0100 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990947AbgAKPrxkwhK5 (ORCPT ); Sat, 11 Jan 2020 16:47:53 +0100 Date: Sat, 11 Jan 2020 16:47:52 +0100 From: Ladislav Michl Message-ID: <20200111154752.GA86825@lenoch> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH] configure: fix GNU Make version check List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Currently check for GNU Make version expects only major and minor number leading to following warning with make-4.2.1: checking for make... /usr/bin/make ./configure: line 6749: test: 4.2: integer expression expected Signed-off-by: Ladislav Michl --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0549c38da..0b07757b2 100644 --- a/configure.ac +++ b/configure.ac @@ -296,8 +296,9 @@ if test -z "$MAKE"; then AC_MSG_ERROR([make could not be found, please install]) fi MAKE_VERSION=`$MAKE --version 2>/dev/null | $SED -ne "s/^GNU Make \([[0-9]]\+\.[[0-9.]]\+\).*$/\1/p"` +MAJOR_MAKE_VERSION="${MAKE_VERSION%%.*}" MINOR_MAKE_VERSION="${MAKE_VERSION#*.}" -MAJOR_MAKE_VERSION="${MAKE_VERSION%.*}" +MINOR_MAKE_VERSION="${MINOR_MAKE_VERSION%%.*}" if test -z "${MAJOR_MAKE_VERSION}" -o -z "${MINOR_MAKE_VERSION}" ; then AC_MSG_ERROR([could not parse make version. GNU make >= 3.81 required]) fi -- 2.25.0.rc2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de