[Libguestfs] [PATCH 2/2] build: add ./configure --enable-appliance-fmt-auto option

Richard W.M. Jones rjones at redhat.com
Sun Jun 25 21:30:46 UTC 2017


On Fri, Jun 23, 2017 at 04:12:36PM +0300, Pavel Butsykin wrote:
> Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
> ---
>  m4/guestfs_appliance.m4 | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/m4/guestfs_appliance.m4 b/m4/guestfs_appliance.m4
> index 81c43879f..7e8d28271 100644
> --- a/m4/guestfs_appliance.m4
> +++ b/m4/guestfs_appliance.m4
> @@ -139,3 +139,14 @@ AC_SUBST([GUESTFS_DEFAULT_PATH])
>  
>  AC_DEFINE_UNQUOTED([GUESTFS_DEFAULT_PATH], ["$GUESTFS_DEFAULT_PATH"],
>      [Define guestfs default path.])
> +
> +AC_ARG_ENABLE([appliance-fmt-auto],
> +    [AS_HELP_STRING([--enable-appliance-fmt-auto],
> +        [enable autodetection of appliance image format @<:@default=no@:>@])],
> +        [ENABLE_APPLIANCE_FMT_AUTO="$enableval"],
> +        [ENABLE_APPLIANCE_FMT_AUTO=no])
> +
> +if test "x$ENABLE_APPLIANCE_FMT_AUTO" = "xyes"; then
> +    AC_DEFINE([APPLIANCE_FMT_AUTO], [1],
> +        [Define to 1 if enabled autodetection of appliance image format.])
> +fi

Might as well combine this with the previous patch.  No need for two
patches as the first one depends on the second.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list