Fix suncc ident string (hopefully)
authorMåns Rullgård <mans@mansr.com>
Sun, 1 Aug 2010 16:13:12 +0000 (16:13 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 1 Aug 2010 16:13:12 +0000 (16:13 +0000)
Originally committed as revision 24652 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 624c5ae..4619ab1 100755 (executable)
--- a/configure
+++ b/configure
@@ -1889,7 +1889,7 @@ elif $cc -v 2>&1 | grep -q clang; then
 elif $cc -V 2>&1 | grep -q Sun; then
     cc_type=suncc
     cc_version="AV_STRINGIFY(__SUNPRO_C)"
-    cc_ident=$($cc -V | head -n1)
+    cc_ident=$($cc -V 2>&1 | head -n1 | cut -d' ' -f 2-)
     DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\," -e "1!s,^.*: , ," > $(@:.o=.d)'
     DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -xM1'
     speed_cflags='-O5'