diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-26 14:40:59 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-26 14:40:59 +0000 |
commit | b815c5c94a295b4e4943c60f706b6b59d39c95e1 (patch) | |
tree | 382814ce5ac1910327498990a1c9c4ed5a7dddb9 /configure | |
parent | 1a767ecb5118cd7539b0d12c9f46262f195de435 (diff) | |
download | mpv-b815c5c94a295b4e4943c60f706b6b59d39c95e1.tar.bz2 mpv-b815c5c94a295b4e4943c60f706b6b59d39c95e1.tar.xz |
--host-cc option for crosscompiling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13478 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -268,6 +268,7 @@ Audio output: Miscellaneous options: --enable-runtime-cpudetection Enable runtime CPU detection [disable] --cc=COMPILER use this C compiler to build MPlayer [gcc] + --host-cc=COMPILER use this C compiler to build apps needed for the build process [gcc] --as=ASSEMBLER use this assembler to build MPlayer [as] --target=PLATFORM target platform (i386-linux, arm-linux, etc) --enable-static build a statically linked binary. Set further linking @@ -366,6 +367,9 @@ for ac_option do --cc=*) _cc=`echo $ac_option | cut -d '=' -f 2` ;; + --host-cc=*) + _host_cc=`echo $ac_option | cut -d '=' -f 2` + ;; --as=*) _as=`echo $ac_option | cut -d '=' -f 2` ;; @@ -630,6 +634,13 @@ EOF read _answer fi +echocheck "host cc" +if not test "$_host_cc" ; then + _host_cc=$_cc +fi +echores $_host_cc + + # --- # now that we know what compiler should be used for compilation, try to find @@ -1349,6 +1360,7 @@ for ac_option do # Skip 1st pass --target=*) ;; --cc=*) ;; + --host-cc=*) ;; --as=*) ;; --enable-gcc-checking) ;; --disable-gcc-checking) ;; @@ -6253,6 +6265,7 @@ CONFDIR = \$(DESTDIR)$_confdir LIBDIR = \$(DESTDIR)$_libdir #AR = ar CC = $_cc +HOST_CC = $_host_cc AWK = $_awk RANLIB = $_ranlib INSTALL = $_install |