[osinfo PATCH 2/2] configure.ac: don't error out when vala autodetection fails

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

 



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


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux