[nautilus-ideviceinfo] build: Fix builddir != srcdir
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-ideviceinfo] build: Fix builddir != srcdir
- Date: Mon, 12 Feb 2018 23:34:53 +0000 (UTC)
commit 6a9dd28f52798b7a8d5f2031bb8ee261023ba42e
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 13 00:23:16 2018 +0100
build: Fix builddir != srcdir
autogen.sh | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index cb3887a..c230819 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,10 +1,19 @@
#!/bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+olddir=`pwd`
+
+cd "$srcdir"
+
aclocal -I m4
libtoolize
autoheader
automake --add-missing
autoconf
+cd "$olddir"
+
if [ -z "$NOCONFIGURE" ]; then
- ./configure "$@"
+ "$srcdir"/configure "$@"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]