This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: [PATCH] Fix toplevel configure for --target TARGET_NAME etc.


On Thu, Jan 16, 2003 at 12:21:42PM -0500, DJ Delorie wrote:
> 
> > But why do you need the alternatives?  We've done without them
> > perfectly well.
> 
> It's not about needing the alternatives, it's about understanding the
> options that autoconf will accept anyway.  What we're trying to do
> here is remove known options.  Since autoconf allows those options, we
> must handle them as well.

So shall I go with:

2003-01-16  Jakub Jelinek  <jakub@redhat.com>

	* configure.in (baseargs): Avoid using \| in sed regular
	expressions.
	* configure: Rebuilt.

--- configure.in.jj	2003-01-16 17:00:25.000000000 +0100
+++ configure.in	2003-01-16 18:04:06.000000000 +0100
@@ -1794,11 +1794,16 @@ AC_SUBST_FILE(serialization_dependencies
 # down to subconfigures.
 baseargs=`echo " ${ac_configure_args} " | \
 	sed -e 's/ --no[[^ ]]* / /' \
-	    -e 's/ \(--c[[a-z-]]*\|-cache-file\)[[= ]][[^ ]]* / /' \
-	    -e 's/ \(--sr[[a-z-]]*\|-srcdir\)[[= ]][[^ ]]* / /' \
-	    -e 's/ \(--ho[[a-z-]]*\|-host\)[[= ]][[^ ]]* / /' \
-	    -e 's/ \(--bu[[a-z-]]*\|-build\)[[= ]][[^ ]]* / /' \
-	    -e 's/ \(--t[[a-z-]]*\|-target\)[[= ]][[^ ]]* / /' \
+	    -e 's/ --c[[a-z-]]*[[= ]][[^ ]]* / /' \
+	    -e 's/ --sr[[a-z-]]*[[= ]][[^ ]]* / /' \
+	    -e 's/ --ho[[a-z-]]*[[= ]][[^ ]]* / /' \
+	    -e 's/ --bu[[a-z-]]*[[= ]][[^ ]]* / /' \
+	    -e 's/ --t[[a-z-]]*[[= ]][[^ ]]* / /' \
+	    -e 's/ -cache-file[[= ]][[^ ]]* / /' \
+	    -e 's/ -srcdir[[= ]][[^ ]]* / /' \
+	    -e 's/ -host[[= ]][[^ ]]* / /' \
+	    -e 's/ -build[[= ]][[^ ]]* / /' \
+	    -e 's/ -target[[= ]][[^ ]]* / /' \
 	    -e 's/ [[^ -][^ ]*] / /' \
 	    -e 's/^ *//;s/ *$//'`
 
--- configure.jj	2003-01-16 17:01:13.000000000 +0100
+++ configure	2003-01-16 19:45:57.000000000 +0100
@@ -2452,11 +2452,16 @@ serialization_dependencies=serdep.tmp
 # down to subconfigures.
 baseargs=`echo " ${ac_configure_args} " | \
 	sed -e 's/ --no[^ ]* / /' \
-	    -e 's/ \(--c[a-z-]*\|-cache-file\)[= ][^ ]* / /' \
-	    -e 's/ \(--sr[a-z-]*\|-srcdir\)[= ][^ ]* / /' \
-	    -e 's/ \(--ho[a-z-]*\|-host\)[= ][^ ]* / /' \
-	    -e 's/ \(--bu[a-z-]*\|-build\)[= ][^ ]* / /' \
-	    -e 's/ \(--t[a-z-]*\|-target\)[= ][^ ]* / /' \
+	    -e 's/ --c[a-z-]*[= ][^ ]* / /' \
+	    -e 's/ --sr[a-z-]*[= ][^ ]* / /' \
+	    -e 's/ --ho[a-z-]*[= ][^ ]* / /' \
+	    -e 's/ --bu[a-z-]*[= ][^ ]* / /' \
+	    -e 's/ --t[a-z-]*[= ][^ ]* / /' \
+	    -e 's/ -cache-file[= ][^ ]* / /' \
+	    -e 's/ -srcdir[= ][^ ]* / /' \
+	    -e 's/ -host[= ][^ ]* / /' \
+	    -e 's/ -build[= ][^ ]* / /' \
+	    -e 's/ -target[= ][^ ]* / /' \
 	    -e 's/ [^ -][^ ]* / /' \
 	    -e 's/^ *//;s/ *$//'`
 


	Jakub


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