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

11
configure vendored
View file

@ -4185,11 +4185,16 @@ EOF
cc_check_no_clean $LIBCURL_CFLAGS $LIBCURL_LIBS cc_check_no_clean $LIBCURL_CFLAGS $LIBCURL_LIBS
if test "$?" -eq 0; then if test "$?" -eq 0; then
$TMPO$HOSTEXEEXT if test -n "$_host"; then
if test "$?" -eq 0; then # In cross-compiling mode, we cannot run the result, assume SSL is available
_libcurl=yes _libcurl=yes
else else
_libcurl="no SSL support" $TMPO$HOSTEXEEXT
if test "$?" -eq 0; then
_libcurl=yes
else
_libcurl="no SSL support"
fi
fi fi
fi fi
cc_check_clean cc_check_clean