Skip to content
Snippets Groups Projects
Commit 4d689ef5 authored by Vladimir Stoiakin's avatar Vladimir Stoiakin Committed by Adrien Béraud
Browse files

update opendht.pc

parent face9f12
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ Build instructions: <https://github.com/savoirfairelinux/opendht/wiki/Build-the- ...@@ -27,7 +27,7 @@ Build instructions: <https://github.com/savoirfairelinux/opendht/wiki/Build-the-
#### How-to build a simple client app #### How-to build a simple client app
```bash ```bash
g++ main.cpp -std=c++14 -lopendht -lgnutls g++ main.cpp -std=c++14 -lopendht
``` ```
## Examples ## Examples
......
...@@ -140,6 +140,7 @@ AS_IF([test "x$with_jsoncpp" != "xno"], ...@@ -140,6 +140,7 @@ AS_IF([test "x$with_jsoncpp" != "xno"],
AS_IF([test "x$have_jsoncpp" = "xyes"], [ AS_IF([test "x$have_jsoncpp" = "xyes"], [
AC_MSG_NOTICE([Using JsonCpp]) AC_MSG_NOTICE([Using JsonCpp])
CPPFLAGS+=" -DOPENDHT_JSONCPP" CPPFLAGS+=" -DOPENDHT_JSONCPP"
AC_SUBST(jsoncpp_lib, [", jsoncpp"])
], [ ], [
AC_MSG_NOTICE([Not using JsonCpp]) AC_MSG_NOTICE([Not using JsonCpp])
AM_COND_IF(PROXY_CLIENT_OR_SERVER, AC_MSG_ERROR(["JsonCpp is required for proxy/push notification support"])) AM_COND_IF(PROXY_CLIENT_OR_SERVER, AC_MSG_ERROR(["JsonCpp is required for proxy/push notification support"]))
...@@ -151,6 +152,7 @@ AS_IF([test "x$with_openssl" != "xno"], ...@@ -151,6 +152,7 @@ AS_IF([test "x$with_openssl" != "xno"],
[have_openssl=no]) [have_openssl=no])
AS_IF([test "x$have_openssl" = "xyes"], [ AS_IF([test "x$have_openssl" = "xyes"], [
AC_MSG_NOTICE([Using OpenSSL]) AC_MSG_NOTICE([Using OpenSSL])
AC_SUBST(openssl_lib, [", openssl"])
], [ ], [
AC_MSG_NOTICE([Not using OpenSSL]) AC_MSG_NOTICE([Not using OpenSSL])
]) ])
...@@ -175,6 +177,7 @@ AM_COND_IF([PROXY_CLIENT_OR_SERVER], [ ...@@ -175,6 +177,7 @@ AM_COND_IF([PROXY_CLIENT_OR_SERVER], [
# http_parser has no pkgconfig, instead we check with: # http_parser has no pkgconfig, instead we check with:
AC_CHECK_LIB(http_parser, exit,, AC_MSG_ERROR([Missing HttpParser library files])) AC_CHECK_LIB(http_parser, exit,, AC_MSG_ERROR([Missing HttpParser library files]))
AC_CHECK_HEADERS([http_parser.h], [http_parser_headers=yes; break;]) AC_CHECK_HEADERS([http_parser.h], [http_parser_headers=yes; break;])
AC_SUBST(http_parser_lib, ["-lhttp_parser"])
AS_IF([test "x$http_parser_headers" != "xyes"], AC_MSG_ERROR([Missing HttpParser headers files])) AS_IF([test "x$http_parser_headers" != "xyes"], AC_MSG_ERROR([Missing HttpParser headers files]))
]) ])
......
...@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@ ...@@ -3,9 +3,9 @@ exec_prefix=@exec_prefix@
libdir=@libdir@ libdir=@libdir@
includedir=@includedir@ includedir=@includedir@
Name: OpenDHT Name: OpenDHT
Description: C++ Distributed Hash Table library Description: C++14 Distributed Hash Table library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} -lopendht Libs: -L${libdir} -lopendht
Libs.private: -lpthread Libs.private: @http_parser_lib@ -lpthread
Requires.private: gnutls >= 3.1@argon2_lib@ Requires.private: gnutls >= 3.3, nettle >= 2.4@argon2_lib@@jsoncpp_lib@@openssl_lib@
Cflags: -I${includedir} Cflags: -I${includedir}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment