Professional Researcher's Encyclopaedia

Knowledge is only a click away

Autoconf - enyclopaedia article

Autoconf

Summary: Autoconf is a tool for producing shell scripts that automatically configure software source code packages to adapt to many kinds of UNIX-like systems. The configuration scripts produced by Autoconf are independent of Autoconf when they are run, so their users do not need to have Autoconf. Together with Automake and Libtool, Autoconf forms the GNU build system. Autoconf makes use of GNU m4 to transform an user-written 'configure.ac' (formerly, and on older projects called 'configure.in') file ...

read the full Autoconf article

Buy Autoconf related products:


Buy from Amazon.co.uk Books - Music - Classical - VHS - DVD - Video-games - Software - Electronics - Toys
Buy from Amazon.com Books - Music - Classical - VHS - DVD - Videogames - Software - Electronics - Photo - Toys
Buy from Amazon.ca Books - Music - Classical - VHS - DVD - Video-games - Software - Livres en Français
Buy from Amazon.de - - - - - - -
Buy from Amazon.fr - - - - -
Advanced Product Search (new):    uk    |     us    |     ca    |     de    |     fr

Autoconf

     From Wikipedia, the free encyclopedia.

Autoconf is a tool for producing shell scripts that automatically configure software source code packages to adapt to many kinds of UNIX-like systems. The configuration scripts produced by Autoconf are independent of Autoconf when they are run, so their users do not need to have Autoconf.

Together with Automake and Libtool, Autoconf forms the GNU build system.

Autoconf makes use of GNU m4 to transform an user-written 'configure.ac' (formerly, and on older projects called 'configure.in') file to a portable shell script called 'configure'. The 'configure' script runs non-interactively, and generates customized headers and makefiles derived from pre-written templates. You could say that autoconf compiles the M4 program in 'configure.ac' into a shell script.

Table of contents
1 Approach
2 References
3 External links

Approach

Autoconf is similar to the Metaconfig package used by Perl. The IMake system used by the X Window System is closely related, but has a different philosophy.

The autoconf approach to portability is to test for features, not for versions. For example, the native C compiler on SunOS 4 did not support ISO C. However, it is possible for the user/administrator to have installed an ISO C compliant compiler. A pure version-based approach would not make use of the ISO C compiler, but a feature-testing approach would be able to discover that the specified compiler supported ISO C. The rationale of this approach is that

  • the configure script can get reasonable results on newer/unknown systems
  • it allows administrators to customize their machines and have the configure script take advantage of the customizations
  • there's no need to keep track of minute details of versions, patch numbers, etc., to figure out whether a particular feature is supported or not

References

  • Gary V. Vaughan, Ben Elliston, Thomas Tromey: Gnu Autoconf, Automake, and Libtool, Sams, ISBN 1-57870-190-2

External links

link to this article with the following HTML

 
This article is from Wikipedia. This article was up-to-date as of 8 May 2004 - See live article
All text is available under the terms of the GNU Free Documentation License.

This page is part of Professional Researcher
Web site design by Dean Marshall