Re: [PATCH RFC 1/5] Include criu support in autotools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 21, 2016 at 03:37:23PM +0000, Katerina Koukiou wrote:
> Check for CRIU binary in autotools. This binary is needed
> for checkpointing/restoring linux containers.
> 
> Signed-off-by: Katerina Koukiou <k.koukiou@xxxxxxxxx>
> ---
>  configure.ac | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index 2c81c95..d061676 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -242,6 +242,7 @@ LIBVIRT_CHECK_AUDIT
>  LIBVIRT_CHECK_AVAHI
>  LIBVIRT_CHECK_BLKID
>  LIBVIRT_CHECK_CAPNG
> +LIBVIRT_CHECK_CRIU

Nothing in your patch defines this.

>  LIBVIRT_CHECK_CURL
>  LIBVIRT_CHECK_DBUS
>  LIBVIRT_CHECK_FUSE
> @@ -425,6 +426,13 @@ AC_PATH_PROG([XSLTPROC], [xsltproc], [/usr/bin/xsltproc])
>  AC_PATH_PROG([AUGPARSE], [augparse], [/usr/bin/augparse])
>  AC_PROG_MKDIR_P
>  AC_PROG_LN_S
> +AC_PATH_PROG([CRIU], [criu], [no],
> +	[$PATH:/sbin:/usr/sbin:/usr/local/sbin])
> +AM_CONDITIONAL([WITH_CRIU], [test "x$ac_cv_path_CRIU" != "xno"])
> +if test "x$ac_cv_path_CRIU" != "xno"; then
> +	AC_DEFINE_UNQUOTED([CRIU], ["$CRIU"],
> +	[Location of criu program])
> +fi

Please put this in a m4/virt-criu.m4 file and call it from the
main configure.ac script


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]