Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

  • Flash technology is becoming more prominent in the storage industry. Offering superior speed and reliability when compared to traditional hard disk drives...
    Download

  • A global data storage provider whose business is booming needed a best-in-class data center to serve as the backbone of its technical operations going...
    Download

More on LinuxToday


developerWorks: Debugging Configure: What To Do When Programs Won't Compile

Dec 08, 2003, 05:30 (2 Talkback[s])
(Other stories by Peter Seebach)

[ Thanks to Idean for this link. ]

"A lot of open source programs come with configure scripts these days. One purpose of such a script is to automate the guesswork of targeting a new system. In times of yore, programs came with a Makefile that had half a dozen different sets of compiler flags or options, all but one of which were commented out, and a note saying "select the appropriate flags for your system." For more comprehensive sets of configuration options, there might also have been a large C header called config.h containing a few dozen flags to set, depending on host system variables.

"The first approach was simply to have #ifdefs in code for the two systems supported; for instance, BSD and System V. As the number of Unix variants increased, it became more practical to have #ifdefs for each feature..."

Complete Story

Related Stories: