[FFmpeg-devel] [PATCH] Change Regex to detect MSVC 2010 and MSVC 2012
lucaswang
wbsecg1 at gmail.com
Sat Apr 26 04:53:41 CEST 2014
于 2014/4/25 21:14, nicolas graziano 写道:
> 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
forgot a space?
this works for me: cl_major_ver=$(cl 2>&1 | sed -n 's/.* \([[:digit:]]\{2,\}\)\.[[:digit:]]*\..*/\1/p')
but not this: cl_major_ver=$(cl 2>&1 | sed -n 's/.*\([[:digit:]]\{2,\}\)\.[[:digit:]]*\..*/\1/p')
More information about the ffmpeg-devel
mailing list