Hello,

on Fedora 14 I get
  $ python --version
  Python 2.7
and thus coccinelle fails to build.

The attached patch fixes this. I tried the more specific
  "Python 2\.[567](\..*)?"
but although it is a valid Perl regexp the check_config() doesn't seem to grok it. Anyway the attached patch is good until Python 2.49 ;)

bye
        michael
diff -up coccinelle-0.2.5-rc2/configure.pyfix coccinelle-0.2.5-rc2/configure
--- coccinelle-0.2.5-rc2/configure.pyfix	2011-01-10 21:23:15.697031565 +0100
+++ coccinelle-0.2.5-rc2/configure	2011-01-10 21:23:41.401164594 +0100
@@ -198,7 +198,7 @@ We need  3.XX",
 if($python) {
     if(check_config(
 	"python --version 2>&1 |",
-	"Python 2\.[567]\..*",
+	"Python 2\.[567]",
 	"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