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

📄 configure.in

📁 mutt-1.5.12 源代码。linux 下邮件接受的工具。
💻 IN
📖 第 1 页 / 共 3 页
字号:
        [if test x$enableval = xyes; then                AC_DEFINE(SUN_ATTACHMENT,1,[ Define to enable Sun mailtool attachments support. ])        fi])AC_ARG_ENABLE(locales-fix, AC_HELP_STRING([--enable-locales-fix], [The result of isprint() is unreliable]),        [if test x$enableval = xyes; then                AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ])        fi])AC_ARG_WITH(exec-shell, AC_HELP_STRING([--with-exec-shell=SHELL], [Specify alternate shell (ONLY if /bin/sh is broken)]),        [if test $withval != yes; then                AC_DEFINE_UNQUOTED(EXECSHELL, "$withval",                 [program to use for shell commands])         else                AC_DEFINE_UNQUOTED(EXECSHELL, "/bin/sh")        fi],        [AC_DEFINE_UNQUOTED(EXECSHELL, "/bin/sh")])AC_ARG_ENABLE(exact-address, AC_HELP_STRING([--enable-exact-address], [Enable regeneration of email addresses]),        [if test $enableval = yes; then                AC_DEFINE(EXACT_ADDRESS,1,                  [Enable exact regeneration of email addresses as parsed?                   NOTE: this requires significant more memory when defined.])        fi])dnl -- start cache --AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]),[if test x$enableval = xyes; then    AC_DEFINE(USE_HCACHE, 1, [Enable header caching])    MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS hcache.o"    OLDCPPFLAGS="$CPPFLAGS"    OLDLIBS="$LIBS"    need_md5="yes"    ac_prefer_qdbm=yes    AC_ARG_WITH(qdbm, AC_HELP_STRING([--without-qdbm], [Don't use qdbm even if it is available]),        ac_prefer_qdbm=$withval)    if test x$ac_prefer_qdbm != xno; then        CPPFLAGS="$OLDCPPFLAGS"        LIBS="$OLDLIBS -lqdbm";        AC_CACHE_CHECK(for vlopen, ac_cv_vlopen,[            ac_cv_vlopen=no            AC_TRY_LINK([#include <villa.h>],[vlopen(0,0,0);],[ac_cv_vlopen=yes])        ])    fi    ac_prefer_gdbm=yes    AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm], [Don't use gdbm even if it is available]),        ac_prefer_gdbm=$withval)    if test x$ac_prefer_gdbm != xno -a x$ac_cv_vlopen != xyes; then        CPPFLAGS="$OLDCPPFLAGS"        LIBS="$OLDLIBS -lgdbm";        AC_CACHE_CHECK(for gdbm_open, ac_cv_gdbmopen,[            ac_cv_gdbmopen=no            AC_TRY_LINK([#include <gdbm.h>],[gdbm_open(0,0,0,0,0);],[ac_cv_gdbmopen=yes])        ])    fi    ac_bdb_prefix=yes    AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb[=DIR]], [Use BerkeleyDB4 if gdbm is not available]),        ac_bdb_prefix=$withval)    if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes -a x$ac_cv_vlopen != xyes; then        test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"        for d in $ac_bdb_prefix; do            bdbpfx="$bdbpfx $d"            for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do                bdbpfx="$bdbpfx $d/$v"            done        done        BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"        AC_MSG_CHECKING([for BerkeleyDB > 4.0])        for d in $bdbpfx; do            BDB_INCLUDE_DIR=""            BDB_LIB_DIR=""            for v in / $BDB_VERSIONS; do                if test -r "$d/include/$v/db.h"; then                    BDB_INCLUDE_DIR="$d/include/$v"                    if test -d "$d/lib/$v"; then                        BDB_LIB_DIR="$d/lib/$v"                        for l in `echo $BDB_VERSIONS`; do                            CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"                            LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"                            AC_TRY_LINK([                                #include <stdlib.h>                                #include <db.h>                            ],[                                DB *db = NULL;                                db->open(db,NULL,NULL,NULL,0,0,0);                            ],[                                ac_cv_dbcreate=yes                                BDB_LIB="$l"                                break                            ])                        done                        test x$ac_cv_dbcreate = xyes && break                    fi                fi            done            test x$BDB_LIB != x && break        done        if test x$ac_cv_dbcreate = xyes; then            AC_MSG_RESULT(yes)        else            AC_MSG_RESULT(no)        fi    fi    if test x$ac_cv_vlopen = xyes; then        CPPFLAGS="$OLDCPPFLAGS"        LIBS="$OLDLIBS -lqdbm";        AC_DEFINE(HAVE_QDBM, 1, [QDBM Support])    elif test x$ac_cv_gdbmopen = xyes; then        CPPFLAGS="$OLDCPPFLAGS"        LIBS="$OLDLIBS -lgdbm";        AC_DEFINE(HAVE_GDBM, 1, [GDBM Support])    elif test x$ac_cv_dbcreate = xyes; then        CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"        LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"        AC_DEFINE(HAVE_DB4, 1, [Sleepycat DB4 Support])    else        AC_MSG_ERROR([You need QDBM, GDBM or Sleepycat DB4 for hcache])    fifi])dnl -- end cache --if test "$need_md5" = "yes"then        MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"fiAC_SUBST(MUTTLIBS)AC_SUBST(MUTT_LIB_OBJECTS)AC_SUBST(LIBIMAP)AC_SUBST(LIBIMAPDEPS)dnl -- iconv/gettext --AC_ARG_ENABLE(iconv, AC_HELP_STRING([--disable-iconv], [Disable iconv support]),        [if test x$enableval = xno ; then                am_cv_func_iconv=no        fi])MUTT_AM_GNU_GETTEXTif test "$am_cv_func_iconv" != "yes"then  AC_MSG_WARN([Configuring without iconv support. See INSTALL for details])elseAC_CHECK_HEADERS(iconv.h,        [AC_MSG_CHECKING(whether iconv.h defines iconv_t)         AC_EGREP_HEADER([typedef.*iconv_t],iconv.h,                [AC_MSG_RESULT(yes)                 AC_DEFINE(HAVE_ICONV_T_DEF, 1,                        [Define if <iconv.h> defines iconv_t.])],                 AC_MSG_RESULT(no))])dnl (1) Some implementations of iconv won't convert from UTF-8 to UTF-8.dnl (2) In glibc-2.1.2 and earlier there is a bug that messes up ob anddnl     obl when args 2 and 3 are 0 (fixed in glibc-2.1.3).AC_CACHE_CHECK([whether this iconv is good enough], mutt_cv_iconv_good,        mutt_save_LIBS="$LIBS"        LIBS="$LIBS $LIBICONV"        AC_TRY_RUN([#include <iconv.h>int main(){  iconv_t cd;changequote(, )dnl  char buf[4];changequote([, ])dnl  char *ob;  size_t obl;  ob = buf, obl = sizeof(buf);  return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&          (iconv(cd, 0, 0, &ob, &obl) ||           !(ob == buf && obl == sizeof(buf)) ||           iconv_close(cd)));}                ],                mutt_cv_iconv_good=yes,                mutt_cv_iconv_good=no,                mutt_cv_iconv_good=yes)        LIBS="$mutt_save_LIBS")if test "$mutt_cv_iconv_good" = no; then  AC_MSG_ERROR(Try using libiconv instead)fidnl This is to detect implementations such as the one in glibc-2.1,dnl which always convert exactly but return the number of charactersdnl converted instead of the number converted inexactly.AC_CACHE_CHECK([whether iconv is non-transcribing], mutt_cv_iconv_nontrans,        mutt_save_LIBS="$LIBS"        LIBS="$LIBS $LIBICONV"        AC_TRY_RUN([#include <iconv.h>#include <string.h>int main(){  iconv_t cd;  const char *ib;  char *ob;  size_t ibl, obl;  const char *s = "\304\211";changequote(, )dnl  char t[3];changequote([, ])dnl  ib = s, ibl = 2, ob = t, obl = 3;  return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||          iconv(cd, &ib, &ibl, &ob, &obl));}                ],                mutt_cv_iconv_nontrans=no,                mutt_cv_iconv_nontrans=yes,                mutt_cv_iconv_nontrans=no)        LIBS="$mutt_save_LIBS")if test "$mutt_cv_iconv_nontrans" = yes; then  AC_DEFINE(ICONV_NONTRANS, 1)else  AC_DEFINE(ICONV_NONTRANS, 0)fiCPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then  AC_DEFINE(HAVE_BIND_TEXTDOMAIN_CODESET,1,          [ Define if your gettext has bind_textdomain_codeset. ])else  AC_CHECK_FUNCS(bind_textdomain_codeset)fifi # libiconvdnl -- locales --AC_CHECK_HEADERS(wchar.h)AC_CACHE_CHECK([for wchar_t], mutt_cv_wchar_t,        AC_TRY_COMPILE([#include <stddef.h>#include <stdlib.h>#ifdef HAVE_WCHAR_H#include <wchar.h>#endif                ],                [ wchar_t wc; return 0; ],                mutt_cv_wchar_t=yes,                mutt_cv_wchar_t=no))if test "$mutt_cv_wchar_t" = no; then        AC_DEFINE(wchar_t,int,[ Define to 'int' if system headers don't define. ])fiAC_CACHE_CHECK([for wint_t], mutt_cv_wint_t,        AC_TRY_COMPILE([#include <stddef.h>#include <stdlib.h>#ifdef HAVE_WCHAR_H#include <wchar.h>#endif                ],                [ wint_t wc; return 0; ],                mutt_cv_wint_t=yes,                mutt_cv_wint_t=no))if test "$mutt_cv_wint_t" = no; then        AC_DEFINE(wint_t,int,[ Define to 'int' if system headers don't define. ])fiAC_CHECK_HEADERS(wctype.h)AC_CHECK_FUNCS(iswalnum iswalpha  iswcntrl iswdigit)AC_CHECK_FUNCS(iswgraph iswlower iswprint iswpunct iswspace iswupper)AC_CHECK_FUNCS(iswxdigit towupper towlower)AC_CACHE_CHECK([for mbstate_t], mutt_cv_mbstate_t,        AC_TRY_COMPILE([#include <stddef.h>#include <stdlib.h>#ifdef HAVE_WCHAR_H#include <wchar.h>#endif                ],                [ mbstate_t s; return 0; ],                mutt_cv_mbstate_t=yes,                mutt_cv_mbstate_t=no))if test "$mutt_cv_mbstate_t" = no; then        AC_DEFINE(mbstate_t,int,[ Define to 'int' if system headers don't define. ])fiwc_funcs=maybeAC_ARG_WITH(wc-funcs, AC_HELP_STRING([--without-wc-funcs], [Do not use the system's wchar_t functions]),        wc_funcs=$withval)if test "$wc_funcs" != yes -a "$wc_funcs" != no; then        AC_CACHE_CHECK([for wchar_t functions], mutt_cv_wc_funcs,                mutt_cv_wc_funcs=no                AC_TRY_LINK([#define _XOPEN_SOURCE 1#include <stddef.h>#include <stdlib.h>#ifdef HAVE_WCTYPE_H#include <wctype.h>#endif#ifdef HAVE_WCHAR_H#include <wchar.h>#endif],                        [mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);        iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)],                        mutt_cv_wc_funcs=yes))        wc_funcs=$mutt_cv_wc_funcsfiif test $wc_funcs = yes; then        AC_DEFINE(HAVE_WC_FUNCS,1,[ Define if you are using the system's wchar_t functions. ])fiAC_CACHE_CHECK([for nl_langinfo and CODESET], mutt_cv_langinfo_codeset,  [AC_TRY_LINK([#include <langinfo.h>],    [char* cs = nl_langinfo(CODESET);],    mutt_cv_langinfo_codeset=yes,    mutt_cv_langinfo_codeset=no)])if test $mutt_cv_langinfo_codeset = yes; then  AC_DEFINE(HAVE_LANGINFO_CODESET,1,[ Define if you have <langinfo.h> and nl_langinfo(CODESET). ])fiAC_CACHE_CHECK([for nl_langinfo and YESEXPR], mutt_cv_langinfo_yesexpr,  [AC_TRY_LINK([#include <langinfo.h>],    [char* cs = nl_langinfo(YESEXPR);],    mutt_cv_langinfo_yesexpr=yes,    mutt_cv_langinfo_yesexpr=no)])if test $mutt_cv_langinfo_yesexpr = yes; then  AC_DEFINE(HAVE_LANGINFO_YESEXPR,1,[ Define if you have <langinfo.h> and nl_langinfo(YESEXPR). ])fidnl Documentation toolshave_openjade="no"AC_PATH_PROG([OSPCAT], [ospcat], [none])if test "$OSPCAT" != "none"then  AC_MSG_CHECKING([for openjade docbook stylesheets])  dslosfile=`ospcat --public-id="-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN"`  DSLROOT=`echo $dslosfile | sed -n -e "s/.*SOIBASE='\(@<:@^'@:>@*\)\/catalog'.*/\1/p"`  # ospcat may spit out an absolute path without an SOIBASE  if test -z "$DSLROOT"  then    DSLROOT=`echo $dslosfile | sed -e 's|<OSFILE>\(.*\)/print/docbook.dsl|\1|'`  fi  if test -f $DSLROOT/print/docbook.dsl  then    AC_MSG_RESULT([in $DSLROOT])    have_openjade="yes"  else    AC_MSG_RESULT([not found: PDF documentation will not be built.])  fifiAC_SUBST(DSLROOT)AC_OUTPUT(Makefile intl/Makefile m4/Makefile        po/Makefile.in doc/Makefile contrib/Makefile        muttbug.sh        imap/Makefile        Muttrc.head        doc/instdoc.sh)

⌨️ 快捷键说明

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