Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/configure.ac
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | AC_ARG_ENABLE(module_multiset, | ||||
[enable_module_multiset=$enableval], | [enable_module_multiset=$enableval], | ||||
[enable_module_multiset=no]) | [enable_module_multiset=no]) | ||||
AC_ARG_ENABLE(module_recovery, | AC_ARG_ENABLE(module_recovery, | ||||
AS_HELP_STRING([--enable-module-recovery],[enable ECDSA pubkey recovery module (default is no)]), | AS_HELP_STRING([--enable-module-recovery],[enable ECDSA pubkey recovery module (default is no)]), | ||||
[enable_module_recovery=$enableval], | [enable_module_recovery=$enableval], | ||||
[enable_module_recovery=no]) | [enable_module_recovery=no]) | ||||
AC_ARG_ENABLE(module_schnorr, | |||||
AS_HELP_STRING([--enable-module-schnorr],[enable Schnorr signatures module (default is yes)]), | |||||
[enable_module_schnorr=$enableval], | |||||
[enable_module_schnorr=yes]) | |||||
AC_ARG_ENABLE(jni, | AC_ARG_ENABLE(jni, | ||||
AS_HELP_STRING([--enable-jni],[enable libsecp256k1_jni (default is no)]), | AS_HELP_STRING([--enable-jni],[enable libsecp256k1_jni (default is no)]), | ||||
[use_jni=$enableval], | [use_jni=$enableval], | ||||
[use_jni=no]) | [use_jni=no]) | ||||
AC_ARG_WITH([field], [AS_HELP_STRING([--with-field=64bit|32bit|auto], | AC_ARG_WITH([field], [AS_HELP_STRING([--with-field=64bit|32bit|auto], | ||||
[Specify Field Implementation. Default is auto])],[req_field=$withval], [req_field=auto]) | [Specify Field Implementation. Default is auto])],[req_field=$withval], [req_field=auto]) | ||||
▲ Show 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | |||||
if test x"$enable_module_multiset" = x"yes"; then | if test x"$enable_module_multiset" = x"yes"; then | ||||
AC_DEFINE(ENABLE_MODULE_MULTISET, 1, [Define this symbol to enable the multiset module]) | AC_DEFINE(ENABLE_MODULE_MULTISET, 1, [Define this symbol to enable the multiset module]) | ||||
fi | fi | ||||
if test x"$enable_module_recovery" = x"yes"; then | if test x"$enable_module_recovery" = x"yes"; then | ||||
AC_DEFINE(ENABLE_MODULE_RECOVERY, 1, [Define this symbol to enable the ECDSA pubkey recovery module]) | AC_DEFINE(ENABLE_MODULE_RECOVERY, 1, [Define this symbol to enable the ECDSA pubkey recovery module]) | ||||
fi | fi | ||||
if test x"$enable_module_schnorr" = x"yes"; then | |||||
AC_DEFINE(ENABLE_MODULE_SCHNORR, 1, [Define this symbol to enable the Schnorr signature module]) | |||||
fi | |||||
AC_C_BIGENDIAN() | AC_C_BIGENDIAN() | ||||
if test x"$use_external_asm" = x"yes"; then | if test x"$use_external_asm" = x"yes"; then | ||||
AC_DEFINE(USE_EXTERNAL_ASM, 1, [Define this symbol if an external (non-inline) assembly implementation is used]) | AC_DEFINE(USE_EXTERNAL_ASM, 1, [Define this symbol if an external (non-inline) assembly implementation is used]) | ||||
fi | fi | ||||
AC_MSG_NOTICE([Using static precomputation: $set_precomp]) | AC_MSG_NOTICE([Using static precomputation: $set_precomp]) | ||||
AC_MSG_NOTICE([Using assembly optimizations: $set_asm]) | AC_MSG_NOTICE([Using assembly optimizations: $set_asm]) | ||||
AC_MSG_NOTICE([Using field implementation: $set_field]) | AC_MSG_NOTICE([Using field implementation: $set_field]) | ||||
AC_MSG_NOTICE([Using bignum implementation: $set_bignum]) | AC_MSG_NOTICE([Using bignum implementation: $set_bignum]) | ||||
AC_MSG_NOTICE([Using scalar implementation: $set_scalar]) | AC_MSG_NOTICE([Using scalar implementation: $set_scalar]) | ||||
AC_MSG_NOTICE([Using endomorphism optimizations: $use_endomorphism]) | AC_MSG_NOTICE([Using endomorphism optimizations: $use_endomorphism]) | ||||
AC_MSG_NOTICE([Building benchmarks: $use_benchmark]) | AC_MSG_NOTICE([Building benchmarks: $use_benchmark]) | ||||
AC_MSG_NOTICE([Building for coverage analysis: $enable_coverage]) | AC_MSG_NOTICE([Building for coverage analysis: $enable_coverage]) | ||||
AC_MSG_NOTICE([Building ECDH module: $enable_module_ecdh]) | AC_MSG_NOTICE([Building ECDH module: $enable_module_ecdh]) | ||||
AC_MSG_NOTICE([Building ECDSA pubkey recovery module: $enable_module_recovery]) | AC_MSG_NOTICE([Building ECDSA pubkey recovery module: $enable_module_recovery]) | ||||
AC_MSG_NOTICE([Building Schnorr signature module: $enable_module_schnorr]) | |||||
AC_MSG_NOTICE([Using jni: $use_jni]) | AC_MSG_NOTICE([Using jni: $use_jni]) | ||||
if test x"$enable_experimental" = x"yes"; then | if test x"$enable_experimental" = x"yes"; then | ||||
AC_MSG_NOTICE([******]) | AC_MSG_NOTICE([******]) | ||||
AC_MSG_NOTICE([WARNING: experimental build]) | AC_MSG_NOTICE([WARNING: experimental build]) | ||||
AC_MSG_NOTICE([Experimental features do not have stable APIs or properties, and may not be safe for production use.]) | AC_MSG_NOTICE([Experimental features do not have stable APIs or properties, and may not be safe for production use.]) | ||||
AC_MSG_NOTICE([Building ECDH module: $enable_module_ecdh]) | AC_MSG_NOTICE([Building ECDH module: $enable_module_ecdh]) | ||||
AC_MSG_NOTICE([******]) | AC_MSG_NOTICE([******]) | ||||
Show All 16 Lines | |||||
AM_CONDITIONAL([ENABLE_COVERAGE], [test x"$enable_coverage" = x"yes"]) | AM_CONDITIONAL([ENABLE_COVERAGE], [test x"$enable_coverage" = x"yes"]) | ||||
AM_CONDITIONAL([USE_TESTS], [test x"$use_tests" != x"no"]) | AM_CONDITIONAL([USE_TESTS], [test x"$use_tests" != x"no"]) | ||||
AM_CONDITIONAL([USE_EXHAUSTIVE_TESTS], [test x"$use_exhaustive_tests" != x"no"]) | AM_CONDITIONAL([USE_EXHAUSTIVE_TESTS], [test x"$use_exhaustive_tests" != x"no"]) | ||||
AM_CONDITIONAL([USE_BENCHMARK], [test x"$use_benchmark" = x"yes"]) | AM_CONDITIONAL([USE_BENCHMARK], [test x"$use_benchmark" = x"yes"]) | ||||
AM_CONDITIONAL([USE_ECMULT_STATIC_PRECOMPUTATION], [test x"$set_precomp" = x"yes"]) | AM_CONDITIONAL([USE_ECMULT_STATIC_PRECOMPUTATION], [test x"$set_precomp" = x"yes"]) | ||||
AM_CONDITIONAL([ENABLE_MODULE_ECDH], [test x"$enable_module_ecdh" = x"yes"]) | AM_CONDITIONAL([ENABLE_MODULE_ECDH], [test x"$enable_module_ecdh" = x"yes"]) | ||||
AM_CONDITIONAL([ENABLE_MODULE_MULTISET], [test x"$enable_module_multiset" = x"yes"]) | AM_CONDITIONAL([ENABLE_MODULE_MULTISET], [test x"$enable_module_multiset" = x"yes"]) | ||||
AM_CONDITIONAL([ENABLE_MODULE_RECOVERY], [test x"$enable_module_recovery" = x"yes"]) | AM_CONDITIONAL([ENABLE_MODULE_RECOVERY], [test x"$enable_module_recovery" = x"yes"]) | ||||
AM_CONDITIONAL([ENABLE_MODULE_SCHNORR], [test x"$enable_module_schnorr" = x"yes"]) | |||||
AM_CONDITIONAL([USE_JNI], [test x"$use_jni" == x"yes"]) | AM_CONDITIONAL([USE_JNI], [test x"$use_jni" == x"yes"]) | ||||
AM_CONDITIONAL([USE_EXTERNAL_ASM], [test x"$use_external_asm" = x"yes"]) | AM_CONDITIONAL([USE_EXTERNAL_ASM], [test x"$use_external_asm" = x"yes"]) | ||||
AM_CONDITIONAL([USE_ASM_ARM], [test x"$set_asm" = x"arm"]) | AM_CONDITIONAL([USE_ASM_ARM], [test x"$set_asm" = x"arm"]) | ||||
dnl make sure nothing new is exported so that we don't break the cache | dnl make sure nothing new is exported so that we don't break the cache | ||||
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 |