aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-10-14 17:50:42 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-10-14 17:50:42 +0000
commit487a54d71daf338e93281758510dffce051842c1 (patch)
treef58ef3274bace947f7edc5d9ca39e47d33e22f23 /configure
parent0e7eed09ce0c7387b2b5157dc51dc339e1e39086 (diff)
downloadffmpeg-487a54d71daf338e93281758510dffce051842c1.tar.gz
cross compiling support
Originally committed as revision 1034 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 19527df9d3..2029edcd96 100755
--- a/configure
+++ b/configure
@@ -267,6 +267,8 @@ ar="${cross_prefix}${ar}"
ranlib="${cross_prefix}${ranlib}"
strip="${cross_prefix}${strip}"
+if test -z "$cross_prefix" ; then
+
# ---
# big/little endian test
cat > $TMPC << EOF
@@ -283,6 +285,15 @@ else
echo big/little test failed
fi
+else
+
+# if cross compiling, cannot launch a program, so make a static guess
+if test "$cpu" = "powerpc" -o "$cpu" = "mips" ; then
+ bigendian="yes"
+fi
+
+fi
+
# ---
# check availability of some header files