summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-29 11:39:42 (GMT)
committerGitHub <noreply@github.com>2023-08-29 11:39:42 (GMT)
commitbf08131e0ae3a2e59a1428c648f433da6921c561 (patch)
treecc66f179c094fd18124b406be3d3fed769b2dea5 /configure
parente675e515aeed16cb5091e310cb161b10c16a237d (diff)
downloadcpython-bf08131e0ae3a2e59a1428c648f433da6921c561.zip
cpython-bf08131e0ae3a2e59a1428c648f433da6921c561.tar.gz
cpython-bf08131e0ae3a2e59a1428c648f433da6921c561.tar.bz2
gh-108494: Don't build _testclinic_limited with TraceRefs (#108608)
If Python is built with ./configure --with-trace-refs, don't build the _testclinic_limited extension. The limited C API (Py_LIMITED_API) is not compatible with Py_TRACE_REFS.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure44
1 files changed, 44 insertions, 0 deletions
diff --git a/configure b/configure
index 15ca703..57e3307 100755
--- a/configure
+++ b/configure
@@ -669,6 +669,8 @@ MODULE__TESTBUFFER_FALSE
MODULE__TESTBUFFER_TRUE
MODULE__TESTINTERNALCAPI_FALSE
MODULE__TESTINTERNALCAPI_TRUE
+MODULE__TESTCLINIC_LIMITED_FALSE
+MODULE__TESTCLINIC_LIMITED_TRUE
MODULE__TESTCLINIC_FALSE
MODULE__TESTCLINIC_TRUE
MODULE__TESTCAPI_FALSE
@@ -29955,6 +29957,44 @@ fi
printf "%s\n" "$py_cv_module__testclinic" >&6; }
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5
+printf %s "checking for stdlib extension module _testclinic_limited... " >&6; }
+ if test "$py_cv_module__testclinic_limited" != "n/a"
+then :
+
+ if test "$TEST_MODULES" = yes -a "$with_trace_refs" = "no"
+then :
+ if true
+then :
+ py_cv_module__testclinic_limited=yes
+else $as_nop
+ py_cv_module__testclinic_limited=missing
+fi
+else $as_nop
+ py_cv_module__testclinic_limited=disabled
+fi
+
+fi
+ as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl"
+ if test "x$py_cv_module__testclinic_limited" = xyes
+then :
+
+
+
+
+fi
+ if test "$py_cv_module__testclinic_limited" = yes; then
+ MODULE__TESTCLINIC_LIMITED_TRUE=
+ MODULE__TESTCLINIC_LIMITED_FALSE='#'
+else
+ MODULE__TESTCLINIC_LIMITED_TRUE='#'
+ MODULE__TESTCLINIC_LIMITED_FALSE=
+fi
+
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5
+printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
+
+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
printf %s "checking for stdlib extension module _testinternalcapi... " >&6; }
if test "$py_cv_module__testinternalcapi" != "n/a"
@@ -30694,6 +30734,10 @@ if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"
as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then
+ as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5