build: Fix running autogen.sh out-of-tree

This commit is contained in:
Bastien Nocera 2016-07-19 11:18:31 +02:00
parent 487dae0d2f
commit 9570c36fd4

View file

@ -1,10 +1,18 @@
#!/bin/sh #!/bin/sh
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
pushd $srcdir
libtoolize --copy --force || exit 1 libtoolize --copy --force || exit 1
aclocal || exit 1 aclocal || exit 1
autoheader || exit 1 autoheader || exit 1
autoconf || exit 1 autoconf || exit 1
automake -a -c || exit 1 automake -a -c || exit 1
popd
if test -z "$NOCONFIGURE"; then if test -z "$NOCONFIGURE"; then
exec ./configure --enable-maintainer-mode --enable-examples-build \ $srcdir/configure --enable-maintainer-mode --enable-examples-build \
--enable-x11-examples-build --enable-debug-log $* --enable-x11-examples-build --enable-debug-log $*
fi fi