This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch for expect to build on Cygwin
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 15 Jul 2003 15:37:25 -0300
- Subject: Re: patch for expect to build on Cygwin
- Organization: GCC Team, Red Hat
- References: <orsmp89axf.fsf@free.redhat.lsd.ic.unicamp.br>
On Jul 14, 2003, Alexandre Oliva <aoliva@redhat.com> wrote:
> The problem was that, on Cygwin, expect/configure couldn't find
> the tk config file in the build tree
It would also find the wrong tcl config file: tcl/cygwin/tclConfig.sh
is full of variables that aren't substituted properly, and itcl/tcl.m4
indicates we should be using tcl/win/tclConfig.sh instead, so I'm
changing expect to that effect. In fact, if you're unlucky to have
expect configured before itcl, it would pollute config.cache to the
point that itcl wouldn't build.
What I don't understand is why itcl has outdated code in its
aclocal.m4. That code is not used, it is tcl.m4 that is used in
iwidgets.
Anyway, I'm going ahead and checking this in as well, which should get
s.r.c gdb/insight/etc back to a buildable state on Cygwin regardless
of the order in which expect and itcl are configured (or if
config.cache is disabled)
Index: expect/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* aclocal.m4 (CY_AC_PATH_TCLCONFIG): Use .../tcl/win, not cygwin.
* configure, Dbgconfigure, testsuite/configure: Rebuilt.
Index: expect/aclocal.m4
===================================================================
RCS file: /cvs/src/src/expect/aclocal.m4,v
retrieving revision 1.4
diff -u -p -r1.4 aclocal.m4
--- expect/aclocal.m4 14 Jul 2003 19:16:43 -0000 1.4
+++ expect/aclocal.m4 15 Jul 2003 18:36:58 -0000
@@ -201,8 +201,8 @@ changequote(,)
ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
break
fi
- if test -f "$i/cygwin/tclConfig.sh" ; then
- ac_cv_c_tclconfig=`(cd $i/cygwin; pwd)`
+ if test -f "$i/win/tclConfig.sh" ; then
+ ac_cv_c_tclconfig=`(cd $i/win; pwd)`
break
fi
done
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer