X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=autogen.sh;h=c8960971d248bce5a8d1f5fe149133bb498509ba;hb=f2872bf8c34bc762a3c1bb2595c8000672659b9f;hp=c76bf8b07bd001c641babb4f129f426036d513c4;hpb=bcc13b74443137043e8a34f8cb64a5add0d8af93;p=mesa.git diff --git a/autogen.sh b/autogen.sh index c76bf8b07bd..c8960971d24 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,16 +3,12 @@ srcdir=`dirname "$0"` test -z "$srcdir" && srcdir=. -SRCDIR=`(cd "$srcdir" && pwd)` ORIGDIR=`pwd` +cd "$srcdir" -if test "x$SRCDIR" != "x$ORIGDIR"; then - echo "Mesa cannot be built when srcdir != builddir" 1>&2 - exit 1 -fi - -MAKEFLAGS="" +autoreconf --force --verbose --install || exit 1 +cd "$ORIGDIR" || exit $? -autoreconf -v --install || exit 1 - -"$srcdir"/configure "$@" +if test -z "$NOCONFIGURE"; then + "$srcdir"/configure "$@" +fi