From: Dirk Mueller Date: Wed, 19 Nov 2003 21:50:07 +0000 (+0000) Subject: pkgconfig support. Patch by Dimitri Papadopoulos X-Git-Tag: svn/VALGRIND_2_1_0~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=44be79eb9e8e468cc12b6bc007fc5bc814455792;p=thirdparty%2Fvalgrind.git pkgconfig support. Patch by Dimitri Papadopoulos MERGE TO STABLE CCMAIL: 68566-done@bugs.kde.org git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2048 --- diff --git a/.cvsignore b/.cvsignore index 880a8cc080..47f3a752e0 100644 --- a/.cvsignore +++ b/.cvsignore @@ -17,3 +17,4 @@ include share cachegrind.out.* autom4te.cache +valgrind.pc diff --git a/Makefile.am b/Makefile.am index 51526ec864..1d21e9fd20 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,7 +25,10 @@ SUPP_FILES = \ val_DATA = $(SUPP_FILES) default.supp -BUILT_SOURCES = default.supp +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = valgrind.pc + +BUILT_SOURCES = default.supp valgrind.pc DISTCLEANFILES = default.supp @@ -40,7 +43,7 @@ EXTRA_DIST = $(val_DATA) \ PATCHES_APPLIED ACKNOWLEDGEMENTS \ README_KDE3_FOLKS README_PACKAGERS \ README_MISSING_SYSCALL_OR_IOCTL TODO \ - valgrind.spec valgrind.spec.in + valgrind.spec valgrind.spec.in valgrind.pc.in install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(valdir) diff --git a/configure.in b/configure.in index f6c1fec33f..acc4cd7696 100644 --- a/configure.in +++ b/configure.in @@ -340,6 +340,7 @@ AC_CHECK_FUNCS([floor memchr memset mkdir strchr strdup strpbrk strrchr strstr]) AC_OUTPUT( Makefile valgrind.spec + valgrind.pc docs/Makefile tests/Makefile tests/vg_regtest diff --git a/valgrind.pc.in b/valgrind.pc.in new file mode 100644 index 0000000000..d3a53c0f33 --- /dev/null +++ b/valgrind.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Valgrind +Description: Program supervision framework for x86-GNU/Linux +Version: @VERSION@ +Requires: +Libs: +Cflags: -I${includedir}