libtool
[Top][All Lists]
Advanced

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

Re: func_infer_tag() broken on IRIX 6.5


From: Albert Chin
Subject: Re: func_infer_tag() broken on IRIX 6.5
Date: Wed, 11 Feb 2004 13:27:49 -0600
User-agent: Mutt/1.4i

On Wed, Feb 11, 2004 at 07:02:00PM +0000, Gary V. Vaughan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Albert Chin wrote:
> | So this means func_infer_tag() is broken in branch-1-5 because it does
> | this:
> |   func_infer_tag () {
> |       if test -n "$available_tags" && test -z "$tagname"; then
> |         CC_quoted=
> |   ...
> |         # Blanks at the start of $base_compile will cause this to fail
> |         # if we don't check for them as well.
> |         *)
> |           for z in $available_tags; do
> |             if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" >
> /dev/null; then
> |
> | So, should I modify the top of ltmain.in from:
> |   # The name of this program.
> |   progname=`$echo "$0" | ${SED} 's%^.*/%%'`
> |   modename="$progname"
> | to:
> |   # The name of this program.
> |   progname=`$echo "$0" | ${SED} 's%^.*/%%'`
> |   full_path_progname="$0"
> |   modename="$progname"
> |
> | and then we can use $full_path_progname in func_infer_tag().
> 
> Agreed, although I'd suggest argv0 as the variable name.

I submitted a patch using $progname_full_path. I dislike $argv0
because it's context-sensitive (i.e. in a shell function I'd expect it
to be $0).

-- 
albert chin (address@hidden)




reply via email to

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