When --enable-vala or --disable-vala are not passed to configure,
configure.ac automatically checks for vala availability. However,
in this case, it's erroring out when vapigen cannot be found instead
of silently disabling it.
---
 configure.ac |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ae5023c..90d7db8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -120,7 +120,9 @@ if test "x$enable_introspection" = "xyes" ; then
                         fi
                         AC_SUBST(VAPIGEN)
                 else
-                        AC_MSG_ERROR([Cannot find the "vapigen" binary in your 
PATH])
+                        if test "x$enable_vala" == "xyes" ; then
+                                AC_MSG_ERROR([Cannot find the "vapigen" binary 
in your PATH])
+                        fi
                 fi
         fi
 fi
-- 
1.7.9.3

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to