dnl There is no way qemu driver will work without JSON support
AC_REQUIRE([LIBVIRT_CHECK_YAJL])
if test "$with_qemu:$with_yajl" = "yes:no"; then
- AC_MSG_ERROR([YAJL or YAJL2 is required to build QEMU driver])
+ AC_MSG_ERROR([YAJL 2 is required to build QEMU driver])
fi
if test "$with_qemu" = "check"; then
with_qemu=$with_yajl
AC_DEFUN([LIBVIRT_CHECK_YAJL],[
dnl YAJL JSON library http://lloyd.github.com/yajl/
- LIBVIRT_CHECK_LIB_ALT([YAJL], [yajl],
- [yajl_parse_complete], [yajl/yajl_common.h],
- [YAJL2], [yajl],
- [yajl_tree_parse], [yajl/yajl_common.h])
+ LIBVIRT_CHECK_PKG([YAJL], [yajl], [2.0.3])
+ AC_DEFINE_UNQUOTED([WITH_YAJL2], 1, [whether YAJL2 is enabled])
])
AC_DEFUN([LIBVIRT_RESULT_YAJL],[