Improve TCL detection (for Ubuntu Feisty) and use tclConfig.sh for header file location

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-08-09 23:13:39 +00:00
commit 665917ebae

View file

@ -470,9 +470,11 @@ if test x"${with_tclconfig}" != x ; then
fi
# check in a few common install locations
if test x"${TCLCONFIG}" = x ; then
for i in `ls -d /usr/lib 2>/dev/null` \
`ls -d /usr/local/lib 2>/dev/null` ; do
if test -f "$i/tclConfig.sh" ; then
for i in `ls -d /usr/lib/ 2>/dev/null` \
`ls -d -r /usr/lib/tcl*/ 2>/dev/null` \
`ls -d /usr/local/lib/ 2>/dev/null` \
`ls -d -r /usr/local/lib/tcl*/ 2>/dev/null` ; do
if test -f $i"tclConfig.sh" ; then
TCLCONFIG=`(cd $i; pwd)`
break
fi
@ -484,7 +486,7 @@ else
AC_MSG_RESULT(found $TCLCONFIG/tclConfig.sh)
. $TCLCONFIG/tclConfig.sh
if test -z "$TCLINCLUDE"; then
TCLINCLUDE=$ISYSTEM$TCL_PREFIX/include
TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/"`
fi
if test -z "$TCLLIB"; then
TCLLIB=$TCL_LIB_SPEC