---
title: "构建系统之Autotools"
author: "EricGe"
date: "2011-10-08T17:56:45Z"
tags: []
categories: ["编程语言"]
slug: "autotools"
draft: false
lastmod: "2011-10-08T18:03:12Z"
id: 1187087
url: "https://ericge.iteye.com/blog/1187087"
---

来自wiki的解释：所谓[GNU](http://zh.wikipedia.org/wiki/GNU "GNU") 构建体系（GNU Build System）![](http://dl.iteye.com/upload/attachment/565516/c23fa7b7-4419-3439-9401-8dafe9aee3ed.png)![](/picture/100235)![](/picture/100235)

主要是指通过[autoconf](http://zh.wikipedia.org/wiki/Autoconf "Autoconf") ，[automake](http://zh.wikipedia.org/wiki/Automake "Automake") 和[libtool](http://zh.wikipedia.org/wiki/Libtool "Libtool") 这三个工具构建出来的软件结构体系，又名Autotools。

通常和[GNU make](http://zh.wikipedia.org/wiki/GNU_make "GNU make") ，[gettext](http://zh.wikipedia.org/wiki/Gettext "Gettext") 以及[GCC](http://zh.wikipedia.org/wiki/GCC "GCC") 一起配套使用。这个软件结构体系也是所有GNU项目的打包方式。

此打包方式的优点在于项目的可移植性，当程序本身不包含与硬件架构有关的代码时，可以直接

将源码包复制到另一台计算机上，通过简单的./configure，make和make install三步骤完成程序的配置，编译和安装（第三步需要系统管理员权限）。

 

参考DIY：http://hi.baidu.com/aflyhorse1990/blog/item/516201520880bd030df3e322.html

 

一本书http://www.freesoftwaremagazine.com/books/autotools\_a\_guide\_to\_autoconf\_automake\_libtool

 

官方教程：http://autotoolset.sourceforge.net/tutorial.html