diff options
Diffstat (limited to 'mesalib/autogen.sh')
-rw-r--r-- | mesalib/autogen.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mesalib/autogen.sh b/mesalib/autogen.sh new file mode 100644 index 000000000..c76bf8b07 --- /dev/null +++ b/mesalib/autogen.sh @@ -0,0 +1,18 @@ +#! /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 "$@" |