[FFmpeg-cvslog] configure: Silence error messages when probing compiler.
ffmpeg | branch: master | Shiz | Mon Aug 3 12:20:59 2015 +0200| [2480da12a41edc084a7b697187ef1844fb6779a5] | committer: Michael Niedermayer configure: Silence error messages when probing compiler. On Xcode's clang on OS X, $cc --version will output a 'Configured with:' line to stderr, which clobbers the configure script output. As this line serves no further purpose, it should be silenced. The same applies to apple-gcc 4.2.1, which complains that it can not understand the kernel version it is running on. Reviewed-by: Carl Eugen Hoyos Signed-off-by: Michael Niedermayer > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2480da12a41edc084a7b697187ef1844fb6779a5 --- configure |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 0f126bd..124b87f 100755 --- a/configure +++ b/configure @@ -3551,8 +3551,8 @@ probe_cc(){ true # no-op to avoid reading stdin in following checks elif $_cc -v 2>&1 | grep -q '^gcc.*LLVM'; then _type=llvm_gcc -gcc_extra_ver=$(expr "$($_cc --version | head -n1)" : '.*\((.*)\)') -_ident="llvm-gcc $($_cc -dumpversion) $gcc_extra_ver" +gcc_extra_ver=$(expr "$($_cc --version 2>/dev/null | head -n1)" : '.*\((.*)\)') +_ident="llvm-gcc $($_cc -dumpversion 2>/dev/null) $gcc_extra_ver" _depflags='-MMD -MF $(@:.o=.d) -MT $@' _cflags_speed='-O3' _cflags_size='-Os' @@ -3616,7 +3616,7 @@ probe_cc(){ _flags_filter=tms470_flags elif $_cc -v 2>&1 | grep -q clang; then _type=clang -_ident=$($_cc --version | head -n1) +_ident=$($_cc --version 2>/dev/null | head -n1) _depflags='-MMD -MF $(@:.o=.d) -MT $@' _cflags_speed='-O3' _cflags_size='-Os' ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] configure: Silence error messages when probing compiler
ffmpeg | branch: master | Shiz | Mon Aug 3 12:44:44 2015 +0200| [b197f78329615893201c0e241d00b71b7c749dbb] | committer: Luca Barbato configure: Silence error messages when probing compiler On Xcode's clang on OS X, $cc --version will output a 'Configured with:' line to stderr, which clobbers the configure script output. As this line serves no further purpose, it should be silenced. The same applies to apple-gcc 4.2.1, which complains that it can not understand the kernel version it is running on. Signed-off-by: Luca Barbato > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b197f78329615893201c0e241d00b71b7c749dbb --- configure |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 482be43..2c3e77a 100755 --- a/configure +++ b/configure @@ -2939,8 +2939,8 @@ probe_cc(){ if $_cc -v 2>&1 | grep -q '^gcc.*LLVM'; then _type=llvm_gcc -gcc_extra_ver=$(expr "$($_cc --version | head -n1)" : '.*\((.*)\)') -_ident="llvm-gcc $($_cc -dumpversion) $gcc_extra_ver" +gcc_extra_ver=$(expr "$($_cc --version 2>/dev/null | head -n1)" : '.*\((.*)\)') +_ident="llvm-gcc $($_cc -dumpversion 2>/dev/null) $gcc_extra_ver" _depflags='-MMD -MF $(@:.o=.d) -MT $@' _cflags_speed='-O3' _cflags_size='-Os' @@ -3003,7 +3003,7 @@ probe_cc(){ _flags_filter=tms470_flags elif $_cc -v 2>&1 | grep -q clang; then _type=clang -_ident=$($_cc --version | head -n1) +_ident=$($_cc --version 2>/dev/null | head -n1) _depflags='-MMD -MF $(@:.o=.d) -MT $@' _cflags_speed='-O3' _cflags_size='-Os' ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog