⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 mutt-1.5.12 源代码。linux 下邮件接受的工具。
💻 IN
📖 第 1 页 / 共 3 页
字号:
        mutt_cv_regex_broken=no, mutt_cv_regex_broken=yes, mutt_cv_regex_broken=yes))        if test $mutt_cv_regex_broken = yes ; then                echo "Using the included GNU regex instead." >&AC_FD_MSG                mutt_cv_regex=yes        fifiif test $mutt_cv_regex = yes; then        AC_DEFINE(USE_GNU_REGEX,1,[ Define if you want to use the included regex.c. ])        AC_LIBOBJ(regex)fiAC_ARG_WITH(homespool,  AC_HELP_STRING([--with-homespool[=FILE]], [File in user's directory where new mail is spooled]), with_homespool=${withval})if test x$with_homespool != x; then        if test $with_homespool = yes; then                with_homespool=mailbox        fi        AC_DEFINE_UNQUOTED(MAILPATH,"$with_homespool",[ Where new mail is spooled. ])        AC_DEFINE(HOMESPOOL,1,          [Is mail spooled to the user's home directory?  If defined,           MAILPATH should be set to the filename of the spool mailbox           relative the the home directory.           use: configure --with-homespool=FILE])        AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])        mutt_cv_setgid=noelse        AC_ARG_WITH(mailpath, AC_HELP_STRING([--with-mailpath=DIR], [Directory where spool mailboxes are located]),                [mutt_cv_mailpath=$withval],                [ AC_CACHE_CHECK(where new mail is stored, mutt_cv_mailpath,                        [mutt_cv_mailpath=no                        if test -d /var/mail; then                                mutt_cv_mailpath=/var/mail                        elif test -d /var/spool/mail; then                                mutt_cv_mailpath=/var/spool/mail                        elif test -d /usr/spool/mail; then                                mutt_cv_mailpath=/usr/spool/mail                        elif test -d /usr/mail; then                                mutt_cv_mailpath=/usr/mail                        fi])                ])        if test "$mutt_cv_mailpath" = no; then                AC_MSG_ERROR("Could not determine where new mail is stored.")        fi        AC_DEFINE_UNQUOTED(MAILPATH,"$mutt_cv_mailpath",[ Where new mail is spooled. ])        AC_CACHE_CHECK(if $mutt_cv_mailpath is world writable, mutt_cv_worldwrite, [AC_TRY_RUN([#include <sys/types.h>#include <sys/stat.h>int main (int argc, char **argv){        struct stat s;        stat ("$mutt_cv_mailpath", &s);        if (s.st_mode & S_IWOTH) exit (0);        exit (1);}], mutt_cv_worldwrite=yes, mutt_cv_worldwrite=no, mutt_cv_worldwrite=no)])        mutt_cv_setgid=no        if test $mutt_cv_worldwrite = yes; then                AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])        else                AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_TRY_RUN([#include <sys/types.h>#include <sys/stat.h>int main (int argc, char **argv){        struct stat s;        stat ("$mutt_cv_mailpath", &s);        if (s.st_mode & S_IWGRP) exit (0);        exit (1);}], mutt_cv_groupwrite=yes, mutt_cv_groupwrite=no, mutt_cv_groupwrite=no)])                if test $mutt_cv_groupwrite = yes; then                        AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])                        AC_DEFINE(USE_SETGID,1,[ Define if mutt should run setgid "mail". ])                        mutt_cv_setgid=yes                fi        fifiAC_ARG_ENABLE(external_dotlock, AC_HELP_STRING([--enable-external-dotlock], [Force use of an external dotlock program]),        [mutt_cv_external_dotlock="$enableval"])if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \        || test "x$mutt_cv_external_dotlock" = "xyes"then        AC_DEFINE(DL_STANDALONE,1,[ Define if you want to use an external dotlocking program. ])        DOTLOCK_TARGET="mutt_dotlock"else        MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"fiAC_SUBST(DOTLOCK_TARGET)AC_MSG_CHECKING(where to put the documentation)AC_ARG_WITH(docdir, AC_HELP_STRING([--with-docdir=PATH], [Specify where to put the documentation]),        [mutt_cv_docdir=$withval],        [mutt_cv_docdir='${prefix}/doc/mutt'])AC_MSG_RESULT($mutt_cv_docdir)docdir=$mutt_cv_docdirAC_SUBST(docdir)if test x$mutt_cv_setgid = xyes; then        DOTLOCK_GROUP='mail'        DOTLOCK_PERMISSION=2755else        DOTLOCK_GROUP=''        DOTLOCK_PERMISSION=755fiAC_SUBST(DOTLOCK_GROUP)AC_SUBST(DOTLOCK_PERMISSION)AC_ARG_WITH(domain, AC_HELP_STRING([--with-domain=DOMAIN], [Specify your DNS domain name]),        [if test $withval != yes; then            if test $withval != no; then                AC_DEFINE_UNQUOTED(DOMAIN,"$withval",[ Define your domain name. ])            fi        fi])need_socket="no"dnl -- socket dependencies --AC_ARG_ENABLE(pop,  AC_HELP_STRING([--enable-pop], [Enable POP3 support]),[       if test x$enableval = xyes ; then                AC_DEFINE(USE_POP,1,[ Define if you want support for the POP3 protocol. ])                MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"                need_socket="yes"                need_md5="yes"        fi])AC_ARG_ENABLE(imap, AC_HELP_STRING([--enable-imap], [Enable IMAP support]),[       if test x$enableval = xyes ; then                AC_DEFINE(USE_IMAP,1,[ Define if you want support for the IMAP protocol. ])                LIBIMAP="-Limap -limap"                LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"                need_imap="yes"                need_socket="yes"                need_md5="yes"        fi])AM_CONDITIONAL(BUILD_IMAP, test x$need_imap = xyes)if test x"$need_imap" = xyes -o x"$need_pop" = xyes ; then  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS bcache.o"fidnl -- end socket dependencies --if test "$need_socket" = "yes"then        AC_CHECK_HEADERS([sys/select.h])        AC_MSG_CHECKING([for socklen_t])        AC_EGREP_HEADER(socklen_t, sys/socket.h, AC_MSG_RESULT([yes]),                AC_MSG_RESULT([no])                AC_DEFINE(socklen_t,int,                        [ Define to 'int' if <sys/socket.h> doesn't have it. ]))        AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))        AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))        AC_CHECK_FUNCS(getaddrinfo)        AC_DEFINE(USE_SOCKET,1,                [ Include code for socket support. Set automatically if you enable POP3 or IMAP ])        MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"fidnl -- imap dependencies --AC_ARG_WITH(gss, AC_HELP_STRING([--with-gss[=PFX]], [Compile in GSSAPI authentication for IMAP]),     gss_prefix="$withval", gss_prefix="no")if test "$gss_prefix" != "no"then  if test "$need_imap" = "yes"  then    MUTT_AM_PATH_GSSAPI(gss_prefix)    AC_MSG_CHECKING(GSSAPI implementation)    AC_MSG_RESULT($GSSAPI_IMPL)    if test "$GSSAPI_IMPL" = "none"    then      AC_CACHE_SAVE      AC_MSG_RESULT([GSSAPI libraries not found])    fi    if test "$GSSAPI_IMPL" = "Heimdal"    then      AC_DEFINE(HAVE_HEIMDAL,1,[ Define if your GSSAPI implementation is Heimdal ])    fi    CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"    MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"    AC_DEFINE(USE_GSS,1,[ Define if you have GSSAPI libraries available ])    need_gss="yes"  else    AC_MSG_WARN([GSS was requested but IMAP is not enabled])  fifiAM_CONDITIONAL(USE_GSS, test x$need_gss = xyes)dnl -- end imap dependencies --AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl[=PFX]], [Compile in SSL support for POP/IMAP]),[       if test "$with_ssl" != "no"        then          if test "$need_socket" != "yes"; then           AC_MSG_ERROR([SSL support is only useful with POP or IMAP support])          fi          if test "$with_ssl" != "yes"          then           LDFLAGS="$LDFLAGS -L$withval/lib"           CPPFLAGS="$CPPFLAGS -I$withval/include"          fi          saved_LIBS="$LIBS"          AC_CHECK_LIB(crypto, X509_new,, AC_MSG_ERROR([Unable to find SSL library]))          AC_CHECK_LIB(ssl, SSL_new,, AC_MSG_ERROR([Unable to find SSL library]), -lcrypto)          AC_CHECK_FUNCS(RAND_status RAND_egd)          AC_DEFINE(USE_SSL,1,[ Define if you want support for SSL. ])          AC_DEFINE(USE_SSL_OPENSSL,1,[ Define if you want support for SSL via OpenSSL. ])          LIBS="$saved_LIBS"          MUTTLIBS="$MUTTLIBS -lssl -lcrypto"          MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"          need_ssl=yes        fi])AC_ARG_WITH([gnutls], AC_HELP_STRING([--with-gnutls[=PFX]], [Enable SSL support using gnutls]),    [gnutls_prefix="$withval"], [gnutls_prefix="no"])if test "$gnutls_prefix" != "no" -a x"$need_ssl" != xyesthen  if test "$need_socket" != "yes"  then    AC_MSG_ERROR([SSL support is only useful with POP or IMAP support])  fi  MUTT_AM_PATH_GNUTLS([$gnutls_prefix],    [dnl GNUTLS found    CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"    MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"    AC_DEFINE(USE_SSL,1,[ Define if you want support for SSL. ])    AC_DEFINE(USE_SSL_GNUTLS,1,[ Define if you want support for SSL via GNUTLS. ])    MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"    need_ssl=yes],    [dnl GNUTLS not found      AC_MSG_ERROR([could not find libgnutls])    ])fiAM_CONDITIONAL(USE_SSL, test x$need_ssl = xyes)AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl[=PFX]], [Use Cyrus SASL 2 network security library]),        [	        if test "$with_sasl" != "no"        then          if test "$need_socket" != "yes"          then            AC_MSG_ERROR([SASL support is only useful with POP or IMAP support])          fi          if test "$with_sasl" != "yes"          then            CPPFLAGS="$CPPFLAGS -I$with_sasl/include"            LDFLAGS="$LDFLAGS -L$with_sasl/lib"          fi          saved_LIBS="$LIBS"          AC_CHECK_LIB(sasl2, sasl_client_init,,            AC_MSG_ERROR([could not find libsasl2]),)          MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"          MUTTLIBS="$MUTTLIBS -lsasl2"          LIBS="$saved_LIBS"          AC_DEFINE(USE_SASL,1,                  [ Define if want to use the Cyrus SASL library for POP/IMAP authentication. ])          need_sasl=yes        fi        ])AM_CONDITIONAL(USE_SASL, test x$need_sasl = xyes)AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=[PFX]], [Use GNU libidn for domain names]),		 [		  if test "$with_idn" != "no" ; then		  	if test "$with_idn" != "yes" ; then			   CPPFLAGS="$CPPFLAGS -I$with_idn/include"			   LDFLAGS="$LDFLAGS -L$with_idn/lib"			fi		  fi		 ])if test "x$with_idn" != "xno"; then   AC_CHECK_LIB(idn, stringprep_check_version)   AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z)   AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z)   AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale)fidnl -- end socket --AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging support]),        [ if test x$enableval = xyes ; then                AC_DEFINE(DEBUG,1,[ Define to enable debugging info. ])          fi         ])AC_ARG_ENABLE(flock, AC_HELP_STRING([--enable-flock], [Use flock() to lock files]),        [if test $enableval = yes; then                AC_DEFINE(USE_FLOCK,1, [ Define to use flock() to lock mailboxes. ])        fi])mutt_cv_fcntl=yesAC_ARG_ENABLE(fcntl, AC_HELP_STRING([--disable-fcntl], [Do NOT use fcntl() to lock files]),        [if test $enableval = no; then mutt_cv_fcntl=no; fi])if test $mutt_cv_fcntl = yes; then        AC_DEFINE(USE_FCNTL,1, [ Define to use fcntl() to lock folders. ])fiAC_MSG_CHECKING(whether struct dirent defines d_ino)ac_cv_dirent_d_ino=noAC_TRY_LINK([#include <dirent.h>],[struct dirent dp; (void)dp.d_ino],[ac_cv_dirent_d_ino=yes])if test x$ac_cv_dirent_d_ino = xyes ; then  AC_DEFINE(HAVE_DIRENT_D_INO,1,            [Define to 1 if your system has the dirent::d_ino member])fiAC_MSG_RESULT($ac_cv_dirent_d_ino)dnl This may look cumbersome -- please keep it that way, so we candnl quickly change the default to "yes" again.mutt_cv_inodesort=noAC_ARG_ENABLE(inodesort,  AC_HELP_STRING([--enable-inodesort], [Read files in maildir folders sorted by inode]),       [if test x$enableval = xyes -a x$ac_cv_dirent_d_ino = xyes ; then mutt_cv_inodesort=yes; fi])if test $mutt_cv_inodesort = yes; then	AC_DEFINE(USE_INODESORT, 1, [ Define to sort files in a	maildir by inode number. ])fimutt_cv_warnings=yesAC_ARG_ENABLE(warnings, AC_HELP_STRING([--disable-warnings], [Turn off compiler warnings (not recommended)]),[if test $enableval = no; then        mutt_cv_warnings=nofi])if test x$GCC = xyes -a $mutt_cv_warnings = yes; then        CFLAGS="-Wall -pedantic $CFLAGS"fiAC_ARG_ENABLE(nfs-fix, AC_HELP_STRING([--enable-nfs-fix], [Work around an NFS with broken attributes caching]),        [if test x$enableval = xyes; then                AC_DEFINE(NFS_ATTRIBUTE_HACK,1,                  [Define if you have problems with mutt not detecting                   new/old mailboxes over NFS.  Some NFS implementations                   incorrectly cache the attributes of small files.])        fi])AC_ARG_ENABLE(buffy-size, AC_HELP_STRING([--enable-buffy-size], [Use file size attribute instead of access time]),        [if test x$enableval = xyes; then                AC_DEFINE(BUFFY_SIZE,1,[ Define to enable the "buffy_size" feature. ])        fi])AC_ARG_ENABLE(mailtool, AC_HELP_STRING([--enable-mailtool], [Enable Sun mailtool attachments support]),

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -