Re: func_infer_tag() broken on IRIX 6.5

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

 



-----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 think we should also begin cataloging such portability issues, probably in
the autoconf manual... but for now I would like to nail down exactly how much
functionality we should expect of our shell functions (HEAD libtoolize uses
them extensively for example), and why and where other function features fail.

I've used return in a couple of places (twice with an integer return value),
which I fear may break on old platforms.  Otherwise I've assumed that all
shell variables are in global scope, and that positional parameters are
stacked and restored at function call boundaries to an arbitrary nesting
limit.

Removing the returns isn't too hard, but if my other assumptions are bad, then
1.6 is in trouble :-(

Cheers,
	Gary.
- --
Gary V. Vaughan      ())_.  gary@{lilith.warpmail.net,gnu.org}
Research Scientist   ( '/   http://www.oranda.demon.co.uk
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFAKnwoFRMICSmD1gYRAkvBAJYgOARzhLn2hvxziSSEp4GJ1lh7AKCuz4wK
6GQ9T+KdeWA960500AHkaw==
=dWhB
-----END PGP SIGNATURE-----



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux