On Sat, May 06, 2000 at 12:35:34AM -0400, Pavel Roskin wrote:
> Hello!
Hey there.
> The current Libtool from CVS (head version) fails when I run configure:
>
> ltconfig: you must specify a host type if you use `--no-verify'
>
> It turns out that the following code from libtool.m4 is at fault:
>
> case "$target" in
> NONE) lt_target="$host" ;;
> *) lt_target="$target" ;;
> esac
>
> With the CVS Autoconf "$target" is an empty string. "$host" is not
> empty. This code apparently expects "$target" to be "NONE" for native
> configurations.
Hmm. I'm pretty sure autoconf 2.13 set target to "NONE".
> Question 1. What has Libtool to do with "$target"? Libtool is a wrapper
> around the compiler doing the build, not being built.
Libtool needs to know whether the helper binaries it builds need to
use a native compiler when it is configure to cross compile librarier
to a different target. If cross compiling to Windows, for example,
impgen needs to run locally for dlls built for the target host.
> Question 2. If I'm missing something and more serious modifications are
> not needed, shouldn't we write the following code instead?
>
> case "x$target" in
> xNONE|x) lt_target="$host" ;;
> *) lt_target="$target" ;;
> esac
Looks good to me. I'm committing it now. Thanks.
Cheers,
Gary.
--
___ _ ___ __ _ mailto: [EMAIL PROTECTED]
/ __|__ _ _ ___ _| | / / | / /_ _ _ _ __ _| |_ __ _ ___ [EMAIL PROTECTED]
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
\___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page: /___/ /___/ gpg public key:
http://www.oranda.demon.co.uk http://www.oranda.demon.co.uk/key.asc