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]

[PATCH] config-ml.in options with single quotes (PR bootstrap/18033)


	GCC configure surrounds each option within ac_configure_args with
single quotes.  When config-ml.in processes the options, '--disable-XXX'
and '--enable-XXX=no' do not match

case $option in
	--disable-*)
	...
	;;
	--enable-*)
	...
	;;

so the options are ignored.

	This patch strips single quotes surrounding arguments before
processing.

Okay for mainline and 3.4 branch?

Configure options previously were not ignored in multilib processing, so
this is a regression.

Thanks, David


	* config-ml.in: Strip single quotes surrounding individual
	ac_configure_args options.

Index: config-ml.in
===================================================================
RCS file: /cvs/gcc/gcc/config-ml.in,v
retrieving revision 1.32
diff -c -p -r1.32 config-ml.in
*** config-ml.in	7 Nov 2004 23:37:28 -0000	1.32
--- config-ml.in	12 Jan 2005 20:28:36 -0000
*************** ml_realsrcdir=${srcdir}
*** 108,113 ****
--- 108,118 ----
  ml_verbose=--verbose
  for option in ${ac_configure_args}
  do
+ # strip single quotes added unconditionally by autoconf 2.59
+   case $option in
+   \'*\') option=`echo $option | sed -e s/^\'// -e s/\'$//`
+   esac
+ 
    case $option in
    --*) ;;
    -*) option=-$option ;;


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