From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: zlib autoconf question Date: Thu, 08 Aug 2013 16:57:50 +0400 Message-ID: <520395CE.1040700@yandex.ru> References: <52039362.9050903@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1375966698 14973 80.91.229.3 (8 Aug 2013 12:58:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 12:58:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 08 14:58:20 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7PnG-0007a9-L4 for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 14:58:18 +0200 Original-Received: from localhost ([::1]:33476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7PnG-0004fb-8y for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 08:58:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7Pn7-0004fO-QB for emacs-devel@gnu.org; Thu, 08 Aug 2013 08:58:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7Pn1-0005PL-QQ for emacs-devel@gnu.org; Thu, 08 Aug 2013 08:58:09 -0400 Original-Received: from forward6.mail.yandex.net ([77.88.60.125]:46526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7Pn1-0005PB-F2 for emacs-devel@gnu.org; Thu, 08 Aug 2013 08:58:03 -0400 Original-Received: from smtp8.mail.yandex.net (smtp8.mail.yandex.net [77.88.61.54]) by forward6.mail.yandex.net (Yandex) with ESMTP id 0DFD11120770; Thu, 8 Aug 2013 16:57:59 +0400 (MSK) Original-Received: from smtp8.mail.yandex.net (localhost [127.0.0.1]) by smtp8.mail.yandex.net (Yandex) with ESMTP id 85C2D1B60020; Thu, 8 Aug 2013 16:57:59 +0400 (MSK) Original-Received: from 50.gprs.mts.ru (50.gprs.mts.ru [213.87.134.50]) by smtp8.mail.yandex.net (nwsmtp/Yandex) with ESMTP id w5dj90v7a6-vwG8cQlL; Thu, 8 Aug 2013 16:57:58 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1375966678; bh=ZkTh7F+Vq6UNOer4p9vXoaqRFKdxrMOjN9EkRDOpjcE=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=HexVRtU7Ek/NuygZ6LL0iaIANjcOJ18EfheORmohqWCwwa/mWoKUF9wOtUynZt03V 7jjJ+QnfvW7Oc9v79xPjX+zHj+umRPO/CQFBdNkS7YODSHF/QTItgS41D9fX1XUShp XHy3jIDFcfRNr/tvEVE5JYkwpV5CyWEGtYDc7h4Q= Authentication-Results: smtp8.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 77.88.60.125 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162495 Archived-At: On 08/08/2013 04:49 PM, Lars Magne Ingebrigtsen wrote: > Paul Eggert writes: > >> inflateInit2 is a macro that invokes inflateInit2_, >> a function that user code isn't supposed to call directly. >> AC_CHECK_LIB can't check for macros, only functions. >> I'd check for something that's a function, zlibVersion say. > > Ah, I see. Thanks. Reasonably modern environments should have zlib development packages with pkg-config data (look for zlib.pc on your system), so you can consider something like below: PKG_CHECK_MODULES(ZLIB, zlib >= 1.2, HAVE_ZLIB=yes, HAVE_ZLIB=no) Dmitry