This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: Carlo Wood <carlo at alinoe dot com>
- Cc: Edwin Bates <ebates at Ebix dot com>, "'rodrigc at gcc dot gnu dot org'" <rodrigc at gcc dot gnu dot org>, "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>, "'gcc-prs at gcc dot gnu dot org'" <gcc-prs at gcc dot gnu dot org>, "'nobody at gcc dot gnu dot org'" <nobody at gcc dot gnu dot org>, "'gcc-gnats at gcc dot gnu dot org'" <gcc-gnats at gcc dot gnu dot org>, Steve Moore <SMoore at Ebix dot com>
- Date: Mon, 28 Jan 2002 22:54:29 -0500
- Subject: Re: other/5515: ./configure fails: sed: Function s%@subdirs@% cp cannot be parsed.
- References: <EC50CB43279ED311A3720008C7DB7664019E590A@RM_EXEC1> <20020128212614.A10425@mediaone.net> <20020129040009.A1385@alinoe.com>
On Tue, Jan 29, 2002 at 04:00:09AM +0100, Carlo Wood wrote:
> <guru mode on>
> Maybe I can shine a light on this.
> One of the reasons that configure fails to substitue
> is when
> 1) A substitution contains new-lines
> 2) The substitution is exactly overlapping
> the border at which the substitution command
> is cut into multiple sed commands.
>
> Obviously this a coincidence, but in fact only
> truely safe when none of the substitution contain
> new-lines.
>
> What the patch below might change is replacing
> new-lines in ${subdirs} into spaces.
> </guru mode off>
OK. Zack Weinberg applied a patch which does a similar
thing to subdirs:
http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/gcc/configure.in.diff?r1=text&tr1=1.573&r2=text&tr2=1.574&diff_format=u
and:
http://subversions.gnu.org/cgi-bin/viewcvs/gcc/gcc/gcc/configure.diff?r1=text&tr1=1.583&r2=text&tr2=1.584&diff_format=u
So maybe that is the right thing to do here?
Edwin, can you try changing your fix to:
subdirs='$subdirs'
and see if that works?
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net