#!/bin/bash

# We needed tclsh to compile sqlite.
# 1. Got tcl from https://sourceforge.net/projects/tcl/files/Tcl/8.6.17/
#    (https://sourceforge.net/projects/tcl/files/Tcl/)
# 2. Had to rename the tarball without -src in the filename for cascase-make commands to work.
# So renamed it to tcl8.5.19.tar.gz
# 3. Configure and make (install) need to be run from the tcl folder's **unix** subfolder.
# Duckduckgo's Search Assist:
# "To compile tclsh, download the Tcl source code, extract it,
# navigate to the *Unix* directory, and run the commands
#   ./configure, make, and make install.
# This process will create the tclsh executable that allows you to run Tcl commands."

#tcl8.5.19-src.tar.gz
package=tcl
version=8.5.19

progname=$0

source ../cascade-make/lib/cascade-lib.bash GEXTSVN ../.. $*

prefix=$GEXTSVN_INSTALLED

opt_run_untar $force_untar $auto_untar $package $version

opt_run_configure $force_config $auto_config $package $version/unix $prefix --disable-tcl

opt_run_make $compile   $package $version/unix
opt_run_make $install   $package $version/unix "install"
opt_run_make $clean     $package $version/unix "clean"
opt_run_make $distclean $package $version/unix "distclean"

opt_run_tarclean $tarclean $package $version




