]> git.proxmox.com Git - mirror_lxc.git/commitdiff
add pkg-config for lxc
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 10 Jun 2009 16:21:48 +0000 (18:21 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 10 Jun 2009 16:21:48 +0000 (18:21 +0200)
Add the pkg-config information for lxc.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Makefile.am
configure.ac
lxc.pc.in [new file with mode: 0644]
lxc.spec.in

index e3e1978b437f4cf25a30948b0a073413687e2fd8..5b66d2ffbe86f6663a32130cf8d4f5c186f0b54d 100644 (file)
@@ -6,6 +6,9 @@ SUBDIRS = src test etc scripts doc
 DIST_SUBDIRS = config src test etc scripts doc
 EXTRA_DIST = autogen.sh lxc.spec CONTRIBUTING MAINTAINERS ChangeLog
 
+pcdatadir = $(datadir)/pkgconfig
+pcdata_DATA = lxc.pc
+
 ChangeLog::
        @touch ChangeLog
 
index 2de68add3fc2dc7a1fcc52c8db69878e79b6a4d2..12a4f8252b5fe55264f5fff8e3c02397d1f75d21 100644 (file)
@@ -14,7 +14,10 @@ AC_PROG_LIBTOOL
 AC_CHECK_PROG(SETCAP, setcap, yes, no)
 AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
 AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
+AS_AC_EXPAND(PREFIX, $prefix)
+AS_AC_EXPAND(LIBDIR, $libdir)
 AS_AC_EXPAND(BINDIR, $bindir)
+AS_AC_EXPAND(INCLUDEDIR, $includedir)
 AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
 AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
 AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
@@ -59,6 +62,7 @@ AC_SUBST(LXC_MICRO_VERSION)
 
 AC_CONFIG_FILES([
         Makefile
+       lxc.pc
        lxc.spec
         config/Makefile
 
diff --git a/lxc.pc.in b/lxc.pc.in
new file mode 100644 (file)
index 0000000..188cbe5
--- /dev/null
+++ b/lxc.pc.in
@@ -0,0 +1,11 @@
+bindir=@BINDIR@
+libdir=@LIBDIR@
+localstatedir=@LXCPATH@
+includedir=@INCLUDEDIR@
+
+Name: lxc
+Description: linux container tools
+Version: @LXC_MAJOR_VERSION@.@LXC_MINOR_VERSION@.@LXC_MICRO_VERSION@
+URL: http://lxc.sourceforge.net
+Libs: -L${libdir} -llxc -lutil
+Cflags: -I${includedir}
index eb3829b60ac2c185e3700d68c5ecaa21a5079c46..199732707ac832ff5479bf7fbe285bd069c5d27c 100644 (file)
@@ -78,6 +78,7 @@ chmod ugo+w /var/lxc
 %{_bindir}/*
 %{_libexecdir}/*
 %{_mandir}/*
+%{_datadir}/pkgconfig/*
 
 %files devel
 %defattr(-,root,root)