libtool and glibtool
Posted: April 12th, 2010 | Author: admin | Filed under: iphone | 1 Comment »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