From ac8de714af1d7fbd755597b0f51792212f552ef7 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 20 Feb 2021 13:43:47 +0000 Subject: [PATCH] Travis testing tcl for MacOSX10.14 and later Used suggestion from https://www.postgresql-archive.org/PG-vs-macOS-Mojave-td6047357.html#a6056680 to add in sysroot. Note that the examples failed at runtime unless tcl was installed from homebrew: brew install --cask tcl --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index af4c89414..8f19c2471 100644 --- a/configure.ac +++ b/configure.ac @@ -496,7 +496,9 @@ fi dirs="/usr/lib*/ /usr/lib*/tcl*/ /usr/local/lib*/ /usr/local/lib*/tcl*/" case $host in *-*-darwin*) - dirs="/System/Library/Frameworks/Tcl.framework/ $dirs" + tcl_framework="/System/Library/Frameworks/Tcl.framework/" + macos_sysroot="$(xcodebuild -version -sdk macosx Path 2>/dev/null)" # For MacOSX10.14 and later + dirs="$macos_sysroot$tcl_framework $tcl_framework $dirs" ;; *) ;;