[FFmpeg-devel] [PATCH] Change Regex to detect MSVC 2010 and MSVC 2012

nicolas graziano nicolas.graziano at gmail.com
Fri Apr 25 15:14:00 CEST 2014


French MSVC output : versionÿ17.00.61030  for the version number
Only use the numeric part for version detection.

Signed-off-by: Nicolas Graziano <nicolas.graziano at gmail.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 7f34e9a..ddffdff 100755
--- a/configure
+++ b/configure
@@ -2913,7 +2913,7 @@ case "$toolchain" in
         # behaviour if the regexp was unable to match anything, since this
         # successfully parses the version number of existing supported
         # versions that require the converter (MSVC 2010 and 2012).
-        cl_major_ver=$(cl 2>&1 | sed -n 's/.*Version
\([[:digit:]]\{1,\}\)\..*/\1/p')
+        cl_major_ver=$(cl 2>&1 | sed -n
's/.*\([[:digit:]]\{2,\}\)\.[[:digit:]]*\..*/\1/p')
         if [ -z "$cl_major_ver" ] || [ $cl_major_ver -ge 18 ]; then
             cc_default="cl"
         else
-- 
1.8.3.msysgit.0


More information about the ffmpeg-devel mailing list