blob: b5f6ec4a97a2bfa8b9d881111a7a7d4e7a4a6de7 [file] [log] [blame]
Dan Nicholson460d25d2008-03-07 12:04:17 -08001#! /bin/sh
2
3srcdir=`dirname "$0"`
4test -z "$srcdir" && srcdir=.
5
6SRCDIR=`(cd "$srcdir" && pwd)`
7ORIGDIR=`pwd`
8
9if test "x$SRCDIR" != "x$ORIGDIR"; then
10 echo "Mesa cannot be built when srcdir != builddir" 1>&2
11 exit 1
12fi
13
Benjamin Close17fe4782009-02-10 11:54:27 +103014MAKEFLAGS=""
15
Dan Nicholson460d25d2008-03-07 12:04:17 -080016autoreconf -v --install || exit 1
17
Colin Walters4d515c22011-09-17 11:21:30 -040018if test -z "$NOCONFIGURE"; then
19 "$srcdir"/configure "$@"
20fi