1) autoscan
autoscan.log
configure.scan
1-1) cp configure.scan configure.ac
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_CONFIG_SRCDIR([src/test.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_OUTPUT([Makefile])
3) aclocal
aclocal.m4
autom4te.cache
4) autoconf
configure
5) autoheader
config.h.in
6) vi Makefile.am
AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=good
good_SOURCES=testa.c testb.c testc.c test.c
~
7) automake –add-missing
compile
install.sh
missing
depcmp
8) ./configure
config.h
Makefile
9) make