From 7bd1e0b80a764ca7995c31b9afc25a244cdeb43b Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 18 May 2017 10:57:28 -0700 Subject: [PATCH] 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. --- configure.ac | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 503776da4..ce4dcbbac 100644 --- a/configure.ac +++ b/configure.ac @@ -139,6 +139,19 @@ if test "$ENABLED_DISTRO" = "yes" then enable_shared=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_tls13=yes enable_openssh=yes @@ -200,7 +213,7 @@ then enable_x963kdf=yes enable_scrypt=yes fi -AM_CONDITIONAL([BUILD_DISTRO], [test "x$ENABLED_DISTRO" = "xyes"]) +AM_CONDITIONAL([BUILD_ALL], [test "x$ENABLED_ALL" = "xyes"]) # SINGLE THREADED @@ -1049,8 +1062,8 @@ if test "$ENABLED_ECCCUSTCURVES" = "yes" then AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CUSTOM_CURVES" - # For distro build, enable all curve types - if test "$ENABLED_DISTRO" = "yes" + # For distro or all builds, enable all curve types + if test "$ENABLED_DISTRO" = "yes" || test "$ENABLED_ALL" = "yes" then AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_SECPR2 -DHAVE_ECC_SECPR3 -DHAVE_ECC_BRAINPOOL -DHAVE_ECC_KOBLITZ" fi