vmime/bootstrap

61 lines
2.1 KiB
Plaintext
Raw Normal View History

#! /usr/bin/env bash
2004-12-30 09:32:32 +00:00
#
# Bootstrap file for 'autotools' build
#
2008-10-19 14:37:21 +00:00
export WANT_AUTOCONF="latest"
export WANT_AUTOMAKE="1.9"
2004-12-30 09:32:32 +00:00
export LANG=C
rm -f aclocal.m4 configure config.guess config.log config.sub config.cache config.h.in config.h compile ltmain.sh libtool ltconfig missing mkinstalldirs depcomp install-sh INSTALL
rm -Rf autom4te.cache
(mkdir autotools >& /dev/null)
(cd autotools && rm -f config.guess config.sub missing mkinstalldirs compile ltmain.sh depcomp install-sh)
# Check for "glibtoolize" instead of "libtoolize" on OSX
LIBTOOLIZE=libtoolize
if which glibtoolize > /dev/null 2>&1; then
LIBTOOLIZE=glibtoolize
fi
2004-12-30 09:32:32 +00:00
DIE=0
echo ""
if test $DIE = 0 ; then
2008-10-19 14:16:52 +00:00
echo -n "* Running aclocal... " ; (aclocal -I m4 >& bootstrap.tmpout) \
2004-12-30 09:32:32 +00:00
&& (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \
|| (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1
fi
if test $DIE = 0 ; then
echo -n "* Running autoconf... " ; (autoconf >& bootstrap.tmpout) \
&& (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \
|| (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1
fi
if test $DIE = 0 ; then
echo -n "* Running autoheader... " ; (autoheader >& bootstrap.tmpout) \
&& (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \
|| (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1
fi
if test $DIE = 0 ; then
echo -n "* Running libtoolize... " ; ($LIBTOOLIZE --copy --force --automake >& bootstrap.tmpout) \
2004-12-30 09:32:32 +00:00
&& (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \
|| (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1
fi
2008-10-19 14:37:21 +00:00
# Bug with automake 1.10?
touch autotools/config.rpath
2004-12-30 09:32:32 +00:00
if test $DIE = 0 ; then
2008-10-19 14:16:52 +00:00
echo -n "* Running automake... " ; (automake --add-missing --copy >& bootstrap.tmpout) \
2004-12-30 09:32:32 +00:00
&& (echo "[OK]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout) \
|| (echo "[NO]" ; cat bootstrap.tmpout ; rm -f bootstrap.tmpout ; not_a_command >& /dev/null) || DIE=1
fi
echo ""