1 dnl Process this file with autoconf to produce a configure script.
3 dnl !!! WHEN ADDING NEW CONFIGURE TESTS, PLEASE ADD CODE TO MAIN.C !!!
4 dnl !!! TO DUMP THEIR RESULTS WHEN MUTT -V IS CALLED !!!
8 AM_CONFIG_HEADER([config.h])
10 mutt_cv_version=`cat $srcdir/VERSION`
11 AM_INIT_AUTOMAKE(mutt, $mutt_cv_version)
12 AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/VERSION'])
16 ALL_LINGUAS="de eu ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg ga"
20 AC_MSG_CHECKING([for prefix])
21 if test x$prefix = xNONE; then
22 mutt_cv_prefix=$ac_default_prefix
24 mutt_cv_prefix=$prefix
26 AC_MSG_RESULT($mutt_cv_prefix)
31 if test "x$U" != "x"; then
32 AC_MSG_ERROR(Compiler not ANSI compliant)
38 AC_CHECK_TOOL(AR, ar, ar)
46 AC_CHECK_SIZEOF(off_t)
48 AC_PATH_PROG(DBX, dbx, no)
49 AC_PATH_PROG(GDB, gdb, no)
50 AC_PATH_PROG(SDB, sdb, no)
52 if test $GDB != no ; then
54 elif test $DBX != no ; then
56 elif test $SDB != no ; then
64 AH_TEMPLATE([sig_atomic_t],
65 [/* Define to `int' if <signal.h> doesn't define.])
66 AH_TEMPLATE([HAVE_START_COLOR],
67 [Define if you have start_color, as a function or macro.])
68 AH_TEMPLATE([HAVE_TYPEAHEAD],
69 [Define if you have typeahead, as a function or macro.])
70 AH_TEMPLATE([HAVE_BKGDSET],
71 [Define if you have bkgdset, as a function or macro.])
72 AH_TEMPLATE([HAVE_CURS_SET],
73 [Define if you have curs_set, as a function or macro.])
74 AH_TEMPLATE([HAVE_META],
75 [Define if you have meta, as a function or macro.])
76 AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
77 [Define if you have use_default_colors, as a function or macro.])
78 AH_TEMPLATE([HAVE_RESIZETERM],
79 [Define if you have resizeterm, as a function or macro.])
80 AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
81 [Some systems declare sig_atomic_t as volatile, some others -- no.
82 This define will have value `sig_atomic_t' or
83 `volatile sig_atomic_t' accordingly.])
84 AH_TEMPLATE([ICONV_NONTRANS],
85 [Define as 1 if iconv() only converts exactly and we should treat
86 all return values other than (size_t)(-1) as equivalent.])
88 AH_BOTTOM([/* fseeko portability defines */
91 # if HAVE_C99_INTTYPES && HAVE_INTTYPES_H
92 # if SIZEOF_OFF_T == 8
93 # define OFF_T_FMT "%" PRId64
95 # define OFF_T_FMT "%" PRId32
98 # if (SIZEOF_OFF_T == 8) && (SIZEOF_LONG == 4)
99 # define OFF_T_FMT "%lld"
101 # define OFF_T_FMT "%ld"
106 # define fseeko fseek
107 # define ftello ftell
108 # define OFF_T_FMT "%ld"
112 AC_TYPE_LONG_LONG_INT
114 ac_aux_path_sendmail=/usr/sbin:/usr/lib
115 AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$ac_aux_path_sendmail)
116 AC_DEFINE_UNQUOTED(SENDMAIL,"$ac_cv_path_SENDMAIL", [Where to find sendmail on your system.])
120 AC_MSG_CHECKING([whether to build with GPGME support])
121 AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--enable-gpgme], [Enable GPGME support]),
122 [ if test x$enableval = xyes; then
127 if test x"$enable_gpgme" = xyes; then
129 AM_PATH_GPGME(1.0.0, AC_DEFINE(CRYPT_BACKEND_GPGME, 1,
130 [Defined, if GPGME support is enabled]),
132 if test x"$gpgme_found" = xno; then
133 AC_MSG_ERROR([*** GPGME not found ***])
135 AM_PATH_GPGME(1.1.1, AC_DEFINE(HAVE_GPGME_PKA_TRUST, 1,
136 [Define if GPGME supports PKA]))
137 #needed to get GPGME_LIBS and al correctly
138 AM_PATH_GPGME(1.0.0, AC_DEFINE(CRYPT_BACKEND_GPGME, 1,
139 [Define if you use GPGME to support OpenPGP]))
140 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
146 AC_ARG_ENABLE(pgp, AC_HELP_STRING([--disable-pgp], [Disable PGP support]),
147 [ if test x$enableval = xno ; then
152 if test x$have_pgp != xno ; then
153 AC_DEFINE(CRYPT_BACKEND_CLASSIC_PGP,1, [Define if you want classic PGP support.])
154 PGPAUX_TARGET="pgpring\$(EXEEXT) pgpewrap\$(EXEEXT)"
155 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
158 AC_ARG_ENABLE(smime, AC_HELP_STRING([--disable-smime], [Disable SMIME support]),
159 [ if test x$enableval = xno ; then
164 if test x$have_smime != xno ; then
165 AC_DEFINE(CRYPT_BACKEND_CLASSIC_SMIME, 1, [Define if you want clasic S/MIME support.])
166 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
167 SMIMEAUX_TARGET="smime_keys"
170 AC_ARG_WITH(mixmaster, AC_HELP_STRING([--with-mixmaster@<:@=PATH@:>@], [Include Mixmaster support]),
171 [if test "$withval" != no
173 if test -x "$withval"
177 MIXMASTER="mixmaster"
179 OPS="$OPS \$(srcdir)/OPS.MIX"
180 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
181 AC_DEFINE_UNQUOTED(MIXMASTER,"$MIXMASTER", [Where to find mixmaster on your system.])
184 # We now require all OPS
185 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
188 AC_SUBST(PGPAUX_TARGET)
189 AC_SUBST(SMIMEAUX_TARGET)
191 AC_PATH_PROG(ISPELL, ispell, no)
192 if test $ISPELL != no; then
193 AC_DEFINE_UNQUOTED(ISPELL,"$ISPELL",[ Where to find ispell on your system. ])
196 AC_ARG_WITH(slang, AC_HELP_STRING([--with-slang@<:@=DIR@:>@], [Use S-Lang instead of ncurses]),
197 [AC_CACHE_CHECK([if this is a BSD system], mutt_cv_bsdish,
198 [AC_TRY_RUN([#include <sys/param.h>
213 AC_MSG_CHECKING(for S-Lang)
214 if test $withval = yes; then
215 if test -d $srcdir/../slang; then
216 mutt_cv_slang=$srcdir/../slang/src
217 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
218 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
220 if test -d $mutt_cv_prefix/include/slang; then
221 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
222 elif test -d /usr/include/slang; then
223 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
228 dnl ---Check to see if $withval is a source directory
229 if test -f $withval/src/slang.h; then
230 mutt_cv_slang=$withval/src
231 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
232 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
234 dnl ---Must be installed somewhere
235 mutt_cv_slang=$withval
236 if test -d $withval/include/slang; then
237 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
238 elif test -d $withval/include; then
239 CPPFLAGS="$CPPFLAGS -I${withval}/include"
241 LDFLAGS="$LDFLAGS -L${withval}/lib"
244 AC_MSG_RESULT($mutt_cv_slang)
245 if test $mutt_cv_bsdish = yes; then
246 AC_CHECK_LIB(termlib, main)
248 AC_DEFINE(USE_SLANG_CURSES,1,
249 [ Define if you compile with SLang instead of curses/ncurses. ])
250 AC_DEFINE(HAVE_COLOR,1,[ Define if your curses library supports color. ])
251 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
253 dnl --- now that we've found it, check the link
255 AC_CHECK_LIB(slang, SLtt_get_terminfo,
256 [MUTTLIBS="$MUTTLIBS -lslang -lm"],
257 [AC_MSG_ERROR(unable to compile. check config.log)], -lm)
262 AC_ARG_WITH(curses, AC_HELP_STRING([--with-curses=DIR], [Where ncurses is installed]),
263 [if test $withval != yes; then
264 mutt_cv_curses=$withval
266 if test x$mutt_cv_curses != x/usr; then
267 LDFLAGS="$LDFLAGS -L${mutt_cv_curses}/lib"
268 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
271 AC_CHECK_FUNC(initscr,,[
273 for lib in ncurses ncursesw
275 AC_CHECK_LIB($lib, waddnwstr, [cf_ncurses="$lib"; break])
277 AC_CHECK_LIB($cf_ncurses, initscr,
278 [MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
280 if test "$cf_ncurses" = ncursesw; then
281 AC_CHECK_HEADERS(ncursesw/ncurses.h,[cf_cv_ncurses_header="ncursesw/ncurses.h"])
283 AC_CHECK_HEADERS(ncurses/ncurses.h,[cf_cv_ncurses_header="ncurses/ncurses.h"],
284 [AC_CHECK_HEADERS(ncurses.h,[cf_cv_ncurses_header="ncurses.h"])])
291 LIBS="$LIBS $MUTTLIBS"
292 CF_CHECK_FUNCDECLS([#include <${cf_cv_ncurses_header-curses.h}>],
293 [start_color typeahead bkgdset curs_set meta use_default_colors resizeterm])
294 if test "$ac_cv_func_decl_start_color" = yes; then
295 AC_DEFINE(HAVE_COLOR,1,[ Define if your curses library supports color. ])
297 if test "$ac_cv_func_decl_resizeterm" = yes; then
298 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
305 AC_CHECK_HEADERS(stdarg.h sys/ioctl.h ioctl.h sysexits.h)
306 AC_CHECK_HEADERS(sys/time.h sys/resource.h)
307 AC_CHECK_HEADERS(unix.h)
309 AC_CHECK_FUNCS(setrlimit getsid)
313 AC_MSG_CHECKING(for sig_atomic_t in signal.h)
314 AC_EGREP_HEADER(sig_atomic_t,signal.h,
316 ac_cv_type_sig_atomic_t=yes;
317 AC_EGREP_HEADER(volatile.*sig_atomic_t,
320 is_sig_atomic_t_volatile=yes;
321 AC_MSG_RESULT([yes, volatile])
324 is_sig_atomic_t_volatile=no;
325 AC_MSG_RESULT([yes, non volatile])
330 AC_CHECK_TYPE(sig_atomic_t, int)
331 is_sig_atomic_t_volatile=no
333 if test $is_sig_atomic_t_volatile = 'yes'
335 AC_DEFINE(SIG_ATOMIC_VOLATILE_T, sig_atomic_t)
337 AC_DEFINE(SIG_ATOMIC_VOLATILE_T, [volatile sig_atomic_t])
343 AC_CHECK_TYPE(ssize_t, int)
345 AC_CHECK_FUNCS(fgetpos memmove setegid srand48 strerror)
347 AC_REPLACE_FUNCS([setenv strcasecmp strdup strsep strtok_r wcscasecmp])
348 AC_REPLACE_FUNCS([strcasestr mkdtemp])
350 AC_CHECK_FUNC(getopt)
351 if test $ac_cv_func_getopt = yes; then
352 AC_CHECK_HEADERS(getopt.h)
356 AC_CHECK_FUNC(snprintf, [mutt_cv_func_snprintf=yes], [mutt_cv_func_snprintf=no])
357 AC_CHECK_FUNC(vsnprintf, [mutt_cv_func_vsnprintf=yes], [mutt_cv_func_vsnprintf=no])
358 if test $mutt_cv_func_snprintf = yes; then
359 AC_CACHE_CHECK([whether your system's snprintf is C99 compliant],
360 [mutt_cv_c99_snprintf],
367 int len = snprintf(buf, 4, "1234567");
368 return (len != 7 || buf[3] != '\0');
371 ], mutt_cv_c99_snprintf=yes, mutt_cv_c99_snprintf=no, mutt_cv_c99_snprintf=no))
373 mutt_cv_c99_snprintf=no
375 if test $mutt_cv_func_vsnprintf = yes; then
376 AC_CACHE_CHECK([whether your system's vsnprintf is C99 compliant],
377 [mutt_cv_c99_vsnprintf],
381 int foo(const char *fmt, ...)
388 len = vsnprintf(buf, 4, fmt, ap);
390 return (len != 7 || buf[3] != '\0');
396 return foo("%s", "1234567");
398 ], mutt_cv_c99_vsnprintf=yes, mutt_cv_c99_vsnprintf=no, mutt_cv_c99_vsnprintf=no))
400 mutt_cv_c99_vsnprintf=no
402 if test $mutt_cv_c99_snprintf = yes; then
403 AC_DEFINE(HAVE_SNPRINTF, 1, [ Define to 1 if you have a C99 compliant snprintf function. ])
405 if test $mutt_cv_c99_vsnprintf = yes; then
406 AC_DEFINE(HAVE_VSNPRINTF, 1, [ Define to 1 if you have a C99 compliant vsnprintf function. ])
408 if test $mutt_cv_c99_snprintf = no -o $mutt_cv_c99_vsnprintf = no; then
414 dnl SCO uses chsize() instead of ftruncate()
415 AC_CHECK_FUNCS(ftruncate, , [AC_CHECK_LIB(x, chsize)])
417 dnl SCO has strftime() in libintl
418 AC_CHECK_FUNCS(strftime, , [AC_CHECK_LIB(intl, strftime)])
420 dnl AIX may not have fchdir()
421 AC_CHECK_FUNCS(fchdir, , [mutt_cv_fchdir=no])
423 AC_ARG_WITH(regex, AC_HELP_STRING([--with-regex], [Use the GNU regex library]),
425 [AC_CHECK_FUNCS(regcomp, mutt_cv_regex=no, mutt_cv_regex=yes)])
427 if test $mutt_cv_regex = no ; then
428 AC_CACHE_CHECK([whether your system's regexp library is completely broken],
429 [mutt_cv_regex_broken],
433 main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }],
434 mutt_cv_regex_broken=no, mutt_cv_regex_broken=yes, mutt_cv_regex_broken=yes))
435 if test $mutt_cv_regex_broken = yes ; then
436 echo "Using the included GNU regex instead." >&AC_FD_MSG
441 if test $mutt_cv_regex = yes; then
442 AC_DEFINE(USE_GNU_REGEX,1,[ Define if you want to use the included regex.c. ])
447 AC_ARG_WITH(homespool,
448 AC_HELP_STRING([--with-homespool@<:@=FILE@:>@], [File in user's directory where new mail is spooled]), with_homespool=${withval})
449 if test x$with_homespool != x; then
450 if test $with_homespool = yes; then
451 with_homespool=mailbox
453 AC_DEFINE_UNQUOTED(MAILPATH,"$with_homespool",[ Where new mail is spooled. ])
454 AC_DEFINE(HOMESPOOL,1,
455 [Is mail spooled to the user's home directory? If defined,
456 MAILPATH should be set to the filename of the spool mailbox
457 relative the the home directory.
458 use: configure --with-homespool=FILE])
459 AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])
462 AC_ARG_WITH(mailpath, AC_HELP_STRING([--with-mailpath=DIR], [Directory where spool mailboxes are located]),
463 [mutt_cv_mailpath=$withval],
464 [ AC_CACHE_CHECK(where new mail is stored, mutt_cv_mailpath,
466 if test -d /var/mail; then
467 mutt_cv_mailpath=/var/mail
468 elif test -d /var/spool/mail; then
469 mutt_cv_mailpath=/var/spool/mail
470 elif test -d /usr/spool/mail; then
471 mutt_cv_mailpath=/usr/spool/mail
472 elif test -d /usr/mail; then
473 mutt_cv_mailpath=/usr/mail
476 if test "$mutt_cv_mailpath" = no; then
477 AC_MSG_ERROR("Could not determine where new mail is stored.")
479 AC_DEFINE_UNQUOTED(MAILPATH,"$mutt_cv_mailpath",[ Where new mail is spooled. ])
481 AC_CACHE_CHECK(if $mutt_cv_mailpath is world writable, mutt_cv_worldwrite, [AC_TRY_RUN([#include <sys/types.h>
482 #include <sys/stat.h>
485 int main (int argc, char **argv)
489 stat ("$mutt_cv_mailpath", &s);
490 if (s.st_mode & S_IWOTH) exit (0);
492 }], mutt_cv_worldwrite=yes, mutt_cv_worldwrite=no, mutt_cv_worldwrite=no)])
495 if test $mutt_cv_worldwrite = yes; then
496 AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])
499 AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_TRY_RUN([#include <sys/types.h>
500 #include <sys/stat.h>
503 int main (int argc, char **argv)
507 stat ("$mutt_cv_mailpath", &s);
508 if (s.st_mode & S_IWGRP) exit (0);
510 }], mutt_cv_groupwrite=yes, mutt_cv_groupwrite=no, mutt_cv_groupwrite=no)])
512 if test $mutt_cv_groupwrite = yes; then
513 AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])
514 AC_DEFINE(USE_SETGID,1,[ Define if mutt should run setgid "mail". ])
520 AC_ARG_ENABLE(external_dotlock, AC_HELP_STRING([--enable-external-dotlock], [Force use of an external dotlock program]),
521 [mutt_cv_external_dotlock="$enableval"])
523 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
524 || test "x$mutt_cv_external_dotlock" = "xyes"
526 AC_DEFINE(DL_STANDALONE,1,[ Define if you want to use an external dotlocking program. ])
527 DOTLOCK_TARGET="mutt_dotlock\$(EXEEXT)"
529 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
532 AC_SUBST(DOTLOCK_TARGET)
534 dnl autoconf <2.60 compatibility
535 if test -z "$datarootdir"; then
536 datarootdir='${prefix}/share'
538 AC_SUBST([datarootdir])
540 AC_MSG_CHECKING(where to put the documentation)
541 AC_ARG_WITH(docdir, AC_HELP_STRING([--with-docdir=PATH], [Specify where to put the documentation]),
542 [mutt_cv_docdir=$withval],
543 [mutt_cv_docdir='${datarootdir}/doc/mutt'])
544 AC_MSG_RESULT($mutt_cv_docdir)
545 if test -z "$docdir" -o -n "$with_docdir"
547 docdir=$mutt_cv_docdir
551 if test x$mutt_cv_setgid = xyes; then
553 DOTLOCK_PERMISSION=2755
556 DOTLOCK_PERMISSION=755
558 AC_SUBST(DOTLOCK_GROUP)
559 AC_SUBST(DOTLOCK_PERMISSION)
561 AC_ARG_WITH(domain, AC_HELP_STRING([--with-domain=DOMAIN], [Specify your DNS domain name]),
562 [if test $withval != yes; then
563 if test $withval != no; then
564 AC_DEFINE_UNQUOTED(DOMAIN,"$withval",[ Define your domain name. ])
570 dnl -- socket dependencies --
572 AC_ARG_ENABLE(pop, AC_HELP_STRING([--enable-pop], [Enable POP3 support]),
573 [ if test x$enableval = xyes ; then
574 AC_DEFINE(USE_POP,1,[ Define if you want support for the POP3 protocol. ])
575 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
582 AC_ARG_ENABLE(imap, AC_HELP_STRING([--enable-imap], [Enable IMAP support]),
583 [ if test x$enableval = xyes ; then
584 AC_DEFINE(USE_IMAP,1,[ Define if you want support for the IMAP protocol. ])
585 LIBIMAP="-Limap -limap"
586 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
592 AM_CONDITIONAL(BUILD_IMAP, test x$need_imap = xyes)
594 AC_ARG_ENABLE(smtp, AC_HELP_STRING([--enable-smtp], [include internal SMTP relay support]),
595 [if test $enableval = yes; then
596 AC_DEFINE(USE_SMTP, 1, [Include internal SMTP relay support])
597 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smtp.o"
601 if test x"$need_imap" = xyes -o x"$need_pop" = xyes ; then
602 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS bcache.o"
605 dnl -- end socket dependencies --
607 if test "$need_socket" = "yes"
609 AC_CHECK_HEADERS([sys/select.h])
610 AC_MSG_CHECKING([for socklen_t])
611 AC_EGREP_HEADER(socklen_t, sys/socket.h, AC_MSG_RESULT([yes]),
613 AC_DEFINE(socklen_t,int,
614 [ Define to 'int' if <sys/socket.h> doesn't have it. ]))
615 AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
616 AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
617 AC_CHECK_FUNCS(getaddrinfo)
618 AC_DEFINE(USE_SOCKET,1,
619 [ Include code for socket support. Set automatically if you enable POP3 or IMAP ])
620 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
623 dnl -- imap dependencies --
625 AC_ARG_WITH(gss, AC_HELP_STRING([--with-gss@<:@=PFX@:>@], [Compile in GSSAPI authentication for IMAP]),
626 gss_prefix="$withval", gss_prefix="no")
627 if test "$gss_prefix" != "no"
629 if test "$need_imap" = "yes"
631 MUTT_AM_PATH_GSSAPI(gss_prefix)
632 AC_MSG_CHECKING(GSSAPI implementation)
633 AC_MSG_RESULT($GSSAPI_IMPL)
634 if test "$GSSAPI_IMPL" = "none"
637 AC_MSG_RESULT([GSSAPI libraries not found])
639 if test "$GSSAPI_IMPL" = "Heimdal"
641 AC_DEFINE(HAVE_HEIMDAL,1,[ Define if your GSSAPI implementation is Heimdal ])
643 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
644 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
645 AC_DEFINE(USE_GSS,1,[ Define if you have GSSAPI libraries available ])
648 AC_MSG_WARN([GSS was requested but IMAP is not enabled])
651 AM_CONDITIONAL(USE_GSS, test x$need_gss = xyes)
653 dnl -- end imap dependencies --
655 AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl@<:@=PFX@:>@], [Enable TLS support using OpenSSL]),
656 [ if test "$with_ssl" != "no"
658 if test "$need_socket" != "yes"; then
659 AC_MSG_WARN([SSL support is only useful with POP, IMAP or SMTP support])
661 if test "$with_ssl" != "yes"
663 LDFLAGS="$LDFLAGS -L$withval/lib"
664 CPPFLAGS="$CPPFLAGS -I$withval/include"
669 AC_CHECK_LIB(z, deflate, [crypto_libs=-lz])
670 AC_CHECK_LIB(crypto, X509_new,
671 [crypto_libs="-lcrypto $crypto_libs"],, [$crypto_libs])
672 AC_CHECK_LIB(ssl, SSL_new,,
673 AC_MSG_ERROR([Unable to find SSL library]), [$crypto_libs])
675 LIBS="$LIBS $crypto_libs"
676 AC_CHECK_FUNCS(RAND_status RAND_egd)
678 AC_DEFINE(USE_SSL,1,[ Define if you want support for SSL. ])
679 AC_DEFINE(USE_SSL_OPENSSL,1,[ Define if you want support for SSL via OpenSSL. ])
681 MUTTLIBS="$MUTTLIBS -lssl $crypto_libs"
682 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
688 AC_ARG_WITH([gnutls], AC_HELP_STRING([--with-gnutls@<:@=PFX@:>@], [enable TLS support using gnutls]),
689 [gnutls_prefix="$withval"], [gnutls_prefix="no"])
690 if test "$gnutls_prefix" != "no" && test x"$need_ssl" != xyes
692 if test "$need_socket" != "yes"
694 AC_MSG_WARN([SSL support is only useful with POP, IMAP or SMTP support])
696 if test "$gnutls_prefix" != "yes"
698 LDFLAGS="$LDFLAGS -L$gnutls_prefix/lib"
699 CPPFLAGS="$CPPFLAGS -I$gnutls_prefix/include"
703 AC_CHECK_LIB(gnutls, gnutls_check_version,
705 AC_CHECK_DECLS([GNUTLS_VERIFY_DISABLE_TIME_CHECKS], [], [],
706 [[#include <gnutls/x509.h>]])
709 MUTTLIBS="$MUTTLIBS -lgnutls"
711 AC_DEFINE(USE_SSL, 1, [ Define if you want support for SSL. ])
712 AC_DEFINE(USE_SSL_GNUTLS, 1, [ Define if you want support for SSL via GNUTLS. ])
714 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
716 [AC_MSG_ERROR([could not find libgnutls])])
720 AM_CONDITIONAL(USE_SSL, test x$need_ssl = xyes)
722 AC_ARG_WITH(sasl, AC_HELP_STRING([--with-sasl@<:@=PFX@:>@], [Use SASL network security library]),
724 if test "$with_sasl" != "no"
726 if test "$need_socket" != "yes"
728 AC_MSG_ERROR([SASL support is only useful with POP or IMAP support])
731 if test "$with_sasl" != "yes"
733 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
734 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
740 # OpenSolaris provides a SASL2 interface in libsasl
741 sasl_libs="sasl2 sasl"
742 AC_SEARCH_LIBS(sasl_encode64, [$sasl_libs],,
743 AC_MSG_ERROR([could not find sasl lib]),)
745 MUTTLIBS="$MUTTLIBS $LIBS"
746 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
749 AC_DEFINE(USE_SASL,1,
750 [ Define if want to use the SASL library for POP/IMAP authentication. ])
754 AM_CONDITIONAL(USE_SASL, test x$need_sasl = xyes)
758 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging support]),
759 [ if test x$enableval = xyes ; then
760 AC_DEFINE(DEBUG,1,[ Define to enable debugging info. ])
764 AC_ARG_ENABLE(flock, AC_HELP_STRING([--enable-flock], [Use flock() to lock files]),
765 [if test $enableval = yes; then
766 AC_DEFINE(USE_FLOCK,1, [ Define to use flock() to lock mailboxes. ])
770 AC_ARG_ENABLE(fcntl, AC_HELP_STRING([--disable-fcntl], [Do NOT use fcntl() to lock files]),
771 [if test $enableval = no; then mutt_cv_fcntl=no; fi])
773 if test $mutt_cv_fcntl = yes; then
774 AC_DEFINE(USE_FCNTL,1, [ Define to use fcntl() to lock folders. ])
777 AC_MSG_CHECKING(whether struct dirent defines d_ino)
778 ac_cv_dirent_d_ino=no
779 AC_TRY_LINK([#include <dirent.h>],[struct dirent dp; (void)dp.d_ino],[ac_cv_dirent_d_ino=yes])
780 if test x$ac_cv_dirent_d_ino = xyes ; then
781 AC_DEFINE(HAVE_DIRENT_D_INO,1,
782 [Define to 1 if your system has the dirent::d_ino member])
784 AC_MSG_RESULT($ac_cv_dirent_d_ino)
787 AC_ARG_ENABLE(warnings, AC_HELP_STRING([--disable-warnings], [Turn off compiler warnings (not recommended)]),
788 [if test $enableval = no; then
792 if test x$GCC = xyes && test $mutt_cv_warnings = yes; then
793 CFLAGS="-Wall -pedantic -Wno-long-long $CFLAGS"
796 AC_ARG_ENABLE(nfs-fix, AC_HELP_STRING([--enable-nfs-fix], [Work around an NFS with broken attributes caching]),
797 [if test x$enableval = xyes; then
798 AC_DEFINE(NFS_ATTRIBUTE_HACK,1,
799 [Define if you have problems with mutt not detecting
800 new/old mailboxes over NFS. Some NFS implementations
801 incorrectly cache the attributes of small files.])
804 AC_ARG_ENABLE(mailtool, AC_HELP_STRING([--enable-mailtool], [Enable Sun mailtool attachments support]),
805 [if test x$enableval = xyes; then
806 AC_DEFINE(SUN_ATTACHMENT,1,[ Define to enable Sun mailtool attachments support. ])
809 AC_ARG_ENABLE(locales-fix, AC_HELP_STRING([--enable-locales-fix], [The result of isprint() is unreliable]),
810 [if test x$enableval = xyes; then
811 AC_DEFINE(LOCALES_HACK,1,[ Define if the result of isprint() is unreliable. ])
814 AC_ARG_WITH(exec-shell, AC_HELP_STRING([--with-exec-shell=SHELL], [Specify alternate shell (ONLY if /bin/sh is broken)]),
815 [if test $withval != yes; then
816 AC_DEFINE_UNQUOTED(EXECSHELL, "$withval",
817 [program to use for shell commands])
819 AC_DEFINE_UNQUOTED(EXECSHELL, "/bin/sh")
821 [AC_DEFINE_UNQUOTED(EXECSHELL, "/bin/sh")])
823 AC_ARG_ENABLE(exact-address, AC_HELP_STRING([--enable-exact-address], [Enable regeneration of email addresses]),
824 [if test $enableval = yes; then
825 AC_DEFINE(EXACT_ADDRESS,1,
826 [Enable exact regeneration of email addresses as parsed?
827 NOTE: this requires significant more memory when defined.])
831 dnl -- start cache --
834 AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache],
835 [Enable header caching]))
836 AC_ARG_WITH(tokyocabinet, AC_HELP_STRING([--without-tokyocabinet],
837 [Don't use tokyocabinet even if it is available]))
838 AC_ARG_WITH(qdbm, AC_HELP_STRING([--without-qdbm],
839 [Don't use qdbm even if it is available]))
840 AC_ARG_WITH(gdbm, AC_HELP_STRING([--without-gdbm],
841 [Don't use gdbm even if it is available]))
842 AC_ARG_WITH(bdb, AC_HELP_STRING([--with-bdb@<:@=DIR@:>@],
843 [Use BerkeleyDB4 if gdbm is not available]))
846 if test x$enable_hcache = xyes
848 AC_DEFINE(USE_HCACHE, 1, [Enable header caching])
849 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS hcache.o"
851 OLDCPPFLAGS="$CPPFLAGS"
852 OLDLDFLAGS="$LDFLAGS"
857 if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "no"
861 if test -n "$with_qdbm" && test "$with_qdbm" != "no"
863 if test "$db_requested" != "auto"
865 AC_MSG_ERROR([more than one header cache engine requested.])
870 if test -n "$with_gdbm" && test "$with_gdbm" != "no"
872 if test "$db_requested" != "auto"
874 AC_MSG_ERROR([more than one header cache engine requested.])
879 if test -n "$with_bdb" && test "$with_bdb" != "no"
881 if test "$db_requested" != "auto"
883 AC_MSG_ERROR([more than one header cache engine requested.])
889 dnl -- Tokyo Cabinet --
890 if test "$with_tokyocabinet" != "no" \
891 && test "$db_requested" = auto -o "$db_requested" = tc
893 if test -n "$with_tokyocabinet" && test "$with_tokyocabinet" != "yes"
895 CPPFLAGS="$CPPFLAGS -I$with_tokyocabinet/include"
896 LDFLAGS="$LDFLAGS -L$with_tokyocabinet/lib"
899 AC_CHECK_HEADER(tcbdb.h,
900 AC_CHECK_LIB(tokyocabinet, tcbdbopen,
901 [MUTTLIBS="$MUTTLIBS -ltokyocabinet"
902 AC_DEFINE(HAVE_TC, 1, [Tokyo Cabinet Support])
904 [CPPFLAGS="$OLDCPPFLAGS"
905 LDFLAGS="$OLDLDFLAGS"]))
906 if test "$db_requested" != auto && test "$db_found" != "$db_requested"
908 AC_MSG_ERROR([Tokyo Cabinet could not be used. Check config.log for details.])
913 if test "$with_qdbm" != "no" && test $db_found = no \
914 && test "$db_requested" = auto -o "$db_requested" = qdbm
916 if test -n "$with_qdbm" && test "$with_qdbm" != "yes"
918 if test -d $with_qdbm/include/qdbm; then
919 CPPFLAGS="$CPPFLAGS -I$with_qdbm/include/qdbm"
921 CPPFLAGS="$CPPFLAGS -I$with_qdbm/include"
923 LDFLAGS="$LDFLAGS -L$with_qdbm/lib"
925 if test -d /usr/include/qdbm; then
926 CPPFLAGS="$CPPFLAGS -I/usr/include/qdbm"
931 AC_CHECK_HEADERS(villa.h)
932 AC_CHECK_LIB(qdbm, vlopen,
933 [MUTTLIBS="$MUTTLIBS -lqdbm"
934 AC_DEFINE(HAVE_QDBM, 1, [QDBM Support])
936 [CPPFLAGS="$OLDCPPFLAGS"
937 LDFLAGS="$OLDLDFLAGS"])
939 if test "$db_requested" != auto && test "$db_found" != "$db_requested"
941 AC_MSG_ERROR([QDBM could not be used. Check config.log for details.])
946 if test x$with_gdbm != xno && test $db_found = no \
947 && test "$db_requested" = auto -o "$db_requested" = gdbm
949 if test "$with_gdbm" != "yes"
951 CPPFLAGS="$CPPFLAGS -I$with_gdbm/include"
952 LDFLAGS="$LDFLAGS -L$with_gdbm/lib"
956 AC_CACHE_CHECK(for gdbm_open, ac_cv_gdbmopen,[
958 AC_TRY_LINK([#include <gdbm.h>],[gdbm_open(0,0,0,0,0);],[ac_cv_gdbmopen=yes])
961 if test "$ac_cv_gdbmopen" = yes
963 AC_DEFINE(HAVE_GDBM, 1, [GDBM Support])
964 MUTTLIBS="$MUTTLIBS -lgdbm"
967 if test "$db_requested" != auto && test "$db_found" != "$db_requested"
969 AC_MSG_ERROR([GDBM could not be used. Check config.log for details.])
974 ac_bdb_prefix="$with_bdb"
975 if test x$ac_bdb_prefix != xno && test $db_found = no
977 if test x$ac_bdb_prefix = xyes || test x$ac_bdb_prefix = x
979 ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
981 for d in $ac_bdb_prefix; do
983 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
984 bdbpfx="$bdbpfx $d/$v"
987 BDB_VERSIONS="db-4 db4 db-4.6 db4.6 db46 db-4.5 db4.5 db45 db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
988 AC_MSG_CHECKING([for BerkeleyDB > 4.0])
992 for v in / $BDB_VERSIONS; do
993 if test -r "$d/include/$v/db.h"; then
994 BDB_INCLUDE_DIR="$d/include/$v"
995 for bdblibdir in "$d/lib/$v" "$d/lib"; do
996 test -d "$bdblibdir" || continue
997 BDB_LIB_DIR="$bdblibdir"
998 for l in `echo $BDB_VERSIONS`; do
999 CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
1000 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
1006 db->open(db,NULL,NULL,NULL,0,0,0);
1013 test x$ac_cv_dbcreate = xyes && break 2
1017 test x$BDB_LIB != x && break
1019 if test x$ac_cv_dbcreate = xyes
1022 CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
1023 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
1024 AC_DEFINE(HAVE_DB4, 1, [Berkeley DB4 Support])
1031 if test $db_found = no
1033 AC_MSG_ERROR([You need Tokyo Cabinet, QDBM, GDBM or Berkeley DB4 for hcache])
1038 AM_CONDITIONAL(BUILD_HCACHE, test x$db_found != xno)
1040 if test "$need_md5" = "yes"
1042 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5.o"
1045 if test x$db_found != xno ; then
1046 MUTT_MD5="mutt_md5$EXEEXT"
1051 AC_SUBST(MUTT_LIB_OBJECTS)
1053 AC_SUBST(LIBIMAPDEPS)
1055 dnl -- iconv/gettext --
1057 AC_ARG_ENABLE(iconv, AC_HELP_STRING([--disable-iconv], [Disable iconv support]),
1058 [if test x$enableval = xno ; then
1065 if test "$am_cv_func_iconv" != "yes"
1067 AC_MSG_WARN([Configuring without iconv support. See INSTALL for details])
1070 AC_CHECK_HEADERS(iconv.h,
1071 [AC_MSG_CHECKING(whether iconv.h defines iconv_t)
1072 AC_EGREP_HEADER([typedef.*iconv_t],iconv.h,
1074 AC_DEFINE(HAVE_ICONV_T_DEF, 1,
1075 [Define if <iconv.h> defines iconv_t.])],
1076 AC_MSG_RESULT(no))])
1078 dnl (1) Some implementations of iconv won't convert from UTF-8 to UTF-8.
1079 dnl (2) In glibc-2.1.2 and earlier there is a bug that messes up ob and
1080 dnl obl when args 2 and 3 are 0 (fixed in glibc-2.1.3).
1081 AC_CACHE_CHECK([whether this iconv is good enough], mutt_cv_iconv_good,
1082 mutt_save_LIBS="$LIBS"
1083 LIBS="$LIBS $LIBICONV"
1091 changequote([, ])dnl
1094 ob = buf, obl = sizeof(buf);
1095 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
1096 (iconv(cd, 0, 0, &ob, &obl) ||
1097 !(ob == buf && obl == sizeof(buf)) ||
1101 mutt_cv_iconv_good=yes,
1102 mutt_cv_iconv_good=no,
1103 mutt_cv_iconv_good=yes)
1104 LIBS="$mutt_save_LIBS")
1105 if test "$mutt_cv_iconv_good" = no; then
1106 AC_MSG_ERROR(Try using libiconv instead)
1109 dnl This is to detect implementations such as the one in glibc-2.1,
1110 dnl which always convert exactly but return the number of characters
1111 dnl converted instead of the number converted inexactly.
1112 AC_CACHE_CHECK([whether iconv is non-transcribing], mutt_cv_iconv_nontrans,
1113 mutt_save_LIBS="$LIBS"
1114 LIBS="$LIBS $LIBICONV"
1124 const char *s = "\304\211";
1127 changequote([, ])dnl
1128 ib = s, ibl = 2, ob = t, obl = 3;
1129 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
1130 iconv(cd, &ib, &ibl, &ob, &obl));
1133 mutt_cv_iconv_nontrans=no,
1134 mutt_cv_iconv_nontrans=yes,
1135 mutt_cv_iconv_nontrans=no)
1136 LIBS="$mutt_save_LIBS")
1137 if test "$mutt_cv_iconv_nontrans" = yes; then
1138 AC_DEFINE(ICONV_NONTRANS, 1)
1140 AC_DEFINE(ICONV_NONTRANS, 0)
1143 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
1145 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
1146 AC_DEFINE(HAVE_BIND_TEXTDOMAIN_CODESET,1,
1147 [ Define if your gettext has bind_textdomain_codeset. ])
1149 mutt_save_LIBS="$LIBS"
1150 LIBS="$LIBS $INTLLIBS"
1151 AC_CHECK_FUNCS(bind_textdomain_codeset)
1152 LIBS="$mutt_save_LIBS"
1157 dnl -- IDN depends on iconv
1159 AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=@<:@PFX@:>@], [Use GNU libidn for domain names]),
1161 if test "$with_idn" != "no" ; then
1162 if test "$with_idn" != "yes" ; then
1163 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
1164 LDFLAGS="$LDFLAGS -L$with_idn/lib"
1170 if test "x$with_idn" != "xno"; then
1171 if test "$am_cv_func_iconv" != "yes"
1173 if test "x$with_idn" != "x"
1175 AC_MSG_ERROR([IDN requested but iconv is disabled or unavailable])
1178 AC_SEARCH_LIBS([stringprep_check_version], [idn], [
1179 AC_DEFINE([HAVE_LIBIDN], 1, [Define to 1 if you have the `idn' library])
1180 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_idna.o"
1182 AC_CHECK_FUNCS(idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z)
1183 AC_CHECK_FUNCS(idna_to_ascii_from_utf8 idna_to_ascii_8z)
1184 AC_CHECK_FUNCS(idna_to_ascii_lz idna_to_ascii_from_locale)
1190 AC_CHECK_HEADERS(wchar.h)
1192 AC_CACHE_CHECK([for wchar_t], mutt_cv_wchar_t,
1200 [ wchar_t wc; return 0; ],
1201 mutt_cv_wchar_t=yes,
1202 mutt_cv_wchar_t=no))
1204 if test "$mutt_cv_wchar_t" = no; then
1205 AC_DEFINE(wchar_t,int,[ Define to 'int' if system headers don't define. ])
1208 AC_CACHE_CHECK([for wint_t], mutt_cv_wint_t,
1216 [ wint_t wc; return 0; ],
1220 if test "$mutt_cv_wint_t" = no; then
1221 AC_DEFINE(wint_t,int,[ Define to 'int' if system headers don't define. ])
1224 AC_CHECK_HEADERS(wctype.h)
1225 AC_CHECK_FUNCS(iswalnum iswalpha iswblank iswcntrl iswdigit)
1226 AC_CHECK_FUNCS(iswgraph iswlower iswprint iswpunct iswspace iswupper)
1227 AC_CHECK_FUNCS(iswxdigit towupper towlower)
1229 AC_CACHE_CHECK([for mbstate_t], mutt_cv_mbstate_t,
1237 [ mbstate_t s; return 0; ],
1238 mutt_cv_mbstate_t=yes,
1239 mutt_cv_mbstate_t=no))
1241 if test "$mutt_cv_mbstate_t" = no; then
1242 AC_DEFINE(mbstate_t,int,[ Define to 'int' if system headers don't define. ])
1246 AC_ARG_WITH(wc-funcs, AC_HELP_STRING([--without-wc-funcs], [Do not use the system's wchar_t functions]),
1249 if test "$wc_funcs" != yes && test "$wc_funcs" != no; then
1250 AC_CACHE_CHECK([for wchar_t functions], mutt_cv_wc_funcs,
1253 #define _XOPEN_SOURCE 600
1259 #ifdef HAVE_WCTYPE_H
1262 [mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
1263 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)],
1264 mutt_cv_wc_funcs=yes))
1265 wc_funcs=$mutt_cv_wc_funcs
1268 if test $wc_funcs = yes; then
1269 AC_DEFINE(HAVE_WC_FUNCS,1,[ Define if you are using the system's wchar_t functions. ])
1271 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS utf8.o wcwidth.o"
1274 AC_CACHE_CHECK([for nl_langinfo and CODESET], mutt_cv_langinfo_codeset,
1275 [AC_TRY_LINK([#include <langinfo.h>],
1276 [char* cs = nl_langinfo(CODESET);],
1277 mutt_cv_langinfo_codeset=yes,
1278 mutt_cv_langinfo_codeset=no)])
1279 if test $mutt_cv_langinfo_codeset = yes; then
1280 AC_DEFINE(HAVE_LANGINFO_CODESET,1,[ Define if you have <langinfo.h> and nl_langinfo(CODESET). ])
1283 AC_CACHE_CHECK([for nl_langinfo and YESEXPR], mutt_cv_langinfo_yesexpr,
1284 [AC_TRY_LINK([#include <langinfo.h>],
1285 [char* cs = nl_langinfo(YESEXPR);],
1286 mutt_cv_langinfo_yesexpr=yes,
1287 mutt_cv_langinfo_yesexpr=no)])
1288 if test $mutt_cv_langinfo_yesexpr = yes; then
1289 AC_DEFINE(HAVE_LANGINFO_YESEXPR,1,[ Define if you have <langinfo.h> and nl_langinfo(YESEXPR). ])
1292 dnl Documentation tools
1294 AC_PATH_PROG([OSPCAT], [ospcat], [none])
1295 if test "$OSPCAT" != "none"
1297 AC_MSG_CHECKING([for openjade docbook stylesheets])
1298 dslosfile=`ospcat --public-id="-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN"`
1299 DSLROOT=`echo $dslosfile | sed -n -e "s/.*SOIBASE='\(@<:@^'@:>@*\)\/catalog'.*/\1/p"`
1300 # ospcat may spit out an absolute path without an SOIBASE
1301 if test -z "$DSLROOT"
1303 DSLROOT=`echo $dslosfile | sed -e 's|<OSFILE>\(.*\)/print/docbook.dsl|\1|'`
1305 if test -f $DSLROOT/print/docbook.dsl
1307 AC_MSG_RESULT([in $DSLROOT])
1310 AC_MSG_RESULT([not found: PDF documentation will not be built.])
1315 AC_ARG_ENABLE(full_doc,
1316 AC_HELP_STRING([--disable-full-doc], [Omit disabled variables]),
1317 [ if test x$enableval = xno ; then
1321 if test x$full_doc != xno ; then
1322 AC_DEFINE(MAKEDOC_FULL,1, [Define if you want complete documentation.])
1325 AC_OUTPUT(Makefile contrib/Makefile doc/Makefile imap/Makefile
1326 intl/Makefile m4/Makefile po/Makefile.in
1327 hcachever.sh muttbug.sh doc/instdoc.sh)