autoconf-patches
[Top][All Lists]
Advanced

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

Re: 02-lineno.patch


From: Raja R Harinath
Subject: Re: 02-lineno.patch
Date: Thu, 27 Sep 2001 13:42:12 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105

Hi,

Raja R Harinath <address@hidden> writes:

>> | > Raja> You also need to capture the directory of the original
>> | > Raja> 'configure' call so that you can figure out $srcdir from it.
> [snip]
> > Thanks for pointing this out!  I don't know how to handle this
>> properly though...  Maybe we should pass something like
>> AS_ORIGINAL_INVOCATION_NAME?
>>
>>         exec AS_ORIGINAL_INVOCATION_NAME=$0 $as_me.lineno
>>
>> what do you think about that?  It should be configure-independent, as
>> it is M4sh code, not dedicated to Autoconf.
>
> Yep.  That seems the only option.  We can't assume the script has a
> --srcdir option.  
>
> It would be nice if autoconf/general.m4 didn't have to compute $srcdir
> on it's own.  Maybe m4sh should prove $as_mydir (== `dirname $0`) in
> parallel to $as_me (== `basename $0`) and autoconf/general.m4 just
> says:
>
>   if test -z "$srcdir"; then
>     ac_srcdir_default=yes
>     srcdir=$as_mydir
>     ...
>
> Then, AS_ORIGINAL_INVOCATION_NAME would be internal to m4sh.

One more place that needs to be fixed is autoconf/status.m4.

  cat >>$CONFIG_STATUS <<_ACEOF
    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
      echo "running $SHELL $[0] " $ac_configure_args " --no-create 
--no-recursion"
      exec $SHELL $[0] $ac_configure_args --no-create --no-recursion ;;
  _ACEOF

We'll need to use $AS_ORIGINAL_INVOCATION_NAME, or $as_mydir/$as_me
instead of $0.

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



reply via email to

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