libtool and glibtool

This is the content of a typical autogen.sh (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!
        touch Makefile.am configure.ac
{
        echo "running libtoolize"
        glibtoolize --force --copy --automake
}  {
        echo "running aclocal"
        aclocal
} {
        echo "running autoheader [ignore the warnings]"
        autoheader
}  {
        echo "running automake"
        automake --force-missing --foreign -a -c
}  {
        echo "running autoconf"
        autoconf
}
        echo "autogen complete"  ||
        echo "ERROR: autogen.sh failed, autogen is incomplete"

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

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

1 Comment

  1. Acquiring study this I believed it had been extremely useful. I value you taking enough time and energy to place this informative article collectively. I as soon as once more uncover myself paying strategy to a lot time the two reading through and commenting. But so what, it had been nonetheless worthwhile!

Leave a Reply