Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/sqlite/blob/master/autosetup/find_tclconfig.tcl # sqlite [Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `sqlite / autosetup / find_tclconfig.tcl` 26 lines ยท 671 bytes Raw Blame History 1 # 2 # Run this TCL script to find and print the pathname for the tclConfig.sh 3 # file. Used by ../configure 4 # 5 if {[catch { 6 set libdir [tcl::pkgconfig get libdir,install] 7 }]} { 8 puts stderr "tclsh too old: does not support tcl::pkgconfig" 9 exit 1 10 } 11 if {![file exists $libdir]} { 12 puts stderr "tclsh reported library directory \"$libdir\" does not exist" 13 exit 1 14 } 15 set candidates [list $libdir $libdir/tcl$::tcl_version] 16 foreach d $::tcl_pkgPath { 17 lappend candidates $d $d/tcl$::tcl_version 18 } 19 foreach d $candidates { 20 if {[file exists $d/tclConfig.sh]} { 21 puts $d 22 exit 0 23 } 24 } 25 puts stderr "cannot find tclConfig.sh in any of: [join $candidates {, }]" 26 exit 1