Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3D220456.4020004@ece.gatech.edu> Date: Tue, 02 Jul 2002 15:51:50 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: Nicholas Wourms CC: cygwin AT cygwin DOT com Subject: Re: Autoconf wrapper issues References: <20020702184814 DOT 13390 DOT qmail AT web21007 DOT mail DOT yahoo DOT com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Nicholas Wourms wrote: > In my case: > autoconf --trace=AC_SUBST:' AC_SUBST([$1])' | sort -u > or > autoconf -t AC_SUBST:' AC_SUBST([$1])' | sort -u > > Returns: > autoconf: invalid number of arguments. > Try `autoconf --help' for more information. > > However, autoconf --help shows that -t/--trace= is a valid option, so I > know the wrapper is identifying the desired autoconf as 2.53. The same > command works fine with the same source on my linux box, incidently. I > thought I'd see if anyone has seen this before... in the wrapper script, we have to munge single-quote characters heavily. It's possible I missed something -- here's the relevant code: --trace=* | -t?* ) traces="$traces '"`echo "$optarg" | sed "s/'/'\\\\\\\\''/g"`"'" shift ;; --trace | -t ) test $# = 1 && eval "$exit_missing_arg" shift traces="$traces '"`echo "$1" | sed "s/'/'\\\\\\\\''/g"`"'" shift ;; and later: if [ "x$traces" != "x" ] ; then opt_traces="--trace=$traces" fi A few quick tests (editing the wrapper script to "echo" instead of "exec") show that something is not right...but I can't track it down right now -- and trace is fairly infrequently used. For now, either track down the problem and send in a patch :-) or just set PATH=/usr/autotool/devel/bin:${PATH} ... --Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/