bpo-39794: Add --without-decimal-contextvar (#18702)

This commit is contained in:
Stefan Krah 2020-02-29 19:43:42 +01:00 committed by GitHub
parent 0aeab5c438
commit 815280eb16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 248 additions and 36 deletions

View file

@ -3050,6 +3050,21 @@ AC_ARG_WITH(system_libmpdec,
AC_MSG_RESULT($with_system_libmpdec)
# Check whether _decimal should use a coroutine-local or thread-local context
AC_MSG_CHECKING(for --with-decimal-contextvar)
AC_ARG_WITH(decimal_contextvar,
AS_HELP_STRING([--with-decimal-contextvar], [build _decimal module using a coroutine-local rather than a thread-local context (default is yes)]),
[],
[with_decimal_contextvar="yes"])
if test "$with_decimal_contextvar" != "no"
then
AC_DEFINE(WITH_DECIMAL_CONTEXTVAR, 1,
[Define if you want build the _decimal module using a coroutine-local rather than a thread-local context])
fi
AC_MSG_RESULT($with_decimal_contextvar)
# Check for support for loadable sqlite extensions
AC_MSG_CHECKING(for --enable-loadable-sqlite-extensions)
AC_ARG_ENABLE(loadable-sqlite-extensions,