我自己的configure.in的一个实例:
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_CONFIG_SRCDIR([FileConvertServer/FileConvert.cpp])
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(fileconvert,1.0)
AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
# FIXME: Replace `main' with a function in `-levent':
AC_CHECK_LIB([event], [main])
# FIXME: Replace `main' with a function in `-lmyevent':
AC_CHECK_LIB([myevent], [main])
# FIXME: Replace `main' with a function in `-lpthread':
AC_CHECK_LIB([pthread], [main])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([FileConvertServer/Makefile
Makefile
event/Makefile])
AC_OUTPUT
|