[gnome-builder] build: fix AS_IF() missing test



commit 8e86dcb83be8997a5043132bc591360e7a3f792c
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 11 20:05:33 2016 -0700

    build: fix AS_IF() missing test
    
    You need to use test after && as well.

 libidemm/configure.ac          |    2 +-
 plugins/hello-cpp/configure.ac |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libidemm/configure.ac b/libidemm/configure.ac
index 56422cc..f25c8b5 100644
--- a/libidemm/configure.ac
+++ b/libidemm/configure.ac
@@ -26,7 +26,7 @@ AS_IF([test x$enable_idemm != xno],[
                          [have_gtkmm=yes],
                          [have_gtkmm=no])
 
-        AS_IF([test x$enable_idemm = xyes && x$have_idemm = xno],[
+        AS_IF([test x$enable_idemm = xyes && test x$have_idemm = xno],[
                AC_MSG_ERROR([--enable-idemm requires gtkmm >= gtkmm_required_version])
        ])
 
diff --git a/plugins/hello-cpp/configure.ac b/plugins/hello-cpp/configure.ac
index fe123fe..20e54a7 100644
--- a/plugins/hello-cpp/configure.ac
+++ b/plugins/hello-cpp/configure.ac
@@ -9,7 +9,7 @@ AC_ARG_ENABLE([hello-cpp-plugin],
 AS_IF([test x$enable_hello_cpp_plugin != xno],[
        AM_COND_IF([ENABLE_IDEMM], [have_idemm=yes], [have_idemm=no])
 
-       AS_IF([test x$enable_hello_cpp_plugin = xyes && x$have_idemm = xno],[
+       AS_IF([test x$enable_hello_cpp_plugin = xyes && test x$have_idemm = xno],[
               AC_MSG_ERROR([--enable-hello-cpp-plugin requires --enable-idemm=yes])
        ])
 


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