[libvirt] [PATCH] build: restore support for libyajl 2.0.1

Andrea Bolognani abologna at redhat.com
Thu May 9 13:59:10 UTC 2019


On Thu, 2019-05-09 at 13:31 +0200, Ján Tomko wrote:
> +  PKG_CHECK_EXISTS([readline], [use_pkgconfig=1], [use_pkgconfig=0])
> +
> +  if test $use_pkgconfig = 1; then
> +    dnl 2.0.3 was the version where the pkg-config file was first added
> +    LIBVIRT_CHECK_PKG([YAJL], [yajl], [2.0.3])
> +  else
> +    dnl SUSE SLE 12 and OpenSUSE Leap 42.3 still use 2.0.1
> +    dnl TODO: delete this in July 2020
> +    LIBVIRT_CHECK_LIB_ALT([YAJL], [yajl],
> +                          [yajl_tree_parse], [yajl/yajl_common.h])
> +
> +  fi

We're only concerned with YAJL 2 nowadays, so we should be able to
use the non-ALT version of the macro here, right?

Other than that, the change looks good.

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list