Switch to side-by-side view

--- a/configure.ac
+++ b/configure.ac
@@ -35,13 +35,20 @@
 dnl AC_CHECK_LIB([curl], [curl_easy_init], [],AC_MSG_ERROR([libcurl not found]))
 dnl AC_CHECK_LIB([expat], [XML_ParserCreate], [],AC_MSG_ERROR([libexpat not found]))
 
-
 AC_CHECK_LIB([upnpp], [getsyshwaddr], [], [AC_MSG_ERROR([libupnpp])])
 AC_CHECK_LIB([mpdclient], [mpd_connection_new], [],
                           AC_MSG_ERROR([libmpdclient not found]))
 SCCTL_LIBS=$LIBS
 
 AC_CHECK_LIB([microhttpd], [MHD_queue_response], [], [])
+
+AC_LANG_PUSH([C++])
+LIBS="$LIBS -ljsoncpp"
+AC_LINK_IFELSE([AC_LANG_PROGRAM(
+    [#include <jsoncpp/json/json.h>], [Json::Features dummy])],
+    [HAVE_JSONCPP=1],
+    [AC_MSG_ERROR([libjsoncpp not found.])])
+AC_LANG_POP
 
 UPMPDCLI_LIBS=$LIBS
 echo "UPMPDCLI_LIBS=$LIBS"