Auto tools
Posted Dec 23, 2005 23:03 UTC (Fri) by
Ross (subscriber, #4065)
In reply to:
More information on the X11R7.0/X11R6.9 release by Zarathustra
Parent article:
More information on the X11R7.0/X11R6.9 release
I'm sorry but you aren't making any sense. I suspect you don't like auto tools due to a ban encounter with some program using them which wasn't written very well, rather than actual experience with it as a developer. What you describe is not how the auto tools work. They do tests dynamically to determine which features work/don't work, which libraries and headers exist, etc. at compile time. This means that you get rid of horrible, horrible code like:
#if defined(Linux) || defined(SYSV)
#include <something.h>
#endif
#ifdef BSD
#include <somethingelse.h>
#endif
etc.
and replace it with:
#ifdef HAVE_SOMETHING_H
#include <something.h>
#endif
#ifdef HAVE_SOMETHINGELSE_H
#include <somethingelse.h>
#endif
Which pretty much makes it work automatically even if you have never heard of the operating system which the program is being compiled for.
Maybe what you are talking about is the configure documentation that says not to use autodetection... ignore that. The config.guess stuff figures it out usually, and when not, picking a close match is easier than editing a .h file, like programs used to require before the auto tools (or even worse, an interactive script, like with Perl).
(
Log in to post comments)