summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorculler <culler>2024-08-12 17:04:09 (GMT)
committerculler <culler>2024-08-12 17:04:09 (GMT)
commit2fd96ebf50a255b39eb2794a9618c1049c810178 (patch)
tree1c97567dc469ac63b06f2cb1d0a30154d0e2816f /unix
parentbd7deb7986ccb2065fb49358b8a3afe73b858390 (diff)
parent5ce58e8ad56056d2221512f41682eb0e063a9984 (diff)
downloadtcl-2fd96ebf50a255b39eb2794a9618c1049c810178.zip
tcl-2fd96ebf50a255b39eb2794a9618c1049c810178.tar.gz
tcl-2fd96ebf50a255b39eb2794a9618c1049c810178.tar.bz2
Fix Tk [1562e10c58]: with macOS framework build, tclsh cannot find Tk if there are multiple versions. Rebuild unix/configure with autoconf 2.72
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure2
-rw-r--r--unix/configure.ac4
2 files changed, 5 insertions, 1 deletions
diff --git a/unix/configure b/unix/configure
index 2ef18ad..f9c6a24 100755
--- a/unix/configure
+++ b/unix/configure
@@ -11400,6 +11400,8 @@ fi
if test "$FRAMEWORK_BUILD" = "1" ; then
test -z "$TCL_PACKAGE_PATH" && \
TCL_PACKAGE_PATH="~/Library/Tcl:/Library/Tcl:~/Library/Frameworks:/Library/Frameworks"
+ # Allow tclsh to find Tk when multiple versions are installed. See Tk [1562e10c58].
+ TCL_PACKAGE_PATH="$TCL_PACKAGE_PATH:/Library/Frameworks/Tk.framework/Versions"
test -z "$TCL_MODULE_PATH" && \
TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl"
elif test "$prefix/lib" != "$libdir"; then
diff --git a/unix/configure.ac b/unix/configure.ac
index f2a1b58..32a0042 100644
--- a/unix/configure.ac
+++ b/unix/configure.ac
@@ -4,7 +4,7 @@ dnl generate the file "configure", which is run during Tcl installation
dnl to configure the system for the local environment.
AC_INIT([tcl],[9.0])
-AC_PREREQ([2.69])
+AC_PREREQ([2.72])
dnl This is only used when included from macosx/configure.ac
m4_ifdef([SC_USE_CONFIG_HEADERS], [
@@ -891,6 +891,8 @@ AC_SUBST(TCL_BUILDTIME_LIBRARY)
if test "$FRAMEWORK_BUILD" = "1" ; then
test -z "$TCL_PACKAGE_PATH" && \
TCL_PACKAGE_PATH="~/Library/Tcl:/Library/Tcl:~/Library/Frameworks:/Library/Frameworks"
+ # Allow tclsh to find Tk when multiple versions are installed. See Tk [1562e10c58].
+ TCL_PACKAGE_PATH="$TCL_PACKAGE_PATH:/Library/Frameworks/Tk.framework/Versions"
test -z "$TCL_MODULE_PATH" && \
TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl"
elif test "$prefix/lib" != "$libdir"; then