diff options
Diffstat (limited to 'mesalib/autogen.sh')
-rw-r--r-- | mesalib/autogen.sh | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/mesalib/autogen.sh b/mesalib/autogen.sh index 182a28d16..b5f6ec4a9 100644 --- a/mesalib/autogen.sh +++ b/mesalib/autogen.sh @@ -1,18 +1,20 @@ -#! /bin/sh
-
-srcdir=`dirname "$0"`
-test -z "$srcdir" && srcdir=.
-
-SRCDIR=`(cd "$srcdir" && pwd)`
-ORIGDIR=`pwd`
-
-if test "x$SRCDIR" != "x$ORIGDIR"; then
- echo "Mesa cannot be built when srcdir != builddir" 1>&2
- exit 1
-fi
-
-MAKEFLAGS=""
-
-autoreconf -v --install || exit 1
-
-"$srcdir"/configure "$@"
+#! /bin/sh + +srcdir=`dirname "$0"` +test -z "$srcdir" && srcdir=. + +SRCDIR=`(cd "$srcdir" && pwd)` +ORIGDIR=`pwd` + +if test "x$SRCDIR" != "x$ORIGDIR"; then + echo "Mesa cannot be built when srcdir != builddir" 1>&2 + exit 1 +fi + +MAKEFLAGS="" + +autoreconf -v --install || exit 1 + +if test -z "$NOCONFIGURE"; then + "$srcdir"/configure "$@" +fi |