summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-08-13 00:59:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-08-13 00:59:48 +0000
commitc2b9685ecadbf07e8b351070eb50febb111ab1e3 (patch)
tree25d9b4229378604109f40da94386c00907d4c431
parent9b7bf3c8665fc5ca80ec73010a6df429bb917298 (diff)
cross compile fix by (allanc at chickenandporn dot com)
Originally committed as revision 3384 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index b45afb9702..7cfa5051e5 100755
--- a/configure
+++ b/configure
@@ -799,7 +799,11 @@ EOF
have_lrintf="no"
if $cc $extralibs -o $TMPE $TMPC 2> /dev/null ; then
have_lrintf="yes"
- $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
+ # allanc@chickenandporn.com: cannot execute cross-compiled
+ # code on the host. Only execute if not cross-compiling.
+ if test -z "$cross_prefix" ; then
+ $TMPE 2> /dev/null > /dev/null || have_lrintf="no"
+ fi
fi
_restrict=