1、configure.in内容开始 1.# -*- Autoconf -*- 2.# Process this file with autoconf to produce a configure script. 3.AC_INIT(helloworld.c) 4.AM_INIT_AUTOMAKE(helloworld, 1.0) 5.# Checks for programs. 6.AC_PROG_CC 7.# Checks for libraries. 8.# Checks for header
2、files. 9.# Checks for typedefs, structures, and compiler characteristics. 10.# Checks for library functions. 11.AC_OUTPUT(Makefile) configure.in内容结束然后执行命令aclocal和autoconf,分别会产生aclocal.m4及configure两个文件: 1.$ aclocal 2.$ls 1.aclocal.m4 configure.in hello
7、nstalldirs' 2.configure.in: installing `./missing' 3.Makefile.am: installing `./depcomp' automake会根据Makefile.am文件产生一些文件,包含最重要的Makefile.in。6、执行configure生成Makefile 1.$ ./configure 2.checking for a BSD-compatible install... /usr/bin/install -c 3.checking w
8、hether build environment is sane... yes 4.checking for gawk... gawk 5.checking whether make sets $(MAKE)... yes 6.checking for gcc... gcc 7.checking for C compiler default output... a.out 1.checking whether the C co