This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix quoting of program-transform-name in toplevel configure
- From: Phil Edwards <phil at jaj dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: Geoffrey Keating <gkeating at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Aug 2003 02:53:08 -0400
- Subject: Re: Fix quoting of program-transform-name in toplevel configure
- References: <200308210213.h7L2DlN3014984@keatge.apple.com> <3F444E41.5040104@pop.agri.ch>
On Thu, Aug 21, 2003 at 06:44:49AM +0200, Andreas Tobler wrote:
> Geoffrey Keating wrote:
> +# Export original configure arguments for use by sub-configures. These
> +# will be expanded once by make, and once by the shell, so they need to
> +# have '$' quoted for make, and then each argument quoted for the shell.
> +# What's more, the 'echo' below might expand backslashes.
> +cat <<\EOF_SED > conftestsed
> +s,\\,\\\\,g; s,\$,$$,g
> +EOF_SED
> +tmp="'$progname'"
> +for ac_arg ; do <--------------------------------
>
> Solaris native complains about unexpected ; at line 805.
Yep. If the "no list given so assume the program args" form of 'for'
is to be used, it has to be
for ac_arg
do
i.e., semicolon and newline aren't equivalent.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan