diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-03-08 04:06:32 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-03-08 04:06:32 +0000 |
commit | 06bcfd599575cef3baa51db7c43df092f9593ef2 (patch) | |
tree | 3923963df7a3a1efbbfa3cdaf2f6c0dc7c57c20b | |
parent | dd4746e55810bfec66a0dd48b4bf4b9b3dd537e6 (diff) | |
download | krb5-06bcfd599575cef3baa51db7c43df092f9593ef2.tar.gz krb5-06bcfd599575cef3baa51db7c43df092f9593ef2.tar.xz krb5-06bcfd599575cef3baa51db7c43df092f9593ef2.zip |
* 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.
This allows the configure script to find /System/Library/Tcl/8.3/tclConfig.sh
on Jaguar.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16156 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/ChangeLog | 8 | ||||
-rw-r--r-- | src/aclocal.m4 | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2ab311c7ee..add07d89fb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +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 diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 030925f950..128457ab73 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -757,6 +757,8 @@ AC_REQUIRE([KRB5_LIB_AUX])dnl 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" @@ -930,6 +932,18 @@ if test "$with_tcl" = no ; then 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 |