]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-116303: Don't build xxlimited and xxlimited_35 if --disable-test-modules is given...
authorErlend E. Aasland <erlend@python.org>
Fri, 5 Apr 2024 08:29:15 +0000 (10:29 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Apr 2024 08:29:15 +0000 (10:29 +0200)
configure
configure.ac

index 542783e723d9346b0cd5fec143abba13e87abebb..f9647566636e4c887ae0f3cef378175d762a1292 100755 (executable)
--- a/configure
+++ b/configure
@@ -31185,7 +31185,7 @@ printf %s "checking for stdlib extension module xxlimited... " >&6; }
         if test "$py_cv_module_xxlimited" != "n/a"
 then :
 
-    if true
+    if test "$TEST_MODULES" = yes
 then :
   if test "$ac_cv_func_dlopen" = yes
 then :
@@ -31223,7 +31223,7 @@ printf %s "checking for stdlib extension module xxlimited_35... " >&6; }
         if test "$py_cv_module_xxlimited_35" != "n/a"
 then :
 
-    if true
+    if test "$TEST_MODULES" = yes
 then :
   if test "$ac_cv_func_dlopen" = yes
 then :
index fc62bfe5a1d4c4a91e7639e034da0752177ef7ca..e195e15b39ed216738ad881312e956fd4c6e3475 100644 (file)
@@ -7661,8 +7661,8 @@ PY_STDLIB_MOD([_ctypes_test],
 
 dnl Limited API template modules.
 dnl Emscripten does not support shared libraries yet.
-PY_STDLIB_MOD([xxlimited], [], [test "$ac_cv_func_dlopen" = yes])
-PY_STDLIB_MOD([xxlimited_35], [], [test "$ac_cv_func_dlopen" = yes])
+PY_STDLIB_MOD([xxlimited], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
+PY_STDLIB_MOD([xxlimited_35], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
 
 # substitute multiline block, must come after last PY_STDLIB_MOD()
 AC_SUBST([MODULE_BLOCK])