From: jca@wxcvbn.org (Jérémie Courrèges-Anglas)
To: emacs-devel@gnu.org
Subject: Re: zlib autoconf question
Date: Thu, 08 Aug 2013 13:23:34 +0200 [thread overview]
Message-ID: <87wqnwzart.fsf@shannon.wxcvbn.org> (raw)
In-Reply-To: <m361vg3046.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Thu, 08 Aug 2013 13:14:49 +0200")
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> I'm not sure whether it's really necessary to check for zlib -- does
> Emacs even build without png support these days? -- but perhaps it is.
>
> Anyway, I wrote the obvious:
>
> AC_CHECK_LIB(z, inflateInit2, HAVE_ZLIB=yes, HAVE_ZLIB=no)
>
> And that fails with:
>
> /home/larsi/src/emacs/trunk/conftest.c:118: undefined reference to `inflateInit2'
>
> But inflateInit2 definitely exists (it's the function decompress.c
> uses).
>
> However, running strings over libz says:
>
> inflateReset
> inflateReset2
> inflateInit2_
> inflateInit_
>
> And
>
> AC_CHECK_LIB(z, inflateInit2_, HAVE_ZLIB=yes, HAVE_ZLIB=no)
>
> works!
>
> What's up with that?
inflateInit2 is a macro that "calls" inflateInit2_.
--
jca | PGP : 0x06A11494 / 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494
next prev parent reply other threads:[~2013-08-08 11:23 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-08 11:14 zlib autoconf question Lars Magne Ingebrigtsen
2013-08-08 11:23 ` Jérémie Courrèges-Anglas [this message]
2013-08-08 12:46 ` Andreas Schwab
2013-08-08 12:48 ` Lars Magne Ingebrigtsen
2013-08-08 13:26 ` Andreas Schwab
2013-08-08 12:47 ` Paul Eggert
2013-08-08 12:49 ` Lars Magne Ingebrigtsen
2013-08-08 12:57 ` Dmitry Antipov
2013-08-08 16:52 ` Eli Zaretskii
2013-08-11 19:52 ` Lars Magne Ingebrigtsen
2013-08-08 12:55 ` Ulrich Mueller
2013-08-11 19:53 ` Lars Magne Ingebrigtsen
2013-08-11 20:28 ` Ulrich Mueller
2013-08-11 22:01 ` Lars Magne Ingebrigtsen
2013-08-11 22:54 ` Ulrich Mueller
2013-08-11 22:59 ` Paul Eggert
2013-08-12 2:41 ` Eli Zaretskii
2013-08-12 13:58 ` Stefan Monnier
2013-08-12 13:58 ` Stefan Monnier
2013-08-12 15:19 ` Eli Zaretskii
2013-08-12 16:05 ` Stefan Monnier
2013-08-12 16:12 ` Lars Magne Ingebrigtsen
2013-08-12 16:35 ` Richard Stallman
2013-08-12 18:20 ` Lars Magne Ingebrigtsen
2013-08-12 19:17 ` Paul Eggert
2013-08-12 5:45 ` Dmitry Antipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wqnwzart.fsf@shannon.wxcvbn.org \
--to=jca@wxcvbn.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).