Re: [PATCH 04/10] build: require yajl >= 2.0.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 03, 2019 at 07:40:19AM +0200, Ján Tomko wrote:
> The pkg-config file was introduced by commit b729ded which was released
> in yajl 2.0.3.
> 
> Since all our supported platforms include at least yajl 2.0.4,
> use pkg-config to detect the library and set the minimum to 2.0.3.
> 
> https://repology.org/project/yajl/versions
> 
> Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
> ---
>  m4/virt-driver-qemu.m4 | 2 +-
>  m4/virt-yajl.m4        | 6 ++----
>  2 files changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/m4/virt-driver-qemu.m4 b/m4/virt-driver-qemu.m4
> index 2934098cfd..0daf62b88e 100644
> --- a/m4/virt-driver-qemu.m4
> +++ b/m4/virt-driver-qemu.m4
> @@ -29,7 +29,7 @@ AC_DEFUN([LIBVIRT_DRIVER_CHECK_QEMU], [
>    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 is required to build QEMU driver])

s/YAYL/YAJL 2/

>    fi
>    if test "$with_qemu" = "check"; then
>      with_qemu=$with_yajl
> diff --git a/m4/virt-yajl.m4 b/m4/virt-yajl.m4
> index 7e905c2f77..dfc920d1f2 100644
> --- a/m4/virt-yajl.m4
> +++ b/m4/virt-yajl.m4
> @@ -24,10 +24,8 @@ AC_DEFUN([LIBVIRT_ARG_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],[

Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux