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 ([EMAIL PROTECTED])


_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to