autoconf, automake, libtool, etc are complex tools but this is a nice tutorial for getting started.