[MPlayer-cvslog] r33580 - trunk/configure

reimar subversion at mplayerhq.hu
Sat Jun 11 16:55:12 CEST 2011


Author: reimar
Date: Sat Jun 11 16:54:59 2011
New Revision: 33580

Log:
Set host_cc after cross-compile check.

This allows to set "cc" as a more sensible, almost always
working default when cross-compiling instead of using
the cross-compiler as host-cc which is just nonsense.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sat Jun 11 15:52:11 2011	(r33579)
+++ trunk/configure	Sat Jun 11 16:54:59 2011	(r33580)
@@ -1696,10 +1696,6 @@ fi
 echo "Detected operating system: $system_name"
 echo "Detected host architecture: $host_arch"
 
-echocheck "host cc"
-test "$_host_cc" || _host_cc=$_cc
-echores $_host_cc
-
 echocheck "cross compilation"
 if test $_cross_compile = auto ; then
   _cross_compile=yes
@@ -1711,8 +1707,13 @@ if test $_cross_compile = yes; then
   tmp_run() {
     return 0
   }
+  test "$_host_cc" || _host_cc=cc
 fi
 
+echocheck "host cc"
+test "$_host_cc" || _host_cc=$_cc
+echores $_host_cc
+
 # ---
 
 # now that we know what compiler should be used for compilation, try to find


More information about the MPlayer-cvslog mailing list