OSDN Git Service

configure: detect Open64 compiler
authorMåns Rullgård <mans@mansr.com>
Thu, 16 Sep 2010 15:25:10 +0000 (15:25 +0000)
committerMåns Rullgård <mans@mansr.com>
Thu, 16 Sep 2010 15:25:10 +0000 (15:25 +0000)
Originally committed as revision 25135 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 25c6573..05c7d81 100755 (executable)
--- a/configure
+++ b/configure
@@ -1975,6 +1975,14 @@ elif $cc -v 2>&1 | grep -q 'PathScale\|Path64'; then
     AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
     speed_cflags='-O2'
     size_cflags='-Os'
+elif $cc -v 2>&1 | grep -q Open64; then
+    cc_type=open64
+    cc_version=__OPEN64__
+    cc_ident=$($cc -v 2>&1 | head -n1 | tr -d :)
+    CC_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
+    AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@'
+    speed_cflags='-O2'
+    size_cflags='-Os'
 fi
 
 test -n "$cc_type" && enable $cc_type ||