3 # Allow invocation from a separate build directory; in that case, we change
4 # to the source directory to run the auto*, then change back before running configure
6 test -z "$srcdir" && srcdir=.
11 LIBTOOLIZE_FLAGS="--force --automake"
12 ACLOCAL_FLAGS="-I autotools"
13 AUTOMAKE_FLAGS="--foreign --add-missing"
17 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
19 echo "You must have autoconf installed to compile $PROJECT."
20 echo "Install the appropriate package for your distribution,"
21 echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
25 (automake --version) < /dev/null > /dev/null 2>&1 || {
27 echo "You must have automake installed to compile $PROJECT."
28 echo "Install the appropriate package for your distribution,"
29 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
34 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
35 LIBTOOLIZE=glibtoolize
36 ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
38 echo "You must have libtool installed to compile $PROJECT."
39 echo "Install the appropriate package for your distribution,"
40 echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
45 if test "$DIE" -eq 1; then
49 rm -rf $top_srcdir/autom4te.cache
53 aclocal $ACLOCAL_FLAGS || exit $?
54 $LIBTOOLIZE $LIBTOOLIZE_FLAGS || exit $?
56 automake $AUTOMAKE_FLAGS || exit $?
61 $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?