提交 c5d79fb0 编写于 作者: G Guido Günther

Use AC_LINK_IFELSE

instead of the deprecated AC_TRY_LINK
上级 684c90bf
...@@ -893,13 +893,14 @@ if test "$with_libvirtd" = "no" ; then ...@@ -893,13 +893,14 @@ if test "$with_libvirtd" = "no" ; then
with_lxc=no with_lxc=no
fi fi
if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
AC_TRY_LINK([ AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[
#include <sched.h> #include <sched.h>
#include <linux/loop.h> #include <linux/loop.h>
#include <sys/epoll.h> #include <sys/epoll.h>
], [ ]], [[
unshare (!(LO_FLAGS_AUTOCLEAR + EPOLL_CLOEXEC)); unshare(!(LO_FLAGS_AUTOCLEAR + EPOLL_CLOEXEC));
], [ ]])], [
with_lxc=yes with_lxc=yes
AC_DEFINE([HAVE_DECL_LO_FLAGS_AUTOCLEAR], [1], AC_DEFINE([HAVE_DECL_LO_FLAGS_AUTOCLEAR], [1],
[Define to 1 if you have the declaration of `LO_FLAGS_AUTOCLEAR', [Define to 1 if you have the declaration of `LO_FLAGS_AUTOCLEAR',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册