[libvirt] [PATCH] Use AC_LINK_IFELSE
Eric Blake
eblake at redhat.com
Thu Jul 18 16:59:06 UTC 2013
On 07/18/2013 10:44 AM, Guido Günther wrote:
> instead of the deprecated AC_TRY_LINK
> ---
> configure.ac | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
ACK.
>
> diff --git a/configure.ac b/configure.ac
> index 5d5c8de..0f0b265 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -893,13 +893,14 @@ if test "$with_libvirtd" = "no" ; then
> with_lxc=no
> fi
> if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
> - AC_TRY_LINK([
> + AC_LINK_IFELSE([AC_LANG_PROGRAM(
> + [[
> #include <sched.h>
> #include <linux/loop.h>
> #include <sys/epoll.h>
> - ], [
> + ]], [[
> unshare (!(LO_FLAGS_AUTOCLEAR + EPOLL_CLOEXEC));
As long as you're touching this, remove the space before '('.
> - ], [
> + ]])], [
> with_lxc=yes
> AC_DEFINE([HAVE_DECL_LO_FLAGS_AUTOCLEAR], [1],
> [Define to 1 if you have the declaration of `LO_FLAGS_AUTOCLEAR',
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130718/ce045c59/attachment-0001.sig>
More information about the libvir-list
mailing list