#!/bin/sh

aclocal --force || exit 1
# on Mac libtoolize is called glibtoolize
LIBTOOLIZE=libtoolize
if [ `uname -s` = Darwin ]; then
    LIBTOOLIZE=glibtoolize
fi
$LIBTOOLIZE -f --automake -c || exit 1
autoconf -f || exit 1
automake -a -c -f --foreign || exit 1
