提交 aac34eca 编写于 作者: P Pavel Hrdina

m4/virt-gnutls: properly backup CFLAGS and LIBS for AC_CHECK_* macros

Commit 943ddcb7 partially fixed this bug in gnutls configure code.
However we also need to backup and modify CFLAGS and do if for
AC_CHECK_HEADERS as well.
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 0eb5fc52
...@@ -54,15 +54,18 @@ AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[ ...@@ -54,15 +54,18 @@ AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[
[set to 1 if it is known or assumed that GNUTLS uses gcrypt]) [set to 1 if it is known or assumed that GNUTLS uses gcrypt])
fi fi
OLD_CFLAGS="$CFLAGS"
OLD_LIBS="$LIBS"
CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
LIBS="$LIBS $GNUTLS_LIBS"
AC_CHECK_HEADERS([gnutls/crypto.h], [], [], [[ AC_CHECK_HEADERS([gnutls/crypto.h], [], [], [[
#include <gnutls/gnutls.h> #include <gnutls/gnutls.h>
]]) ]])
OLD_LIBS="$LIBS"
LIBS="$LIBS $GNUTLS_LIBS"
AC_CHECK_FUNCS([gnutls_rnd]) AC_CHECK_FUNCS([gnutls_rnd])
AC_CHECK_FUNCS([gnutls_cipher_encrypt]) AC_CHECK_FUNCS([gnutls_cipher_encrypt])
LIBS=$OLD_LIBS CFLAGS="$OLD_CFLAGS"
LIBS="$OLD_LIBS"
fi fi
]) ])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册