]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: don't check for Security.framework when cross-compiling
authorDennis Felsing <dennis@felsin9.de>
Mon, 6 Apr 2020 11:56:07 +0000 (13:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Apr 2020 13:23:08 +0000 (15:23 +0200)
Since it checks for the local file, not the cross-compiled one.

Closes #5189

configure.ac

index 889617ffa998e677bb9d1bd74e6142bed7d86232..0479099e8573eb87a4b7e351a362401efb81850f 100755 (executable)
@@ -1554,7 +1554,7 @@ AC_HELP_STRING([--without-secure-transport], [disable Apple OS native SSL/TLS]),
 AC_MSG_CHECKING([whether to enable Secure Transport])
 if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
   if test "x$OPT_SECURETRANSPORT" != "xno" &&
-     test -d "/System/Library/Frameworks/Security.framework"; then
+     (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
     AC_MSG_RESULT(yes)
     AC_DEFINE(USE_SECTRANSP, 1, [enable Secure Transport])
     AC_SUBST(USE_SECTRANSP, [1])