GNU/Linux 编程指南之三: autoconf-----configure software to a target platform

 GNU autoconf, a tool that enables you to configure your software to adapt to the wide assortment of system configurations in which it may be built, including many non-Linux systems.

 

   The ultimate goal of autoconf is to generate a makefile.

 

    autoconf can generates shell scripts that automatically configure source code packages to adapt to many different brands of UNIX and UNIX-like system. These scripts, usually named  configure, test for the presence or absence of certain features a program needs or can use, and build makefiles based on the results of these tests.

 

 

Building configure.in

*********************************************

AC_INIT(unique_file_in_source_dir)

any test

AC_OUTPUT([file...[,extra_cmds[,init_cmds]]])

*********************************************

unique_file_in_source_dir is a file present in the source code directory.

AC_OUTPUT creates the output files, such as Makefiles and other(optional) output files.

 

 

Sturcturing the File

***********************************************

AC_INIT

               Test for programs

               Test for libraries

               Test for header files

               Test for typedefs

               Test for structures

               Test for compiler behavior

               Test for library functions

               Test for system services

AC_OUTPUT

***********************************************

 

 

总结: 先看到这里,等下边用得着的时候再回来仔细看。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值