[gtetrinet] autogen.sh: Use autoreconf instead gnome-autogen



commit a1a44f17d5f546951e076c27d9f36602dcbcea5f
Author: Javier Jardón <jjardon gnome org>
Date:   Mon May 2 15:21:41 2011 +0100

    autogen.sh: Use autoreconf instead gnome-autogen

 autogen.sh |   35 +++++++++++++++++++----------------
 1 files changed, 19 insertions(+), 16 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index de00c2b..2fd9755 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,23 +1,26 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
 
-srcdir=$(dirname $0)
-test -z "$srcdir" && srcdir=.
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
 
-PKG_NAME="gtetrinet"
-REQUIRED_AUTOMAKE_VERSION="1.10"
+olddir=`pwd`
+cd $srcdir
 
-(test -f $srcdir/configure.ac \
-  && test -d $srcdir/src) || {
-    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
-    echo " top-level $PKG_NAME directory"
-    exit 1
-}
+AUTORECONF=`which autoreconf`
+if test -z $AUTORECONF; then
+        echo "*** No autoreconf found, please intall it ***"
+        exit 1
+fi
 
-which gnome-autogen.sh || {
-	echo "You need to install gnome-common from GNOME Git (or from"
-        echo "your OS vendor's package manager)."
-	exit 1
-}
+INTLTOOLIZE=`which intltoolize`
+if test -z $INTLTOOLIZE; then
+        echo "*** No intltoolize found, please install the intltool package ***"
+        exit 1
+fi
 
-USE_GNOME2_MACROS=1 . gnome-autogen.sh
+autopoint --force
+AUTOPOINT='intltoolize --automake --copy' 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]