mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] configure: fix GNU Make version check
@ 2020-01-11 15:47 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2020-01-11 15:47 UTC (permalink / raw)
  To: ptxdist

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 <ladis@linux-mips.org>
---
 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-11 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11 15:47 [ptxdist] [PATCH] configure: fix GNU Make version check Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox