GNU build system
lastmod 2020-10-08created 2014-09-2517 edits
The GNU build system, or simply Autotools, is a suite of programming tools that helps port source code packages to many Unix-like operating systems.
Making software usable on multiple platforms can be difficult. C compilers differ from system to system. Certain library functions do not exist on some systems, and header files may have different names. One way to manage this is to write conditional code using constructs such as #ifdef. However, because of the variety of build environments, this approach is becoming unmanageable. The GNU build system makes these problems more manageable.
The GNU build system is part of the GNU toolchain and is widely used in many free software and open-source packages. The tools that make up the GNU build system are licensed as free software under the GNU General Public License, with a special license exception permitting use of the GNU build system with proprietary software.
Tools
- Autoconf: generates the configure script.
- Autoheader: generates config.h.in using configure.ac and aclocal.m4.
- Automake: generates makefiles.
- Libtool: a library-providing script that makes building new libraries easy for users.
- Autoscan: uses a Perl Script to examine the source code in a directory and generate configuer.ac.
- Aclocal: collects information about the locations and definitions of Autoconf macros and generates aclocal.m4.
- Gnulib
In the MacOSX
On MacOSX, it can be installed using brew or port.
Documentation
- Linux Hakdang - Linux lectures / series (go LINUX) - No. 333 - GNUtic -- Autoconf/Automake
-
Go-linux-automake.txt.zip
See also
Favorite site
- Wikipedia (en) About the GNU build system
- Learning the GNU development tools 1
- HowTo: Using GNU Autotools
- AUTOTOOLS Howto
- KLDP AUTOTOOLS Howto
- AUTOTOOLS Howto: an introduction to using autoconf and automake
- [Recommended] Simple autotools usage example 2
- Creating an Autotools Project with Eclipse CDT on Ubuntu (Part 1)
- GNU Build System (autoconf, automake, libtool, ...), diff: installation and usage 3
- Can't locate Automake/Config.pm when trying to run aclocal command in OS X 10.7.4 x64
- [Recommended] Easily generating a Makefile with autotool (autoscan, autoconf, automake, etc) 4
- KLDP: Autotool (autoconf, automake) presentation slides
- About Automake
- GNU Automake version 1.4, 31 May 1999 5
- Automake: rules for writing Makefile.am files
- Autoconf Macro summary (Canonicalizing)
- How to use Automake and Autoconf
- How to use Libtool