From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29296 invoked by alias); 28 Dec 2002 09:22:26 -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 29281 invoked from network); 28 Dec 2002 09:22:25 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by 209.249.29.67 with SMTP; 28 Dec 2002 09:22:25 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id gBS9M9Y06277; Sat, 28 Dec 2002 04:22:10 -0500 Received: from free.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.6/8.12.6) with ESMTP id gBS9M7MK003724; Sat, 28 Dec 2002 07:22:07 -0200 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.6/8.12.6/Submit) id gBS9M5O8003720; Sat, 28 Dec 2002 07:22:05 -0200 To: Nathanael Nerode Cc: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, kazu@cs.umass.edu Subject: Re: (toplevel) Fix dramatic breakage for ordinary crosses (related to program_transform_name) References: <20021228082638.GA24817@doctormoo> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Sat, 28 Dec 2002 01:33:00 -0000 In-Reply-To: <20021228082638.GA24817@doctormoo> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00708.txt.bz2 On Dec 28, 2002, Nathanael Nerode wrote: > I can't reproduce exactly the problem you had, Kazu, but I did manage to > generate some dramatic breakage; apparently autoconf's version of > $program_transform_name doesn't like to be after the s/x/x/ in sed. That's just because, unlike the Cygnus configure one, autoconf's $(program_transform_name) doesn't start with a -e. In fact, autoconf uses `;' as the sed command separator, whereas Cygnus configure used to use multiple sed commands, each one prefixed by -e. autoconf's approach is reportedly a little bit more portable. This unfortunately means that your fix is not quite perfect yet, since multiple transform commands would be word-split and sed might take them as input file names. I suggest replacing: t='$(program_transform_name)'; echo as | sed -e $$t ; \ with echo as | sed '$(program_transform_name)'; \ that is the construct used by automake. -- 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