From bee82725eb33ef8b8a4107746077500d1d2e34a7 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Mon, 26 May 2014 07:51:44 +0200 Subject: [PATCH] Check for libjson --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index c8eec7b488..309789ca15 100644 --- a/configure.ac +++ b/configure.ac @@ -799,6 +799,11 @@ if test x$tss = xtrousers; then AC_DEFINE([TSS_TROUSERS], [], [use TrouSerS library libtspi as TSS implementation]) fi +if test x$imv_swid = xtrue; then + AC_CHECK_LIB([json],[main],[LIBS="$LIBS"],[AC_MSG_ERROR([JSON library libjson not found])],[]) + AC_CHECK_HEADER([json/json.h],,[AC_MSG_ERROR([JSON header json/json.h not found!])]) +fi + if test x$dumm = xtrue; then PKG_CHECK_MODULES(gtk, [gtk+-2.0 vte]) AC_SUBST(gtk_CFLAGS)