and even less very old hacks.
[apps/madmutt.git] / configure.ac
index 358a853..f500375 100644 (file)
@@ -425,13 +425,6 @@ fi
 AC_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 --
@@ -616,19 +609,19 @@ AC_ARG_WITH(idn, AC_HELP_STRING([--with-idn=[PFX]], [Use GNU libidn for domain n
 )
 
 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)
+    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)
 fi
 
 dnl -- 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
-         ])
+    [ 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
@@ -652,58 +645,11 @@ if test x$ac_cv_dirent_d_ino = xyes ; then
 fi
 AC_MSG_RESULT($ac_cv_dirent_d_ino)
 
-dnl This may look cumbersome -- please keep it that way, so we can
-dnl quickly change the default to "yes" again.
-mutt_cv_inodesort=no
-AC_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. ])
-fi
-
-mutt_cv_warnings=yes
-AC_ARG_ENABLE(warnings, AC_HELP_STRING([--disable-warnings], [Turn off compiler warnings (not recommended)]),
-[if test $enableval = no; then
-        mutt_cv_warnings=no
-fi])
-
-if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
-        CFLAGS="-Wall -pedantic $CFLAGS"
-fi
-
-AC_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(compressed, [  --enable-compressed        Enable compressed folders support ],
-        [if test x$enableval = xyes; then
-                AC_DEFINE(USE_COMPRESSED,1,[ The compressed mailboxes 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")])
-
 dnl -- start cache --
 AC_ARG_ENABLE(hcache, AC_HELP_STRING([--enable-hcache], [Enable header caching]),
 [if test x$enableval = xyes; then