dnl next check if it came with Tcl configuration file in the source tree
if test x"${ac_cv_c_tclconfig}" = x ; then
for i in $dirlist; do
+ dnl need to test both unix and win directories, since
+ dnl cygwin's tkConfig.sh could be in either directory depending
+ dnl on the cygwin port of tcl.
if test -f $srcdir/$i/unix/tclConfig.sh ; then
ac_cv_c_tclconfig=`(cd $srcdir/$i/unix; pwd)`
break
fi
+ if test -f $srcdir/$i/win/tclConfig.sh ; then
+ ac_cv_c_tclconfig=`(cd $srcdir/$i/win; pwd)`
+ break
+ fi
done
fi
dnl check in a few other locations
dnl find the exact Tcl dir. We do it this way, cause there
dnl might be multiple version of Tcl, and we want the most recent one.
for i in `ls -dr $tclconfpath/tcl* 2>/dev/null ` ; do
+ dnl need to test both unix and win directories, since
+ dnl cygwin's tclConfig.sh could be in either directory depending
+ dnl on the cygwin port of tcl.
if test -f $i/unix/tclConfig.sh ; then
ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
break
fi
+ if test -f $i/win/tclConfig.sh ; then
+ ac_cv_c_tclconfig=`(cd $i/win; pwd)`
+ break
+ fi
done
fi
AC_SUBST(TCL_RANLIB)
AC_SUBST(TCL_BUILD_LIB_SPEC)
AC_SUBST(TCL_LIB_SPEC)
+ AC_SUBST(TCL_BIN_DIR)
dnl AC_SUBST(TCL_LIB_VERSIONS_OK)
dnl not used, don't export to save symbols
# Note the gross little conversion here of srcdir by cd'ing to the found
# directory. This converts the path from a relative to an absolute, so
# recursive cache variables for the path will work right. We check all
-# the possible paths in one loop rather than many seperate loops to speed
+# the possible paths in one loop rather than many separate loops to speed
# things up.
# the alternative search directory is involked by --with-tkinclude
#
dnl next check if it came with Tk configuration file in the source tree
if test x"${ac_cv_c_tkconfig}" = x ; then
for i in $dirlist; do
+ dnl need to test both unix and win directories, since
+ dnl cygwin's tkConfig.sh could be in either directory depending
+ dnl on the cygwin port of tk.
if test -f $srcdir/$i/unix/tkConfig.sh ; then
ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
break
fi
+ if test -f $srcdir/$i/win/tkConfig.sh ; then
+ ac_cv_c_tkconfig=`(cd $srcdir/$i/unix; pwd)`
+ break
+ fi
done
fi
dnl check in a few other locations
dnl find the exact Tk dir. We do it this way, cause there
dnl might be multiple version of Tk, and we want the most recent one.
for i in `ls -dr $tkconfpath/tk* 2>/dev/null ` ; do
+ dnl need to test both unix and win directories, since
+ dnl cygwin's tkConfig.sh could be in either directory depending
+ dnl on the cygwin port of tk.
if test -f $i/unix/tkConfig.sh ; then
ac_cv_c_tkconfig=`(cd $i/unix; pwd)`
break
fi
+ if test -f $i/win/tkConfig.sh ; then
+ ac_cv_c_tkconfig=`(cd $i/win; pwd)`
+ break
+ fi
done
fi