diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-03 03:55:08 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2016-06-03 03:55:08 +0300 |
commit | 320bb7f2f2b9143f871d2ee6061519a955b21ef6 (patch) | |
tree | 897a027c7c06d8b3d695e7e3e13462bc11b96bb4 /autogen.sh | |
parent | 86e6b0a385e3d458550f18b74a1ef9bbd85549f6 (diff) | |
download | metacity-320bb7f2f2b9143f871d2ee6061519a955b21ef6.tar.gz |
build: fix builddir != srcdir
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |