[vlmc-devel] [PATCH 4/7] Added microhttpd dependency.
Paweł Wegner
pawel.wegner95 at gmail.com
Mon May 9 15:50:18 CEST 2016
---
configure.ac | 3 +++
src/Makefile.am | 10 ++++++++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index e3ab10d..143e090 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,6 +13,9 @@ AS_IF([test "$have_libcurlpp" != "yes"], [AC_MSG_ERROR([Unable to find libcurlpp
PKG_CHECK_MODULES([libjsoncpp], [jsoncpp], [have_jsoncpp=yes], [have_jsoncpp=no])
AS_IF([test "$have_jsoncpp" != "yes"], [AC_MSG_ERROR([Unable to find jsoncpp])])
+PKG_CHECK_MODULES([libmicrohttpd], [libmicrohttpd], [have_microhttpd=yes], [have_microhttpd=no])
+AS_IF([test "$have_microhttpd" != "yes"], [AC_MSG_ERROR([Unable to find libmicrohttpd])])
+
AC_CONFIG_FILES([
Makefile
src/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index 4264ecc..45f2256 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,10 +1,16 @@
ACLOCAL_AMFLAGS = -I m4
-AM_CXXFLAGS = $(libcurlpp_CXXFLAGS) $(libjsoncpp_CXXFLAGS)
+AM_CXXFLAGS = \
+ $(libcurlpp_CXXFLAGS) \
+ $(libjsoncpp_CXXFLAGS) \
+ $(libmicrohttpd_CXXFLAGS)
lib_LTLIBRARIES = libcloudstorage.la
libcloudstorage_la_SOURCES = \
ICloudStorage.cpp ICloudStorage.h
-libcloudstorage_la_LIBADD = $(libcurlpp_LIBS) $(libjsoncpp_LIBS)
+libcloudstorage_la_LIBADD = \
+ $(libcurlpp_LIBS) \
+ $(libjsoncpp_LIBS) \
+ $(libmicrohttpd_LIBS)
--
2.7.4
More information about the Vlmc-devel
mailing list