libtool and glibtool

This is the content of a typical (for Linux and Unix systems) script which utilize auto tools such as aclocal, libtool, and automake to generate necessary files for building a project.
#! /bin/sh
# a quick hack script to generate necessary files from
# auto* tools.
# WARNING: if you run this you will change the versions
# of the tools which are used and, maybe, required!
        echo "running libtoolize"
        glibtoolize --force --copy --automake
}  {
        echo "running aclocal"
} {
        echo "running autoheader [ignore the warnings]"
}  {
        echo "running automake"
        automake --force-missing --foreign -a -c
}  {
        echo "running autoconf"
        echo "autogen complete"  ||
        echo "ERROR: failed, autogen is incomplete"

For MacOS, just replace libtool with bligtool, and libtoolize with glibtoolize.

        echo "running libtoolize"
        glibtoolize --force --copy --automake