summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-03-18 23:50:31 +0000
committerAaron Plattner <aplattner@nvidia.com>2015-05-11 12:53:46 -0700
commit3b3bf77ad67957be69b76c1c94dce981d75c4e9a (patch)
tree8f4bb59bbf1e2a3c3de94c712f09c91b12a919b9
parente4681ab2b71638a48fc857669903f7ac7ec8b3cb (diff)
autogen.sh: update/copy over from mesa
This commit addresses three concerns: - Places quotes around variables. Otherwise things will fail badly if either one of then contains space. - Adds --force to autoreconf, which will ensure that the build is regenerated, if one updates autotools. - Honours the NOCONFIGURE variable, which is set by gnome-continuous (iirc). Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rwxr-xr-xautogen.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index 354f254..c896097 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,12 +1,14 @@
#! /bin/sh
-srcdir=`dirname $0`
+srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
-cd $srcdir
+cd "$srcdir"
-autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
+autoreconf --force --verbose --install || exit 1
+cd "$ORIGDIR" || exit $?
-$srcdir/configure "$@"
+if test -z "$NOCONFIGURE"; then
+ "$srcdir"/configure "$@"
+fi