Sunday, October 12, 2008

Automated build with Autotools

Automake, Autoconf, Libtool - simply Autotools...

Quick way to start autotools

Programmer's command sequence:

autoscan
autoreconf --install --force
./configure
make clean


install
builds the configuration scripts by calling the sequence of particular autotools commands. The advantage is that we do not have to remember the whole sequence
and we do it in one simple command.

force forces the autoreconf to rebuild the configuration even if it already exists.

make clean cleans up build environment

The autoreconf command supplies following sequence
libtoolize --force
aclocal
automake --foreign --add-missing
autoconf


User's command sequence:

./configure --prefix=/usr/local
make
make check # not neccessary, just a test
DESTDIR=/tmp/package make install

Resources:
AutoBook book for Auto* Libtool, Gettext, ... (latest)
AutoTools for beginners - quick intro
Wikipedia: GNU build system - short description

No comments: