[Spice-devel] [spice-gtk] build-sys: Fix setting of SPICE_GTK_MICRO_VERSION

Marc-André Lureau mlureau at redhat.com
Mon Mar 10 04:36:14 PDT 2014


ack

----- Original Message -----
> After e124a3b2e which added the SPICE_GTK_CHECK_VERSION macro, a non-fatal
> './configure: line 15251: x24: command not found' appears in configure
> output. This is because [ ] is not interpreted as the 'test' command by
> autoconf, but is rather used as a way to quote configure.ac content.
> This commit replaces the use of [] with a more typical AS_IF.
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 192d748..afdbdbd 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -78,7 +78,7 @@ AC_SUBST(COMMON_CFLAGS)
>  SPICE_GTK_MAJOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f1`
>  SPICE_GTK_MINOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f2`
>  SPICE_GTK_MICRO_VERSION=`echo $PACKAGE_VERSION | cut -d. -f3 | cut -d- -f1`
> -[ "x$SPICE_GTK_MICRO_VERSION" = "x" ] && SPICE_GTK_MICRO_VERSION = 0
> +AS_IF([test "x$SPICE_GTK_MICRO_VERSION" = "x"], [SPICE_GTK_MICRO_VERSION =
> 0])
>  
>  AC_SUBST(SPICE_GTK_MAJOR_VERSION)
>  AC_SUBST(SPICE_GTK_MINOR_VERSION)
> --
> 1.8.5.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list