源码安装:配置(configure)、编译(make)、安装(make install),所有操作中间错误可以忽略,最后段末尾统一报错。
1.配置
configure:生成Makefile的shell脚本
文件结构如下:
<文件夹>
|-configure.in
|-Makefile.am
|-acconfig.h
|-<源码文件>
|-tt.c
|-qq.c
|-qq.h
|-Makefile.am
其中configure.in作为./configure的配置输入;makefile.am通过automake生成makefile.in再由./configure生成makefile;acconfig.h由autoheader生成config.h.in再由./configure生成config.h
configure.h使用autoconf和automake命令的shell脚本,可以通过autoscan自动生成或手写
acconfig.h包含了configure.in中未定义的宏
autoscan–>autoheader–>aclocal–>automake|autoconf