[Spice-devel] [spice-gtk] autogen.sh: default to --enable-vala when building from git

Christophe Fergeau cfergeau at redhat.com
Wed Apr 4 01:31:33 PDT 2012


People using autogen.sh are likely to be building from git, so may
get updates to vala files at any time. Checking for the presence of
controller.vala.stamp to decide whether vala should be enabled or not
is not very accurate since it doesn't reflect if a .vala file needs
to be regenerated or not.
It's better to always pass --enable-vala to configure, it's always
possible to disable it by using --disable-vala as an autogen.sh argument.
---
 autogen.sh |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index aefd2fd..0c18272 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -10,12 +10,9 @@ git submodule update --init --recursive
 gtkdocize
 autoreconf -v --force --install
 intltoolize -f
-if test ! -e gtk/controller/controller.vala.stamp; then
-  enable_vala="--enable-vala"
-fi
 
 if [ -z "$NOCONFIGURE" ]; then
-    echo "Running configure with --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 $enable_vala ${1+"$@"}"
-    "$srcdir"/configure --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 $enable_vala ${1+"$@"}
+    echo "Running configure with --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 --enable-vala ${1+"$@"}"
+    "$srcdir"/configure --enable-maintainer-mode --enable-gtk-doc --with-gtk=3.0 --enable-vala ${1+"$@"}
 fi
 
-- 
1.7.9.3



More information about the Spice-devel mailing list