From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12463 invoked by alias); 10 Jun 2003 22:06:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12402 invoked from network); 10 Jun 2003 22:06:42 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 10 Jun 2003 22:06:42 -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 h5AM6ZK28097; Tue, 10 Jun 2003 18:06:36 -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.8/8.12.8) with ESMTP id h5AM6Ywn021853; Tue, 10 Jun 2003 19:06:34 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.8/8.12.8/Submit) id h5AM6Xos021744; Tue, 10 Jun 2003 19:06:33 -0300 To: "Maciej W. Rozycki" Cc: Nathanael Nerode , gcc@gcc.gnu.org, gdb@sources.redhat.com, binutils@sources.redhat.com Subject: Re: Partial autoconf transition thoughts References: From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Tue, 10 Jun 2003 22:06:00 -0000 In-Reply-To: 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: 2003-06/txt/msg00174.txt.bz2 On Jun 10, 2003, "Maciej W. Rozycki" wrote: > Well, if I specify --host, I mean I want to use a different alias than > the one that is expanded by config.sub. --host has absolutely nothing to do with config.sub. --host defaults to --build, that defaults to the output of config.guess. If you want to override --build, just do it, and it will be propagated to host as well. If you mean to specify different --build and --hosts, that's a cross. If you specify --build and --host and they're identical, that's a native for now, but it'll eventually be a cross because there's no point in specifying --host if you don't want a cross. > The change is not purely internal > to the compilation process -- there are examples, binutils and gcc > inclusive, where this alias gets propagated to file names, e.g. as a > prefix to executables or as a name of the tooldir. That's --target, something entirely different. > I'd like to see this capability preserved, not necessarily exactly the > way it's being done now. One possibility for host_alias and also > target_alias is to default to build_alias and host_alias instead of host > and target, respectively, as it happens now. Huh? Where is it that host_alias defaults to build or build_alias? In autoconf, it defaults to neither. If --host is not specified, host_alias remains blank, not the same as build_alias, not the same as nonopt, not the same as the output of config.guess. Nathan was kind enough to write macros that do exactly what you want, AFAICT, setting {build,host,target}_noncanonical, which is what we'd now use for what we used to use {build,host,target}_alias, whose meaning is slightly different in autoconf 2.5x. I.e., it does what you already. -- 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