Dan Nicholson | 460d25d | 2008-03-07 12:04:17 -0800 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | srcdir=`dirname "$0"` |
| 4 | test -z "$srcdir" && srcdir=. |
| 5 | |
| 6 | SRCDIR=`(cd "$srcdir" && pwd)` |
| 7 | ORIGDIR=`pwd` |
| 8 | |
| 9 | if test "x$SRCDIR" != "x$ORIGDIR"; then |
| 10 | echo "Mesa cannot be built when srcdir != builddir" 1>&2 |
| 11 | exit 1 |
| 12 | fi |
| 13 | |
Benjamin Close | 17fe478 | 2009-02-10 11:54:27 +1030 | [diff] [blame] | 14 | MAKEFLAGS="" |
| 15 | |
Dan Nicholson | 460d25d | 2008-03-07 12:04:17 -0800 | [diff] [blame] | 16 | autoreconf -v --install || exit 1 |
| 17 | |
Colin Walters | 4d515c2 | 2011-09-17 11:21:30 -0400 | [diff] [blame] | 18 | if test -z "$NOCONFIGURE"; then |
| 19 | "$srcdir"/configure "$@" |
| 20 | fi |