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

Daniel P. Berrange berrange at redhat.com
Fri Jul 22 08:28:07 UTC 2016


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 at gmail.com>
> ---
>  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 :|




More information about the libvir-list mailing list