# HG changeset patch
# User t_mrc-ct@sourceforge.jp
# Date 1338804326 -32400
# Branch GECKO1007_2012082414_RELBRANCH
# Node ID 1af441d7a671f492ca231e2ea29d2f500bbbc34d
# Parent  b13479ba6cd2b2855fffb4ce5586388ffe679262
use $_SUBDIR_CC instead of $CC

diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -1945,10 +1945,10 @@
     MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
 
     # What Tenfourbird tuned for
-    if test "$CC"
+    if test "$_SUBDIR_CC"
     then
      changequote(,)
-     tenfourbird_mtune_test="`echo "$CC" | sed -E -ne 's|.*-mtune=([0-9a-zA-Z]+).*|\1|p' -e 'd'`" 
+     tenfourbird_mtune_test="`echo "$_SUBDIR_CC" | sed -E -ne 's#.*[[:blank:]]-mtune=([[:alnum:]]+)([[:blank:]].*)?$#\1#p' -e 'd'`" 
      changequote([,])
      case "$tenfourbird_mtune_test" in
      "G3"|"740"|"750")
