Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/configure.ac
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | |||||
[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.] | ||||
["auto" is a reasonable setting for desktop machines (currently 4). [default=auto]] | ["auto" is a reasonable setting for desktop machines (currently 4). [default=auto]] | ||||
)], | )], | ||||
[req_ecmult_gen_precision=$withval], [req_ecmult_gen_precision=auto]) | [req_ecmult_gen_precision=$withval], [req_ecmult_gen_precision=auto]) | ||||
AC_CHECK_TYPES([__int128]) | AC_CHECK_TYPES([__int128]) | ||||
AC_CHECK_HEADER([valgrind/memcheck.h], [enable_valgrind=yes], [enable_valgrind=no], []) | AC_ARG_WITH([valgrind], [AS_HELP_STRING([--with-valgrind=yes|no|auto], | ||||
[Build with extra checks for running inside Valgrind [default=auto]] | |||||
)], | |||||
[req_valgrind=$withval], [req_valgrind=auto]) | |||||
if test x"$req_valgrind" = x"no"; then | |||||
enable_valgrind=no | |||||
else | |||||
AC_CHECK_HEADER([valgrind/memcheck.h], [enable_valgrind=yes], [ | |||||
if test x"$req_valgrind" = x"yes"; then | |||||
AC_MSG_ERROR([Valgrind support explicitly requested but valgrind/memcheck.h header not available]) | |||||
fi | |||||
enable_valgrind=no | |||||
], []) | |||||
fi | |||||
AM_CONDITIONAL([VALGRIND_ENABLED],[test "$enable_valgrind" = "yes"]) | AM_CONDITIONAL([VALGRIND_ENABLED],[test "$enable_valgrind" = "yes"]) | ||||
if test x"$enable_coverage" = x"yes"; then | if test x"$enable_coverage" = x"yes"; then | ||||
AC_DEFINE(COVERAGE, 1, [Define this symbol to compile out all VERIFY code]) | AC_DEFINE(COVERAGE, 1, [Define this symbol to compile out all VERIFY code]) | ||||
CFLAGS="-O0 --coverage $CFLAGS" | CFLAGS="-O0 --coverage $CFLAGS" | ||||
LDFLAGS="--coverage $LDFLAGS" | LDFLAGS="--coverage $LDFLAGS" | ||||
else | else | ||||
CFLAGS="-O2 $CFLAGS" | CFLAGS="-O2 $CFLAGS" | ||||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |