summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 0e22776cedf00136d03f303b1057e4f54594ce8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# This is hacky, because there are so many damn versions
# of autoconf/automake.  It works with Debian woody, at least.
# 

echo "aclocal..."
AUTOHEADER=${AUTOHEADER:-aclocal}
$ACLOCAL || aclocal-1.7 || aclocal-1.5 || aclocal || exit 1

echo "autoheader..."
AUTOHEADER=${AUTOHEADER:-autoheader}
$AUTOHEADER || exit 1

echo "automake..."
AUTOMAKE=${AUTOMAKE:-automake-1.7}
$AUTOMAKE --gnu --add-missing || automake --gnu --add-missing || exit 1

echo "autoconf..."
AUTOCONF=${AUTOCONF:-autoconf}
$AUTOCONF || exit 1