diff options
author | Steinar H. Gunderson <steinar+github@gunderson.no> | 2016-05-23 11:16:01 +0200 |
---|---|---|
committer | Steinar H. Gunderson <steinar+github@gunderson.no> | 2016-05-23 11:16:01 +0200 |
commit | 32d6d7d8a2ef328a2ee1dd40f072e21f4983ebda (patch) | |
tree | 3c5ab3eb8e9bb18684b270d1d133d8b39ddc76fa | |
parent | 971613510fc0d1791eed2aae469938afc9636958 (diff) | |
parent | d2cb73b6ac1839462fcea926c7e73d1e627bd699 (diff) | |
download | snappy-git-32d6d7d8a2ef328a2ee1dd40f072e21f4983ebda.tar.gz |
Merge pull request #6 from deviance/provide-pkg-config-data
Provide pkg-config data
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | snappy.pc.in | 10 |
3 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 735bc12..c00e136 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,5 +19,8 @@ noinst_PROGRAMS = $(TESTS) EXTRA_DIST = autogen.sh testdata/alice29.txt testdata/asyoulik.txt testdata/baddata1.snappy testdata/baddata2.snappy testdata/baddata3.snappy testdata/geo.protodata testdata/fireworks.jpeg testdata/html testdata/html_x_4 testdata/kppkn.gtb testdata/lcet10.txt testdata/paper-100k.pdf testdata/plrabn12.txt testdata/urls.10K dist_doc_DATA = ChangeLog COPYING INSTALL NEWS README format_description.txt framing_format.txt +pkgconfigdir = $(libdir)/pkgconfig +nodist_pkgconfig_DATA = snappy.pc + libtool: $(LIBTOOL_DEPS) $(SHELL) ./config.status --recheck diff --git a/configure.ac b/configure.ac index 2b573a1..c460138 100644 --- a/configure.ac +++ b/configure.ac @@ -130,5 +130,5 @@ AC_SUBST([SNAPPY_PATCHLEVEL]) AC_SUBST([SNAPPY_LTVERSION], snappy_ltversion) AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile snappy-stubs-public.h]) +AC_CONFIG_FILES([Makefile snappy-stubs-public.h snappy.pc]) AC_OUTPUT diff --git a/snappy.pc.in b/snappy.pc.in new file mode 100644 index 0000000..982d240 --- /dev/null +++ b/snappy.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: @PACKAGE@ +Description: A fast compression/decompression library +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -l@PACKAGE@ +Cflags: -I${includedir} |