Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Nathanael Nerode <neroden@twcny.rr.com>
Cc: klee@apple.com, gdb-patches@sources.redhat.com,
	binutils@sources.redhat.com, newlib@sources.redhat.com,
	gcc@gcc.gnu.org
Subject: Re: [RFC] Update to current automake/autoconf/libtool versions.
Date: Fri, 06 Dec 2002 06:45:00 -0000	[thread overview]
Message-ID: <Pine.GSO.3.96.1021206143441.26674C-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <20021205190728.GA11507@doctormoo>

On Thu, 5 Dec 2002, Nathanael Nerode wrote:

> It was mentioned that autoconf2.5 scripts will have trouble with 
> building because of the top level passing down --target unconditionally.
> 
> Unfortunately I think some other aspects of the configure scripts 
> require --target to be passed down unconditionally. :-/  Otherwise I'd 
> just change it.

 Well, at least ${tooldir} requires to be set properly (that's typically
${exec_prefix}/${target_alias}) and currently it is done by passing
--target which sets ${target_alias}.  However it may be possible to set
${tooldir} based on ${host_alias} or even ${build_alias}, as ${*_alias}
variables are empty if not set by a user.  I think the order should be:

if test "x${target_alias}" != x; then
	# Cross-tools
	tooldir = '${exec_prefix}'/${target_alias}
elif test "x${host_alias}" != x; then
	# Native tools for a different host
	tooldir = '${exec_prefix}'/${host_alias}
elif test "x${build_alias}" != x; then
	# Native tools using an explicit alias
	tooldir = '${exec_prefix}'/${build_alias}
else
	# Native tools using a default alias
	tooldir = '${exec_prefix}'/${build}
fi

And then only pass these of --build, --host, --target to subdirectories
which have their respective ${*_alias} variable set.  Obviously
${program_prefix} should either only be set if ${target_alias} is not
empty or use the above outline, too. 

 I'll check if the approach works for me -- anyone interested is invited
to do that, too.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


  parent reply	other threads:[~2002-12-06 13:52 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-05 11:08 Nathanael Nerode
2002-12-05 11:31 ` Andrew Cagney
2002-12-05 13:31 ` Zack Weinberg
2002-12-05 14:36   ` Alan Modra
2002-12-05 14:56     ` Ian Lance Taylor
2002-12-05 15:22       ` Alan Modra
2002-12-05 15:43         ` Ian Lance Taylor
2002-12-05 15:51           ` Andrew Cagney
2002-12-05 15:47         ` Mike Stump
2002-12-05 16:30           ` Alan Modra
2002-12-05 16:45             ` Zack Weinberg
2002-12-08  2:49         ` Klee Dienes
2002-12-05 14:29 ` Christopher Faylor
2002-12-06  6:45 ` Maciej W. Rozycki [this message]
2002-12-08 10:53 ` Klee Dienes
2003-01-12 10:32 ` [RFC] Update to current automake/autoconf/libtool versions (take 2) Klee Dienes
2003-01-12 16:14   ` Nathanael Nerode
2003-01-12 17:14   ` Zack Weinberg
2003-01-13  3:32     ` Klee Dienes
2003-01-13  7:31       ` Zack Weinberg
     [not found] <9A4230D6-1D26-11D7-BFCA-00039396EEB8@apple.com>
2003-01-12 13:22 ` [RFC] Update to current automake/autoconf/libtool versions Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2002-12-06  5:28 Nathanael Nerode
2002-12-05 14:42 Joern Rennecke
2002-12-05 14:40 Nathanael Nerode
2002-12-05 15:19 ` Zack Weinberg
2002-12-06 10:21   ` Tom Tromey
2002-12-07 13:06   ` Alexandre Oliva
2002-12-07 16:03     ` Zack Weinberg
2002-12-09 19:16       ` Alexandre Oliva
2002-12-09 21:52         ` Geoff Keating
2002-12-08 13:11     ` Tom Tromey
2002-12-05 10:15 Michael Elizabeth Chastain
2002-12-05 10:37 ` Klee Dienes
2002-11-13 10:32 [RFA/PATCH] Darwin fixes for ltconfig, ltcf-c.sh Klee Dienes
2002-12-04 22:04 ` [RFC] Update to current automake/autoconf/libtool versions Klee Dienes
2002-12-05  5:26   ` Hans-Peter Nilsson
2002-12-05 14:07     ` Alan Modra
2002-12-05  7:43   ` Andrew Cagney
2002-12-05  8:22     ` Klee Dienes
2002-12-05  9:01       ` Andrew Cagney
2002-12-05 12:55         ` Klee Dienes
2002-12-05 13:03           ` Daniel Jacobowitz
2002-12-05 13:13             ` Andrew Cagney
2002-12-05 13:16               ` Daniel Jacobowitz
2002-12-05 13:08           ` Andrew Cagney
2002-12-05 13:18             ` Klee Dienes
2002-12-05  8:28     ` DJ Delorie
2002-12-05  9:37       ` Klee Dienes
2002-12-05  9:42         ` DJ Delorie
2002-12-05 10:28           ` Klee Dienes
2002-12-05  9:31     ` H. J. Lu
2002-12-05  7:44   ` Maciej W. Rozycki
2002-12-05  9:01     ` Klee Dienes
2002-12-05  8:09   ` Daniel Jacobowitz
2002-12-05  8:29     ` DJ Delorie
2002-12-05  8:35       ` Daniel Jacobowitz
2002-12-05  8:37         ` DJ Delorie
2002-12-05  8:40         ` Maciej W. Rozycki
2002-12-05  8:44           ` Daniel Jacobowitz
2002-12-05  9:19             ` Elena Zannoni
2002-12-05  9:54             ` Klee Dienes
2002-12-05 10:10               ` Maciej W. Rozycki
2002-12-05 10:59               ` Andrew Cagney
2002-12-06  5:52                 ` Maciej W. Rozycki
2002-12-05 10:59               ` Doug Evans
2002-12-05 12:11                 ` Klee Dienes
2002-12-05 12:23                   ` Ian Lance Taylor
2002-12-05 14:29                     ` Klee Dienes
2002-12-06  5:34                 ` Maciej W. Rozycki
2002-12-06  7:25                   ` DJ Delorie
2002-12-06  8:06                     ` Maciej W. Rozycki
2002-12-06  8:47                       ` DJ Delorie
2002-12-05 13:59               ` Ben Elliston
2002-12-05 13:41                 ` Ben Elliston
2002-12-30 16:10   ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.3.96.1021206143441.26674C-100000@delta.ds2.pg.gda.pl \
    --to=macro@ds2.pg.gda.pl \
    --cc=binutils@sources.redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=klee@apple.com \
    --cc=neroden@twcny.rr.com \
    --cc=newlib@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox