summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2023-09-27 15:24:12 (GMT)
committerGitHub <noreply@github.com>2023-09-27 15:24:12 (GMT)
commit773614e03aef29c744d0300bd62fc8254e3c06b6 (patch)
tree07b48508c7257bcb21aef2e29a66822c0cea8789 /configure
parentb35f0843fc15486b17bc945dde08b306b8e4e81f (diff)
downloadcpython-773614e03aef29c744d0300bd62fc8254e3c06b6.zip
cpython-773614e03aef29c744d0300bd62fc8254e3c06b6.tar.gz
cpython-773614e03aef29c744d0300bd62fc8254e3c06b6.tar.bz2
gh-109740: Use 't' in `--disable-gil` SOABI (#109922)
Shared libraries for CPython 3.13 are now marked with a 't' for threading. For example, `binascii.cpython-313t-darwin.so`.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure65
1 files changed, 34 insertions, 31 deletions
diff --git a/configure b/configure
index abae542..098def9 100755
--- a/configure
+++ b/configure
@@ -1065,6 +1065,7 @@ with_suffix
enable_shared
with_static_libpython
enable_profiling
+enable_gil
with_pydebug
with_trace_refs
enable_pystats
@@ -1105,7 +1106,6 @@ with_openssl_rpath
with_ssl_default_suites
with_builtin_hashlib_hashes
enable_test_modules
-enable_gil
'
ac_precious_vars='build_alias
host_alias
@@ -1792,6 +1792,8 @@ Optional Features:
no)
--enable-profiling enable C-level code profiling with gprof (default is
no)
+ --disable-gil enable experimental support for running without the
+ GIL (default is no)
--enable-pystats enable internal statistics gathering (default is no)
--enable-optimizations enable expensive, stable optimizations (PGO, etc.)
(default is no)
@@ -1806,8 +1808,6 @@ Optional Features:
use big digits (30 or 15 bits) for Python longs
(default is 30)]
--disable-test-modules don't build nor install test modules
- --disable-gil enable experimental support for running without the
- GIL (default is no)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -7845,6 +7845,36 @@ fi
ABIFLAGS=""
+# Check for --disable-gil
+# --disable-gil
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
+printf %s "checking for --disable-gil... " >&6; }
+# Check whether --enable-gil was given.
+if test ${enable_gil+y}
+then :
+ enableval=$enable_gil; if test "x$enable_gil" = xyes
+then :
+ disable_gil=no
+else $as_nop
+ disable_gil=yes
+fi
+else $as_nop
+ disable_gil=no
+
+fi
+
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
+printf "%s\n" "$disable_gil" >&6; }
+
+if test "$disable_gil" = "yes"
+then
+
+printf "%s\n" "#define Py_NOGIL 1" >>confdefs.h
+
+ # Add "t" for "threaded"
+ ABIFLAGS="${ABIFLAGS}t"
+fi
+
# Check for --with-pydebug
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
printf %s "checking for --with-pydebug... " >&6; }
@@ -23546,6 +23576,7 @@ printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
#
# * The Python implementation (always 'cpython-' for us)
# * The major and minor version numbers
+# * --disable-gil (adds a 't')
# * --with-pydebug (adds a 'd')
#
# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
@@ -27724,34 +27755,6 @@ fi
printf "%s\n" "$TEST_MODULES" >&6; }
-# Check for --disable-gil
-# --disable-gil
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
-printf %s "checking for --disable-gil... " >&6; }
-# Check whether --enable-gil was given.
-if test ${enable_gil+y}
-then :
- enableval=$enable_gil; if test "x$enable_gil" = xyes
-then :
- disable_gil=no
-else $as_nop
- disable_gil=yes
-fi
-else $as_nop
- disable_gil=no
-
-fi
-
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
-printf "%s\n" "$disable_gil" >&6; }
-
-if test "$disable_gil" = "yes"
-then
-
-printf "%s\n" "#define Py_NOGIL 1" >>confdefs.h
-
-fi
-
# gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
# On Linux aarch64, GCC may require programs and libraries to be linked
# explicitly to libatomic. Call _Py_atomic_or_uint64() which may require