We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3bd502 commit ee2d897Copy full SHA for ee2d897
m4/curl-rustls.m4
@@ -34,13 +34,6 @@ if test "x$OPT_RUSTLS" != xno; then
34
CLEANLDFLAGS="$LDFLAGS"
35
CLEANCPPFLAGS="$CPPFLAGS"
36
37
- case $host in
38
- *-apple-*)
39
- LDFLAGS="$LDFLAGS -framework Security"
40
- ;;
41
- *)
42
43
- esac
44
## NEW CODE
45
46
dnl use pkg-config unless we have been given a path
@@ -88,11 +81,14 @@ if test "x$OPT_RUSTLS" != xno; then
88
81
CPPFLAGS="$CPPFLAGS $addcflags"
89
82
fi
90
83
91
- if test $(uname) = "Darwin"; then
84
+ case $host in
85
+ *-apple-*)
92
86
RUSTLS_LDFLAGS="-framework Security -framework Foundation"
93
- else
87
+ ;;
+ *)
94
RUSTLS_LDFLAGS="-lpthread -ldl -lm"
95
- fi
+ esac
96
AC_CHECK_LIB(rustls, rustls_connection_read,
97
[
98
AC_DEFINE(USE_RUSTLS, 1, [if Rustls is enabled])
0 commit comments