This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Configure options --with-bugurl, --with-pkgversion
On Sun, 18 Feb 2007, Eric Botcazou wrote:
> > top level:
> > 2007-02-16 Mark Mitchell <mark@codesourcery.com>
> > Nathan Sidwell <nathan@codesourcery.com>
> > Vladimir Prus <vladimir@codesourcery.com
> > Joseph Myers <joseph@codesourcery.com>
> >
> > * configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Fix quoting.
> > * configure: Regenerate.
>
> Breaks with /bin/ksh on Solaris:
>
> /home/eric/svn/gcc/configure: syntax error at line 1622: `;' unexpected
Does this patch help? At least, it matches the syntax of another loop in
this file.
2007-02-18 Joseph Myers <joseph@codesourcery.com>
* configure.ac: Adjust for loop syntax.
* configure: Regenerate.
Index: configure
===================================================================
RCS file: /cvs/src/src/configure,v
retrieving revision 1.255
diff -u -r1.255 configure
--- configure 17 Feb 2007 13:33:51 -0000 1.255
+++ configure 18 Feb 2007 14:03:34 -0000
@@ -1619,7 +1619,8 @@
# Quote arguments with shell meta charatcers.
TOPLEVEL_CONFIGURE_ARGUMENTS=
set -- "$progname" "$@"
-for ac_arg; do
+for ac_arg
+do
case "$ac_arg" in
*" "*|*" "*|*\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?*)
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/configure.ac,v
retrieving revision 1.6
diff -u -r1.6 configure.ac
--- configure.ac 17 Feb 2007 13:33:51 -0000 1.6
+++ configure.ac 18 Feb 2007 14:03:34 -0000
@@ -89,7 +89,8 @@
# Quote arguments with shell meta charatcers.
TOPLEVEL_CONFIGURE_ARGUMENTS=
set -- "$progname" "$@"
-for ac_arg; do
+for ac_arg
+do
case "$ac_arg" in
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
--
Joseph S. Myers
joseph@codesourcery.com