On Wed, 17.02.10 16:04, Dhaval Giani ([email protected]) wrote:

> libcgroup was not making an entry into the pkg-config [1] database,
> which makes life easier when using multiple libraries. Add the needed
> data in order to be registered with the pkg-config database on
> installation.

Looks good to me.

Acked-by: Lennart Poettering <[email protected]>

> [1] http://pkg-config.freedesktop.org/wiki/
> 
> Signed-off-by: Dhaval Giani <[email protected]>
> 
> ---
>  Makefile.am     |    3 +++
>  configure.in    |    3 ++-
>  libcgroup.pc.in |   10 ++++++++++
>  3 files changed, 15 insertions(+), 1 deletion(-)
> 
> Index: libcg/Makefile.am
> ===================================================================
> --- libcg.orig/Makefile.am
> +++ libcg/Makefile.am
> @@ -2,3 +2,6 @@ AUTOMAKE_OPTIONS = foreign
>  SUBDIRS = dist doc include samples scripts src tests
>  
>  EXTRA_DIST = README_daemon libcgroup.doxyfile
> +
> +pkgconfigdir = $(libdir)/pkgconfig
> +pkgconfig_DATA = libcgroup.pc
> Index: libcg/configure.in
> ===================================================================
> --- libcg.orig/configure.in
> +++ libcg/configure.in
> @@ -158,7 +158,8 @@ AC_CONFIG_FILES([Makefile
>       include/Makefile
>       doc/Makefile
>       doc/man/Makefile
> -     dist/Makefile])
> +     dist/Makefile
> +     libcgroup.pc])
>  AC_CONFIG_FILES([dist/libcgroup.spec:dist/libcgroup.spec.in])
>  CFLAGS="$CFLAGS -Wall"
>  AC_OUTPUT
> Index: libcg/libcgroup.pc.in
> ===================================================================
> --- /dev/null
> +++ libcg/libcgroup.pc.in
> @@ -0,0 +1,10 @@
> +pref...@prefix@
> +exec_pref...@exec_prefix@
> +libd...@libdir@
> +included...@includedir@
> +
> +Name: libcgroup
> +Description: Control Group Configuration Library
> +Version: @PACKAGE_VERSION@
> +Libs: -L${libdir} -lcgroup
> +Cflags: -I${includedir}
> 
> 


Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to