mirror of https://github.com/wolfSSL/wolfssl.git
Added new `./configure --enable-all` option to enable all features. Allows building all features without using the `--enable-distro` option, which only allows shared build and does not generate an options.h file.
parent
4370a01778
commit
7bd1e0b80a
19
configure.ac
19
configure.ac
|
@ -139,6 +139,19 @@ if test "$ENABLED_DISTRO" = "yes"
|
||||||
then
|
then
|
||||||
enable_shared=yes
|
enable_shared=yes
|
||||||
enable_static=yes
|
enable_static=yes
|
||||||
|
enable_all=yes
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL([BUILD_DISTRO], [test "x$ENABLED_DISTRO" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
|
# ALL FEATURES
|
||||||
|
AC_ARG_ENABLE([all],
|
||||||
|
[ --enable-all Enable all wolfSSL features (default: disabled)],
|
||||||
|
[ ENABLED_ALL=$enableval ],
|
||||||
|
[ ENABLED_ALL=no ]
|
||||||
|
)
|
||||||
|
if test "$ENABLED_ALL" = "yes"
|
||||||
|
then
|
||||||
enable_dtls=yes
|
enable_dtls=yes
|
||||||
enable_tls13=yes
|
enable_tls13=yes
|
||||||
enable_openssh=yes
|
enable_openssh=yes
|
||||||
|
@ -200,7 +213,7 @@ then
|
||||||
enable_x963kdf=yes
|
enable_x963kdf=yes
|
||||||
enable_scrypt=yes
|
enable_scrypt=yes
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([BUILD_DISTRO], [test "x$ENABLED_DISTRO" = "xyes"])
|
AM_CONDITIONAL([BUILD_ALL], [test "x$ENABLED_ALL" = "xyes"])
|
||||||
|
|
||||||
|
|
||||||
# SINGLE THREADED
|
# SINGLE THREADED
|
||||||
|
@ -1049,8 +1062,8 @@ if test "$ENABLED_ECCCUSTCURVES" = "yes"
|
||||||
then
|
then
|
||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CUSTOM_CURVES"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CUSTOM_CURVES"
|
||||||
|
|
||||||
# For distro build, enable all curve types
|
# For distro or all builds, enable all curve types
|
||||||
if test "$ENABLED_DISTRO" = "yes"
|
if test "$ENABLED_DISTRO" = "yes" || test "$ENABLED_ALL" = "yes"
|
||||||
then
|
then
|
||||||
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_SECPR2 -DHAVE_ECC_SECPR3 -DHAVE_ECC_BRAINPOOL -DHAVE_ECC_KOBLITZ"
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_SECPR2 -DHAVE_ECC_SECPR3 -DHAVE_ECC_BRAINPOOL -DHAVE_ECC_KOBLITZ"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue