autoconf
[Top][All Lists]
Advanced

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

Re: config.status - robust sed substitutions


From: Robert Anderson
Subject: Re: config.status - robust sed substitutions
Date: 26 Feb 2003 15:39:42 -0800

On Wed, 2003-02-26 at 15:11, Paul Eggert wrote:
> Robert Anderson <address@hidden> writes:
> 
> > _quote_for_sed()
> > {
> >     cat<<_ACEOF | sed -e 's,[\&,],\\&,g'
> > $1
> > _ACEOF
> > }
> 
> Many shell implementations are extremely slow with here-documents.
> Some are even buggy, e.g. SunOS 4.1.4 /bin/sh, and this has caused
> problems with existing Autoconf-generated configure scripts.  We
> should try to avoid them.

I count 47 here-documents in autoconf/lib:

% find . -name \*.m4 | xargs egrep "<<[\]?_" | wc -l
    47

the majority of which are used to generate config.status.  Call me
stubborn but I can't see one more being a deal breaker (given the
alternatives).

Bob





reply via email to

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