[dconf] autogen.sh: support calling from out of tree
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] autogen.sh: support calling from out of tree
- Date: Thu, 8 Mar 2012 16:29:22 +0000 (UTC)
commit eec74b9603f02ae63bd6b43c016972eb218a53bf
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Mar 8 11:29:05 2012 -0500
autogen.sh: support calling from out of tree
autogen.sh | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index d1fc5c2..89f7ad7 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,6 +2,12 @@
set -e
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd "$srcdir"
+
if [ "$1" = "clean" ]; then
rm -f aclocal.m4 configure config.* `find . -name Makefile.in` libtool
rm -rf autom4te.cache m4 aux
@@ -25,7 +31,9 @@ CFLAGS=${CFLAGS=-ggdb}
LDFLAGS=${LDFLAGS=-Wl,-O1}
export CFLAGS LDFLAGS
+cd "$olddir"
+
if test -z "$NOCONFIGURE"; then
- ./configure "$@"
+ "$srcdir"/configure "$@"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]