[gssdp] Allow non-sourcedir build
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] Allow non-sourcedir build
- Date: Fri, 30 Nov 2012 13:29:26 +0000 (UTC)
commit 1622cb1ce28768a8029cbb635d0925351e530ee3
Author: Theppitak Karoonboonyanan <thep linux thai net>
Date: Wed Aug 22 11:52:21 2012 +0700
Allow non-sourcedir build
https://bugzilla.gnome.org/show_bug.cgi?id=682576
autogen.sh | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index b9f6b87..2227774 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -21,6 +21,16 @@
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd "$srcdir"
+
gtkdocize || exit 1
ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit 1
-./configure --enable-maintainer-mode --enable-debug "$@"
+
+cd "$olddir"
+if test -z "$NOCONFIGURE"; then
+ "$srcdir/configure" --enable-maintainer-mode --enable-debug "$@"
+fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]