]> Pileus Git - ~andy/gtk/commitdiff
Support NOCONFIGURE (from gnome-common)
authorColin Walters <walters@verbum.org>
Mon, 28 Jun 2010 21:16:44 +0000 (17:16 -0400)
committerColin Walters <walters@verbum.org>
Mon, 28 Jun 2010 21:46:31 +0000 (17:46 -0400)
gnome-common's autogen.sh uses NOCONFIGURE to skip running configure.
Support that in addition to the current AUTOGEN_SUBDIR_MODE.

autogen.sh

index 4bdce3bcaf1f58db0bd59b92e78b753400823e59..71709baa84b6f1e8d5137748c074562545b27a0a 100755 (executable)
@@ -72,7 +72,12 @@ test $TEST_TYPE $FILE || {
        exit 1
 }
 
-if test -z "$AUTOGEN_SUBDIR_MODE"; then
+# NOCONFIGURE is used by gnome-common; support both
+if ! test -z "$AUTOGEN_SUBDIR_MODE"; then
+    NOCONFIGURE=1
+fi
+
+if test -z "$NOCONFIGURE"; then
         if test -z "$*"; then
                 echo "I am going to run ./configure with no arguments - if you wish "
                 echo "to pass any to it, please specify them on the $0 command line."
@@ -116,7 +121,7 @@ $AUTOMAKE --add-missing || exit $?
 autoconf || exit $?
 cd $ORIGDIR || exit $?
 
-if test -z "$AUTOGEN_SUBDIR_MODE"; then
+if test -z "$NOCONFIGURE"; then
         $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
 
         echo