]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
m4: sasl: Use pkg-config
authorAndrea Bolognani <abologna@redhat.com>
Thu, 11 Apr 2019 15:12:02 +0000 (17:12 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 12 Apr 2019 07:16:08 +0000 (09:16 +0200)
Since commit 4e75b0a00fb4 we support SASL 2.1.26 and newer
releases only, all of which ship a .pc file. Using pkg-config
allows FreeBSD builds to pick up the dependency automatically.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
m4/virt-sasl.m4

index 7ab9b2c3689e7e0d44a6aad2a57ef34634141742..674e169350284400313e05ff169547a6ff02eae3 100644 (file)
@@ -22,7 +22,7 @@ AC_DEFUN([LIBVIRT_ARG_SASL],[
 ])
 
 AC_DEFUN([LIBVIRT_CHECK_SASL],[
-  LIBVIRT_CHECK_LIB([SASL], [sasl2], [sasl_client_init], [sasl/sasl.h])
+  LIBVIRT_CHECK_PKG([SASL], [libsasl2], [2.1.26])
 ])
 
 AC_DEFUN([LIBVIRT_RESULT_SASL],[