5 AC_DEFUN([lldp_CHECK_JANSSON], [
6 if test x"$with_json" = x"auto" -o x"$with_json" = x"jansson"; then
7 PKG_CHECK_MODULES([JANSSON], [jansson >= 2], [
8 AC_SUBST([JANSSON_LIBS])
9 AC_SUBST([JANSSON_CFLAGS])
10 AC_DEFINE_UNQUOTED([USE_JSON], 1, [Define to indicate to enable JSON support])
11 AC_DEFINE_UNQUOTED([USE_JANSSON], 1, [Define to indicate to enable JSON support through jansson])
14 if test x"$with_json" = x"jansson"; then
15 AC_MSG_ERROR([*** unable to find libjansson])