- 1
- 0
- 约1.97万字
- 约 9页
- 2023-04-24 发布于上海
- 举报
Best practices with autotools
1. Best practices with autotools
The core of GNUs compile chain -- the set of tools used to build GNU software packages -- is the so-called autotools, a term that refers to the autoconf and automake programs, as well as libtool, autoheader, pkg-config, and sometimes gettext. These tools let you compile GNU software on a wide variety of platforms and Unix and Unix-like operating systems, providing developers a framework to check for the presence of the libraries, functions, and tools that they want to use. While autotools
are great in the hands of an experienced developer, they can be quite a
handful for the first-time user, and its not so rare that packages are shipped with working-but-broken autotools support. This article will cover some of the most common errors people make when using autotools and ways to achieve better results.
Regardless of anyones opinion about them, we currently have no valid alternative for autotools. Projects such as Scons are not as portable as autotools, and they dont embody enough knowledge to be useful yet. We have tons of automatic checks with autotools, and a lot of libraries come with an m4 library with macros to check for their presence.
The basic structure of an autotooled project is simple. Autoconf takes help of an aclocal.m4 file (created by aclocal using the m4 libraries on its search path and acinclude.m4 file) to parse the configure.ac file (formerly configure.in) and transform it into a configure script. For every directory there should exist an Makefile.am, which automake uses to create Makefile.in templates. The Makefile.in templates are then processed and transformed by the configure script into real Makefiles. You can avoid avoid using automake and just write your own Makefile.in files, but this is quite complex, and you lose a few features of autotools.
In a configure.ac file you can use macros you define yourself, the default ones provided by autoconf and aclocal, or external macros provi
您可能关注的文档
- 2021年pep小升初英语模拟测试题.docx
- 02197概率论与数理统计重点复习资料.docx
- 06001惠港酒店发文格式.docx
- 06005 统一打卡通知.docx
- 06092工作分析八套试卷 答案.docx
- 10000汉字起笔部首表.docx
- 11000地形测量技术设计.docx
- 20000字起笔部首检字表.docx
- 20148小继教培训心得体会.docx
- 20151人教版三年级数学上册教学工作总结.docx
- 中国国家标准 GB/Z 37551.300-2026海洋能 波浪能、潮流能及其他水流能转换装置 第300部分:河流能转换装置发电性能评估.pdf
- GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 中国国家标准 GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 《GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法》.pdf
- 中国国家标准 GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- 《GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义》.pdf
- 中国国家标准 GB/T 4937.37-2025半导体器件 机械和气候试验方法 第37部分:采用加速度计的板级跌落试验方法.pdf
- 《GB/T 4937.10-2025半导体器件 机械和气候试验方法 第10部分:机械冲击 器件和组件》.pdf
- 中国国家标准 GB/T 44937.2-2025集成电路 电磁发射测量 第2部分:辐射发射测量TEM小室和宽带TEM小室法.pdf
原创力文档

文档评论(0)