From 320bb7f2f2b9143f871d2ee6061519a955b21ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Fri, 3 Jun 2016 03:55:08 +0300 Subject: build: fix builddir != srcdir --- autogen.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 4e9c78d1..16a82c9d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -11,6 +11,9 @@ if [ ! -f $srcdir/configure.ac ]; then exit 1 fi +olddir=$(pwd) +cd "$srcdir" + PKG_NAME=$(autoconf --trace 'AC_INIT:$1' "$srcdir/configure.ac") if [ "$#" = 0 ] && [ -z "$NOCONFIGURE" ]; then @@ -24,6 +27,8 @@ aclocal --install || exit 1 autoreconf --verbose --force --install -Wno-portability || exit 1 { set +x; } 2>/dev/null +cd "$olddir" + if [ -z "$NOCONFIGURE" ]; then set -x $srcdir/configure "$@" || exit 1 -- cgit v1.2.1