diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2016-03-04 01:20:40 +0000 |
---|---|---|
committer | George Kiagiadakis <gkiagia@tolabaki.gr> | 2016-06-18 12:18:37 +0300 |
commit | dc39be2757bd7fa789c3db834d8d701b1f54f785 (patch) | |
tree | 3aaac9bc3820bec3e55ee9cebc7d8144f203941f | |
parent | 1f15dc935b65a7296dcf815b4da31a3d3b68f116 (diff) | |
download | telepathy-glib-dc39be2757bd7fa789c3db834d8d701b1f54f785.tar.gz |
build: cd to the $srcdir in autogen.sh for running gtkdocize
gtkdocize needs to run in the $srcdir (or have a --srcdir argument
passed to it) so that it can find configure.[ac|in]. Ensure that’s the
case in autogen.sh.
This fixes autogen.sh in a srcdir ≠ builddir environment.
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 3184e69a7..21860dd94 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,13 @@ #!/bin/sh set -e +test -n "$srcdir" || srcdir=$(dirname "$0") +test -n "$srcdir" || srcdir=. + +olddir=$(pwd) + +cd $srcdir + gtkdocize if test -n "$AUTOMAKE"; then @@ -34,6 +41,8 @@ else run_configure=false fi +cd "$olddir" + if test $run_configure = true; then - ./configure "$@" + $srcdir/configure "$@" fi |