[Spice-commits] configure.ac

Christophe Fergau teuf at kemper.freedesktop.org
Mon Mar 10 08:47:17 PDT 2014


 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6f379eeba97eb8cf60a18591c19c0763b1636417
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Mon Mar 10 10:25:10 2014 +0100

    build-sys: Fix setting of SPICE_GTK_MICRO_VERSION
    
    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.

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)


More information about the Spice-commits mailing list