Configure stripping off first argument to subdirs
Daniel Jacobowitz
drow@mvista.com
Mon Dec 30 18:45:00 GMT 2002
I just spent a little while figuring out why my sysroot patches were broken,
and found that the problem is that configure is stripping out the first
option from ${ac_configure_args}. This seems to be the problem:
baseargs=`echo " ${ac_configure_args} " | \
sed -e 's/ --no[^ ]* / /' \
-e 's/ --cache[a-z-]*=[^ ]* / /' \
-e 's/ --sr[a-z-]*=[^ ]* / /' \
-e 's/ --ho[a-z-]*=[^ ]* / /' \
-e 's/ --bu[a-z-]*=[^ ]* / /' \
-e 's/ --ta[a-z-]*=[^ ]* / /' \
-e 's/ [^-][^ ]* / /' \
-e 's/^ *//;s/ *$//'`
ac_configure_args=" --prefix=blah --with-sysroot=blah" at this point. Note
the leading space. -e 's/ [^-][^ ]* / /' then deletes " --prefix=blah".
Is the leading space the problem, or should that say "[^ -]" instead?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc-bugs
mailing list