aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-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'