summaryrefslogtreecommitdiffstats
path: root/Modules/Setup.thread.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-04 00:48:27 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-04 00:48:27 (GMT)
commita0cbb3dbae487b5cb1aef4345740725f817faf98 (patch)
treeb3d584fa8c375639c27c856ab19fe40d364dd48d /Modules/Setup.thread.in
parente612be59263f9771f89c79a89843872ae1b8f667 (diff)
downloadcpython-a0cbb3dbae487b5cb1aef4345740725f817faf98.zip
cpython-a0cbb3dbae487b5cb1aef4345740725f817faf98.tar.gz
cpython-a0cbb3dbae487b5cb1aef4345740725f817faf98.tar.bz2
Moved the thread module to its own Setup.thread(.in) file,
which is edited by the config.status script depending on whether --with-thread is specified or not. Also needs changes to configure(.in).
Diffstat (limited to 'Modules/Setup.thread.in')
-rw-r--r--Modules/Setup.thread.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modules/Setup.thread.in b/Modules/Setup.thread.in
new file mode 100644
index 0000000..2b136c1
--- /dev/null
+++ b/Modules/Setup.thread.in
@@ -0,0 +1,11 @@
+# This file is transmogrified into Setup.thread by config.status.
+
+# Its purpose is to automatically enable the thread module when the
+# --with-thread argument is given to the configure script.
+
+# *NOTE*: if the configure script decides it can't support threads,
+# the thread module will still be enabled and cause compile errors.
+# The solution is not to use --with-thread on platforms that don't
+# support threads.
+
+@USE_THREAD_MODULE@thread threadmodule.c