Right now, iwidgets configure requires special flags to tell it where to find where itcl was installed. It would be useful if, before giving up, it actually looked in --prefix or --exec_prefix's directories. If someone provides those flags, then they are indicating where iwidgets should be installed. so a check for itclConfig.sh in $prefix/lib or $exec_prefix/lib seems appropriate.
Of course, it will have to know about the version number that itcl used when it installed stuff. Too bad itcl doesn't put the install directory name into $prefix/lib/itclConfig.sh ...
Larry, is this still valid?
yes, iwidgets still can't find itcl's source.
I think the situation is this - the configure expects that it is being executed out of the iwidget top level directory. So it has code that says:
# Check whether --with-itcl or --without-itcl was given.
if test "${with_itcl+set}" = set; then
withval="$with_itcl"
itcl_search=$withval
else
itcl_search=`cd ${srcdir}/..; pwd`
fi;
ITCL_LIB_DIR=""
The itcl_search only looks at a sibling directory.
If someone (like me) does their configure under iwidgets/unix or iwidgets/sun or whatever
directory, the search doesn't look up 2 levels to find where itcl is at.
If iwidgets looked in $prefix/lib/itclConfig.sh for the ITCL_SRC_DIR variable, that would give it another place to check.
if test -r $itcl_search/itcl/library/itcl.tcl \ -a -r $itcl_search/itk/library/itk.tcl; then
ITCL_LIB_DIR=$itcl_search/itcl/library
ITCL_SRC_DIR=$itcl_search/itcl
ITK_LIB_DIR=$itcl_search/itk/library
ITK_SRC_DIR=$itcl_search/itk
fi