From: Pavel Hrdina Date: Tue, 23 Jun 2020 22:05:57 +0000 (+0200) Subject: m4: virt-sanlock: use pkg-config to find libsanlock_client X-Git-Tag: v6.6.0-rc1~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95037c48ef401d356ba3b6ad9fc9f4b2f493192e;p=thirdparty%2Flibvirt.git m4: virt-sanlock: use pkg-config to find libsanlock_client The last distribution supported by libvirt and lacking pkg-config file for libsanlock_client was Ubuntu 16.04. It is no longer supported so switch to pkg-config. Signed-off-by: Pavel Hrdina Reviewed-by: Ján Tomko Reviewed-by: Michal Privoznik --- diff --git a/m4/virt-sanlock.m4 b/m4/virt-sanlock.m4 index cc35b10b09..a7fba520df 100644 --- a/m4/virt-sanlock.m4 +++ b/m4/virt-sanlock.m4 @@ -22,7 +22,7 @@ AC_DEFUN([LIBVIRT_ARG_SANLOCK],[ ]) AC_DEFUN([LIBVIRT_CHECK_SANLOCK],[ - LIBVIRT_CHECK_LIB([SANLOCK], [sanlock_client], [sanlock_init], [sanlock.h]) + LIBVIRT_CHECK_PKG([SANLOCK], [libsanlock_client], [3.2.4]) if test "x$with_sanlock" = "xyes" ; then AC_CHECK_DECLS([SANLK_INQ_WAIT], [sanlock_inq_wait=1], [sanlock_inq_wait=0], [[