Akim Demaille wrote:
>
> >>>>> "Pavel" == Pavel Roskin <[EMAIL PROTECTED]> writes:
>
> Pavel> I don't know if this justifies additional coding. It's up to
> Pavel> you.
>
> Well, I hear you Pavel. I'm going to rewrite my patch, and submit
> it. It will try to warn when --host, --build or --target is used when
> it is not supposed to be.
>
I hope you consider that passing all three (including --target) can give
sense occasionally.
Example: A toplevel configure.in configuring packages in subdirectories
in a similar way to what the toplevel Cygnus-configure in Cygnus
source-tree does. [Imagine rewriting the toplevel Cygnus configure with
autoconf.]
>
> But I do understand that the present case is somewhat different, and
> if knowledgeable people agree it should die, I will follow you, of
> course.
>
IMO, passing --target rarely gives sense, but it sometimes does.
Therefore, if it shall be removed from AC_CANONICAL_SYSTEM, then a
AC_CANONICAL_TARGET macro should be provided instead.
> I have one question. It seems to me that --build always makes sense.
Agreed, it would then play the role $host* has been playing until now,
therefore it should be treated like $host has been treated before.
Therefore in case of a package not explicitly considering
cross-compilation (esp. if not using AC_CHECK_TOOLS and
AC_CANONICAL_HOST), it should be setup identical as $host* has been
setup until now, with $host now defaulting from $build.
> Still, should it be ``accepted'' only when some AC_CANONICAL_stuff was
> required?
AC_CANONICAL_* implies adding config.guess and config.sub.
To avoid always having to add config.guess and config.sub, $build* and
$host* should be both available in native-only cases, but should abort
if host!=build.
Then, host!=build should only be accepted if AC_CANONICAL_* (and
therefore config.guess/config.sub, too) is present.
Ralf
--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:[EMAIL PROTECTED] FAX: +49/731/501-999
http://www.faw.uni-ulm.de