pkgsrc-ng/lang/tcl85/patches/patch-unix_tclConfig.sh.in
2016-11-18 22:39:22 +01:00

26 lines
626 B
Bash

$NetBSD: patch-unix_tclConfig.sh.in,v 1.2 2016/03/03 21:16:46 bsiegert Exp $
* Handling of thread PKG_OPTIONS.
--- unix/tclConfig.sh.in.orig 2016-02-08 20:44:53.000000000 +0000
+++ unix/tclConfig.sh.in
@@ -9,6 +9,8 @@
#
# The information in this file is specific to a single platform.
+if [ -z "${_TCL_NOTHREAD}" ]; then
+
# Tcl's version number.
TCL_VERSION='@TCL_VERSION@'
TCL_MAJOR_VERSION='@TCL_MAJOR_VERSION@'
@@ -167,3 +169,9 @@ TCL_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@'
# Flag, 1: we built Tcl with threads enabled, 0 we didn't
TCL_THREADS=@TCL_THREADS@
+
+else
+
+. @prefix@/lib/tclConfig-nothread.sh
+
+fi