summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@gnome.org>2006-03-13 01:43:04 +0000
committerJonathon Jongsma <jjongsma@gnome.org>2006-03-13 01:43:04 +0000
commit614c09d7f3384b16c916ff68a8350644ba79a197 (patch)
treef42a332d7620bfda32cbe793ec550640e96525ca /autogen.sh
parent85317619e98b7c7702ef237d5c8c38e758e94a1f (diff)
2006-03-12 Danilo Piazzalunga <danilopiazza@gmail.com>
* autogen.sh: Allow overriding aclocal, automake, autoconf and libtoolize using environment variables. Taken from cairo's autogen.sh.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh30
1 files changed, 17 insertions, 13 deletions
diff --git a/autogen.sh b/autogen.sh
index 68fce65..83c25b2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,7 @@
#! /bin/sh
+set -e
-# $Id: autogen.sh,v 1.2 2006-02-21 05:20:05 jjongsma Exp $
+# $Id: autogen.sh,v 1.3 2006-03-13 01:43:04 jjongsma Exp $
#
# Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>
#
@@ -30,18 +31,21 @@ then
exit 1
fi
-rm -f config.cache acconfig.h
+LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
+AUTOCONF=${AUTOCONF:-autoconf}
+AUTOMAKE=${AUTOMAKE:-automake}
+
+ACLOCAL=`echo $AUTOMAKE | sed s/automake/aclocal/`
-echo "- aclocal." && \
-aclocal && \
-echo "- libtoolize." && \
-libtoolize --force && \
-echo "- autoconf." && \
-autoconf && \
-echo "- automake." && \
-automake --add-missing --gnu && \
-echo && \
-./configure "$@" && exit 0
+rm -f config.cache acconfig.h
-exit 1
+do_cmd() {
+ echo "- $@"
+ $@
+}
+do_cmd $ACLOCAL
+do_cmd $LIBTOOLIZE --force
+do_cmd $AUTOCONF
+do_cmd $AUTOMAKE --add-missing --gnu
+do_cmd ./configure "$@"