summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <javier.jardon@codethink.co.uk>2013-05-12 14:00:27 -0400
committerRodney Dawes <dobey@wayofthemonkey.com>2013-05-12 14:00:27 -0400
commit80ac84dd13a4bddfc6f5098fcd7aa3c50042a270 (patch)
tree05099c2eef173e547a9192e95660936cc64e8719
parent000f7a8eedd5981df35228721636cc48b3477713 (diff)
parentfbc1410e57b32945d06d3eafb7badc97dc3f26b4 (diff)
downloadintltool-80ac84dd13a4bddfc6f5098fcd7aa3c50042a270.tar.gz
Use autoreconf instead of gnome-autogen scripts.
-rwxr-xr-xautogen.sh26
1 files changed, 12 insertions, 14 deletions
diff --git a/autogen.sh b/autogen.sh
index ce540b5..302e578 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,21 +1,19 @@
#!/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="intltool"
-REQUIRED_AUTOMAKE_VERSION="1.6"
+olddir=`pwd`
+cd $srcdir
-(test -f $srcdir/intltoolize.in) || {
- 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 the GNOME CVS"
- exit 1
-}
+autoreconf --force --install --verbose
-USE_GNOME2_MACROS=1 . gnome-autogen.sh
+cd $olddir
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"