This is the mail archive of the gcc-patches@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]

Resubmit: Configure option discarded


This patch fixes a problem with parsing configure options when 
there is a special character in the option.  When an option
like --program-transform-name=s,^,prefix- is specified, baseargs is 
built up with quotes around the option.  Unfortunately, the sed script 
which is supposed to strip out selected options also eliminates any option 
which starts with a quote.

This should also be applied to src.


2003-05-12  Michael Eager <eager@mvista.com>

	* configure.in: Correct sed script so that options in quotes	
	are not deleted
	* configure: Rebuild

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.230
diff -u -r1.230 configure.in
--- configure.in        18 Apr 2003 12:32:35 -0000      1.230
+++ configure.in        10 May 2003 00:29:39 -0000
@@ -1757,7 +1757,7 @@
            -e 's/ -host[[= ]][[^ ]]* / /' \
            -e 's/ -build[[= ]][[^ ]]* / /' \
            -e 's/ -target[[= ]][[^ ]]* / /' \
-           -e 's/ [[^ -][^ ]*] / /' \
+           -e "s/ [[^' -][^ ]*] / /" \
            -e 's/^ *//;s/ *$//'`


--
Michael Eager     eager@mvista.com	408-328-8426	
MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA  94085


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