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]

Re: [PATCH] config-ml.in options with single quotes (PRbootstrap/18033)


David Edelsohn <dje@watson.ibm.com> writes:

> 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
> + 

That should better be done with eval to remove all quoting.

case $option in
\'*\') eval option=$option;;
esac

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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