summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh23
1 files changed, 15 insertions, 8 deletions
diff --git a/autogen.sh b/autogen.sh
index 66d580a..72ebb9a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,13 +1,20 @@
#!/bin/sh
-which gnome-autogen.sh || {
- echo "You need to install gnome-common from the GNOME git"
- exit 1
-}
+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 install it ***"
+ exit 1
+fi
mkdir -p m4
-# require automak 1.11 for vala support
-REQUIRED_AUTOMAKE_VERSION=1.11 \
-REQUIRED_AUTOCONF_VERSION=2.64 \
-gnome-autogen.sh "$@"
+autoreconf --force --install --verbose || exit $?
+
+cd "$OLDDIR"
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"