diff options
author | Heikki Lindholm <holin@iki.fi> | 2009-02-17 20:25:17 +0000 |
---|---|---|
committer | Heikki Lindholm <holin@iki.fi> | 2009-02-17 20:25:17 +0000 |
commit | fe8b7d92cdf5074c9e95a090707fad9642ff2e4f (patch) | |
tree | aa58561ba368c4af7d530d682492325b04502e31 | |
parent | 2c53619affc880f653c23b6f861d100d43b6d4af (diff) | |
download | libmicrohttpd-fe8b7d92cdf5074c9e95a090707fad9642ff2e4f.tar.gz libmicrohttpd-fe8b7d92cdf5074c9e95a090707fad9642ff2e4f.zip |
pkg-config: if not anything else, helps with static linkage
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | libmicrohttpd.pc.in | 13 |
3 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 7cd847ec..001dbec0 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -1,4 +1,7 @@ | |||
1 | ACLOCAL_AMFLAGS = -I m4 | 1 | ACLOCAL_AMFLAGS = -I m4 |
2 | SUBDIRS = contrib src doc m4 . | 2 | SUBDIRS = contrib src doc m4 . |
3 | EXTRA_DIST = acinclude.m4 | 3 | EXTRA_DIST = acinclude.m4 libmicrohttpd.pc.in |
4 | |||
5 | pkgconfigdir = $(libdir)/pkgconfig | ||
6 | pkgconfig_DATA = libmicrohttpd.pc | ||
4 | 7 | ||
diff --git a/configure.ac b/configure.ac index c70c32c5..b66538b3 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -298,6 +298,7 @@ AC_SUBST(EXT_LIB_PATH) | |||
298 | AC_SUBST(EXT_LIBS) | 298 | AC_SUBST(EXT_LIBS) |
299 | 299 | ||
300 | AC_CONFIG_FILES([ | 300 | AC_CONFIG_FILES([ |
301 | libmicrohttpd.pc | ||
301 | Makefile | 302 | Makefile |
302 | contrib/Makefile | 303 | contrib/Makefile |
303 | doc/Makefile | 304 | doc/Makefile |
diff --git a/libmicrohttpd.pc.in b/libmicrohttpd.pc.in new file mode 100644 index 00000000..fd3e8c92 --- /dev/null +++ b/libmicrohttpd.pc.in | |||
@@ -0,0 +1,13 @@ | |||
1 | prefix=@prefix@ | ||
2 | exec_prefix=@exec_prefix@ | ||
3 | libdir=@libdir@ | ||
4 | includedir=@includedir@ | ||
5 | |||
6 | Name: libmicrohttpd | ||
7 | Description: A library for creating an embedded HTTP server | ||
8 | Version: @VERSION@ | ||
9 | Requires: | ||
10 | Conflicts: | ||
11 | Libs: -L${libdir} -lmicrohttpd | ||
12 | Libs.private: @LIBGCRYPT_LIBS@ | ||
13 | Cflags: -I${includedir} | ||