autogen.sh: Honor NOCONFIGURE=1
authorColin Walters <walters@verbum.org>
Thu, 19 Jan 2012 20:38:35 +0000 (15:38 -0500)
committerColin Walters <walters@verbum.org>
Thu, 19 Jan 2012 20:38:56 +0000 (15:38 -0500)
See http://people.gnome.org/~walters/docs/build-api.txt

autogen.sh

index 68d1f59..b3b63b1 100755 (executable)
@@ -17,16 +17,20 @@ fi
 autoreconf -i -f
 intltoolize --force --copy --automake
 
-run_configure=true
-for arg in $*; do
-    case $arg in
-        --no-configure)
-            run_configure=false
-            ;;
-        *)
-            ;;
-    esac
-done
+if test -z "$NOCONFIGURE"; 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 "$@"