autoconf 2.61 on debian etch and GCC

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Tue Jul 3 18:00:00 GMT 2007


* 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



More information about the Gcc mailing list