* [RFA] config/acinclude.m4 patch (CYG_AC_PATH_TCLCONFIG)
@ 2002-04-15 14:06 Keith Seitz
2002-04-15 14:33 ` Keith Seitz
0 siblings, 1 reply; 2+ messages in thread
From: Keith Seitz @ 2002-04-15 14:06 UTC (permalink / raw)
To: gcc-patches, binutils, gdb-patches
Hello,
This patch tweaks things most people won't ever notice... A recent
import of tcl/tk 8.3 does things a little differently than the previous
tcl/tk 8.0. The one that concerns me here is the one dealing with the
location of tclConfig.sh and tkConfig.sh.
tkConfig.sh is now located in tk/win/tkConfig.sh instead of
tk/unix/tkConfig.sh. tclConfig.sh is still in the same place, but it is
possible that it could one day also be in the win/ directory.
This patch "fixes" CYG_AC_PATH_TCLCONFIG and CYG_AC_PATH_TKCONFIG
so that it works on cygwin again. (It will still work fine with older
versions of tcl/tk that were done for cygwin.)
Ok to commit?
Keith
ChangeLog
2002-04-15 Keith Seitz <keiths@redhat.com>
* acinclude.m4 (CYG_AC_PATH_TCLCONFIG): Search the win/ directory,
too.
(CYG_AC_PATH_TKCONFIG): Likewise.
Patch
Index: config/acinclude.m4
===================================================================
RCS file: /cvs/src/src/config/acinclude.m4,v
retrieving revision 1.3
diff -p -r1.3 acinclude.m4
*** config/acinclude.m4 12 Apr 2002 01:23:53 -0000 1.3
--- config/acinclude.m4 15 Apr 2002 20:21:39 -0000
*************** if test x"${no_tcl}" = x ; then
*** 959,968 ****
--- 959,975 ----
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
*************** if test x"${no_tcl}" = x ; then
*** 978,987 ****
--- 985,1001 ----
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
*************** if test x"${no_tk}" = x ; then
*** 1178,1187 ****
--- 1192,1208 ----
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
*************** if test x"${no_tk}" = x ; then
*** 1197,1204 ****
--- 1218,1232 ----
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-15 21:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15 14:06 [RFA] config/acinclude.m4 patch (CYG_AC_PATH_TCLCONFIG) Keith Seitz
2002-04-15 14:33 ` Keith Seitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox