1.编写test.c test.h
2 autoscan
3 修改configure.scan 为 configure.in
在AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS]) 后面加入 AM_INIT_AUTOMAKE(test,1.0)
在AC_OUTPUT 前加上 AC_CONFIG_FILES([Makefile])
4 新建 Makefile.am 内容如下
AUTOMAKE_OPTIONS = foreign
bin_PROGRAMS = test
test_SOURCES = test.c test.h
5.新建NEWS README ChangeLog AUTHORS
6. aclocal
7 autoconf
8 autoheader
9 automake -a
10./configure
11:. make