From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29597 invoked by alias); 15 Jul 2003 18:37:28 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 29590 invoked from network); 15 Jul 2003 18:37:27 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 15 Jul 2003 18:37:27 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva.cipe.redhat.com [10.0.1.10]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id h6FIbQK12058 for ; Tue, 15 Jul 2003 14:37:26 -0400 Received: from free.redhat.lsd.ic.unicamp.br (free.redhat.lsd.ic.unicamp.br [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.9/8.12.9) with ESMTP id h6FIbPWU009362 for ; Tue, 15 Jul 2003 15:37:25 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.9/8.12.9/Submit) id h6FIbPjS009358; Tue, 15 Jul 2003 15:37:25 -0300 To: gdb-patches@sources.redhat.com Subject: Re: patch for expect to build on Cygwin References: From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Tue, 15 Jul 2003 18:37:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2003-07/txt/msg00303.txt.bz2 --=-=-= Content-length: 907 On Jul 14, 2003, Alexandre Oliva 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) --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=expect-cygwin-tcl.patch Content-length: 804 Index: expect/ChangeLog from Alexandre Oliva * 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 --=-=-= Content-length: 289 -- 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 --=-=-=--