From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: zlib autoconf question Date: Mon, 12 Aug 2013 18:19:16 +0300 Message-ID: <83r4dzos23.fsf@gnu.org> References: <20995.38193.299757.55244@a1i15.kph.uni-mainz.de> <20999.62420.118305.428747@a1i15.kph.uni-mainz.de> <83a9knr5px.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1376320764 18782 80.91.229.3 (12 Aug 2013 15:19:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Aug 2013 15:19:24 +0000 (UTC) Cc: ulm@gentoo.org, larsi@gnus.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 12 17:19:25 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 1V8ttz-0001lW-QC for ged-emacs-devel@m.gmane.org; Mon, 12 Aug 2013 17:19:23 +0200 Original-Received: from localhost ([::1]:48339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8ttz-0003DN-CH for ged-emacs-devel@m.gmane.org; Mon, 12 Aug 2013 11:19:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8ttr-0003C8-VU for emacs-devel@gnu.org; Mon, 12 Aug 2013 11:19:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8ttj-0002oZ-Bf for emacs-devel@gnu.org; Mon, 12 Aug 2013 11:19:15 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:46919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8ttj-0002o8-3Q for emacs-devel@gnu.org; Mon, 12 Aug 2013 11:19:07 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MRF00C00BLC2T00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Mon, 12 Aug 2013 18:18:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MRF00BW1BVFWT80@a-mtaout21.012.net.il>; Mon, 12 Aug 2013 18:18:52 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:162617 Archived-At: > From: Stefan Monnier > Cc: Ulrich Mueller , larsi@gnus.org, emacs-devel@gnu.org > Date: Mon, 12 Aug 2013 09:58:51 -0400 > > > The real solution to such problems is to probe for the availability of > > the shared library at run time. > > Or even better, to rely on an FFI (so not only you check availability > at run-time, but you don't even need to have the library at > compile-time). That's similar to what the Windows port does with all the optional libraries: the headers are required during the compilation, but the libraries are not. They are loaded when needed, with the equivalents of dlopen and dlsym.