mutt_*mktemp--
[apps/madmutt.git] / configure.ac
index 9431e6b..1fcdb34 100644 (file)
@@ -62,7 +62,7 @@ ac_aux_path_sendmail=/usr/sbin:/usr/lib
 AC_PATH_PROG(SENDMAIL, sendmail, /usr/sbin/sendmail, $PATH:$ac_aux_path_sendmail)
 AC_DEFINE_UNQUOTED(SENDMAIL,"$ac_cv_path_SENDMAIL",[ Where to find sendmail on your system. ])
 
-OPS="\$(srcdir)/OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT"
+OPS="\$(srcdir)/OPS"
 
 dnl ---------------- gpgme ----------------
 
@@ -250,7 +250,6 @@ if test x$with_homespool != x; then
         relative the the home directory.
         use: configure --with-homespool=FILE
     ])
-    AC_DEFINE(USE_DOTLOCK,1,[ Define to use dotlocking for mailboxes. ])
     mutt_cv_setgid=no
 else
     AC_ARG_WITH(mailpath, AC_HELP_STRING([--with-mailpath=DIR], [Directory where spool mailboxes are located]),
@@ -285,9 +284,7 @@ int main (int argc, char **argv)
 }], 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
+        if test $mutt_cv_worldwrite != yes; then
                 AC_CACHE_CHECK(if $mutt_cv_mailpath is group writable, mutt_cv_groupwrite, [AC_TRY_RUN([#include <sys/types.h>
 #include <sys/stat.h>
 
@@ -301,7 +298,6 @@ int main (int argc, char **argv)
 }], 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
@@ -355,13 +351,10 @@ AC_ARG_WITH(gss, AC_HELP_STRING([--with-gss], [Compile in GSSAPI authentication
             CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
             MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
             AC_DEFINE(USE_GSS,1,[ Define if you have GSSAPI libraries available ])
-            AM_CONDITIONAL(USE_GSS, true)
+            AC_CHECK_HEADERS(xom.h)
         ],[
-           AC_MSG_RESULT([could not find libgssapi])
-           AM_CONDITIONAL(USE_GSS, false)
+           AC_MSG_ERROR([could not find libgssapi])
         ])
-    else
-       AM_CONDITIONAL(USE_GSS, false)
     fi
 ])
 
@@ -460,11 +453,6 @@ if test x$ac_cv_dirent_d_ino = xyes ; then
 fi
 AC_MSG_RESULT($ac_cv_dirent_d_ino)
 
-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])
-
 dnl -- start cache --
 AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]),
 [if test x$enableval = xyes; then
@@ -634,8 +622,7 @@ fi # libiconv
 
 dnl -- locales --
 
-AC_CHECK_HEADERS(wchar.h)
-AC_CHECK_HEADERS(wctype.h)
+AC_CHECK_HEADERS(locale.h wchar.h wctype.h)
 AC_CHECK_FUNCS(iswalnum iswalpha  iswcntrl iswdigit)
 AC_CHECK_FUNCS(iswgraph iswlower iswprint iswpunct iswspace iswupper)
 AC_CHECK_FUNCS(iswxdigit towupper towlower)
@@ -741,9 +728,9 @@ AC_OUTPUT(Makefile
           lib-mime/Makefile
           lib-crypt/Makefile
           lib-hash/Makefile
+          lib-mx/Makefile
           lib-sys/Makefile
           lib-ui/Makefile
-          lib/Makefile
           imap/Makefile
           pop/Makefile
           nntp/Makefile