e.g. http://mij.oltrelinux.com/devel/autoconf-automake/ section 5
or http://www.bioinf.uni-freiburg.de/~mmann/HowTo/automake.html#automakLib