summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-09-12 23:09:57 -0400
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-13 12:18:44 +0200
commit2b01622f523b7874afa6fb7bbda440d8e05e0e85 (patch)
tree4b6bc82a7289e675007822723d3f5624855c987e
parent173ccaa6b90842c62a5ddb3e98cc0392faced69d (diff)
autogen: Honor NOCONFIGURE=1
See http://people.gnome.org/~walters/docs/build-api.txt
-rwxr-xr-xautogen.sh25
1 files changed, 15 insertions, 10 deletions
diff --git a/autogen.sh b/autogen.sh
index c238256..381e32f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,16 +3,21 @@ set -e
autoreconf -i -Wno-portability
-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 "$@"