Python 2.7(.0) reports "Python 2.7" for `python --version`. Instead of 
checking for a micro version that is not there, just see to it that the 
minor is right.

---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: coccinelle-0.2.5-rc2/configure
===================================================================
--- coccinelle-0.2.5-rc2.orig/configure
+++ coccinelle-0.2.5-rc2/configure
@@ -198,7 +198,7 @@ We need  3.XX",
 if($python) {
     if(check_config(
        "python --version 2>&1 |",
-       "Python 2\.[567]\..*",
+       qr/Python 2\.[567]\b/,
        "python is present",
        "python is missing or is not a good version."
        ))

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to