From 773154a51324abc3947a716f62fe6eb3d8496fa5 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 8 Aug 2017 08:14:13 +0200 Subject: [PATCH] autogen.sh: Fix running out of tree The autogen.sh script should be runnable out of tree. It's mostly already the case, just one little tweak to make it work. $ mkdir build $ cd build $ ../autogen.sh --prefix=/usr Closes: #1063 Approved by: cgwalters --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 0f32089a..17f6abf4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -28,7 +28,6 @@ else gtkdocize fi -cd $olddir if ! test -f libglnx/README.md || ! test -f bsdiff/README.md; then git submodule update --init fi @@ -41,4 +40,5 @@ ln -sf ../libglnx/libglnx.m4 buildutil/libglnx.m4 autoreconf --force --install --verbose +cd $olddir test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"