1#!/bin/sh
2rm -f ltconfig ltmain.sh config.cache aclocal.m4 config.guess config.sub
3# remove the autoconf cache
4rm -rf autom4te*.cache
5# create a .version file for configure.in
6if test ! -f .version; then
7   # Building from SVN rather than in a release
8   echo 0.0.0-dev > .version
9   # for the documentation:
10   date +"%e %B %Y" | tr -d '\n' > doc/date.xml
11   echo -n 0.0.0-dev > doc/version.xml
12fi
13set -e
14echo -n "libtoolize... "
15LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
16if ${LIBTOOLIZE} --help | grep -- --install > /dev/null; then
17   ${LIBTOOLIZE} --copy --force --install >/dev/null;
18else
19   ${LIBTOOLIZE} --copy --force >/dev/null
20fi
21echo -n "aclocal... "
22${ACLOCAL:-aclocal} -I macros
23echo -n "autoheader... "
24${AUTOHEADER:-autoheader}
25echo -n "autoconf... "
26${AUTOCONF:-autoconf} -Wall
27echo okay.
28# remove the autoconf cache
29rm -rf autom4te*.cache
30