From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1933 invoked by alias); 31 Dec 2011 07:05:30 -0000 Received: (qmail 1923 invoked by uid 22791); 31 Dec 2011 07:05:26 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 31 Dec 2011 07:05:07 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 7317C1B4004 for ; Sat, 31 Dec 2011 07:05:07 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: Re: [PATCH] sim: erc32: fix linking against local readline on modern (ncurses) systems Date: Sat, 31 Dec 2011 07:27:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.1.0-atsc; KDE/4.6.5; x86_64; ; ) References: <1325238201-7982-1-git-send-email-vapier@gentoo.org> In-Reply-To: <1325238201-7982-1-git-send-email-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8911374.oidt3YQcH2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201112310205.15334.vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00914.txt.bz2 --nextPart8911374.oidt3YQcH2 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-length: 817 i've committed this initial fix based on Joel's feedback: 2011-12-31 Mike Frysinger * configure.ac: Change AC_CHECK_LIB to AC_SEARCH_LIBS to match the code in gdb's configure.ac with $TERMCAP. * configure: Regenerated. --- configure.ac 18 Oct 2011 00:30:57 -0000 1.6 +++ configure.ac 31 Dec 2011 06:58:27 -0000 @@ -17,7 +17,9 @@ lose if test x$sim_cv_os_cygwin =3D xyes; then TERMCAP=3D'`if test -r ../../libtermcap/libtermcap.a; then echo ../../li= btermcap/libtermcap.a; else echo -ltermcap; fi` -luser32' else - AC_CHECK_LIB(termcap, main, TERMCAP=3D-ltermcap, TERMCAP=3D"") + # Keep in sync with gdb's configure.ac list. + AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses], + [TERMCAP=3D$ac_cv_search_tgetent], [TERMCAP=3D""]) fi AC_SUBST(TERMCAP) =20 -mike --nextPart8911374.oidt3YQcH2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJO/rQrAAoJEEFjO5/oN/WBxfsQAJMGbmXy8wvpbZW084cR7guj Y9c7ukZAFe+g8m7AYZM3Mam7eQhPeUJxnlDbc74T9NHXTwvXaOiBV0VTj2+Dx0Zz igS1GdCSohAlFRk3tWx8wlugSNnQJsL4Qx7TTwCnG9xIu4c4QglqLXByYfyG+h21 /ZS4HJ4oNQb841eYZZLV4e8J2WH1ZEYbc/0tT1VDX9nyO1HUo+Cu1EUoD+35cQmj f5s9TPivNgJihLYvR0BEDp7K7V1gUXRKJWlf0wcmxplG0SjNd6EY11oiSQQpesIL z2KCSsrMtlQa8QMsatupkb7l9fSJff+6m2S9MG9JAyNGayw2x98gcDckbxjmHQg1 QsSweUtT6TuXU3SQ2vYQWRHjnxgZzim9WUNprxaQWy6oo1OBdmf80PRht+Izmc8h LGaK8N1yssFgIppUaXvgqKpGhAgbKbjFzJpoRZSG5rslqfxV19D1Wwv55PWJhi7O UblVciRVUIIi9uzbkWrDMbXF1CkDNtS7DcEMDO9V2TANWU1goYy02wS2KtX84ma9 LZCwI2cxp/V+CCr57cL6dmNXQ2vmiY11O9z8+u3UfFOZpTTynENrg86iHNvbshfe mbZzQIb4k1VpxvK3ofJ9j6uw/B51IC+zPVoJYOBStDO362bAB9Rfxl54r85TaaUF 4rgqzV1BM6dTGgIGVxjl =kvGe -----END PGP SIGNATURE----- --nextPart8911374.oidt3YQcH2--