X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=autogen.sh;h=c8960971d248bce5a8d1f5fe149133bb498509ba;hp=19e5b55fcfa67dfd31ce6a7ec23e6ac0ce23ebb3;hb=7d48219b3ac78895315ea6cef3ced3e55d3d92f0;hpb=80a718a63bf2fa817e346f0f5731ee9ef2e0e68b diff --git a/autogen.sh b/autogen.sh index 19e5b55fcfa..c8960971d24 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,14 +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 - -autoreconf -v --install || exit 1 +autoreconf --force --verbose --install || exit 1 +cd "$ORIGDIR" || exit $? -"$srcdir"/configure "$@" +if test -z "$NOCONFIGURE"; then + "$srcdir"/configure "$@" +fi