autoconf-patches
[Top][All Lists]
Advanced

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

Re: proposed patch for "Tests failed with LINENO." Autoconf bug


From: Akim Demaille
Subject: Re: proposed patch for "Tests failed with LINENO." Autoconf bug
Date: 30 Oct 2001 16:17:49 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

>>>>> "Raja" == Raja R Harinath <Raja> writes:

Raja> Sorry, I'm flogging a dead horse.

Raja> awk is not mentioned in the set of "allowed to use" utilities in
Raja> standards.texi (Utilities in Makefiles).

This standard is completely obsolete.  AWK is available *everywhere*.
It has portability problems of its own, but its absence in the GCS
only means it's not listed there :)

Raja> So, if we want a pure sed hack, we can use the following to
Raja> generate a sed script which handles more than one occurance of
Raja> $LINENO too.

Raja>   sed -n '/$LINENO/=' $as_myself | sed 's/^.*$/& s,$LINENO,&,g/'
Raja> > lineno.sed sed -f lineno.sed $as_myself > $as_me.lineno

I bet you'll fall on sed limitations here.  Remember some sed have a
limit of 100 commands for instance.



reply via email to

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