Thursday, July 12, 2007

The awesome 'team' of GNU autotools

When was the last time you ran "configure && make && make install"!!! Did you know it's best to run it from a directory other than the source directory? Yes. That way you get to keep the source tree intact and delete the build directory where you ran the configure and make without any trouble and start over.

Also, alternatively you could have a source anywhere in your network, and run the "configure && make && make install" from many machines of different flavors, like say, 'cygwin, linux, solaris' etc all from a common source tree on your friends gmail account (if you have a gmailFs drive that is), even if the source tree is read only.

Well, while it is easy to use, it's not that easy for a beginner to provide all these in a perfect fashion. You can spend a day or two to figure out which of the millions of resources in the 'wild wild' web, is relevant for you. I found the presentation pasted below to be great with its simplicity, well updated content and just enough to get you started.

http://www-src.lip6.fr/homepages/Alexandre.Duret-Lutz/dl/autotools.pdf


I did not know about 'autoreconf' till I went through this one. You can get additional information about a particular tool, specificity of usage etc, via any of the various ways like 'info', man, or the "plain old" internet.

Once you are through with the above document, which is excellent, just in case if I didn't mentioned it before :), you might want a refresher and more with http://inti.sourceforge.net/tutorial/libinti/autotoolsproject.html.

Have fun auto-tooling.... and tune in for more updates...

No comments: