From 460d25dca134c4d2e051803822aa82f35e832cdc Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Fri, 7 Mar 2008 12:04:17 -0800 Subject: autoconf: Add autogen.sh from Xorg for easier setup from git The defacto method to rebuild the autotools and run the generated configure is an autogen.sh script. It is much more discoverable than the custom `make configure' used here. The Makefile targets are still useful for creating tarballs, though. This autogen.sh is copied from Xorg. --- autogen.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 autogen.sh (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 00000000000..19e5b55fcfa --- /dev/null +++ b/autogen.sh @@ -0,0 +1,16 @@ +#! /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 + +autoreconf -v --install || exit 1 + +"$srcdir"/configure "$@" -- cgit v1.2.3