| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <292587.45845.qm@web25501.mail.ukl.yahoo.com> |
| Date: | Thu, 17 Dec 2009 14:47:38 +0000 (GMT) |
| From: | Marco Atzeri <marco_atzeri AT yahoo DOT it> |
| Subject: | Re: libtool: link: warning |
| To: | cygwin AT cygwin DOT com |
| In-Reply-To: | <4B29FF13.5060802@cwilson.fastmail.fm> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
--- Gio 17/12/09, Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> ha scritto:
> Dave Korn wrote:
> > Marco Atzeri wrote:
> >=20
> >> not sure but I suspect=20
> >>
> -----------------------------------------------------------
> >>=A0=A0=A0lt_search_path_spec=3D`$ECHO
> "$lt_tmp_lt_search_path_spec" | awk '
> >> BEGIN {RS=3D" "; FS=3D"/|\n";} {
> >>=A0=A0=A0lt_foo=3D"";
> >>=A0=A0=A0lt_count=3D0;
> >>=A0=A0=A0for (lt_i =3D NF; lt_i > 0;
> lt_i--) {
> >>=A0 =A0=A0=A0if ($lt_i !=3D "" &&
> $lt_i !=3D ".") {
> >>=A0 =A0 =A0=A0=A0if ($lt_i =3D=3D "..")
> {
> >>=A0 =A0 =A0 =A0=A0=A0lt_count++;
> >>=A0 =A0 =A0=A0=A0} else {
> >>=A0 =A0 =A0 =A0=A0=A0if (lt_count
> =3D=3D 0) {
> >>=A0 =A0 =A0 =A0
> =A0=A0=A0lt_foo=3D"/" $lt_i lt_foo;
> >>=A0 =A0 =A0 =A0=A0=A0} else {
> >>=A0 =A0 =A0 =A0
> =A0=A0=A0lt_count--;
> >>=A0 =A0 =A0 =A0=A0=A0}
> >>=A0 =A0 =A0=A0=A0}
> >>=A0 =A0=A0=A0}
> >>=A0=A0=A0}
> >>=A0=A0=A0if (lt_foo !=3D "") {
> lt_freq[[lt_foo]]++; }
> >>=A0=A0=A0if (lt_freq[[lt_foo]] =3D=3D 1) {
> print lt_foo; }
> >> }'`
> >> ------------------------------------------------
> >=20
> >=A0=A0=A0Is that the original m4 file, or how
> it gets expanded in the generated
> > configure script?
original m4.=20
I forgot the [[ need for m4
>=20
> When=A0 *I* build it, the configure script has this:
> =A0 if (lt_foo !=3D "") { lt_freq[lt_foo]++; }
> =A0 if (lt_freq[lt_foo] =3D=3D 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.
>=20
> >> on
> >>=A0=A0=A0
> >> if (lt_foo !=3D "") { lt_freq[[lt_foo]]++; }
> >> if (lt_freq[[lt_foo]] =3D=3D 1) { print lt_foo; }
> >>
> >> awk states sintax error due to double [
> >=20
> >=A0=A0=A0Yeah, it would.=A0 That's some
> sort of changequote problem.
>=20
> Only if Marco's configure script looks like the .m4 and
> actually still
> has double-[.
>=20
only single. So I was looking in the the wrong place :-(
> --
> Chuck
Marco
--
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 |