| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4B29FF13.5060802@cwilson.fastmail.fm> |
| Date: | Thu, 17 Dec 2009 04:51:15 -0500 |
| From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: libtool: link: warning |
| References: | <988146 DOT 7754 DOT qm AT web25504 DOT mail DOT ukl DOT yahoo DOT com> <4B29FBDC DOT 9000108 AT gmail DOT com> |
| In-Reply-To: | <4B29FBDC.9000108@gmail.com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Dave Korn wrote:
> Marco Atzeri wrote:
>
>> not sure but I suspect
>> -----------------------------------------------------------
>> lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
>> BEGIN {RS=" "; FS="/|\n";} {
>> lt_foo="";
>> lt_count=0;
>> for (lt_i = NF; lt_i > 0; lt_i--) {
>> if ($lt_i != "" && $lt_i != ".") {
>> if ($lt_i == "..") {
>> lt_count++;
>> } else {
>> if (lt_count == 0) {
>> lt_foo="/" $lt_i lt_foo;
>> } else {
>> lt_count--;
>> }
>> }
>> }
>> }
>> if (lt_foo != "") { lt_freq[[lt_foo]]++; }
>> if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
>> }'`
>> ------------------------------------------------
>
> Is that the original m4 file, or how it gets expanded in the generated
> configure script?
When *I* build it, the configure script has this:
if (lt_foo != "") { lt_freq[lt_foo]++; }
if (lt_freq[lt_foo] == 1) { print lt_foo; }
because the snippet above /is/ from the original .m4 file. I'm not an
awk expert, but it looks ok to me.
>> on
>>
>> if (lt_foo != "") { lt_freq[[lt_foo]]++; }
>> if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
>>
>> awk states sintax error due to double [
>
> Yeah, it would. That's some sort of changequote problem.
Only if Marco's configure script looks like the .m4 and actually still
has double-[.
--
Chuck
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |