[glick2] autogen.sh: Modernize a bit
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glick2] autogen.sh: Modernize a bit
- Date: Sat, 26 May 2012 15:27:49 +0000 (UTC)
commit 5bacd54b1919161c9a6d313f05eeec402cf18091
Author: Colin Walters <walters verbum org>
Date: Sat May 26 11:26:54 2012 -0400
autogen.sh: Modernize a bit
* Honor NOCONFIGURE=1
* Handle srcdir != builddir
http://people.gnome.org/~walters/docs/build-api.txt
autogen.sh | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index e48ee08..6035bc0 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,20 @@
#!/bin/sh
+
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd $srcdir
+
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+ echo "*** No autoreconf found, please intall it ***"
+ exit 1
+fi
+
mkdir -p m4
-autoreconf -fiv -Wall || exit
-./configure --enable-maintainer-mode "$@"
+
+autoreconf --force --install --verbose
+
+cd $olddir
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]