On Jun 28, 2000, Mo DeJong <[EMAIL PROTECTED]> wrote:

> The problem of passing options down to sub configures
> is solved by my patch, right?

Yep.

> The only other issue is the change that required
> the user to pass --build instead of --host
> when only one is given on the command line.

When --host is given, we should not just assume we've got a cross
compiler.  Instead, we test the compiler we've got, and decide whether
it's a cross compiler or not.  If it is, we wouldn't have been able to
guess --build, and --build would have to have been specified anyway.
If it is not, then build is the same as host, so it wouldn't have to
be specified anyway.

The only concessions for backward compatibility we're making is that
--host alone will cause a cross-compilation situation to be
auto-detected, even though $build will be set to host, not to
`config.guess'.  But, as I said, there'd be no way to guess --build
correctly, so we might as well bail out when we detect a cross
compiler and --build wasn't specified.  But this would be a
backward-incompatible change.  I'm not sure how serious it is, though.

> Are there any other issues still unresolved?

I don't think so.

> If you are dead set on reverting to the
> old behavior

I'm not.  I want both behaviors, so that people can make the
conversion when it is more convenient for them, and we can have some
time for the world to adapt to the change.  And I hope my patch shows
it is possible to deliver that.

> will there at least be some sort of
> shortcut that can be used with new configure
> scripts so that a user can tell configure
> to do a cross compile without giving the
> entire --build triple for the build machine?

Sure: just run `configure --host=i386-mingw32'.  It will work, just as
before.  The problem is that, just as before, you won't have `--build'
set properly.

You can set:

% b=--build=`config.guess`

and run:

% ./configure $b --host=i386-mingw32

There's no way for configure to correctly guess the build platform, in
general, when it's told to use a cross compiler.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Reply via email to