aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2006-01-24 19:24:22 +0000
committerPaweł Kołodziejski2006-01-24 19:24:22 +0000
commit900b17b247bfe3376a772492f6535e956d3ba60d (patch)
tree2be60ef8c9f037da8d743ede88f4059716b5a2db
parent7d6bc98516aeacf38b52d973f542adf2f07fc796 (diff)
downloadscummvm-rg350-900b17b247bfe3376a772492f6535e956d3ba60d.tar.gz
scummvm-rg350-900b17b247bfe3376a772492f6535e956d3ba60d.tar.bz2
scummvm-rg350-900b17b247bfe3376a772492f6535e956d3ba60d.zip
don't execute binary for libmpeg2 test when cross compiling
svn-id: r20158
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 1f1d2d8da5..54f01ebf65 100755
--- a/configure
+++ b/configure
@@ -1123,7 +1123,13 @@ int main(void) {
return 1;
}
EOF
- cc_check $LDFLAGS $CXXFLAGS $MPEG2_CFLAGS $MPEG2_LIBS -lmpeg2 && $TMPO && _mpeg2=yes
+
+ if test -n "$_host"; then
+ # don't execute while cross compiling
+ cc_check $LDFLAGS $CXXFLAGS $MPEG2_CFLAGS $MPEG2_LIBS -lmpeg2 && _mpeg2=yes
+ else
+ cc_check $LDFLAGS $CXXFLAGS $MPEG2_CFLAGS $MPEG2_LIBS -lmpeg2 && $TMPO && _mpeg2=yes
+ fi
fi
if test "$_mpeg2" = yes ; then
_def_mpeg2='#define USE_MPEG2'