[next] telepathy-salut: Use Gabble's autogen.sh
Simon McVittie
smcv at kemper.freedesktop.org
Mon May 12 01:26:43 PDT 2014
Module: telepathy-salut
Branch: next
Commit: 05102dc3123b2368503fc7ca610a1d262e6df4f8
URL: http://cgit.freedesktop.org/telepathy/telepathy-salut/commit/?id=05102dc3123b2368503fc7ca610a1d262e6df4f8
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Wed May 7 11:27:36 2014 +0100
Use Gabble's autogen.sh
---
autogen.sh | 65 ++++++++++++++++++++++++++----------------------------------
1 file changed, 28 insertions(+), 37 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index 4da1c1f..9588760 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,39 +1,25 @@
#!/bin/sh
set -e
-if test -n "$AUTOMAKE"; then
- : # don't override an explicit user request
-elif automake-1.11 --version >/dev/null 2>/dev/null && \
- aclocal-1.11 --version >/dev/null 2>/dev/null; then
- # If we have automake-1.11, use it. This is the oldest version (=> least
- # likely to introduce undeclared dependencies) that will give us
- # --enable-silent-rules support.
- AUTOMAKE=automake-1.11
- export AUTOMAKE
- ACLOCAL=aclocal-1.11
- export ACLOCAL
-fi
-
autoreconf -i -f
-#Check if building submodules
-build_submodules=true
+#Check if submodules should be enabled
+enable_submodules=true
for arg in $*; do
case $arg in
- --disable-submodules)
- build_submodules=false
- ;;
-*)
-;;
-esac
+ --disable-submodules)
+ enable_submodules=false
+ ;;
+ *)
+ ;;
+ esac
done
-if test $build_submodules = true; then
- # Fetch Wocky if needed
- if test ! -f lib/ext/wocky/autogen.sh;
- then
- echo "+ Setting up Wocky submodule"
- git submodule init
+if test $enable_submodules = true; then
+ # Fetch submodules if needed
+ if test ! -f lib/ext/wocky/autogen.sh; then
+ echo "+ Setting up submodules"
+ git submodule init
fi
git submodule update
@@ -43,16 +29,21 @@ if test $build_submodules = true; then
cd ../../..
fi
-run_configure=true
-for arg in $*; do
- case $arg in
- --no-configure)
- run_configure=false
- ;;
- *)
- ;;
- esac
-done
+# Honor NOCONFIGURE for compatibility with gnome-autogen.sh
+if test x"$NOCONFIGURE" = x; then
+ run_configure=true
+ for arg in $*; do
+ case $arg in
+ --no-configure)
+ run_configure=false
+ ;;
+ *)
+ ;;
+ esac
+ done
+else
+ run_configure=false
+fi
if test $run_configure = true; then
./configure "$@"
More information about the telepathy-commits
mailing list