|
|
@ -93,6 +93,11 @@ AC_ARG_ENABLE(tests,
|
|
|
|
[use_tests=$enableval],
|
|
|
|
[use_tests=$enableval],
|
|
|
|
[use_tests=yes])
|
|
|
|
[use_tests=yes])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(experimental,
|
|
|
|
|
|
|
|
AS_HELP_STRING([--enable-experimental],[allow experimental configure options (default is no)]),
|
|
|
|
|
|
|
|
[use_experimental=$enableval],
|
|
|
|
|
|
|
|
[use_experimental=no])
|
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(endomorphism,
|
|
|
|
AC_ARG_ENABLE(endomorphism,
|
|
|
|
AS_HELP_STRING([--enable-endomorphism],[enable endomorphism (default is no)]),
|
|
|
|
AS_HELP_STRING([--enable-endomorphism],[enable endomorphism (default is no)]),
|
|
|
|
[use_endomorphism=$enableval],
|
|
|
|
[use_endomorphism=$enableval],
|
|
|
@ -104,12 +109,12 @@ AC_ARG_ENABLE(ecmult_static_precomputation,
|
|
|
|
[use_ecmult_static_precomputation=yes])
|
|
|
|
[use_ecmult_static_precomputation=yes])
|
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(module_ecdh,
|
|
|
|
AC_ARG_ENABLE(module_ecdh,
|
|
|
|
AS_HELP_STRING([--enable-module-ecdh],[enable ECDH shared secret computation (default is no)]),
|
|
|
|
AS_HELP_STRING([--enable-module-ecdh],[enable ECDH shared secret computation (experimental)]),
|
|
|
|
[enable_module_ecdh=$enableval],
|
|
|
|
[enable_module_ecdh=$enableval],
|
|
|
|
[enable_module_ecdh=no])
|
|
|
|
[enable_module_ecdh=no])
|
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(module_schnorr,
|
|
|
|
AC_ARG_ENABLE(module_schnorr,
|
|
|
|
AS_HELP_STRING([--enable-module-schnorr],[enable Schnorr signature module (default is no)]),
|
|
|
|
AS_HELP_STRING([--enable-module-schnorr],[enable Schnorr signature module (experimental)]),
|
|
|
|
[enable_module_schnorr=$enableval],
|
|
|
|
[enable_module_schnorr=$enableval],
|
|
|
|
[enable_module_schnorr=no])
|
|
|
|
[enable_module_schnorr=no])
|
|
|
|
|
|
|
|
|
|
|
@ -350,11 +355,24 @@ 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 ECDH module: $enable_module_ecdh])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([Building Schnorr signatures module: $enable_module_schnorr])
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([Building ECDSA pubkey recovery module: $enable_module_recovery])
|
|
|
|
AC_MSG_NOTICE([Building ECDSA pubkey recovery module: $enable_module_recovery])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test x"$enable_experimental" = x"yes"; then
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([******])
|
|
|
|
|
|
|
|
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([Building ECDH module: $enable_module_ecdh])
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([Building Schnorr signatures module: $enable_module_schnorr])
|
|
|
|
|
|
|
|
AC_MSG_NOTICE([******])
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if test x"$enable_module_schnorr" = x"yes"; then
|
|
|
|
|
|
|
|
AC_MSG_ERROR([Schnorr signature module is experimental. Use --enable-experimental to allow.])
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test x"$enable_module_ecdh" = x"yes"; then
|
|
|
|
|
|
|
|
AC_MSG_ERROR([ECDH module is experimental. Use --enable-experimental to allow.])
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([src/libsecp256k1-config.h])
|
|
|
|
AC_CONFIG_HEADERS([src/libsecp256k1-config.h])
|
|
|
|
AC_CONFIG_FILES([Makefile libsecp256k1.pc])
|
|
|
|
AC_CONFIG_FILES([Makefile libsecp256k1.pc])
|
|
|
|
AC_SUBST(SECP_INCLUDES)
|
|
|
|
AC_SUBST(SECP_INCLUDES)
|
|
|
|