This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix toplevel configure --enable-multilib handling (PR bootstrap/43328)
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: DJ Delorie <dj at redhat dot com>
- Cc: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Wed, 31 Mar 2010 07:44:46 +0200
- Subject: Re: [PATCH] Fix toplevel configure --enable-multilib handling (PR bootstrap/43328)
- References: <20100313093157.GA11397@gmx.de> <20100330184945.GC32187@gmx.de> <201003301930.o2UJU93c016403@greed.delorie.com>
* DJ Delorie wrote on Tue, Mar 30, 2010 at 09:30:09PM CEST:
>
> > Ping <http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00509.html>
>
> Ok.
Thanks for your review.
FYI binutils and gdb-patches, I'm syncing this from GCC.
Cheers,
Ralf
2010-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR bootstrap/43328
* configure.ac: Do not pass --enable-multilib nor
--disable-multilib in baseargs. Accept explicitly passed
--enable_multilib.
* configure: Regenerate.
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/configure.ac,v
retrieving revision 1.98
diff -u -r1.98 configure.ac
--- configure.ac 23 Mar 2010 16:05:34 -0000 1.98
+++ configure.ac 31 Mar 2010 05:42:40 -0000
@@ -2882,6 +2882,9 @@
skip_next=$separate_arg
continue
;;
+ --enable-multilib | --disable-multilib)
+ continue
+ ;;
-*)
# An option. Add it.
case $ac_arg in
@@ -2950,10 +2953,12 @@
target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
fi
-# Default to --enable-multilib.
-if test x${enable_multilib} = x ; then
+# Pass --enable-multilib to target dirs; default to --enable-multilib.
+case $enable_multilib in
+'' | yes)
target_configargs="--enable-multilib ${target_configargs}"
-fi
+ ;;
+esac
# Pass --with-newlib if appropriate. Note that target_configdirs has
# changed from the earlier setting of with_newlib.