libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix for bootstrapping with latest CVS Autoconf


From: Gary V. Vaughan
Subject: Re: [PATCH] Fix for bootstrapping with latest CVS Autoconf
Date: Thu, 12 Oct 2000 22:38:04 +0100
User-agent: Mutt/1.2.5i

On Thu, Oct 12, 2000 at 12:38:11PM +0200, Morten Eriksen wrote:
> 
> BTW, I noticed something which looks a bit strange to me. Beginning at
> approximately line 2180 of libtool.m4 (from the head CVS branch),
> there are a lot of shell variables which are set up. But some of them
> are just set to their current value, for instance like this:
> 
> [...]
> # The host system.
> host_alias=$host_alias
> host=$host
> [...]
> # A symbol stripping program
> STRIP=$STRIP
> 
> # Used to examine libraries when file_magic_cmd begins "file"
> MAGIC_CMD=$MAGIC_CMD
> 
> # Used on cygwin: DLL creation program.
> DLLTOOL="$DLLTOOL"
> 
> # Used on cygwin: object dumper.
> OBJDUMP="$OBJDUMP"
> 
> # Used on cygwin: assembler.
> AS="$AS"
> [...]
> 
> ..etc, etc. What is the point in doing this?

It's all part of a big here document that writes the results of the
tests run by libtool.m4 to the start of the generated libtool script.

For example libtool.m4 contains tests which discover that on the host
system, MAGIC_CMD needs to be /usr/bin/file, so it writes the
following snippet into the libtool script:

    # Used to examine libraries when file_magic_cmd begins "file"
    MAGIC_CMD="/usr/bin/file"

And that, in turn is generated by the here document you quoted above.

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: address@hidden
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       address@hidden 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]