This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: autoconf 2.61 on debian etch and GCC
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Andreas Schwab <schwab at suse dot de>, gcc-patches at gnu dot org
- Cc: Laurent GUERBY <laurent at guerby dot net>, gcc at gcc dot gnu dot org, Rask Ingemann Lambertsen <rask at sygehus dot dk>
- Date: Tue, 3 Jul 2007 20:00:18 +0200
- Subject: Re: autoconf 2.61 on debian etch and GCC
- References: <1182703964.9016.186.camel@pc2> <20070625103550.GL5690@sygehus.dk> <1182768017.9016.222.camel@pc2> <20070625131308.GM5690@sygehus.dk> <1182795091.9016.225.camel@pc2> <20070629092713.GJ5690@sygehus.dk> <1183459545.9016.330.camel@pc2> <20070703164827.GA25650@ins.uni-bonn.de> <jer6nppgof.fsf@sykes.suse.de>
* Andreas Schwab wrote on Tue, Jul 03, 2007 at 06:58:56PM CEST:
> To avoid expanding $progname twice:
>
> eval "set x \"\$progname\" $ac_configure_args"
Indeed; thanks! Updated proposed patch (I have no maintainer privs).
:ADDPATCH configure:
ChangeLog:
2007-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Use
$ac_configure_args, not "$@". Do not use `set --'.
(baseargs): Likewise.
* configure: Regenerate.
Index: configure.ac
===================================================================
--- configure.ac (revision 126264)
+++ configure.ac (working copy)
@@ -88,7 +88,8 @@
# Export original configure arguments for use by sub-configures.
# Quote arguments with shell meta charatcers.
TOPLEVEL_CONFIGURE_ARGUMENTS=
-set -- "$progname" "$@"
+eval "set x \"\$progname\" $ac_configure_args"
+shift
for ac_arg
do
case "$ac_arg" in
@@ -2090,7 +2091,8 @@
baseargs=
keep_next=no
skip_next=no
-eval "set -- $ac_configure_args"
+eval "set x $ac_configure_args"
+shift
for ac_arg
do
if test X"$skip_next" = X"yes"; then