mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Merge pull request #4694 from anhu/with-curl
Add a --enable-curl build option
This commit is contained in:
70
configure.ac
70
configure.ac
@@ -621,6 +621,7 @@ then
|
|||||||
then
|
then
|
||||||
# these use DES3:
|
# these use DES3:
|
||||||
test "$enable_stunnel" = "" && enable_stunnel=yes
|
test "$enable_stunnel" = "" && enable_stunnel=yes
|
||||||
|
test "$enable_curl" = "" && enable_curl=yes
|
||||||
test "$enable_tcpdump" = "" && enable_tcpdump=yes
|
test "$enable_tcpdump" = "" && enable_tcpdump=yes
|
||||||
|
|
||||||
test "$enable_eccsi" = "" && enable_eccsi=yes
|
test "$enable_eccsi" = "" && enable_eccsi=yes
|
||||||
@@ -922,6 +923,7 @@ AC_ARG_ENABLE([mcast],
|
|||||||
# lighty (--enable-lighty) HAVE_LIGHTY
|
# lighty (--enable-lighty) HAVE_LIGHTY
|
||||||
# rsyslog (--enable-rsyslog)
|
# rsyslog (--enable-rsyslog)
|
||||||
# stunnel (--enable-stunnel) HAVE_STUNNEL
|
# stunnel (--enable-stunnel) HAVE_STUNNEL
|
||||||
|
# curl (--enable-curl) HAVE_CURL
|
||||||
# libest (--enable-libest) HAVE_LIBEST
|
# libest (--enable-libest) HAVE_LIBEST
|
||||||
# asio (--enable-asio) WOLFSSL_ASIO
|
# asio (--enable-asio) WOLFSSL_ASIO
|
||||||
# libwebsockets (--enable-libwebsockets) WOLFSSL_LIBWEBSOCKETS
|
# libwebsockets (--enable-libwebsockets) WOLFSSL_LIBWEBSOCKETS
|
||||||
@@ -5086,6 +5088,74 @@ then
|
|||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB -DWOLFSSL_SIGNER_DER_CERT"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB -DWOLFSSL_SIGNER_DER_CERT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# curl Support
|
||||||
|
AC_ARG_ENABLE([curl],
|
||||||
|
[AS_HELP_STRING([--enable-curl],[Enable curl (default: disabled)])],
|
||||||
|
[ ENABLED_CURL=$enableval ],
|
||||||
|
[ ENABLED_CURL=no ]
|
||||||
|
)
|
||||||
|
# curl support requires all the features enabled within this conditional.
|
||||||
|
if test "$ENABLED_CURL" = "yes"
|
||||||
|
then
|
||||||
|
if test "x$ENABLED_DES3" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_DES3="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_ALPN" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_ALPN="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_WOLFSSH" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_WOLFSSH="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_OPENSSLEXTRA" = "xno" && test "x$ENABLED_OPENSSLCOEXIST" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_OPENSSLEXTRA="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_CRL" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_CRL="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_OCSP" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_OCSP="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_CERTIFICATE_STATUS_REQUEST" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_CERTIFICATE_STATUS_REQUEST="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_CERTIFICATE_STATUS_REQUEST"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_CERTIFICATE_STATUS_REQUEST_V2" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_CERTIFICATE_STATUS_REQUEST_V2="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_CERTIFICATE_STATUS_REQUEST_V2"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_SNI" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_SNI="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "x$ENABLED_ALT_CERT_CHAINS" = "xno"
|
||||||
|
then
|
||||||
|
ENABLED_ALT_CERT_CHAINS="yes"
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALT_CERT_CHAINS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \
|
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \
|
||||||
&& test "x$ENABLED_STUNNEL" = "xno"
|
&& test "x$ENABLED_STUNNEL" = "xno"
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user