From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22684 invoked by alias); 13 May 2014 19:43:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22671 invoked by uid 89); 13 May 2014 19:43:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 May 2014 19:43:49 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4DJhmOW009773 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 13 May 2014 15:43:48 -0400 Received: from [10.3.113.163] (ovpn-113-163.phx2.redhat.com [10.3.113.163]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s4DJhlCB017756 for ; Tue, 13 May 2014 15:43:48 -0400 Message-ID: <537275F3.6070108@redhat.com> Date: Tue, 13 May 2014 19:54:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: pinfo configure problem - configure.ac (0/1) References: <05u3n9l6l8pgdeuidskcplb1930mmjtu05@4ax.com> <20140513110518.GN2436@calimero.vinschen.de> <20140513115410.GP2436@calimero.vinschen.de> <537269E3.5080509@redhat.com> In-Reply-To: OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RWodGEjkDvlshNSvk0vMspUKSTVsG8I9l" X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00292.txt.bz2 --RWodGEjkDvlshNSvk0vMspUKSTVsG8I9l Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 1097 On 05/13/2014 01:19 PM, Andrew Schulman wrote: >=20 > AC_CHECK_CURSES calls AC_CHECK_CURSES_COMPILE, which is the step that > fails. I've included it below. The key step seems to be that it calls > AC_LINK_IFELSE, with the curses libs (-lncursesw) appended to LDFLAGS. That's a bug in AC_CHECK_CURSES_COMPILE, and should be reported to whoever wrote that macro. The autoconf manual says that LDFLAGS is for -L options, while LIBS is for -l options. >=20 > dnl > dnl check if the curses header we found, works > dnl > AC_DEFUN([AC_CHECK_CURSES_COMPILE], [ >=20 > dnl save CFLAGS and LDFLAGS and set new ones > CFLAGS_OLD=3D$CFLAGS > CFLAGS=3D"$CFLAGS $curses_includes" > LDFLAGS_OLD=3D$LDFLAGS > LDFLAGS=3D"$LDFLAGS $curses_libs" and this is a blatant case of using the wrong env-var for library probing. s/LDFLAGS/LIBS/ on these lines, before running autoreconf, and that should fix it without you manually having to pass LIBS=3D at the configure command line. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --RWodGEjkDvlshNSvk0vMspUKSTVsG8I9l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTcnXzAAoJEKeha0olJ0Nq0ggH/RaKi8dYLuSa5N5l2P3er/xU SFeAkfo3qDXCLHzVCcSBvIy0vGpNoFpBYQhdg6fTmgPW1WNjq1W+0tHsd6sxLRys tiPi8tjbucfa40Mqxz999pIccN/ry6H9PIUUcbgun5YqznSW4wFKgL6uAJ5OQvVV notcdGFwuqeO9DVo13cRX0QAHhcRRE9QeiBLxXV45Iv+YFIMlhoLJvTaoYOIyE32 3prJTVD5f+vnLcUJXoBsKw26YjbdgmEoA/g2EUgZQHcQmaDmxjZhDYfJSRGZYrWP y5mfeBDdm7GZwTB+LXL5XZYk66RE4MxTpHDsuKL2zMLPBbP7aY2E3Konu/OEaw8= =GmC8 -----END PGP SIGNATURE----- --RWodGEjkDvlshNSvk0vMspUKSTVsG8I9l--