584 |
rm -f conftest.tcl |
rm -f conftest.tcl |
585 |
cat >> conftest.tcl <<EOF |
cat >> conftest.tcl <<EOF |
586 |
[ |
[ |
587 |
|
set dir [set tcl_library] |
588 |
|
if { [file exists [file join [set dir] tclConfig.sh]] } { |
589 |
|
puts [set dir] |
590 |
|
exit |
591 |
|
} |
592 |
set dir [file dirname [set tcl_library]] |
set dir [file dirname [set tcl_library]] |
593 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
594 |
puts [set dir] |
puts [set dir] |
597 |
EOF |
EOF |
598 |
cp conftest.tcl foo.tcl |
cp conftest.tcl foo.tcl |
599 |
|
|
600 |
AC_CHECK_PROG(TCLSH,tclsh,tclsh) |
AC_CHECK_PROG(TCLSH,tclsh,tclsh,${TCLSH}) |
601 |
AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
602 |
|
|
603 |
if test "${TCLSH}" = "" ; then true ; else |
if test "${TCLSH}" = "" ; then true ; else |
604 |
TCL_CONFIG_PREFIX=`${TCLSH} < conftest.tcl` |
TCL_CONFIG_PREFIX=`${TCLSH} < conftest.tcl` |
613 |
rm -f conftest.tcl |
rm -f conftest.tcl |
614 |
cat >> conftest.tcl <<EOF |
cat >> conftest.tcl <<EOF |
615 |
[ |
[ |
616 |
|
set dir [set tk_library] |
617 |
|
if { [file exists [file join [set dir] tkConfig.sh]] } { |
618 |
|
puts [set dir] |
619 |
|
exit |
620 |
|
} |
621 |
set dir [file dirname [set tk_library]] |
set dir [file dirname [set tk_library]] |
622 |
if { [file exists [file join [set dir] tkConfig.sh]] } { |
if { [file exists [file join [set dir] tkConfig.sh]] } { |
623 |
puts [set dir] |
puts [set dir] |
626 |
] |
] |
627 |
EOF |
EOF |
628 |
cp conftest.tcl foo.tcl |
cp conftest.tcl foo.tcl |
629 |
AC_CHECK_PROG(TKSH,wish,wish) |
AC_CHECK_PROG(TKSH,wish,wish,${TKSH}) |
630 |
AC_CHECK_PROG(TKSH,wish8.0,wish8.0,${TKSH}) |
#AC_CHECK_PROG(TKSH,wish8.0,wish8.0,${TKSH}) |
631 |
if test "${TKSH}" = "" ; then true ; else |
if test "${TKSH}" = "" ; then true ; else |
632 |
TK_CONFIG_PREFIX=`${TKSH} < conftest.tcl` |
TK_CONFIG_PREFIX=`${TKSH} < conftest.tcl` |
633 |
fi |
fi |