projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scons: fix incorrect test for embedded build
[mesa.git]
/
autogen.sh
diff --git
a/autogen.sh
b/autogen.sh
index 904cd6746c8734b2c33e3f80773d4759715d2f6e..c76bf8b07bd001c641babb4f129f426036d513c4 100755
(executable)
--- a/
autogen.sh
+++ b/
autogen.sh
@@
-1,12
+1,18
@@
#! /bin/sh
#! /bin/sh
-srcdir=`dirname
$0
`
+srcdir=`dirname
"$0"
`
test -z "$srcdir" && srcdir=.
test -z "$srcdir" && srcdir=.
+SRCDIR=`(cd "$srcdir" && pwd)`
ORIGDIR=`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 -v --install || exit 1
autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
-
$srcdir/configure --enable-maintainer-mod
e "$@"
+
"$srcdir"/configur
e "$@"