configure.in
上传用户:s81996212
上传日期:2007-01-04
资源大小:722k
文件大小:2k
- dnl $Id: configure.in,v 1.14 2000/06/29 11:54:59 mrsam Exp $
- dnl Process this file with autoconf to produce a configure script.
- dnl
- dnl Copyright 1998 - 1999 Double Precision, Inc. See COPYING for
- dnl distribution information.
- AC_INIT(maildirquota.c)
- AM_INIT_AUTOMAKE(maildir, 0.11, 0)
- AM_CONFIG_HEADER(config.h)
- dnl Checks for programs.
- AC_PROG_AWK
- AC_PROG_CC
- AC_PROG_INSTALL
- AC_PROG_LN_S
- AC_PROG_RANLIB
- AC_ISC_POSIX
- AC_AIX
- AC_MINIX
- AC_PATH_PROGS(PERL, perl5 perl, perl)
- if test "$GCC" = "yes"
- then
- CFLAGS="$CFLAGS -Wall"
- fi
- CFLAGS="$CFLAGS -I${srcdir}/.. -I.."
- dnl Checks for libraries.
- dnl Checks for header files.
- AC_HEADER_DIRENT
- AC_HEADER_STDC
- AC_CHECK_HEADERS(sys/stat.h fcntl.h unistd.h)
- dnl Checks for typedefs, structures, and compiler characteristics.
- AC_C_CONST
- AC_TYPE_OFF_T
- AC_TYPE_SIZE_T
- AC_STRUCT_TM
- dnl Checks for library functions.
- AC_CHECK_FUNCS(symlink readlink strcasecmp)
- AC_CACHE_CHECK([for missing gethostname prototype],maildir_cv_SYS_GETHOSTNAME,
- AC_TRY_COMPILE([
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- extern "C" int gethostname(int,int);
- ],[
- ],maildir_cv_SYS_GETHOSTNAME=yes,maildir_cv_SYS_GETHOSTNAME=no
- )
- )
- if test $maildir_cv_SYS_GETHOSTNAME = "no"
- then
- AC_DEFINE_UNQUOTED(HAS_GETHOSTNAME,1)
- fi
- AC_ARG_WITH(db, [ --with-db=gdbm Use the GDBM library.
- --with-db=db Use the libdb.a library.],
- db="$withval", db="")
- if test "$db" = "no"
- then
- db=""
- fi
- if test "$db" != ""
- then
- AC_DEFINE_UNQUOTED(HAVE_DBOBJ,1)
- fi
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- eval "prefix=$prefix"
- eval "exec_prefix=$exec_prefix"
- eval "sysconfdir=$sysconfdir"
- AC_OUTPUT(Makefile maildirmake.html html2man.pl)