+2004-03-07 Ken Raeburn <raeburn@mit.edu>
+
+ * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Look for tclConfig.sh in
+ the specified directory if it's not in a "lib" subdirectory.
+ (AC_KRB5_TCL): If no pathname is supplied and tclConfig.sh isn't
+ found in /usr/lib, try running a script under tclsh to see if it
+ can supply the pathname for tclConfig.sh.
+
2004-03-05 Ken Raeburn <raeburn@mit.edu>
* configure.in: Integrate config commands from kdc, krb524, and
AC_MSG_CHECKING(for tclConfig.sh)
if test -r "$tcl_dir/lib/tclConfig.sh" ; then
tcl_conf="$tcl_dir/lib/tclConfig.sh"
+elif test -r "$tcl_dir/tclConfig.sh" ; then
+ tcl_conf="$tcl_dir/tclConfig.sh"
else
tcl_conf=
lib="$tcl_dir/lib"
true
elif test "$with_tcl" = yes -o "$with_tcl" = try ; then
tcl_dir=/usr
+ if test ! -r /usr/lib/tclConfig.sh; then
+ cat >> conftest <<\EOF
+puts "tcl_dir=$tcl_library"
+EOF
+ if tclsh conftest >conftest.out 2>/dev/null; then
+ if grep tcl_dir= conftest.out >/dev/null 2>&1; then
+ t=`sed s/tcl_dir=// conftest.out`
+ tcl_dir=$t
+ fi
+ fi # tclsh ran script okay
+ rm -f conftest conftest.out
+ fi # no /usr/lib/tclConfig.sh
else
tcl_dir=$with_tcl
fi