Commit 2c188833c6a5f6932ac80d1161ee0e0671c72e7e

Ran Benita 2012-10-10T20:53:26

build: honor $NOCONFIGURE in autogen.sh Using NOCONFIGURE=1 ./autogen.sh can prevent it from running ./configure on its own, which is sometimes useful. Signed-off-by: Ran Benita <ran234@gmail.com>

diff --git a/autogen.sh b/autogen.sh
index c95132e..a6d7699 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh -e
 
 srcdir=`dirname "$0"`
 test -z "$srcdir" && srcdir=.
@@ -6,7 +6,9 @@ test -z "$srcdir" && srcdir=.
 ORIGDIR=`pwd`
 cd "$srcdir"
 
-autoreconf --verbose --install --symlink --warnings=all || exit 1
-cd "$ORIGDIR" || exit $?
+autoreconf --verbose --install --symlink --warnings=all
+cd "$ORIGDIR"
 
-exec "$srcdir/configure" --enable-maintainer-mode "$@"
+if test -z "$NOCONFIGURE"; then
+    exec "$srcdir/configure" "$@"
+fi