aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-30 20:59:26 +0200
committerBastien Bouclet2016-08-30 21:20:00 +0200
commit8ba1bd0bd34feb39b9ac89d1ca90b98570f7cf7f (patch)
tree3fc04b63c240baed6e77a787d9123985a1944b82 /configure
parent0ca22569b305c98b90d059cb127ebd7ffc0b6df1 (diff)
downloadscummvm-rg350-8ba1bd0bd34feb39b9ac89d1ca90b98570f7cf7f.tar.gz
scummvm-rg350-8ba1bd0bd34feb39b9ac89d1ca90b98570f7cf7f.tar.bz2
scummvm-rg350-8ba1bd0bd34feb39b9ac89d1ca90b98570f7cf7f.zip
BUILD: Don't try to run the curl test executable when cross-compiling
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index 328d2ad126..42be5a3405 100755
--- a/configure
+++ b/configure
@@ -4185,11 +4185,16 @@ EOF
cc_check_no_clean $LIBCURL_CFLAGS $LIBCURL_LIBS
if test "$?" -eq 0; then
- $TMPO$HOSTEXEEXT
- if test "$?" -eq 0; then
+ if test -n "$_host"; then
+ # In cross-compiling mode, we cannot run the result, assume SSL is available
_libcurl=yes
else
- _libcurl="no SSL support"
+ $TMPO$HOSTEXEEXT
+ if test "$?" -eq 0; then
+ _libcurl=yes
+ else
+ _libcurl="no SSL support"
+ fi
fi
fi
cc_check_clean