This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: non-portable construct in gcc configure script


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

>> That looks like a sensible way to do it.
>
> Thanks for your answer!
>
>> > -			 | grep -A1 myfoosect`
>> > +			 | sed -n '/.*myfoosect.*/{
>> > +						  N
>> > +						  p
>> > +						  }'`
>>
>> Suggest  '/myfoosect/{; N; p; }'
>
> Yes, the '.*' are clearly superfluous. But the ';' as separator doesn't work 
> with Solaris sed so I resorted to what the Solaris manual says (and which 
> works with GNU sed too).

Odd, ; as separator works fine for me with /usr/bin/sed on Solaris 8.
However, this is tangential.

> I've already posted a patch, not yet reviewed:
> http://gcc.gnu.org/ml/gcc-patches/2003-05/msg02277.html

I'll approve that patch.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]