+(test -f $srcdir/configure.ac) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level gnome directory"
+ exit 1
+}
+
+which gnome-autogen.sh || {
+ echo "You need to install gnome-common from the GNOME GIT"
+ exit 1
+}
+
+# Fetch submodules if needed
+if test ! -f telepathy-account-widgets/COPYING;
+then
+ echo "+ Setting up submodules"
+ git submodule init