From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: configure's dependency on pkg-config Date: Sun, 13 Nov 2011 00:12:43 +0100 Message-ID: <937EB031-FDE1-4D05-98FD-9DE01711DB69@swipnet.se> References: <87pqgybgx8.fsf@escher.home> <87boshgedt.fsf@escher.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1321139574 25645 80.91.229.12 (12 Nov 2011 23:12:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Nov 2011 23:12:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 13 00:12:50 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPMkk-0000LX-Pk for ged-emacs-devel@m.gmane.org; Sun, 13 Nov 2011 00:12:50 +0100 Original-Received: from localhost ([::1]:59253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPMkk-00006w-6N for ged-emacs-devel@m.gmane.org; Sat, 12 Nov 2011 18:12:50 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPMkh-00006b-NA for emacs-devel@gnu.org; Sat, 12 Nov 2011 18:12:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPMkg-0001Xr-Im for emacs-devel@gnu.org; Sat, 12 Nov 2011 18:12:47 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:62051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPMkg-0001Xh-Ct for emacs-devel@gnu.org; Sat, 12 Nov 2011 18:12:46 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 8D2979AA7 for ; Sun, 13 Nov 2011 00:12:44 +0100 (CET) Original-Received: (qmail 9209 invoked by uid 89); 12 Nov 2011 23:12:44 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 12 Nov 2011 23:12:44 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id ECA2C7FA058; Sun, 13 Nov 2011 00:12:43 +0100 (CET) In-Reply-To: <87boshgedt.fsf@escher.home> X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 62.20.26.67 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:146014 Archived-At: 12 nov 2011 kl. 23:33 skrev Stephen Berman: > On Sat, 12 Nov 2011 15:13:49 +0100 Jan Dj=E4rv = wrote: >=20 >> Hi. >>=20 >> 11 nov 2011 kl. 20:25 skrev Stephen Berman: > [...] >>> Is there a better way to override configure's dependency on = pkg-config >>> for libraries such as libxml2, so that it would suffice to pass the >>> standard variable CPPFLAGS, LDFLAGS and LIBS? Or if there isn't, = should >>> there be? >>=20 >> I would assume libxml2 installs its .pc-file in /usr/lib/pkgconfig = (or >> similar) when you install it, so all the info is there. So why not = just >> install pkg-config? It is a very small package. >=20 > No doubt pkg-config is convenient and of course I could install it; = but > my experience shows that even though it's not necessary, you can't = avoid > it by setting the recommended variables at configure time. So this > seems to be at least a doc bug in INSTALL, which should explicitly say > that pkg-config is required in order for Emacs to use certain = libraries > and also list all of these libraries. The alternative would be to = patch > configure (or rather configure.in) to allow setting the standard > configure time variables to override using pkg-config. This seems > better to me in principle (though it might be judged not to be worth = the > effort); are there any platforms Emacs runs on that cannot use > pkg-config but on which Emacs could use libxml2 etc.? I don't know why you are opposed to installing pkg-config, but it is not = Emacs choice. libxml2 has made pkg-config the way for users of that = library to find out compiler and linker flags as well as dependencies on = other libraries. So of course Emacs uses that. Who are we to argue = about the validity of that descision? Ditto for Gtk, dbus, and others. If you wan't another way to use libxml2 without using pkg-config, you = should take that up with libxml2-developers. If they make another way = to compile with their library, Emacs can use that. But I don't = understand why Emacs should take the trouble to make sure Emacs can use = a library WITHOUT using the official, sanctioned way of using that = library. Jan D. =20