summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2003-12-05 10:30:39 +0000
committerCarl Worth <cworth@cworth.org>2003-12-05 10:30:39 +0000
commit97666464c0a38d5904869af1c742c87c3be15067 (patch)
tree89a5ce6e8bae354a89fa73817b2e70ef240abb70 /autogen.sh
parent928095693bff00e38b6d369ee0e7931f136f9082 (diff)
Allow names of all autofoo programs to be overridden via environment variables.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh18
1 files changed, 13 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index 61b269ab..fe847d9e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,6 +3,14 @@
set -e
+LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
+LIBTOOLIZE_FLAGS="--copy --force"
+ACLOCAL=${ACLOCAL-aclocal}
+AUTOHEADER=${AUTOHEADER-autoheader}
+AUTOMAKE=${AUTOMAKE-automake}
+AUTOMAKE_FLAGS="--add-missing"
+AUTOCONF=${AUTOCONF-autoconf}
+
ARGV0=$0
if test -z "$ACLOCAL_FLAGS"; then
@@ -32,14 +40,14 @@ do_cmd() {
$@
}
-do_cmd libtoolize --force --copy
+do_cmd $LIBTOOLIZE $LIBTOOLIZE_FLAGS
-do_cmd aclocal ${ACLOCAL_FLAGS}
+do_cmd $ACLOCAL $ACLOCAL_FLAGS
-do_cmd autoheader
+do_cmd $AUTOHEADER
-do_cmd automake --add-missing
+do_cmd $AUTOMAKE $AUTOMAKE_FLAGS
-do_cmd autoconf
+do_cmd $AUTOCONF
do_cmd ./configure --enable-maintainer-mode ${1+"$@"} && echo "Now type \`make' to compile" || exit 1