mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
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.
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user