Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/configure.ac
Show First 20 Lines • Show All 110 Lines • ▼ Show 20 Lines | AC_ARG_ENABLE(experimental, | ||||
[use_experimental=$enableval], | [use_experimental=$enableval], | ||||
[use_experimental=no]) | [use_experimental=no]) | ||||
AC_ARG_ENABLE(exhaustive_tests, | AC_ARG_ENABLE(exhaustive_tests, | ||||
AS_HELP_STRING([--enable-exhaustive-tests],[compile exhaustive tests [default=yes]]), | AS_HELP_STRING([--enable-exhaustive-tests],[compile exhaustive tests [default=yes]]), | ||||
[use_exhaustive_tests=$enableval], | [use_exhaustive_tests=$enableval], | ||||
[use_exhaustive_tests=yes]) | [use_exhaustive_tests=yes]) | ||||
AC_ARG_ENABLE(endomorphism, | |||||
AS_HELP_STRING([--enable-endomorphism],[enable endomorphism [default=no]]), | |||||
[use_endomorphism=$enableval], | |||||
[use_endomorphism=no]) | |||||
AC_ARG_ENABLE(ecmult_static_precomputation, | AC_ARG_ENABLE(ecmult_static_precomputation, | ||||
AS_HELP_STRING([--enable-ecmult-static-precomputation],[enable precomputed ecmult table for signing [default=auto]]), | AS_HELP_STRING([--enable-ecmult-static-precomputation],[enable precomputed ecmult table for signing [default=auto]]), | ||||
[use_ecmult_static_precomputation=$enableval], | [use_ecmult_static_precomputation=$enableval], | ||||
[use_ecmult_static_precomputation=auto]) | [use_ecmult_static_precomputation=auto]) | ||||
AC_ARG_ENABLE(module_ecdh, | AC_ARG_ENABLE(module_ecdh, | ||||
AS_HELP_STRING([--enable-module-ecdh],[enable ECDH shared secret computation (experimental)]), | AS_HELP_STRING([--enable-module-ecdh],[enable ECDH shared secret computation (experimental)]), | ||||
[enable_module_ecdh=$enableval], | [enable_module_ecdh=$enableval], | ||||
▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
[bignum implementation to use [default=auto]])],[req_bignum=$withval], [req_bignum=auto]) | [bignum implementation to use [default=auto]])],[req_bignum=$withval], [req_bignum=auto]) | ||||
AC_ARG_WITH([asm], [AS_HELP_STRING([--with-asm=x86_64|arm|no|auto], | AC_ARG_WITH([asm], [AS_HELP_STRING([--with-asm=x86_64|arm|no|auto], | ||||
[assembly optimizations to use (experimental: arm) [default=auto]])],[req_asm=$withval], [req_asm=auto]) | [assembly optimizations to use (experimental: arm) [default=auto]])],[req_asm=$withval], [req_asm=auto]) | ||||
AC_ARG_WITH([ecmult-window], [AS_HELP_STRING([--with-ecmult-window=SIZE|auto], | AC_ARG_WITH([ecmult-window], [AS_HELP_STRING([--with-ecmult-window=SIZE|auto], | ||||
[window size for ecmult precomputation for verification, specified as integer in range [2..24].] | [window size for ecmult precomputation for verification, specified as integer in range [2..24].] | ||||
[Larger values result in possibly better performance at the cost of an exponentially larger precomputed table.] | [Larger values result in possibly better performance at the cost of an exponentially larger precomputed table.] | ||||
[The table will store 2^(SIZE-2) * 64 bytes of data but can be larger in memory due to platform-specific padding and alignment.] | [The table will store 2^(SIZE-1) * 64 bytes of data but can be larger in memory due to platform-specific padding and alignment.] | ||||
[If the endomorphism optimization is enabled, two tables of this size are used instead of only one.] | |||||
["auto" is a reasonable setting for desktop machines (currently 15). [default=auto]] | ["auto" is a reasonable setting for desktop machines (currently 15). [default=auto]] | ||||
)], | )], | ||||
[req_ecmult_window=$withval], [req_ecmult_window=auto]) | [req_ecmult_window=$withval], [req_ecmult_window=auto]) | ||||
AC_ARG_WITH([ecmult-gen-precision], [AS_HELP_STRING([--with-ecmult-gen-precision=2|4|8|auto], | AC_ARG_WITH([ecmult-gen-precision], [AS_HELP_STRING([--with-ecmult-gen-precision=2|4|8|auto], | ||||
[Precision bits to tune the precomputed table size for signing.] | [Precision bits to tune the precomputed table size for signing.] | ||||
[The size of the table is 32kB for 2 bits, 64kB for 4 bits, 512kB for 8 bits of precision.] | [The size of the table is 32kB for 2 bits, 64kB for 4 bits, 512kB for 8 bits of precision.] | ||||
[A larger table size usually results in possible faster signing.] | [A larger table size usually results in possible faster signing.] | ||||
▲ Show 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | if test x"$use_jni" != x"no"; then | ||||
fi | fi | ||||
fi | fi | ||||
if test x"$set_bignum" = x"gmp"; then | if test x"$set_bignum" = x"gmp"; then | ||||
SECP_LIBS="$SECP_LIBS $GMP_LIBS" | SECP_LIBS="$SECP_LIBS $GMP_LIBS" | ||||
SECP_INCLUDES="$SECP_INCLUDES $GMP_CPPFLAGS" | SECP_INCLUDES="$SECP_INCLUDES $GMP_CPPFLAGS" | ||||
fi | fi | ||||
if test x"$use_endomorphism" = x"yes"; then | |||||
AC_DEFINE(USE_ENDOMORPHISM, 1, [Define this symbol to use endomorphism optimization]) | |||||
fi | |||||
if test x"$set_precomp" = x"yes"; then | if test x"$set_precomp" = x"yes"; then | ||||
AC_DEFINE(USE_ECMULT_STATIC_PRECOMPUTATION, 1, [Define this symbol to use a statically generated ecmult table]) | AC_DEFINE(USE_ECMULT_STATIC_PRECOMPUTATION, 1, [Define this symbol to use a statically generated ecmult table]) | ||||
fi | fi | ||||
if test x"$enable_module_ecdh" = x"yes"; then | if test x"$enable_module_ecdh" = x"yes"; then | ||||
AC_DEFINE(ENABLE_MODULE_ECDH, 1, [Define this symbol to enable the ECDH module]) | AC_DEFINE(ENABLE_MODULE_ECDH, 1, [Define this symbol to enable the ECDH module]) | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
PKGCONFIG_PATH_TEMP="$PKG_CONFIG_PATH" | PKGCONFIG_PATH_TEMP="$PKG_CONFIG_PATH" | ||||
unset PKG_CONFIG_PATH | unset PKG_CONFIG_PATH | ||||
PKG_CONFIG_PATH="$PKGCONFIG_PATH_TEMP" | PKG_CONFIG_PATH="$PKGCONFIG_PATH_TEMP" | ||||
AC_OUTPUT | AC_OUTPUT | ||||
echo | echo | ||||
echo "Build Options:" | echo "Build Options:" | ||||
echo " with endomorphism = $use_endomorphism" | |||||
echo " with ecmult precomp = $set_precomp" | echo " with ecmult precomp = $set_precomp" | ||||
echo " with external callbacks = $use_external_default_callbacks" | echo " with external callbacks = $use_external_default_callbacks" | ||||
echo " with jni = $use_jni" | echo " with jni = $use_jni" | ||||
echo " with benchmarks = $use_benchmark" | echo " with benchmarks = $use_benchmark" | ||||
echo " with coverage = $enable_coverage" | echo " with coverage = $enable_coverage" | ||||
echo " module ecdh = $enable_module_ecdh" | echo " module ecdh = $enable_module_ecdh" | ||||
echo " module recovery = $enable_module_recovery" | echo " module recovery = $enable_module_recovery" | ||||
echo " module multiset = $enable_module_multiset" | echo " module multiset = $enable_module_multiset" | ||||
Show All 19 Lines |