diff options
author | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-18 21:48:09 +0000 |
---|---|---|
committer | aurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-10-18 21:48:09 +0000 |
commit | 7cb2c21193bdc53be6df34f7b12838b53469d900 (patch) | |
tree | 83991b00a6b5145d37a683402dfc462f6371c4f1 /configure | |
parent | 2b7e9844b6d3aceb595cf333e82ff294c8b61be2 (diff) |
add cross-compiling support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16805 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -317,6 +317,7 @@ Audio output: Miscellaneous options: --enable-runtime-cpudetection Enable runtime CPU detection [disable] + --enable-cross-compile Enable cross-compilation [autodetect] --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] @@ -414,6 +415,7 @@ _cc=cc test "$CC" && _cc="$CC" _as=auto _runtime_cpudetection=no +_cross_compile=auto for ac_option do case "$ac_option" in --target=*) @@ -455,6 +457,12 @@ for ac_option do --disable-runtime-cpudetection) _runtime_cpudetection=no ;; + --enable-cross-compile) + _cross_compile=yes + ;; + --disable-cross-compile) + _cross_compile=no + ;; --install-path=*) _install=`echo $ac_option | cut -d '=' -f 2 | sed 's/\/$//'`"/install" ;; @@ -714,6 +722,21 @@ echocheck "host cc" test "$_host_cc" || _host_cc=$_cc echores $_host_cc +echocheck "cross compilation" +if test $_cross_compile = auto ; then + cat > $TMPC << EOF +int main() { return 0; } +EOF + _cross_compile=yes + cc_check && "$TMPO" && _cross_compile=no +fi +echores $_cross_compile + +if test $_cross_compile = yes; then + tmp_run() { + return 0 + } +fi # --- @@ -1541,6 +1564,8 @@ for ac_option do --with-extralibdir=*) ;; --enable-runtime-cpudetection) ;; --disable-runtime-cpudetection) ;; + --enable-cross-compile) ;; + --disable-cross-compile) ;; --install-path=*) ;; --with-install=*) ;; |