#!/bin/bash
# Use this script to re-create configure. Requires the following auto-tools,
# autoconf        >= 2.59
# automake        >= 1.10
# libtool         >= 1.4
glibtoolize -f 2>/dev/null || libtoolize -f
if aclocal -I config && autoheader && automake --foreign --add-missing --copy && autoconf 
then
        if cd libmonit && ./bootstrap
        then
                echo "Success bootstrapping Monit" 
                exit 0;
        fi
fi
echo "Failed bootstrapping Monit"
exit 1;
