diff options
author | Bastien Nocera | 2017-09-15 16:18:50 +0200 |
---|---|---|
committer | Nikias Bassen | 2018-04-27 19:24:36 +0200 |
commit | 26373b334889f5ae2e2737ff447eb25b1700fa2f (patch) | |
tree | 8ab80618478299c6412b7829ba8ec2988041bbb4 | |
parent | 99f4a332bbfa6886e300318381cb9efa972ca0ac (diff) | |
download | libimobiledevice-26373b334889f5ae2e2737ff447eb25b1700fa2f.tar.gz libimobiledevice-26373b334889f5ae2e2737ff447eb25b1700fa2f.tar.bz2 |
build: Fix autogen.sh with srcdir != builddir
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,4 +1,11 @@ #!/bin/sh + +olddir=`pwd` +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +cd "$srcdir" + gprefix=`which glibtoolize 2>&1 >/dev/null` if [ $? -eq 0 ]; then glibtoolize --force @@ -10,6 +17,8 @@ autoheader automake --add-missing autoconf +cd "$olddir" + if [ -z "$NOCONFIGURE" ]; then - ./configure "$@" + $srcdir/configure "$@" fi |