]> git.sesse.net Git - ffmpeg/commitdiff
configure: fix gcc detection for v2.95
authorMåns Rullgård <mans@mansr.com>
Mon, 10 Aug 2009 17:25:42 +0000 (17:25 +0000)
committerMåns Rullgård <mans@mansr.com>
Mon, 10 Aug 2009 17:25:42 +0000 (17:25 +0000)
Originally committed as revision 19619 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index e55cfdc2eceff5007f85996241060ba22fbec057..865b590847f0b25e4f9c2301f74b3f13bb4fa396 100755 (executable)
--- a/configure
+++ b/configure
@@ -1508,7 +1508,7 @@ filter_cflags=echo
 filter_cppflags=echo
 filter_asflags=echo
 
-if   $cc --version 2>/dev/null | grep -qi gcc; then
+if   $cc -v 2>&1 | grep -qi ^gcc; then
     cc_type=gcc
     CC_DEPFLAGS='-MMD'
     AS_DEPFLAGS='-MMD'