BUILD: Don't try to run the curl test executable when cross-compiling

This commit is contained in:
Bastien Bouclet 2016-08-30 20:59:26 +02:00
parent 0ca22569b3
commit 8ba1bd0bd3

5
configure vendored
View file

@ -4185,6 +4185,10 @@ EOF
cc_check_no_clean $LIBCURL_CFLAGS $LIBCURL_LIBS
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
$TMPO$HOSTEXEEXT
if test "$?" -eq 0; then
_libcurl=yes
@ -4192,6 +4196,7 @@ EOF
_libcurl="no SSL support"
fi
fi
fi
cc_check_clean
fi