[libvirt] [PATCH] virt-gnutls.m4: fixed check for gnutls_rnd and gnutls_cipher_encrypt

Daniel P. Berrange berrange at redhat.com
Wed Nov 30 14:35:50 UTC 2016


From: Nikos Mavrogiannopoulos <nmav at redhat.com>

---
 m4/virt-gnutls.m4 | 3 +++
 1 file changed, 3 insertions(+)

I thought this was onlist already, but there was a typo
in To, so neither the original patch or my ACK made it
to the list. I pushed as a build fix.

diff --git a/m4/virt-gnutls.m4 b/m4/virt-gnutls.m4
index b850828..5bca950 100644
--- a/m4/virt-gnutls.m4
+++ b/m4/virt-gnutls.m4
@@ -54,8 +54,11 @@ AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[
       #include <gnutls/gnutls.h>
     ]])
 
+    OLD_LIBS="$LIBS"
+    LIBS="$LIBS $GNUTLS_LIBS"
     AC_CHECK_FUNC([gnutls_rnd])
     AC_CHECK_FUNC([gnutls_cipher_encrypt])
+    LIBS=$OLD_LIBS
   fi
 ])
 
-- 
2.9.3




More information about the libvir-list mailing list