From: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Cc: Containers
<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: liblxc: Add pkg-config file
Date: Thu, 29 Jan 2009 02:27:58 -0800 [thread overview]
Message-ID: <1233224878.28626.132.camel@localhost> (raw)
Add a pkg-config file which makes developing with liblxc easier. For
example, if an unusual --prefix is used to install liblxc no special
changes to Makefile rules are needed if pkg-config is used:
gcc $(shell pkg-config --cflags) $(shell pkg-config --libs) -o my_lxc_prog my_lxc_prog.c
Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
---
Makefile.am | 5 ++++-
configure.in | 2 ++
lxc.pc.in | 15 +++++++++++++++
3 files changed, 21 insertions(+), 1 deletion(-)
Index: lxc-0.5.2-mh/configure.in
===================================================================
--- lxc-0.5.2-mh.orig/configure.in
+++ lxc-0.5.2-mh/configure.in
@@ -14,6 +14,7 @@ AC_GNU_SOURCE
AC_PROG_LIBTOOL
AC_CHECK_PROG(SETCAP, setcap, yes, no)
AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
+PKG_PROG_PKG_CONFIG
AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
AS_AC_EXPAND(BINDIR, $bindir)
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
@@ -52,6 +53,7 @@ AC_SUBST(LXC_MICRO_VERSION)
AC_CONFIG_FILES([
Makefile
lxc.spec
+ lxc.pc
config/Makefile
doc/Makefile
Index: lxc-0.5.2-mh/lxc.pc.in
===================================================================
--- /dev/null
+++ lxc-0.5.2-mh/lxc.pc.in
@@ -0,0 +1,15 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+libexecdir=@libexecdir@
+includedir=@includedir@
+datadir=@datadir@
+
+localstatedir=@localstatedir@
+
+Name: lxc
+Description: Linux containers tools
+Version: @VERSION@
+Requires:
+Libs:
+Cflags:
Index: lxc-0.5.2-mh/Makefile.am
===================================================================
--- lxc-0.5.2-mh.orig/Makefile.am
+++ lxc-0.5.2-mh/Makefile.am
@@ -2,7 +2,10 @@
SUBDIRS = doc src test etc scripts
DIST_SUBDIRS = config doc src test etc scripts
-EXTRA_DIST = lxc.spec CONTRIBUTING MAINTAINERS ChangeLog
+EXTRA_DIST = lxc.spec lxc.pc.in CONTRIBUTING MAINTAINERS ChangeLog
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = lxc.pc
ChangeLog::
@touch ChangeLog
reply other threads:[~2009-01-29 10:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1233224878.28626.132.camel@localhost \
--to=matthltc-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=daniel.lezcano-GANU6spQydw@public.gmane.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.