From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: configure's dependency on pkg-config
Date: Sat, 12 Nov 2011 15:13:49 +0100 [thread overview]
Message-ID: <E511DDDA-0EE6-462B-BB38-EAA0880CCFF8@swipnet.se> (raw)
In-Reply-To: <87pqgybgx8.fsf@escher.home>
Hi.
11 nov 2011 kl. 20:25 skrev Stephen Berman:
> I built a GNU/Linux system from sources (Linux From Scratch) and then
> built the current Emacs pretest on it with configure && make, but was
> surprised that configure failed to use libxml2, although I had built and
> installed the libxml2 files in the standard locations. I then
> reconfigured Emacs, passing the libxml2 requirements to configure via
> CPPFLAGS, LDFLAGS and LIBS, but it still failed to use libxml2. Then I
> looked at configure and found the reason:
>
> if test "$PKG_CONFIG" = "no" ; then
> HAVE_LIBXML2=no
>
> I don't have pkg-config installed on this system. I tried passing
> PKG_CONFIG=1 to configure, but that didn't help, because if that
> variable is set, configure looks for the pkg-config executable.
> Finally, I simply hacked out the pkg-config bits around the libxml2
> tests in configure and passed the requirements via LIBXML2_CFLAGS and
> LIBXML2_LIBS, and this worked.
>
> 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?
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.
Jan D.
next prev parent reply other threads:[~2011-11-12 14:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 19:25 configure's dependency on pkg-config Stephen Berman
2011-11-12 14:13 ` Jan Djärv [this message]
2011-11-12 22:33 ` Stephen Berman
2011-11-12 22:59 ` Glenn Morris
2011-11-12 23:56 ` Stephen Berman
2011-11-13 0:32 ` Paul Eggert
2011-11-12 23:12 ` Jan Djärv
2011-11-12 23:56 ` Stephen Berman
2011-11-13 11:08 ` Jan Djärv
2011-11-14 14:01 ` Stefan Monnier
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=E511DDDA-0EE6-462B-BB38-EAA0880CCFF8@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--cc=stephen.berman@gmx.net \
/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).