summaryrefslogtreecommitdiffstats
path: root/tcl-conf
blob: eaed677e0a24f085ab81174cb7ba82fb0cbc4bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# The next line is executed by /bin/sh, but not tcl \
exec tclsh "$0" ${1+"$@"}

set libpath [file dirname [info library]]
set includepath [file dirname $libpath]/include
catch {file delete -force config.cache}

puts "+++ Running 'configure --with-tcl=$libpath --with-tk=$libpath --with-tclinclude=$includepath --with-tkinclude=$includepath' in directory [pwd]..."
catch {exec ./configure \
            --with-tcl=$libpath --with-tk=$libpath \
            --with-tclinclude=$includepath \
            --with-tkinclude=$includepath >@stdout 2>@stderr}
exit 0