From 5498e865f122aee6fbc88713df391b0b9a78d4d8 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Mon, 12 Feb 2007 08:44:58 +0000 Subject: [PATCH] Pyrex detection: strip a-z suffix to correctly detect Pyrex 0.9.5.1a. Reported by: Danny Reeves svn path=/trunk/yasm/; revision=1764 --- m4/pyrex.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/pyrex.m4 b/m4/pyrex.m4 index b7610c29..379c5e3d 100644 --- a/m4/pyrex.m4 +++ b/m4/pyrex.m4 @@ -6,7 +6,7 @@ AC_DEFUN([PYREX_CHECK_VERSION], from Pyrex.Compiler.Version import version # split strings by '.' and convert to numeric. Append some zeros # because we need at least 4 digits for the hex conversion. -pyrexver = map(int, version.split('.')) + [[0, 0, 0]] +pyrexver = map(int, version.rstrip('abcdefghijklmnopqrstuvwxyz').split('.')) + [[0, 0, 0]] pyrexverhex = 0 for i in xrange(0, 4): pyrexverhex = (pyrexverhex << 8) + pyrexver[[i]] minver = map(int, '$1'.split('.')) + [[0, 0, 0]] -- 2.40.0