]> granicus.if.org Git - neomutt/commitdiff
Kill autotools (#994)
authorPietro Cerutti <gahr@gahr.ch>
Tue, 12 Dec 2017 12:22:47 +0000 (12:22 +0000)
committerGitHub <noreply@github.com>
Tue, 12 Dec 2017 12:22:47 +0000 (12:22 +0000)
21 files changed:
Makefile.am [deleted file]
configure [moved from configure.autosetup with 100% similarity]
configure.ac [deleted file]
conn/Makefile.am [deleted file]
contrib/Makefile.am [deleted file]
doc/Makefile.am [deleted file]
flymake.am [deleted file]
hcache/Makefile.am [deleted file]
imap/Makefile.am [deleted file]
m4/Makefile.am [deleted file]
m4/README [deleted file]
m4/ax_lua.m4 [deleted file]
m4/funcdecl.m4 [deleted file]
m4/gssapi.m4 [deleted file]
mutt/Makefile.am [deleted file]
ncrypt/Makefile.am [deleted file]
po/Makevars [deleted file]
po/POTFILES.in
prepare [deleted file]
txt2c.c [deleted file]
txt2c.sh [deleted file]

diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644 (file)
index 2055d5a..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-## Process this file with automake to produce Makefile.in
-## Use aclocal -I m4; automake --foreign
-include $(top_srcdir)/flymake.am
-
-AUTOMAKE_OPTIONS = 1.6 foreign
-EXTRA_PROGRAMS = pgpewrap pgpring
-
-# Test the .tar file by building everything
-AM_DISTCHECK_CONFIGURE_FLAGS = \
-       --enable-debug \
-       --enable-flock \
-       --enable-gpgme \
-       --enable-notmuch \
-       --with-bdb \
-       --with-gdbm \
-       --with-gnutls \
-       --with-gss \
-       --with-kyotocabinet \
-       --with-lmdb \
-       --with-mixmaster \
-       --with-qdbm \
-       --with-sasl \
-       --with-tokyocabinet
-
-SUBDIRS = m4 contrib imap ncrypt mutt conn
-
-if BUILD_HCACHE
-SUBDIRS += hcache
-endif
-
-if BUILD_DOC
-SUBDIRS += doc
-endif
-
-if BUILD_PO
-SUBDIRS += po
-endif
-
-distdir = $(PACKAGE)-$(VERSION)
-
-BUILT_SOURCES = conststrings.c git_ver.h
-
-bin_PROGRAMS = neomutt
-
-neomutt_SOURCES = mutt_account.c addrbook.c address.h alias.c alias.h attach.c \
-       bcache.c body.c body.h browser.c buffy.c mutt_charset.c color.c \
-       commands.c complete.c compose.c compress.c content.h context.h copy.c \
-       curs_lib.c curs_main.c edit.c editmsg.c enter.c enter_state.h \
-       envelope.c envelope.h filter.c flags.c format_flags.h from.c group.c \
-       handler.c hdrline.c header.h header.c help.c history.c hook.c \
-       init.c keymap.c main.c mbox.c mbyte.c mbtable.h \
-       menu.c mh.c muttlib.c mutt_address.c mutt_idna.c mutt_socket.c \
-       mx.c newsrc.c nntp.c options.h pager.c parameter.c parameter.h \
-       parse.c pattern.c pattern.h pop.c pop_auth.c pop_lib.c postpone.c \
-       query.c recvattach.c recvcmd.c rfc1524.c rfc2047.c rfc2231.c rfc3676.c \
-       address.c safe_asprintf.c score.c send.c sendlib.c sidebar.c mutt_signal.c \
-       smtp.c sort.c state.c state.h status.c system.c thread.c thread.h url.c \
-       version.c where.h tags.c
-
-nodist_neomutt_SOURCES = $(BUILT_SOURCES)
-
-LIBIMAP = -Limap -limap
-LIBIMAPDEPS = $(top_srcdir)/imap/imap.h imap/libimap.a
-
-LIBCONN = -Lconn -lconn
-LIBCONNDEPS = $(top_srcdir)/conn/connection.h conn/libconn.a
-
-LIBMUTT = -Lmutt -lmutt
-LIBMUTTDEPS = $(top_srcdir)/mutt/mutt.h mutt/libmutt.a
-
-neomutt_LDADD = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(HCACHE_LIBS) $(NCRYPT_LIBS) \
-       $(LIBIMAP) $(LIBCONN) $(LIBMUTT) $(LIBICONV) $(GPGME_LIBS) $(INTLLIBS)
-
-neomutt_DEPENDENCIES = $(MUTT_LIB_OBJECTS) $(LIBOBJS) $(LIBIMAPDEPS) $(LIBCONNDEPS) \
-       $(LIBMUTTDEPS) $(HCACHE_DEPS) $(NCRYPT_DEPS) $(INTLDEPS)
-
-DEFS=-DPKGDATADIR=\"$(pkgdatadir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
-       -DBINDIR=\"$(bindir)\" -DMUTTLOCALEDIR=\"$(datadir)/locale\"
-
-AM_CPPFLAGS=-I. -I.. -I$(top_srcdir) $(GPGME_CFLAGS)
-
-EXTRA_neomutt_SOURCES = browser.h mbyte.h mutt_idna.c mutt_idna.h \
-       mutt_lua.c mutt_notmuch.c \
-       remailer.c remailer.h resize.c url.h
-
-EXTRA_DIST = mutt_account.h attach.h bcache.h browser.h buffy.h \
-       ChangeLog.md mutt_charset.h CODE_OF_CONDUCT.md compress.h copy.h \
-       COPYRIGHT filter.h functions.h globals.h \
-       group.h history.h init.h keymap.h LICENSE.md mailbox.h \
-       mbyte.h mime.h mutt.h mutt_commands.h \
-       mutt_curses.h mutt_idna.h mutt_lua.h mutt_menu.h mutt_notmuch.h \
-       mutt_options.h mutt_regex.h \
-       mutt_socket.h mx.h myvar.h nntp.h opcodes.h pager.h \
-       pgpewrap.c pop.h protos.h README.md README.SSL remailer.c remailer.h \
-       rfc1524.h rfc2047.h rfc2231.h rfc3676.h sidebar.h \
-       sort.h txt2c.c txt2c.sh version.h tags.h
-
-EXTRA_SCRIPTS =
-
-pgpring_SOURCES = pgppubring.c
-pgpring_LDADD = $(LIBOBJS) $(NCRYPT_LIBS) $(INTLLIBS) $(LIBMUTT)
-pgpring_DEPENDENCIES = $(LIBOBJS) $(NCRYPT_DEPS) $(INTLDEPS) $(LIBMUTTDEPS)
-
-txt2c_SOURCES = txt2c.c
-txt2c_LDADD =
-
-noinst_PROGRAMS = txt2c $(PGPAUX_TARGET)
-
-conststrings.c: txt2c config.status
-       ( \
-               ($(CC) -v >/dev/null 2>&1 && $(CC) -v) || \
-               ($(CC) --version >/dev/null 2>&1 && $(CC) --version) || \
-               ($(CC) -V >/dev/null 2>&1 && $(CC) -V) || \
-               echo "unknown compiler"; \
-       ) 2>&1 | ${srcdir}/txt2c.sh cc_version >conststrings_c;
-       echo "$(CFLAGS)" | ${srcdir}/txt2c.sh cc_cflags >>conststrings_c
-       grep ac_cs_config= config.status | \
-               cut -d= -f2- | \
-               sed -e 's/^"//' -e 's/"$$//' | \
-               ${srcdir}/txt2c.sh configure_options >> conststrings_c
-       mv -f conststrings_c conststrings.c
-
-CLEANFILES = $(BUILT_SOURCES)
-
-DISTCLEANFILES= txt2c
-
-ACLOCAL_AMFLAGS = -I m4
-
-LDADD = $(LIBOBJS) $(INTLLIBS)
-
-dist-hook:
-       echo $(VERSION) > $(distdir)/.tarball-version
-
-git_ver.h: $(neomutt_SOURCES) $(SUBDIRS)
-       version=`git describe --dirty --abbrev=6 --match "neomutt-*" 2> /dev/null | sed -e 's/^neomutt-[0-9]\{8\}//' -e 's/g//'`; \
-       echo 'const char *GitVer = "'$$version'";' > git_ver.h.tmp; \
-       cmp -s git_ver.h.tmp git_ver.h || mv git_ver.h.tmp git_ver.h; \
-       rm -f git_ver.h.tmp
-
-install-data-local:
-       $(MKDIR_P) $(DESTDIR)$(sysconfdir)
-       -if test -n "$(SMIMEAUX_TARGET)"; then \
-               $(MKDIR_P) $(DESTDIR)$(exec_prefix)/lib/$(PACKAGE); \
-               for i in $(SMIMEAUX_TARGET); do \
-                       $(INSTALL) -m 755 $$i $(DESTDIR)$(exec_prefix)/lib/$(PACKAGE); \
-               done \
-       fi
-       -if test -n "$(PGPAUX_TARGET)"; then \
-               $(MKDIR_P) $(DESTDIR)$(exec_prefix)/lib/$(PACKAGE); \
-               for i in $(PGPAUX_TARGET); do \
-                       $(INSTALL) -m 755 $$i $(DESTDIR)$(exec_prefix)/lib/$(PACKAGE); \
-               done \
-       fi
-
-uninstall-local:
-       for i in smime_keys $(PGPAUX_TARGET); do \
-               rm -fr $(DESTDIR)$(exec_prefix)/lib/$(PACKAGE)/$$i; \
-       done
-
-distclean-local:
-       rm -fr html
-
-html:
-       doxygen doxygen/doxygen.conf
-
-.PHONY: html
similarity index 100%
rename from configure.autosetup
rename to configure
diff --git a/configure.ac b/configure.ac
deleted file mode 100644 (file)
index 6c4d2cb..0000000
+++ /dev/null
@@ -1,964 +0,0 @@
-dnl To create the configure script, run:
-dnl     autoreconf -i
-
-CFLAGS=$CFLAGS
-LDFLAGS=$LDFLAGS
-
-AC_INIT([NeoMutt], [20171208], [neomutt-devel@neomutt.org], [neomutt], [https://www.neomutt.org])
-AC_CONFIG_SRCDIR(mutt.h)
-AC_CONFIG_AUX_DIR([.build-aux])
-AM_INIT_AUTOMAKE
-AC_CONFIG_HEADERS([config.h])
-
-dnl AC_DEFINE_SUBST(NAME, VALUE, DESCRIPTION)
-AC_DEFUN([AC_DEFINE_SUBST], [
-       AC_DEFINE([$1], [$2], [$3])
-       AC_SUBST([$1], ['$2'])
-])
-
-AC_USE_SYSTEM_EXTENSIONS
-
-ALL_LINGUAS="bg ca cs da de el en_GB eo es et eu fr ga gl hu id it ja ko lt nl pl pt_BR ru sk sv tr uk zh_CN zh_TW"
-
-AC_CANONICAL_HOST
-
-AC_MSG_CHECKING([for prefix])
-if test x$prefix = xNONE; then
-       mutt_cv_prefix=$ac_default_prefix
-else
-       mutt_cv_prefix=$prefix
-fi
-AC_MSG_RESULT($mutt_cv_prefix)
-
-AC_PROG_CC
-AC_PROG_CC_C99
-if test "$ac_cv_prog_cc_c99" = "no"; then
-       AC_ERROR([Compiler does not support C99. Aborting.])
-fi
-
-if test "$CC" = "gcc"; then
-       CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
-fi
-
-CFLAGS="-Wall -pedantic $CFLAGS"
-
-AC_PROG_CPP
-AC_PROG_MAKE_SET
-AC_PROG_INSTALL
-AC_PROG_MKDIR_P
-AC_PROG_RANLIB
-AC_CHECK_TOOL(AR, ar, ar)
-
-AC_C_BIGENDIAN
-
-AC_SYS_LARGEFILE
-AC_CHECK_SIZEOF(off_t)
-
-AH_TEMPLATE([sig_atomic_t],
-       [Define to `int' if <signal.h> doesn't define.])
-AH_TEMPLATE([HAVE_START_COLOR],
-       [Define if you have start_color, as a function or macro.])
-AH_TEMPLATE([HAVE_TYPEAHEAD],
-       [Define if you have typeahead, as a function or macro.])
-AH_TEMPLATE([HAVE_BKGDSET],
-       [Define if you have bkgdset, as a function or macro.])
-AH_TEMPLATE([HAVE_CURS_SET],
-       [Define if you have curs_set, as a function or macro.])
-AH_TEMPLATE([HAVE_META],
-       [Define if you have meta, as a function or macro.])
-AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
-       [Define if you have use_default_colors, as a function or macro.])
-AH_TEMPLATE([HAVE_RESIZETERM],
-       [Define if you have resizeterm, as a function or macro.])
-AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
-       [Some systems declare sig_atomic_t as volatile, some others -- no.
-       This define will have value `sig_atomic_t' or
-       `volatile sig_atomic_t' accordingly.])
-
-AH_BOTTOM([/* fseeko portability defines */
-#define LOFF_T off_t
-#if SIZEOF_OFF_T == 8
-# define OFF_T_FMT "%" PRId64
-#else
-# define OFF_T_FMT "%" PRId32
-#endif
-])
-
-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.])
-
-dnl Define the option to enable everything before any feature / option is declared
-dnl This is important because it allows us to set a default value for the options
-dnl that can later be overridden by the user's command line options.
-dnl Remember, the user is always the most powerful.
-
-dnl When adding new features / options, **PLEASE** do not use the enable_* or
-dnl with_* variables. They are also used by autoconf internally and will interfere
-dnl with our logic. Also, remember to initialize the variable in both the true and
-dnl the else case, otherwise it will appear blank in the configure summary.
-
-AC_ARG_ENABLE(everything,
-       AC_HELP_STRING([--enable-everything], [Enable all Options and Features]),
-       [enable_everything=$enableval], [enable_everything=no])
-
-AS_IF([test x$enable_everything = "xyes"], [
-       use_gpgme="yes"
-       use_pgp="yes"
-       use_smime="yes"
-       use_notmuch="yes"
-       use_lua="yes"
-       hcache_tokyocabinet="yes"
-       hcache_kyotocabinet="yes"
-       hcache_bdb="yes"
-       hcache_gdbm="yes"
-       hcache_qdbm="yes"
-       hcache_lmdb="yes"
-], [
-       use_gpgme="no"
-       use_pgp="no"
-       use_smime="no"
-       use_notmuch="no"
-       use_lua="no"
-])
-
-dnl : A note about the organization of this file
-dnl : =========================================================================
-dnl : All features and options must be defined below the line marked as their
-dnl : beginning. However only the configure option definitions should be there.
-dnl : These definitions should do nothing more than set a variable indicating
-dnl : whether the feature / option is enabled or disabled. All checks for
-dnl : libraries and other changes should be made *AFTER* the
-dnl : --enable-everything option is defined. There will be a line stating it is
-dnl : safe to start running checks after it. Do *NOT* violate this rule, or you
-dnl : risk incurring the wrath of Khan.
-
-dnl : Also, please remember to use the following convention:
-dnl : When a feature defaults to enabled, define both the cases in
-dnl : AC_ARG_ENABLE. However, when a feature defaults to disabled, do *NOT*
-dnl : write the `action-if-not-given` case. Explicitly disabling it has no
-dnl : benefits, but will cause the --enable-everything options to not work
-
-dnl == All Mutt Features and Options must be "defined" below this line ==
-
-AC_ARG_ENABLE(gpgme,
-       AS_HELP_STRING([--enable-gpgme], [Enable GPGME support]),
-       [use_gpgme=$enableval])
-
-AC_ARG_ENABLE(pgp,
-       AS_HELP_STRING([--disable-pgp], [Disable PGP support]),
-       [use_pgp=$enableval], [use_pgp=yes])
-
-AC_ARG_ENABLE(smime,
-       AS_HELP_STRING([--disable-smime], [Disable SMIME support]),
-       [use_smime=$enableval], [use_smime=yes])
-
-AC_ARG_ENABLE(lua,
-       AC_HELP_STRING([--enable-lua], [Enable lua scripting support]),
-       [use_lua=$enableval])
-
-AC_ARG_ENABLE(notmuch,
-       AC_HELP_STRING([--enable-notmuch], [Enable NOTMUCH support]),
-       [use_notmuch=$enableval])
-
-AC_ARG_WITH(mixmaster,
-       AS_HELP_STRING([--with-mixmaster@<:@=PATH@:>@], [Include Mixmaster support]),
-       [with_mixmaster=$withval], [with_mixmaster=no])
-
-AC_ARG_WITH(slang,
-       AS_HELP_STRING([--with-slang@<:@=DIR@:>@],[Use S-Lang instead of ncurses]),
-       [with_slang=$withval], [with_slang=no])
-
-AC_ARG_WITH(curses,
-       AS_HELP_STRING([--with-curses=DIR],[Where ncurses is installed]),
-       [with_curses=$withval], [with_curses=no])
-
-AC_ARG_WITH(homespool,
-       AS_HELP_STRING([--with-homespool@<:@=FILE@:>@],[File in user home where new mail is spooled]),
-       [with_homespool=${withval}], [with_homespool=no])
-
-AC_ARG_WITH(mailpath,
-       AS_HELP_STRING([--with-mailpath=DIR],[Directory where spool mailboxes are located]),
-       [with_mailpath=$withval], [with_mailpath=/var/mail])
-
-AC_ARG_WITH(docdir,
-       AS_HELP_STRING([--with-docdir=PATH],[Specify where to put the documentation]),
-       [mutt_cv_docdir=$withval],
-       [mutt_cv_docdir='${datarootdir}/doc/neomutt'])
-
-AC_ARG_WITH(domain,
-       AS_HELP_STRING([--with-domain=DOMAIN],[Specify your DNS domain name]),
-       [with_domain=$withval],[with_domain=no])
-
-dnl == End of Features and Options Definitions ==
-
-dnl == Declare all the checks and code for options / features below this line ==
-
-dnl --enable-gpgme
-AS_IF([test x$use_gpgme = "xyes"], [
-       ifdef([AM_PATH_GPGME], [
-               AM_PATH_GPGME(1.1.0, [
-                       AC_DEFINE(CRYPT_BACKEND_GPGME, 1, [GPGME support])
-                       AC_CHECK_FUNCS([gpgme_op_export_keys])
-                       build_ncrypt_gpgme="yes"
-               ], [gpgme_found=no])
-       ], [gpgme_found=no])
-])
-AS_IF([test x$use_gpgme = xyes && test x$gpgme_found = xno], [
-       AC_MSG_ERROR([GPGME not found])
-])
-
-dnl --enable-pgp
-AS_IF([test x$use_pgp != "xno"], [
-       AC_DEFINE(CRYPT_BACKEND_CLASSIC_PGP, 1, [Define if you want classic PGP Support.])
-       PGPAUX_TARGET="pgpring\$(EXEEXT) pgpewrap\$(EXEEXT)"
-       build_ncrypt_pgp="yes"
-])
-
-dnl --enable-smime
-AS_IF([test x$use_smime != "xno"], [
-       AC_DEFINE(CRYPT_BACKEND_CLASSIC_SMIME, 1, [Define if you want classic S/MIME support.])
-       SMIMEAUX_TARGET='$(srcdir)/contrib/smime_keys'
-       build_ncrypt_smime="yes"
-])
-
-dnl Ideally, these two defines should be dependent on :
-dnl     $build_ncrypt_gpgme, $build_ncrypt_pgp, $build_ncrypt_smime
-dnl but there are two many places in the code that still reference the crypto code.
-NCRYPT_LIBS="-Lncrypt -lncrypt"
-NCRYPT_DEPS="ncrypt/libncrypt.a"
-AC_SUBST(NCRYPT_LIBS)
-AC_SUBST(NCRYPT_DEPS)
-
-AM_CONDITIONAL(BUILD_NCRYPT_GPGME, test "x$build_ncrypt_gpgme" = "xyes")
-AM_CONDITIONAL(BUILD_NCRYPT_PGP,   test "x$build_ncrypt_pgp"   = "xyes")
-AM_CONDITIONAL(BUILD_NCRYPT_SMIME, test "x$build_ncrypt_smime" = "xyes")
-
-AC_DEFINE(USE_COMPRESSED, 1, [Define to enable compressed folders support.])
-AC_DEFINE(USE_IMAP, 1, [Define if you want support for the IMAP protocol.])
-AC_DEFINE(USE_NNTP, 1, [Define if you want support for the NNTP protocol.])
-AC_DEFINE(USE_POP, 1, [Define if you want support for the POP3 protocol.])
-AC_DEFINE(USE_SIDEBAR, 1, [Define if you want support for the sidebar.])
-AC_DEFINE(USE_SMTP, 1, [Include internal SMTP relay support])
-AC_DEFINE(USE_SOCKET,1,
-       [ Include code for socket support. Set automatically if you enable POP3 or IMAP ])
-AC_DEFINE(SUN_ATTACHMENT,1,[ Define to enable Sun mailtool attachments support. ])
-
-dnl --enable-lua
-AS_IF([test x$use_lua = "xyes"], [
-       AX_PROG_LUA([5.2],[],:,use_lua=no)
-       AX_LUA_HEADERS(:,use_lua=no)
-       AX_LUA_LIBS(:,use_lua=no)
-])
-
-AS_IF([test x$use_lua = "xyes"], [
-       AC_DEFINE(USE_LUA, 1, [Define if you want support for LUA.])
-       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_lua.o"
-       CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
-       LIBS="$LIBS $LUA_LIB"
-])
-
-dnl --with-mixmaster
-AS_IF([test "$with_mixmaster" != "no"], [
-       AS_IF([test -x "$with_mixmaster"], [MIXMASTER="$with_mixmaster"], [MIXMASTER="mixmaster"])
-       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
-       AC_DEFINE_UNQUOTED(MIXMASTER, "$MIXMASTER", [Where to find mixmaster on your system.])
-])
-
-AC_SUBST(PGPAUX_TARGET)
-AC_SUBST(SMIMEAUX_TARGET)
-
-AC_PATH_PROG(ISPELL, ispell, no)
-if test $ISPELL != no; then
-       AC_DEFINE_UNQUOTED(ISPELL,"$ISPELL",[Where to find ispell on your system.])
-fi
-
-dnl --with-slang
-if test $with_slang != no; then
-       withval=$with_slang
-       AC_CACHE_CHECK([if this is a BSD system], mutt_cv_bsdish,
-               [AC_RUN_IFELSE([AC_LANG_SOURCE([[
-#include <sys/param.h>
-#include <stdlib.h>
-main ()
-{
-#ifdef BSD
-  exit (0);
-#else
-  exit (1);
-#endif
-}]])],[mutt_cv_bsdish=yes],[mutt_cv_bsdish=no],[mutt_cv_bsdish=no])])
-
-       AC_MSG_CHECKING(for S-Lang)
-       if test $withval = yes; then
-               if test -d $srcdir/../slang; then
-                       mutt_cv_slang=$srcdir/../slang/src
-                       CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
-                       LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
-               else
-                       if test -d $mutt_cv_prefix/include/slang; then
-                               CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
-                       elif test -d /usr/include/slang; then
-                               CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
-                       fi
-                       mutt_cv_slang=yes
-               fi
-       else
-               dnl -- Check to see if $withval is a source directory
-               if test -f $withval/src/slang.h; then
-                       mutt_cv_slang=$withval/src
-                       CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
-                       LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
-               else
-                       dnl -- Must be installed somewhere
-                       mutt_cv_slang=$withval
-                       if test -d $withval/include/slang; then
-                               CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
-                       elif test -d $withval/include; then
-                               CPPFLAGS="$CPPFLAGS -I${withval}/include"
-                       fi
-                       LDFLAGS="$LDFLAGS -L${withval}/lib"
-               fi
-       fi
-       AC_MSG_RESULT($mutt_cv_slang)
-       if test $mutt_cv_bsdish = yes; then
-               AC_CHECK_LIB(termlib, main)
-       fi
-       AC_DEFINE(USE_SLANG_CURSES,1,
-               [ Define if you compile with SLang instead of curses/ncurses. ])
-       AC_DEFINE(HAVE_COLOR,1,[ Define if your curses library supports color. ])
-       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
-
-       dnl --- now that we've found it, check the link
-
-       AC_CHECK_LIB(slang, SLtt_get_terminfo,
-               [LIBS="$LIBS -lslang -lm"],
-               [AC_MSG_ERROR(unable to compile.  check config.log)], -lm)
-else
-dnl --- ncurses
-       dnl Please note that --with-slang=no --with-curses=no will result in
-       dnl configure trying to locate curses at /no/include first. The mutual
-       dnl exclusion of slang and curses and the requirement that one (and only
-       dnl one) is chosen could be improved.
-       if test x$with_curses != xyes -a x$with_curses != xno; then
-               mutt_cv_curses=$withval
-       fi
-       if test x$mutt_cv_curses != x/usr -a x$mutt_cv_curses != x; then
-               LDFLAGS="$LDFLAGS -L${mutt_cv_curses}/lib"
-               CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
-       fi
-       mutt_cv_curses=/usr
-       AC_CHECK_FUNC(initscr,,[
-               cf_ncurses=""
-               for lib in ncursesw ncurses curses
-               do
-                       AC_CHECK_LIB($lib, waddnwstr, [cf_ncurses="$lib"; break])
-               done
-               if test -z $cf_ncurses; then
-                       AC_MSG_ERROR([Unable to find ncursesw library])
-               fi
-               AC_CHECK_LIB($cf_ncurses, initscr,[
-                       LIBS="$LIBS -l$cf_ncurses"
-                       AC_CHECK_LIB($cf_ncurses, tgetent, [:], [
-                               AC_CHECK_LIB(tinfo, tgetent, [LIBS="$LIBS -ltinfo"])
-                       ])
-
-                       AC_CHECK_HEADERS(ncursesw/ncurses.h,
-                               [cf_cv_ncurses_header="ncursesw/ncurses.h"],
-                               [AC_CHECK_HEADERS(ncurses/ncurses.h,
-                                       [cf_cv_ncurses_header="ncurses/ncurses.h"],
-                                       [AC_CHECK_HEADERS(ncurses.h,
-                                               [cf_cv_ncurses_header="ncurses.h"],
-                                               [AC_CHECK_HEADERS(curses.h,
-                                                       [cf_cv_ncurses_header="curses.h"],
-                                                       [AC_MSG_ERROR([Unable to find ncurses headers])]
-                                               ])
-                                       ])
-                               ])
-                       )
-               ],)
-       ])
-
-       CF_CHECK_FUNCDECLS([#include <${cf_cv_ncurses_header-curses.h}>],
-               [start_color typeahead bkgdset curs_set meta use_default_colors resizeterm])
-       if test "$ac_cv_func_decl_start_color" = yes; then
-               AC_DEFINE(HAVE_COLOR,1,[ Define if your curses library supports color. ])
-       fi
-       if test "$ac_cv_func_decl_resizeterm" = yes; then
-               MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
-       fi
-       AC_CHECK_FUNCS([use_extended_names])
-       CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
-fi
-
-AC_HEADER_STDC
-
-AC_CHECK_HEADERS(sys/ioctl.h ioctl.h sysexits.h)
-AC_CHECK_HEADERS(sys/syscall.h)
-
-AC_CHECK_FUNCS(fgets_unlocked fgetc_unlocked)
-AC_CHECK_FUNCS(strsep mkdtemp)
-
-AC_MSG_CHECKING(for sig_atomic_t in signal.h)
-AC_EGREP_HEADER(volatile.*sig_atomic_t,signal.h,
-       [
-               AC_MSG_RESULT([yes, volatile])
-               AC_DEFINE(SIG_ATOMIC_VOLATILE_T, sig_atomic_t)
-       ], [
-               AC_MSG_RESULT([yes, non volatile])
-               AC_DEFINE(SIG_ATOMIC_VOLATILE_T, [volatile sig_atomic_t])
-       ])
-
-AC_CHECK_DECLS([sys_siglist],[],[],[#include <signal.h>
-/* NetBSD declares sys_siglist in unistd.h.  */
-# include <unistd.h>
-])
-
-AC_REPLACE_FUNCS([wcscasecmp])
-
-dnl Set the atime of files
-AC_CHECK_FUNCS(futimens)
-
-if test $with_homespool != no; 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 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])
-else
-       AC_DEFINE_UNQUOTED(MAILPATH,"$with_mailpath",[ Where new mail is spooled. ])
-fi
-
-dnl autoconf <2.60 compatibility
-if test -z "$datarootdir"; then
-       datarootdir='${prefix}/share'
-fi
-AC_SUBST([datarootdir])
-
-AC_MSG_CHECKING(where to put the documentation)
-AC_MSG_RESULT($mutt_cv_docdir)
-if test -z "$docdir" -o -n "$with_docdir"; then
-       docdir=$mutt_cv_docdir
-fi
-AC_SUBST(docdir)
-
-if test $with_domain != yes -a $with_domain != no; then
-       AC_DEFINE_UNQUOTED(DOMAIN,"$withval",[Define your domain name.])
-fi
-
-dnl -- socket dependencies --
-
-dnl getaddrinfo/getaddrinfo_a is used by getdomain.c, and requires libnsl and
-dnl libsocket on some platforms, and libanl
-AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
-AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
-AC_CHECK_FUNCS(getaddrinfo)
-AC_SEARCH_LIBS([getaddrinfo_a], [anl], [AC_DEFINE(HAVE_GETADDRINFO_A, 1, [Define to 1 if you have the `getaddrinfo_a' function.])])
-
-dnl -- end socket dependencies --
-
-dnl -- imap dependencies --
-
-AC_ARG_WITH(gss, AS_HELP_STRING([--with-gss@<:@=PFX@:>@],[Compile in GSSAPI authentication for IMAP]),
-       gss_prefix="$withval", gss_prefix="no")
-if test "$gss_prefix" != "no"; 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" || test "$GSSAPI_IMPL" = "Solaris"; then
-               AC_DEFINE(HAVE_HEIMDAL,1,[ Define if your GSSAPI implementation is Heimdal ])
-       fi
-       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
-       LIBS="$LIBS $GSSAPI_LIBS"
-       AC_DEFINE(USE_GSS,1,[ Define if you have GSSAPI libraries available ])
-       need_gss="yes"
-fi
-AM_CONDITIONAL(USE_GSS, test x$need_gss = xyes)
-
-dnl -- end imap dependencies --
-
-AC_ARG_WITH(ssl, AS_HELP_STRING([--with-ssl@<:@=PFX@:>@],[Enable TLS support using OpenSSL]),
-[      if test "$with_ssl" != "no"; then
-               if test "$with_ssl" != "yes"; then
-                       LDFLAGS="$LDFLAGS -L$withval/lib"
-                       CPPFLAGS="$CPPFLAGS -I$withval/include"
-               fi
-               saved_LIBS="$LIBS"
-
-               crypto_libs=""
-               AC_CHECK_LIB(z, deflate, [crypto_libs=-lz])
-               AC_CHECK_LIB(crypto, X509_STORE_CTX_new,
-                       [crypto_libs="-lcrypto $crypto_libs"],
-                       AC_MSG_ERROR([Unable to find SSL library]), [$crypto_libs])
-               AC_CHECK_LIB(ssl, SSL_new,,
-                       AC_MSG_ERROR([Unable to find SSL library]), [$crypto_libs])
-
-               LIBS="$saved_LIBS -lssl $crypto_libs"
-               AC_CHECK_FUNCS(RAND_status RAND_egd)
-               AC_CHECK_DECLS([SSL_set_mode, SSL_MODE_AUTO_RETRY],,
-                       AC_MSG_ERROR([Unable to find decent SSL header]), [[#include <openssl/ssl.h>]])
-
-               AC_CHECK_DECL([X509_V_FLAG_PARTIAL_CHAIN],
-                       AC_DEFINE(HAVE_SSL_PARTIAL_CHAIN,1,[ Define if OpenSSL supports partial chains. ]),,
-                       [[#include <openssl/x509_vfy.h>]])
-
-               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. ])
-               need_ssl=yes
-       fi
-])
-AM_CONDITIONAL(USE_SSL_OPENSSL, test x$need_ssl = xyes)
-
-AC_ARG_WITH([gnutls], AS_HELP_STRING([--with-gnutls@<:@=PFX@:>@],[enable TLS support using gnutls]),
-       [gnutls_prefix="$withval"], [gnutls_prefix="no"])
-if test "$gnutls_prefix" != "no" && test x"$need_ssl" != xyes; then
-       if test "$gnutls_prefix" != "yes"; then
-               LDFLAGS="$LDFLAGS -L$gnutls_prefix/lib"
-               CPPFLAGS="$CPPFLAGS -I$gnutls_prefix/include"
-       fi
-
-       AC_CHECK_LIB(gnutls, gnutls_check_version,
-               [dnl GNUTLS found
-               AC_CHECK_DECLS([GNUTLS_VERIFY_DISABLE_TIME_CHECKS], [], [],
-                       [[#include <gnutls/x509.h>]])
-
-               LIBS="$LIBS -lgnutls"
-               AC_CHECK_FUNCS(gnutls_priority_set_direct)
-               AC_CHECK_TYPES([gnutls_certificate_credentials_t,
-                       gnutls_certificate_status_t,
-                       gnutls_datum_t,
-                       gnutls_digest_algorithm_t,
-                       gnutls_session_t,
-                       gnutls_transport_ptr_t,
-                       gnutls_x509_crt_t], [], [], [[#include <gnutls/gnutls.h>]])
-
-               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. ])
-
-               need_tls=yes],
-               [AC_MSG_ERROR([could not find libgnutls])])
-fi
-AM_CONDITIONAL(USE_SSL_GNUTLS, test x$need_tls = xyes)
-
-AC_ARG_WITH(sasl, AS_HELP_STRING([--with-sasl@<:@=PFX@:>@],[Use SASL network security library]),
-       [
-       if test "$with_sasl" != "no"; then
-               if test "$with_sasl" != "yes"; then
-                       CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
-                       LDFLAGS="$LDFLAGS -L$with_sasl/lib"
-               fi
-
-               # OpenSolaris provides a SASL2 interface in libsasl
-               sasl_libs="sasl2 sasl"
-               AC_SEARCH_LIBS(sasl_encode64, [$sasl_libs],,
-                       AC_MSG_ERROR([could not find sasl lib]),)
-
-               AC_DEFINE(USE_SASL,1,
-                       [ Define if want to use the SASL library for POP/IMAP authentication. ])
-               need_sasl=yes
-       fi
-       ])
-AM_CONDITIONAL(USE_SASL, test x$need_sasl = xyes)
-
-dnl -- end socket --
-
-AC_ARG_ENABLE(flock, AS_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=yes
-AC_ARG_ENABLE(fcntl, AS_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. ])
-fi
-
-AC_ARG_ENABLE(locales-fix, AS_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])
-
-dnl -- start cache --
-hcache_db_used=
-AC_ARG_WITH(gdbm,
-       AS_HELP_STRING(
-               [--with-gdbm@<:@=DIR@:>@],
-               [Use gdbm for the header cache]),
-               [hcache_gdbm=$withval])
-AC_ARG_WITH(tokyocabinet,
-       AS_HELP_STRING(
-               [--with-tokyocabinet@<:@=DIR@:>@],
-               [Use tokyocabinet for the header cache]),
-               [hcache_tokyocabinet=$withval])
-AC_ARG_WITH(kyotocabinet,
-       AS_HELP_STRING(
-               [--with-kyotocabinet@<:@=DIR@:>@],
-               [Use kyotocabinet for the header cache]),
-               [hcache_kyotocabinet=$withval])
-AC_ARG_WITH(qdbm,
-       AS_HELP_STRING(
-               [--with-qdbm@<:@=DIR@:>@],
-               [Use qdbm for the header cache]),
-               [hcache_qdbm=$withval])
-AC_ARG_WITH(bdb,
-       AS_HELP_STRING(
-               [--with-bdb@<:@=DIR@:>@],
-               [Use BerkeleyDB for the header cache]),
-               [hcache_bdb=$withval])
-AC_ARG_WITH(lmdb,
-       AS_HELP_STRING(
-               [--with-lmdb@<:@=DIR@:>@],
-               [Use LMDB for the header cache]),
-               [hcache_lmdb=$withval])
-
-dnl -- Tokyo Cabinet --
-if test -n "$hcache_tokyocabinet" && test "$hcache_tokyocabinet" != "no"; then
-       OLDCPPFLAGS="$CPPFLAGS"
-       OLDLDFLAGS="$LDFLAGS"
-       if test "$hcache_tokyocabinet" != "yes"; then
-               CPPFLAGS="$CPPFLAGS -I$hcache_tokyocabinet/include"
-               LDFLAGS="$LDFLAGS -L$hcache_tokyocabinet/lib"
-       fi
-
-       AC_CHECK_HEADER(tcbdb.h,
-       AC_CHECK_LIB(tokyocabinet, tcbdbopen,
-               [
-                       HCACHE_LIBS="$HCACHE_LIBS -ltokyocabinet"
-                       AC_DEFINE(HAVE_TC, 1, [Tokyo Cabinet Support])
-                       hcache_db_used="tokyocabinet $hcache_db_used"
-                       build_hc_tc="yes"
-               ],[
-                       AC_MSG_ERROR(Unable to find TokyoCabinet)
-               ]),     AC_MSG_ERROR(Unable to find TokyoCabinet))
-fi
-
-dnl -- Kyoto Cabinet --
-if test -n "$hcache_kyotocabinet" && test "$hcache_kyotocabinet" != "no"; then
-       OLDCPPFLAGS="$CPPFLAGS"
-       OLDLDFLAGS="$LDFLAGS"
-       if test "$hcache_kyotocabinet" != "yes"; then
-               CPPFLAGS="$CPPFLAGS -I$hcache_kyotocabinet/include"
-               LDFLAGS="$LDFLAGS -L$hcache_kyotocabinet/lib"
-       fi
-
-       AC_CHECK_HEADER(kclangc.h,
-       AC_CHECK_LIB(kyotocabinet, kcdbopen,
-               [
-                       HCACHE_LIBS="$HCACHE_LIBS -lkyotocabinet"
-                       AC_DEFINE(HAVE_KC, 1, [Kyoto Cabinet Support])
-                       hcache_db_used="kyotocabinet $hcache_db_used"
-                       build_hc_kc="yes"
-               ],[
-                       AC_MSG_ERROR(Unable to find KyotoCabinet)
-               ]),     AC_MSG_ERROR(Unable to find KyotoCabinet))
-fi
-
-dnl -- GDBM --
-dnl -- Make sure the GDBM block comes before the QDBM one. QDBM provides
-dnl -- the GDBM symbols in a compatibility layer (google for gdbm hovel).
-dnl -- By doing this, we make sure the symbols are resolved in GDBM's
-dnl -- library when both GDBM and QDBM are linked.
-if test -n "$hcache_gdbm" && test "$hcache_gdbm" != "no"; then
-       OLDCPPFLAGS="$CPPFLAGS"
-       OLDLDFLAGS="$LDFLAGS"
-       if test "$hcache_gdbm" != "yes"; then
-               CPPFLAGS="$CPPFLAGS -I$hcache_gdbm/include"
-               LDFLAGS="$LDFLAGS -L$hcache_gdbm/lib"
-       fi
-
-       AC_CHECK_HEADERS(gdbm.h,
-       AC_CHECK_LIB(gdbm, gdbm_open,
-               [
-                       HCACHE_LIBS="$HCACHE_LIBS -lgdbm"
-                       AC_DEFINE(HAVE_GDBM, 1, [GDBM Support])
-                       hcache_db_used="gdbm $hcache_db_used"
-                       build_hc_gdbm="yes"
-               ],[
-                       AC_MSG_ERROR(Unable to find GDBM)
-               ]),     AC_MSG_ERROR(Unable to find GDBM))
-fi
-
-dnl -- QDBM --
-if test -n "$hcache_qdbm" && test "$hcache_qdbm" != "no"; then
-       OLDCPPFLAGS="$CPPFLAGS"
-       OLDLDFLAGS="$LDFLAGS"
-       if test "$hcache_qdbm" != "yes"; then
-               if test -d $hcache_qdbm/include/qdbm; then
-                       CPPFLAGS="$CPPFLAGS -I$hcache_qdbm/include/qdbm"
-               else
-                       CPPFLAGS="$CPPFLAGS -I$hcache_qdbm/include"
-               fi
-               LDFLAGS="$LDFLAGS -L$hcache_qdbm/lib"
-       else
-               if test -d /usr/include/qdbm; then
-                       CPPFLAGS="$CPPFLAGS -I/usr/include/qdbm"
-               fi
-       fi
-
-       AC_CHECK_HEADERS(villa.h,
-       AC_CHECK_LIB(qdbm, vlopen,
-               [
-                       HCACHE_LIBS="$HCACHE_LIBS -lqdbm"
-                       AC_DEFINE(HAVE_QDBM, 1, [QDBM Support])
-                       hcache_db_used="qdbm $hcache_db_used"
-                       build_hc_qdbm="yes"
-               ],[
-                       AC_MSG_ERROR(Unable to find QDBM)
-               ]),     AC_MSG_ERROR(Unable to find QDBM))
-fi
-
-dnl -- BDB --
-ac_bdb_prefix="$mutt_cv_prefix /opt /usr/local /usr"
-if test -n "$hcache_bdb" && test "$hcache_bdb" != "no"; then
-       OLDCPPFLAGS="$CPPFLAGS"
-       OLDLDFLAGS="$LDFLAGS"
-       if test "$hcache_bdb" != "yes"; then
-               ac_bdb_prefix="$hcache_bdb $mutt_cv_prefix"
-       fi
-       BDB_VERSIONS="$BDB_VERSIONS db-5.3 db53 db5.3 db-5 db5"
-       BDB_VERSIONS="$BDB_VERSIONS db-6.2 db62 db6.2 db-6 db6"
-       BDB_VERSIONS="$BDB_VERSIONS db-4.8 db48 db4.8 db-4 db4"
-       for d in $ac_bdb_prefix; do
-               for v in / $BDB_VERSIONS; do
-                       AC_MSG_CHECKING([for BerkeleyDB in $d/include/$v])
-                       if test -r "$d/include/$v/db.h"; then
-                               BDB_INCLUDE_DIR="$d/include/$v"
-                               BDB_INCLUDE_FILE="$d/include/$v/db.h"
-                               AC_COMPUTE_INT(BDB_VERSION_MAJOR, DB_VERSION_MAJOR,
-                                       [#include "$BDB_INCLUDE_FILE"], continue)
-                               AC_COMPUTE_INT(BDB_VERSION_MINOR, DB_VERSION_MINOR,
-                                       [#include "$BDB_INCLUDE_FILE"], continue)
-                               AC_MSG_RESULT(yes)
-                               BDB_LIB_DIR="$d/lib/$v"
-                               BDB_LIB_NAME="db-$BDB_VERSION_MAJOR.$BDB_VERSION_MINOR"
-                               CPPFLAGS="$OLDCPPFLAGS -I$BDB_INCLUDE_DIR"
-                               LDFLAGS="$OLDLDFLAGS -L$BDB_LIB_DIR"
-                               AC_CHECK_LIB($BDB_LIB_NAME, db_env_create,
-                                       [
-                                               HCACHE_LIBS="$HCACHE_LIBS -l$BDB_LIB_NAME"
-                                               AC_DEFINE(HAVE_BDB, 1, [Berkeley DB Support])
-                                               hcache_db_used="bdb $hcache_db_used"
-                                               build_hc_bdb="yes"
-                                               BDB_FOUND=yes
-                                               break
-                               ],[
-                                       CPPFLAGS="$OLDCPPFLAGS"
-                                       LDFLAGS="$OLDLDFLAGS"
-                               ])
-                       else
-                               AC_MSG_RESULT(no)
-                       fi
-               done
-               test "$BDB_FOUND" = "yes" && break
-       done
-       if test "$BDB_FOUND" != "yes"; then
-               AC_MSG_ERROR(Unable to find BDB)
-       fi
-fi
-
-dnl -- LMDB --
-if test -n "$hcache_lmdb" && test "$hcache_lmdb" != "no"; then
-       OLDCPPFLAGS="$CPPFLAGS"
-       OLDLDFLAGS="$LDFLAGS"
-       if test "$hcache_lmdb" != "yes"; then
-               CPPFLAGS="$CPPFLAGS -I$hcache_lmdb/include"
-               LDFLAGS="$LDFLAGS -L$hcache_lmdb/lib"
-       fi
-       AC_CHECK_HEADERS(lmdb.h,
-       AC_CHECK_LIB(lmdb, mdb_env_create,
-               [
-                       AC_DEFINE(HAVE_LMDB, 1, [LMDB Support])
-                       HCACHE_LIBS="$HCACHE_LIBS -llmdb"
-                       hcache_db_used="lmdb $hcache_db_used"
-                       build_hc_lmdb="yes"
-               ],[
-                       AC_MSG_ERROR(Unable to find LMDB)
-               ]),     AC_MSG_ERROR(Unable to find LMDB))
-fi
-
-AM_CONDITIONAL(BUILD_HCACHE, test -n "$hcache_db_used")
-if test -n "$hcache_db_used"; then
-       AC_DEFINE(USE_HCACHE, 1, [Enable header caching])
-       HCACHE_LIBS="-Lhcache -lhcache $HCACHE_LIBS"
-       HCACHE_DEPS="hcache/libhcache.a"
-else
-       # For outputting in the summary
-       hcache_db_used="no"
-fi
-
-AM_CONDITIONAL(BUILD_HC_BDB,  test "x$build_hc_bdb"  = "xyes")
-AM_CONDITIONAL(BUILD_HC_GDBM, test "x$build_hc_gdbm" = "xyes")
-AM_CONDITIONAL(BUILD_HC_KC,   test "x$build_hc_kc"   = "xyes")
-AM_CONDITIONAL(BUILD_HC_LMDB, test "x$build_hc_lmdb" = "xyes")
-AM_CONDITIONAL(BUILD_HC_QDBM, test "x$build_hc_qdbm" = "xyes")
-AM_CONDITIONAL(BUILD_HC_TC,   test "x$build_hc_tc"   = "xyes")
-dnl -- end cache --
-
-AC_SUBST(MUTT_LIB_OBJECTS)
-AC_SUBST(HCACHE_LIBS)
-AC_SUBST(HCACHE_DEPS)
-
-dnl -- iconv/gettext --
-
-AM_GNU_GETTEXT_VERSION([0.17])
-AM_GNU_GETTEXT([external])
-
-AM_ICONV
-if test "$am_cv_func_iconv" != yes; then
-       AC_MSG_ERROR([An iconv implementation is required])
-fi
-
-AC_ARG_WITH(idn, AS_HELP_STRING([--with-idn=@<:@PFX@:>@],[Use GNU libidn for internationalized 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
-               ],
-               [with_idn=auto])
-
-if test "x$with_idn" != "xno"; then
-       dnl Solaris 11 has /usr/include/idn
-       have_stringprep_h=no
-       AC_CHECK_HEADERS([stringprep.h idn/stringprep.h], [
-               have_stringprep_h=yes
-               break])
-       have_idna_h=no
-       AC_CHECK_HEADERS([idna.h idn/idna.h], [
-               have_idna_h=yes
-               break])
-
-       AC_SEARCH_LIBS([stringprep_check_version], [idn], [
-               AC_DEFINE([HAVE_LIBIDN], 1, [Define to 1 if you have the GNU idn library])
-
-               LIBS="$LIBS $LIBICONV"
-               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)
-       ])
-
-       if test "$with_idn" != auto; then
-               if test $have_stringprep_h = no || test $have_idna_h = no || test $ac_cv_search_stringprep_check_version = no; then
-                       AC_MSG_ERROR([IDN was requested, but libidn was not usable on this system])
-               fi
-       fi
-fi
-
-dnl --enable-notmuch
-AS_IF([test x$use_notmuch = "xyes"], [
-       AC_CHECK_LIB(notmuch, notmuch_database_open, [:],
-               AC_MSG_ERROR([Unable to find Notmuch library]))
-       AC_DEFINE(USE_NOTMUCH,1,[ Define if you want support for the notmuch. ])
-       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_notmuch.o"
-       LIBS="$LIBS -lnotmuch"
-
-       AC_MSG_CHECKING([for notmuch api version 3])
-       AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-               [[#include <notmuch.h>]],
-               [[notmuch_database_open("/path", NOTMUCH_DATABASE_MODE_READ_ONLY, (notmuch_database_t**)NULL);]]
-       )], [
-               notmuch_api_3=yes
-               AC_DEFINE([NOTMUCH_API_3], 1, [Define to 1 if you have the notmuch api version 3.])
-       ], [
-               notmuch_api_3=no
-       ])
-       AC_MSG_RESULT([$notmuch_api_3])
-])
-
-dnl -- locales --
-AC_CACHE_CHECK([for wchar_t functions], mutt_cv_wc_funcs,
-       mutt_cv_wc_funcs=no
-       AC_LINK_IFELSE([AC_LANG_PROGRAM([[
-#define _XOPEN_SOURCE 600
-#include <stddef.h>
-#include <stdlib.h>
-#include <wchar.h>
-#include <wctype.h>]],
-[[
-mbrtowc(0, 0, 0, 0);
-wctomb(0, 0);
-wcwidth(0);
-if (iswprint(0)){}
-if (iswspace(0)){}
-if (towlower(0)){}
-if (towupper(0)){}
-if (iswalnum(0)){}
-]])],[mutt_cv_wc_funcs=yes],[]))
-
-if test $mutt_cv_wc_funcs != yes; then
-       AC_MSG_ERROR([wchar_t functions not found])
-fi
-
-# Only enable fmemopen if both fmemopen() and open_memstream()
-# AND --enable-fmemopen is given.
-have_fmemopen=yes
-AC_CHECK_FUNCS(fmemopen open_memstream, [], [have_fmemopen=no])
-
-AC_ARG_ENABLE(fmemopen, AS_HELP_STRING([--enable-fmemopen],[Use fmemopen]),
-       [use_fmemopen=$enableval], [use_fmemopen=no]
-)
-
-AS_IF([test $have_fmemopen = "yes" && test $use_fmemopen = "yes"],
-       # Temporarily disable fmemopen, due to a bug
-       [AC_DEFINE(USE_FMEMOPEN, 0, [Use fmemopen])],
-       [use_fmemopen=no]
-)
-
-AC_ARG_ENABLE(doc, AS_HELP_STRING([--disable-doc],[Do not build the documentation]),
-[      if test x$enableval = xno; then
-               do_build_doc=no
-       fi
-])
-AM_CONDITIONAL(BUILD_DOC, test x$do_build_doc != xno)
-
-AC_ARG_ENABLE(po, AS_HELP_STRING([--disable-po],[Do not build the translation messages]),
-[      if test x$enableval = xno; then
-               do_build_po=no
-       fi
-])
-AM_CONDITIONAL(BUILD_PO, test x$do_build_po != xno)
-
-AC_ARG_ENABLE(full_doc,
-       AS_HELP_STRING([--disable-full-doc],[Omit disabled variables]),
-[      if test x$enableval = xno; then
-               full_doc=no
-       fi
-])
-if test x$full_doc != xno; then
-       AC_DEFINE(MAKEDOC_FULL,1, [Define if you want complete documentation.])
-fi
-
-AC_CONFIG_FILES(Makefile contrib/Makefile doc/Makefile imap/Makefile
-       m4/Makefile po/Makefile.in hcache/Makefile ncrypt/Makefile mutt/Makefile conn/Makefile)
-AC_OUTPUT
-
-AC_MSG_NOTICE([Summary of build options:
-
-  Version:           ${PACKAGE_VERSION}
-  Host OS:           ${host_os}
-  Install prefix:    ${prefix}
-  Compiler:          ${CC}
-  CFlags:            ${CFLAGS} ${CPPFLAGS}
-  LDFlags:           ${LDFLAGS}
-  Libs:              ${LIBS}
-  Header cache libs: ${HCACHE_LIBS}
-
-  GPGME:             $use_gpgme
-  PGP:               $use_pgp
-  SMIME:             $use_smime
-  Notmuch:           $use_notmuch
-  Header Cache(s):   $hcache_db_used
-  Lua:               $use_lua
-])
diff --git a/conn/Makefile.am b/conn/Makefile.am
deleted file mode 100644 (file)
index d031b5c..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-## Process this file with automake to produce Makefile.in
-include $(top_srcdir)/flymake.am
-
-AUTOMAKE_OPTIONS = 1.6 foreign
-
-EXTRA_DIST = conn.h conn_globals.h account.h connection.h sasl.h sasl_plain.h socket.h ssl.h tunnel.h
-
-AM_CPPFLAGS = -I$(top_srcdir)
-
-noinst_LIBRARIES = libconn.a
-
-libconn_a_SOURCES = conn_globals.c getdomain.c sasl_plain.c socket.c tunnel.c
-
-if USE_SASL
-libconn_a_SOURCES += sasl.c
-endif
-if USE_SSL_OPENSSL
-libconn_a_SOURCES += ssl.c
-endif
-if USE_SSL_GNUTLS
-libconn_a_SOURCES += ssl_gnutls.c
-endif
-
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
deleted file mode 100644 (file)
index 0e3f6aa..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-subdir = contrib
-
-SAMPLES = colors.default colors.linux gpg.rc Mush.rc pgp2.rc pgp5.rc pgp6.rc \
-       Pine.rc sample.mailcap sample.neomuttrc sample.neomuttrc-tlr smime.rc \
-       smime_keys_test.pl Tin.rc
-
-EXTRA_DIST = $(SAMPLES) colorschemes hcache-bench \
-       keybase language.txt language50.txt logo lua \
-       patch.slang-1.2.2.keypad.1 smime_keys vim-keys
-
-CONTRIB_DIRS = colorschemes hcache-bench keybase logo lua vim-keys
-
-install-data-local:
-       $(INSTALL) -d -m 755 $(DESTDIR)$(docdir)/samples
-       for f in $(SAMPLES); do \
-               $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir)/samples; \
-       done
-       for d in $(CONTRIB_DIRS); do \
-               echo "Installing $$d"; \
-               $(INSTALL) -d -m 755 $(DESTDIR)$(docdir)/$$d; \
-               for f in $(srcdir)/$$d/*; do \
-                       echo "Installing $$f"; \
-                       $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir)/$$d; \
-               done \
-       done
-       chmod +x $(DESTDIR)$(docdir)/keybase/*.sh
-
-uninstall-local:
-       for f in $(SAMPLES); do \
-               rm -f $(DESTDIR)$(docdir)/samples/$$f; \
-       done
-       for d in $(CONTRIB_DIRS); do \
-               rm -fr $(DESTDIR)$(docdir)/$$d; \
-       done
-       -rmdir $(DESTDIR)$(docdir)/samples
-       -rmdir $(DESTDIR)$(docdir)
-
-distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644 (file)
index 3670446..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-## Process this file with automake to produce Makefile.in
-include $(top_srcdir)/flymake.am
-
-AUTOMAKE_OPTIONS = 1.6 foreign
-
-subdir = doc
-
-DEFS = -DSYSCONFDIR=\"$(sysconfdir)\" -DBINDIR=\"$(bindir)\"
-AM_CPPFLAGS = -I. -I.. -I$(includedir) -I$(top_srcdir)
-
-MAKEDOC_CPP = $(CPP) $(AM_CPPFLAGS) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C
-
-noinst_PROGRAMS = makedoc
-
-EXTRA_DIST = $(BUILT_DISTFILES) chunk.xsl gen-map-doc html.xsl makedoc.c \
-       makedoc_defs.h manual.xml.head manual.xml.tail mbox.5 mmdf.5 \
-       neomutt.css neomutt.man neomutt.xsl neomuttrc neomuttrc.head \
-       neomuttrc.man.head neomuttrc.man.tail PGP-Notes.txt \
-       smime-notes.txt pgpewrap.1 pgpring.1 smime_keys.1 mime.types
-
-CHUNKED_DOCFILES = advancedusage.html configuration.html gettingstarted.html \
-       intro.html mimesupport.html miscellany.html optionalfeatures.html \
-       reference.html security.html tuning.html
-
-HTML_DOCFILES = manual.html index.html $(CHUNKED_DOCFILES)
-
-BUILT_DISTFILES = manual.txt $(HTML_DOCFILES)
-
-srcdir_DOCFILES = PGP-Notes.txt smime-notes.txt
-
-topsrcdir_DOCFILES = ChangeLog.md CODE_OF_CONDUCT.md COPYRIGHT INSTALL \
-       LICENSE.md README.md README.SSL
-
-all: makedoc-all
-
-makedoc-all: $(CHUNKED_DOCFILES) index.html manual.html manual.txt neomutt.1 \
-       neomuttrc neomuttrc.man
-
-install-data-local: makedoc-all
-       $(MKDIR_P) $(DESTDIR)$(mandir)/man1
-       $(MKDIR_P) $(DESTDIR)$(mandir)/man5
-       $(MKDIR_P) $(DESTDIR)$(sysconfdir)
-       $(INSTALL) -m 644 neomutt.1 $(DESTDIR)$(mandir)/man1/neomutt.1
-       $(INSTALL) -m 644 neomuttrc.man $(DESTDIR)$(mandir)/man5/neomuttrc.5
-       $(INSTALL) -m 644 $(srcdir)/smime_keys.1 $(DESTDIR)$(mandir)/man1/smime_keys_$(PACKAGE).1
-       $(INSTALL) -m 644 $(srcdir)/pgpewrap.1 $(DESTDIR)$(mandir)/man1/pgpewrap_$(PACKAGE).1
-       $(INSTALL) -m 644 $(srcdir)/pgpring.1 $(DESTDIR)$(mandir)/man1/pgpring_$(PACKAGE).1
-       $(INSTALL) -m 644 $(srcdir)/mbox.5 $(DESTDIR)$(mandir)/man5/mbox_$(PACKAGE).5
-       $(INSTALL) -m 644 $(srcdir)/mmdf.5 $(DESTDIR)$(mandir)/man5/mmdf_$(PACKAGE).5
-       $(MKDIR_P) $(DESTDIR)$(docdir)
-       for f in $(topsrcdir_DOCFILES); do \
-               $(INSTALL) -m 644 $(top_srcdir)/$$f $(DESTDIR)$(docdir); \
-       done
-       for f in $(srcdir_DOCFILES); do \
-               $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir); \
-       done
-       -$(INSTALL) -m 644 manual.txt $(DESTDIR)$(docdir)
-       -for f in $(HTML_DOCFILES); do \
-               $(INSTALL) -m 644 $$f $(DESTDIR)$(docdir); \
-       done
-       $(INSTALL) -m 644 neomuttrc $(DESTDIR)$(sysconfdir)/neomuttrc
-       -$(INSTALL) -m 644 $(srcdir)/mime.types $(DESTDIR)$(docdir)/mime.types
-
-uninstall-local:
-       for f in neomutt.1 smime_keys_$(PACKAGE).1 pgpewrap_$(PACKAGE).1 pgpring_$(PACKAGE).1; do \
-               rm -f $(DESTDIR)$(mandir)/man1/$$f; \
-       done
-       for f in neomuttrc.5 mbox_$(PACKAGE).5 mmdf_$(PACKAGE).5; do \
-               rm -f $(DESTDIR)$(mandir)/man5/$$f; \
-       done
-       for f in $(srcdir_DOCFILES) $(topsrcdir_DOCFILES) $(HTML_DOCFILES); do \
-               rm -f $(DESTDIR)$(docdir)/$$f; \
-       done
-       rm -f $(DESTDIR)$(docdir)/manual.txt
-       rm -f $(DESTDIR)$(sysconfdir)/neomuttrc
-       rm -f $(DESTDIR)$(docdir)/mime.types
-
-check:
-manual.txt: manual.html
-       -LC_ALL=C w3m -dump -O UTF8 manual.html > $@ || \
-       LC_ALL=C lynx -dump -nolist -with_backspaces -display_charset=us-ascii manual.html > $@ || \
-       LC_ALL=C elinks -dump -no-numbering -no-references manual.html | sed -e 's,\\001, ,g' > $@
-
-neomuttrc: $(top_srcdir)/init.h makedoc$(EXEEXT) $(srcdir)/neomuttrc.head
-       sed -e 's,[@]docdir[@],$(docdir),' $(srcdir)/neomuttrc.head > neomuttrc
-       $(CPP) $(AM_CPPFLAGS) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C $(top_srcdir)/init.h | ./makedoc$(EXEEXT) -c >> neomuttrc
-
-manual.html: manual.xml $(srcdir)/html.xsl $(srcdir)/neomutt.xsl $(srcdir)/neomutt.css
-       -xsltproc --nonet -o $@ $(srcdir)/html.xsl manual.xml
-
-$(CHUNKED_DOCFILES): index.html
-
-index.html: $(srcdir)/chunk.xsl $(srcdir)/neomutt.xsl manual.xml $(srcdir)/neomutt.css
-       -xsltproc --nonet $(srcdir)/chunk.xsl manual.xml > /dev/null 2>&1
-
-validate: manual.xml
-       xmllint --noout --noblanks --postvalid $<
-
-spellcheck:
-       -aspell -d american --mode=sgml  --encoding=utf-8 -p $(srcdir)/neomutt.pwl check manual.xml.head
-       -aspell -d american --mode=nroff --encoding=utf-8 -p $(srcdir)/neomutt.pwl check neomuttrc.man.head
-       -aspell -d american --mode=ccpp  --encoding=utf-8 -p $(srcdir)/neomutt.pwl check $(top_srcdir)/init.h
-
-sortcheck: manual.xml
-       sed -n -e '1,/^<sect1 id="variables">/d' -e '1,/^<sect1 id="functions">/s/<sect2 id="\([^"]*\)">/\1/p' < manual.xml > vars.tmp.1
-       sort < vars.tmp.1 > vars.tmp.2
-       cmp -s vars.tmp.1 vars.tmp.2 || diff -u vars.tmp.1 vars.tmp.2 | less
-       rm -rf vars.tmp.1 vars.tmp.2
-
-clean-local:
-       rm -f *.html neomutt.1 neomuttrc.man
-
-DISTCLEANFILES = manual.txt manual.html manual.xml neomuttrc
-
-neomuttrc.man: makedoc$(EXEEXT) $(top_srcdir)/init.h neomuttrc.man.head neomuttrc.man.tail
-       $(MAKEDOC_CPP) $(top_srcdir)/init.h | \
-               ./makedoc$(EXEEXT) -m | \
-               cat $(srcdir)/neomuttrc.man.head - $(srcdir)/neomuttrc.man.tail > $@
-
-EDIT = sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
-       -e 's,@bindir\@,$(bindir),g' \
-       -e 's,@docdir\@,$(docdir),g'
-
-neomutt.1: $(srcdir)/neomutt.man
-       $(EDIT) $(srcdir)/neomutt.man > $@
-
-manual.xml: makedoc$(EXEEXT) $(top_srcdir)/init.h \
-       manual.xml.head $(top_srcdir)/functions.h manual.xml.tail \
-       $(srcdir)/gen-map-doc $(top_srcdir)/opcodes.h
-       ( sed -e "s/@VERSION\@/$(PACKAGE_VERSION)/" $(srcdir)/manual.xml.head && \
-               $(MAKEDOC_CPP) $(top_srcdir)/init.h | ./makedoc$(EXEEXT) -s && \
-               $(MAKEDOC_CPP) $(top_srcdir)/functions.h | perl $(srcdir)/gen-map-doc $(srcdir)/manual.xml.tail $(top_srcdir)/opcodes.h \
-       ) > $@
-
diff --git a/flymake.am b/flymake.am
deleted file mode 100644 (file)
index 62fbfd9..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-get_cs_flags = $(foreach target,$(subst .,_,$(subst -,_,$($(2)))),$($(target)_$(1)FLAGS))
-get_cs_all_flags = $(foreach type,$(2),$(call get_cs_flags,$(1),$(type)))
-get_cs_compile = $(if $(subst C,,$(1)),$($(1)COMPILE),$(COMPILE))
-get_cs_cmdline = $(call get_cs_compile,$(1)) $(call get_cs_all_flags,$(1),check_PROGRAMS bin_PROGRAMS lib_LTLIBRARIES) -fsyntax-only
-
-check-syntax:
-       s=$(suffix $(CHK_SOURCES));\
-       if   [ "$$s" = ".c"   ]; then \
-           $(call get_cs_cmdline,C) $(call get_cs_cmdline,CPP) $(CHK_SOURCES);\
-       else exit 1; fi
-
-.PHONY: check-syntax
diff --git a/hcache/Makefile.am b/hcache/Makefile.am
deleted file mode 100644 (file)
index 4de380b..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-## Process this file with automake to produce Makefile.in
-include $(top_srcdir)/flymake.am
-
-AUTOMAKE_OPTIONS = 1.6 foreign
-
-EXTRA_DIST = bdb.c gdbm.c hcache.c kc.c lmdb.c qdbm.c tc.c hcachever.sh
-
-AM_CPPFLAGS = -I$(top_srcdir)
-
-noinst_LIBRARIES = libhcache.a
-noinst_HEADERS = backend.h hcache.h
-
-libhcache_a_SOURCES =
-
-if BUILD_HCACHE
-HCVERSION = hcversion.h
-CLEANFILES = $(HCVERSION)
-libhcache_a_SOURCES += hcache.c
-endif
-if BUILD_HC_BDB
-libhcache_a_SOURCES += bdb.c
-endif
-if BUILD_HC_GDBM
-libhcache_a_SOURCES += gdbm.c
-endif
-if BUILD_HC_KC
-libhcache_a_SOURCES += kc.c
-endif
-if BUILD_HC_LMDB
-libhcache_a_SOURCES += lmdb.c
-endif
-if BUILD_HC_QDBM
-libhcache_a_SOURCES += qdbm.c
-endif
-if BUILD_HC_TC
-libhcache_a_SOURCES += tc.c
-endif
-
-LIBMUTT = -L../mutt -lmutt
-LIBMUTTDEPS = $(top_srcdir)/mutt/mutt.h ../mutt/libmutt.a
-
-BUILT_SOURCES = $(HCVERSION)
-
-$(top_srcdir)/keymap_defs.h:
-       +$(MAKE) -C $(top_srcdir) keymap_defs.h
-
-hcversion.h: $(top_srcdir)/mutt.h $(top_srcdir)/address.h $(top_srcdir)/mutt/list.h \
-               $(top_srcdir)/mutt/buffer.h $(top_srcdir)/parameter.h \
-               $(top_srcdir)/body.h $(top_srcdir)/envelope.h \
-               $(top_srcdir)/header.h $(srcdir)/hcachever.sh
-       ( echo '#include "config.h"'; echo '#include "mutt.h"'; \
-       echo '#include "address.h"'; echo '#include "mutt/list.h"'; \
-       echo '#include "mutt/buffer.h"'; echo '#include "parameter.h"'; \
-       echo '#include "body.h"'; echo '#include "envelope.h"'; \
-       echo '#include "header.h"'; \
-       ) | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) - | sh $(srcdir)/hcachever.sh hcversion.h
-
diff --git a/imap/Makefile.am b/imap/Makefile.am
deleted file mode 100644 (file)
index 410ca6b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-## Process this file with automake to produce Makefile.in
-include $(top_srcdir)/flymake.am
-
-AUTOMAKE_OPTIONS = 1.6 foreign
-
-EXTRA_DIST = README auth_anon.c auth_cram.c auth_gss.c auth_sasl.c
-
-AM_CPPFLAGS = -I$(top_srcdir)
-
-noinst_LIBRARIES = libimap.a
-noinst_HEADERS = auth.h imap_private.h message.h
-
-libimap_a_SOURCES = auth.c auth_plain.c auth_login.c browse.c command.c \
-       imap.c imap.h message.c utf7.c util.c
-
-if USE_GSS
-libimap_a_SOURCES += auth_gss.c
-endif
-
-if USE_SASL
-libimap_a_SOURCES += auth_sasl.c
-else
-libimap_a_SOURCES += auth_anon.c auth_cram.c
-endif
-
diff --git a/m4/Makefile.am b/m4/Makefile.am
deleted file mode 100644 (file)
index ee703ae..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-EXTRA_DIST = gettext.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 nls.m4 po.m4 README
-
-dist-hook:
-       for i in $(srcdir)/*.m4; do \
-               cp -f -p $$i $(distdir); \
-       done
diff --git a/m4/README b/m4/README
deleted file mode 100644 (file)
index ac32e28..0000000
--- a/m4/README
+++ /dev/null
@@ -1,4 +0,0 @@
-These files are used by a program called aclocal (part of the GNU automake
-package).  aclocal uses these files to create aclocal.m4 which is in turn
-used by autoconf to create the configure script at the the top level in
-this distribution.
diff --git a/m4/ax_lua.m4 b/m4/ax_lua.m4
deleted file mode 100644 (file)
index 9feb352..0000000
+++ /dev/null
@@ -1,664 +0,0 @@
-# ===========================================================================
-#          http://www.gnu.org/software/autoconf-archive/ax_lua.html
-# ===========================================================================
-#
-# SYNOPSIS
-#
-#   AX_PROG_LUA[([MINIMUM-VERSION], [TOO-BIG-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])]
-#   AX_LUA_HEADERS[([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])]
-#   AX_LUA_LIBS[([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])]
-#   AX_LUA_READLINE[([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])]
-#
-# DESCRIPTION
-#
-#   Detect a Lua interpreter, optionally specifying a minimum and maximum
-#   version number. Set up important Lua paths, such as the directories in
-#   which to install scripts and modules (shared libraries).
-#
-#   Also detect Lua headers and libraries. The Lua version contained in the
-#   header is checked to match the Lua interpreter version exactly. When
-#   searching for Lua libraries, the version number is used as a suffix.
-#   This is done with the goal of supporting multiple Lua installs (5.1,
-#   5.2, and 5.3 side-by-side).
-#
-#   A note on compatibility with previous versions: This file has been
-#   mostly rewritten for serial 18. Most developers should be able to use
-#   these macros without needing to modify configure.ac. Care has been taken
-#   to preserve each macro's behavior, but there are some differences:
-#
-#   1) AX_WITH_LUA is deprecated; it now expands to the exact same thing as
-#   AX_PROG_LUA with no arguments.
-#
-#   2) AX_LUA_HEADERS now checks that the version number defined in lua.h
-#   matches the interpreter version. AX_LUA_HEADERS_VERSION is therefore
-#   unnecessary, so it is deprecated and does not expand to anything.
-#
-#   3) The configure flag --with-lua-suffix no longer exists; the user
-#   should instead specify the LUA precious variable on the command line.
-#   See the AX_PROG_LUA description for details.
-#
-#   Please read the macro descriptions below for more information.
-#
-#   This file was inspired by Andrew Dalke's and James Henstridge's
-#   python.m4 and Tom Payne's, Matthieu Moy's, and Reuben Thomas's ax_lua.m4
-#   (serial 17). Basically, this file is a mash-up of those two files. I
-#   like to think it combines the best of the two!
-#
-#   AX_PROG_LUA: Search for the Lua interpreter, and set up important Lua
-#   paths. Adds precious variable LUA, which may contain the path of the Lua
-#   interpreter. If LUA is blank, the user's path is searched for an
-#   suitable interpreter.
-#
-#   If MINIMUM-VERSION is supplied, then only Lua interpreters with a
-#   version number greater or equal to MINIMUM-VERSION will be accepted. If
-#   TOO-BIG-VERSION is also supplied, then only Lua interpreters with a
-#   version number greater or equal to MINIMUM-VERSION and less than
-#   TOO-BIG-VERSION will be accepted.
-#
-#   The Lua version number, LUA_VERSION, is found from the interpreter, and
-#   substituted. LUA_PLATFORM is also found, but not currently supported (no
-#   standard representation).
-#
-#   Finally, the macro finds four paths:
-#
-#     luadir             Directory to install Lua scripts.
-#     pkgluadir          $luadir/$PACKAGE
-#     luaexecdir         Directory to install Lua modules.
-#     pkgluaexecdir      $luaexecdir/$PACKAGE
-#
-#   These paths are found based on $prefix, $exec_prefix, Lua's
-#   package.path, and package.cpath. The first path of package.path
-#   beginning with $prefix is selected as luadir. The first path of
-#   package.cpath beginning with $exec_prefix is used as luaexecdir. This
-#   should work on all reasonable Lua installations. If a path cannot be
-#   determined, a default path is used. Of course, the user can override
-#   these later when invoking make.
-#
-#     luadir             Default: $prefix/share/lua/$LUA_VERSION
-#     luaexecdir         Default: $exec_prefix/lib/lua/$LUA_VERSION
-#
-#   These directories can be used by Automake as install destinations. The
-#   variable name minus 'dir' needs to be used as a prefix to the
-#   appropriate Automake primary, e.g. lua_SCRIPS or luaexec_LIBRARIES.
-#
-#   If an acceptable Lua interpreter is found, then ACTION-IF-FOUND is
-#   performed, otherwise ACTION-IF-NOT-FOUND is preformed. If ACTION-IF-NOT-
-#   FOUND is blank, then it will default to printing an error. To prevent
-#   the default behavior, give ':' as an action.
-#
-#   AX_LUA_HEADERS: Search for Lua headers. Requires that AX_PROG_LUA be
-#   expanded before this macro. Adds precious variable LUA_INCLUDE, which
-#   may contain Lua specific include flags, e.g. -I/usr/include/lua5.1. If
-#   LUA_INCLUDE is blank, then this macro will attempt to find suitable
-#   flags.
-#
-#   LUA_INCLUDE can be used by Automake to compile Lua modules or
-#   executables with embedded interpreters. The *_CPPFLAGS variables should
-#   be used for this purpose, e.g. myprog_CPPFLAGS = $(LUA_INCLUDE).
-#
-#   This macro searches for the header lua.h (and others). The search is
-#   performed with a combination of CPPFLAGS, CPATH, etc, and LUA_INCLUDE.
-#   If the search is unsuccessful, then some common directories are tried.
-#   If the headers are then found, then LUA_INCLUDE is set accordingly.
-#
-#   The paths automatically searched are:
-#
-#     * /usr/include/luaX.Y
-#     * /usr/include/lua/X.Y
-#     * /usr/include/luaXY
-#     * /usr/local/include/luaX.Y
-#     * /usr/local/include/lua-X.Y
-#     * /usr/local/include/lua/X.Y
-#     * /usr/local/include/luaXY
-#
-#   (Where X.Y is the Lua version number, e.g. 5.1.)
-#
-#   The Lua version number found in the headers is always checked to match
-#   the Lua interpreter's version number. Lua headers with mismatched
-#   version numbers are not accepted.
-#
-#   If headers are found, then ACTION-IF-FOUND is performed, otherwise
-#   ACTION-IF-NOT-FOUND is performed. If ACTION-IF-NOT-FOUND is blank, then
-#   it will default to printing an error. To prevent the default behavior,
-#   set the action to ':'.
-#
-#   AX_LUA_LIBS: Search for Lua libraries. Requires that AX_PROG_LUA be
-#   expanded before this macro. Adds precious variable LUA_LIB, which may
-#   contain Lua specific linker flags, e.g. -llua5.1. If LUA_LIB is blank,
-#   then this macro will attempt to find suitable flags.
-#
-#   LUA_LIB can be used by Automake to link Lua modules or executables with
-#   embedded interpreters. The *_LIBADD and *_LDADD variables should be used
-#   for this purpose, e.g. mymod_LIBADD = $(LUA_LIB).
-#
-#   This macro searches for the Lua library. More technically, it searches
-#   for a library containing the function lua_load. The search is performed
-#   with a combination of LIBS, LIBRARY_PATH, and LUA_LIB.
-#
-#   If the search determines that some linker flags are missing, then those
-#   flags will be added to LUA_LIB.
-#
-#   If libraries are found, then ACTION-IF-FOUND is performed, otherwise
-#   ACTION-IF-NOT-FOUND is performed. If ACTION-IF-NOT-FOUND is blank, then
-#   it will default to printing an error. To prevent the default behavior,
-#   set the action to ':'.
-#
-#   AX_LUA_READLINE: Search for readline headers and libraries. Requires the
-#   AX_LIB_READLINE macro, which is provided by ax_lib_readline.m4 from the
-#   Autoconf Archive.
-#
-#   If a readline compatible library is found, then ACTION-IF-FOUND is
-#   performed, otherwise ACTION-IF-NOT-FOUND is performed.
-#
-# LICENSE
-#
-#   Copyright (c) 2015 Reuben Thomas <rrt@sc3d.org>
-#   Copyright (c) 2014 Tim Perkins <tprk77@gmail.com>
-#
-#   This program is free software: you can redistribute it and/or modify it
-#   under the terms of the GNU General Public License as published by the
-#   Free Software Foundation, either version 3 of the License, or (at your
-#   option) any later version.
-#
-#   This program is distributed in the hope that it will be useful, but
-#   WITHOUT ANY WARRANTY; without even the implied warranty of
-#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-#   Public License for more details.
-#
-#   You should have received a copy of the GNU General Public License along
-#   with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-#   As a special exception, the respective Autoconf Macro's copyright owner
-#   gives unlimited permission to copy, distribute and modify the configure
-#   scripts that are the output of Autoconf when processing the Macro. You
-#   need not follow the terms of the GNU General Public License when using
-#   or distributing such scripts, even though portions of the text of the
-#   Macro appear in them. The GNU General Public License (GPL) does govern
-#   all other use of the material that constitutes the Autoconf Macro.
-#
-#   This special exception to the GPL applies to versions of the Autoconf
-#   Macro released by the Autoconf Archive. When you make and distribute a
-#   modified version of the Autoconf Macro, you may extend this special
-#   exception to the GPL to apply to your modified version as well.
-
-#serial 39
-
-dnl =========================================================================
-dnl AX_PROG_LUA([MINIMUM-VERSION], [TOO-BIG-VERSION],
-dnl             [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-dnl =========================================================================
-AC_DEFUN([AX_PROG_LUA],
-[
-  dnl Check for required tools.
-  AC_REQUIRE([AC_PROG_GREP])
-  AC_REQUIRE([AC_PROG_SED])
-
-  dnl Make LUA a precious variable.
-  AC_ARG_VAR([LUA], [The Lua interpreter, e.g. /usr/bin/lua5.1])
-
-  dnl Find a Lua interpreter.
-  m4_define_default([_AX_LUA_INTERPRETER_LIST],
-    [lua lua5.3 lua53 lua5.2 lua52 lua5.1 lua51 lua50])
-
-  m4_if([$1], [],
-  [ dnl No version check is needed. Find any Lua interpreter.
-    AS_IF([test "x$LUA" = 'x'],
-      [AC_PATH_PROGS([LUA], [_AX_LUA_INTERPRETER_LIST], [:])])
-    ax_display_LUA='lua'
-
-    AS_IF([test "x$LUA" != 'x:'],
-      [ dnl At least check if this is a Lua interpreter.
-        AC_MSG_CHECKING([if $LUA is a Lua interpreter])
-        _AX_LUA_CHK_IS_INTRP([$LUA],
-          [AC_MSG_RESULT([yes])],
-          [ AC_MSG_RESULT([no])
-            AC_MSG_ERROR([not a Lua interpreter])
-          ])
-      ])
-  ],
-  [ dnl A version check is needed.
-    AS_IF([test "x$LUA" != 'x'],
-    [ dnl Check if this is a Lua interpreter.
-      AC_MSG_CHECKING([if $LUA is a Lua interpreter])
-      _AX_LUA_CHK_IS_INTRP([$LUA],
-        [AC_MSG_RESULT([yes])],
-        [ AC_MSG_RESULT([no])
-          AC_MSG_ERROR([not a Lua interpreter])
-        ])
-      dnl Check the version.
-      m4_if([$2], [],
-        [_ax_check_text="whether $LUA version >= $1"],
-        [_ax_check_text="whether $LUA version >= $1, < $2"])
-      AC_MSG_CHECKING([$_ax_check_text])
-      _AX_LUA_CHK_VER([$LUA], [$1], [$2],
-        [AC_MSG_RESULT([yes])],
-        [ AC_MSG_RESULT([no])
-          AC_MSG_ERROR([version is out of range for specified LUA])])
-      ax_display_LUA=$LUA
-    ],
-    [ dnl Try each interpreter until we find one that satisfies VERSION.
-      m4_if([$2], [],
-        [_ax_check_text="for a Lua interpreter with version >= $1"],
-        [_ax_check_text="for a Lua interpreter with version >= $1, < $2"])
-      AC_CACHE_CHECK([$_ax_check_text],
-        [ax_cv_pathless_LUA],
-        [ for ax_cv_pathless_LUA in _AX_LUA_INTERPRETER_LIST none; do
-            test "x$ax_cv_pathless_LUA" = 'xnone' && break
-            _AX_LUA_CHK_IS_INTRP([$ax_cv_pathless_LUA], [], [continue])
-            _AX_LUA_CHK_VER([$ax_cv_pathless_LUA], [$1], [$2], [break])
-          done
-        ])
-      dnl Set $LUA to the absolute path of $ax_cv_pathless_LUA.
-      AS_IF([test "x$ax_cv_pathless_LUA" = 'xnone'],
-        [LUA=':'],
-        [AC_PATH_PROG([LUA], [$ax_cv_pathless_LUA])])
-      ax_display_LUA=$ax_cv_pathless_LUA
-    ])
-  ])
-
-  AS_IF([test "x$LUA" = 'x:'],
-  [ dnl Run any user-specified action, or abort.
-    m4_default([$4], [AC_MSG_ERROR([cannot find suitable Lua interpreter])])
-  ],
-  [ dnl Query Lua for its version number.
-    AC_CACHE_CHECK([for $ax_display_LUA version],
-      [ax_cv_lua_version],
-      [ dnl Get the interpreter version in X.Y format. This should work for
-        dnl interpreters version 5.0 and beyond.
-        ax_cv_lua_version=[`$LUA -e '
-          -- return a version number in X.Y format
-          local _, _, ver = string.find(_VERSION, "^Lua (%d+%.%d+)")
-          print(ver)'`]
-      ])
-    AS_IF([test "x$ax_cv_lua_version" = 'x'],
-      [AC_MSG_ERROR([invalid Lua version number])])
-    AC_SUBST([LUA_VERSION], [$ax_cv_lua_version])
-    AC_SUBST([LUA_SHORT_VERSION], [`echo "$LUA_VERSION" | $SED 's|\.||'`])
-
-    dnl The following check is not supported:
-    dnl At times (like when building shared libraries) you may want to know
-    dnl which OS platform Lua thinks this is.
-    AC_CACHE_CHECK([for $ax_display_LUA platform],
-      [ax_cv_lua_platform],
-      [ax_cv_lua_platform=[`$LUA -e 'print("unknown")'`]])
-    AC_SUBST([LUA_PLATFORM], [$ax_cv_lua_platform])
-
-    dnl Use the values of $prefix and $exec_prefix for the corresponding
-    dnl values of LUA_PREFIX and LUA_EXEC_PREFIX. These are made distinct
-    dnl variables so they can be overridden if need be. However, the general
-    dnl consensus is that you shouldn't need this ability.
-    AC_SUBST([LUA_PREFIX], ['${prefix}'])
-    AC_SUBST([LUA_EXEC_PREFIX], ['${exec_prefix}'])
-
-    dnl Lua provides no way to query the script directory, and instead
-    dnl provides LUA_PATH. However, we should be able to make a safe educated
-    dnl guess. If the built-in search path contains a directory which is
-    dnl prefixed by $prefix, then we can store scripts there. The first
-    dnl matching path will be used.
-    AC_CACHE_CHECK([for $ax_display_LUA script directory],
-      [ax_cv_lua_luadir],
-      [ AS_IF([test "x$prefix" = 'xNONE'],
-          [ax_lua_prefix=$ac_default_prefix],
-          [ax_lua_prefix=$prefix])
-
-        dnl Initialize to the default path.
-        ax_cv_lua_luadir="$LUA_PREFIX/share/lua/$LUA_VERSION"
-
-        dnl Try to find a path with the prefix.
-        _AX_LUA_FND_PRFX_PTH([$LUA], [$ax_lua_prefix], [script])
-        AS_IF([test "x$ax_lua_prefixed_path" != 'x'],
-        [ dnl Fix the prefix.
-          _ax_strip_prefix=`echo "$ax_lua_prefix" | $SED 's|.|.|g'`
-          ax_cv_lua_luadir=`echo "$ax_lua_prefixed_path" | \
-            $SED "s|^$_ax_strip_prefix|$LUA_PREFIX|"`
-        ])
-      ])
-    AC_SUBST([luadir], [$ax_cv_lua_luadir])
-    AC_SUBST([pkgluadir], [\${luadir}/$PACKAGE])
-
-    dnl Lua provides no way to query the module directory, and instead
-    dnl provides LUA_PATH. However, we should be able to make a safe educated
-    dnl guess. If the built-in search path contains a directory which is
-    dnl prefixed by $exec_prefix, then we can store modules there. The first
-    dnl matching path will be used.
-    AC_CACHE_CHECK([for $ax_display_LUA module directory],
-      [ax_cv_lua_luaexecdir],
-      [ AS_IF([test "x$exec_prefix" = 'xNONE'],
-          [ax_lua_exec_prefix=$ax_lua_prefix],
-          [ax_lua_exec_prefix=$exec_prefix])
-
-        dnl Initialize to the default path.
-        ax_cv_lua_luaexecdir="$LUA_EXEC_PREFIX/lib/lua/$LUA_VERSION"
-
-        dnl Try to find a path with the prefix.
-        _AX_LUA_FND_PRFX_PTH([$LUA],
-          [$ax_lua_exec_prefix], [module])
-        AS_IF([test "x$ax_lua_prefixed_path" != 'x'],
-        [ dnl Fix the prefix.
-          _ax_strip_prefix=`echo "$ax_lua_exec_prefix" | $SED 's|.|.|g'`
-          ax_cv_lua_luaexecdir=`echo "$ax_lua_prefixed_path" | \
-            $SED "s|^$_ax_strip_prefix|$LUA_EXEC_PREFIX|"`
-        ])
-      ])
-    AC_SUBST([luaexecdir], [$ax_cv_lua_luaexecdir])
-    AC_SUBST([pkgluaexecdir], [\${luaexecdir}/$PACKAGE])
-
-    dnl Run any user specified action.
-    $3
-  ])
-])
-
-dnl AX_WITH_LUA is now the same thing as AX_PROG_LUA.
-AC_DEFUN([AX_WITH_LUA],
-[
-  AC_MSG_WARN([[$0 is deprecated, please use AX_PROG_LUA instead]])
-  AX_PROG_LUA
-])
-
-
-dnl =========================================================================
-dnl _AX_LUA_CHK_IS_INTRP(PROG, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
-dnl =========================================================================
-AC_DEFUN([_AX_LUA_CHK_IS_INTRP],
-[
-  dnl A minimal Lua factorial to prove this is an interpreter. This should work
-  dnl for Lua interpreters version 5.0 and beyond.
-  _ax_lua_factorial=[`$1 2>/dev/null -e '
-    -- a simple factorial
-    function fact (n)
-      if n == 0 then
-        return 1
-      else
-        return n * fact(n-1)
-      end
-    end
-    print("fact(5) is " .. fact(5))'`]
-  AS_IF([test "$_ax_lua_factorial" = 'fact(5) is 120'],
-    [$2], [$3])
-])
-
-
-dnl =========================================================================
-dnl _AX_LUA_CHK_VER(PROG, MINIMUM-VERSION, [TOO-BIG-VERSION],
-dnl                 [ACTION-IF-TRUE], [ACTION-IF-FALSE])
-dnl =========================================================================
-AC_DEFUN([_AX_LUA_CHK_VER],
-[
-  dnl Check that the Lua version is within the bounds. Only the major and minor
-  dnl version numbers are considered. This should work for Lua interpreters
-  dnl version 5.0 and beyond.
-  _ax_lua_good_version=[`$1 -e '
-    -- a script to compare versions
-    function verstr2num(verstr)
-      local _, _, majorver, minorver = string.find(verstr, "^(%d+)%.(%d+)")
-      if majorver and minorver then
-        return tonumber(majorver) * 100 + tonumber(minorver)
-      end
-    end
-    local minver = verstr2num("$2")
-    local _, _, trimver = string.find(_VERSION, "^Lua (.*)")
-    local ver = verstr2num(trimver)
-    local maxver = verstr2num("$3") or 1e9
-    if minver <= ver and ver < maxver then
-      print("yes")
-    else
-      print("no")
-    end'`]
-    AS_IF([test "x$_ax_lua_good_version" = "xyes"],
-      [$4], [$5])
-])
-
-
-dnl =========================================================================
-dnl _AX_LUA_FND_PRFX_PTH(PROG, PREFIX, SCRIPT-OR-MODULE-DIR)
-dnl =========================================================================
-AC_DEFUN([_AX_LUA_FND_PRFX_PTH],
-[
-  dnl Get the script or module directory by querying the Lua interpreter,
-  dnl filtering on the given prefix, and selecting the shallowest path. If no
-  dnl path is found matching the prefix, the result will be an empty string.
-  dnl The third argument determines the type of search, it can be 'script' or
-  dnl 'module'. Supplying 'script' will perform the search with package.path
-  dnl and LUA_PATH, and supplying 'module' will search with package.cpath and
-  dnl LUA_CPATH. This is done for compatibility with Lua 5.0.
-
-  ax_lua_prefixed_path=[`$1 -e '
-    -- get the path based on search type
-    local searchtype = "$3"
-    local paths = ""
-    if searchtype == "script" then
-      paths = (package and package.path) or LUA_PATH
-    elseif searchtype == "module" then
-      paths = (package and package.cpath) or LUA_CPATH
-    end
-    -- search for the prefix
-    local prefix = "'$2'"
-    local minpath = ""
-    local mindepth = 1e9
-    string.gsub(paths, "(@<:@^;@:>@+)",
-      function (path)
-        path = string.gsub(path, "%?.*$", "")
-        path = string.gsub(path, "/@<:@^/@:>@*$", "")
-        if string.find(path, prefix) then
-          local depth = string.len(string.gsub(path, "@<:@^/@:>@", ""))
-          if depth < mindepth then
-            minpath = path
-            mindepth = depth
-          end
-        end
-      end)
-    print(minpath)'`]
-])
-
-
-dnl =========================================================================
-dnl AX_LUA_HEADERS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-dnl =========================================================================
-AC_DEFUN([AX_LUA_HEADERS],
-[
-  dnl Check for LUA_VERSION.
-  AC_MSG_CHECKING([if LUA_VERSION is defined])
-  AS_IF([test "x$LUA_VERSION" != 'x'],
-    [AC_MSG_RESULT([yes])],
-    [ AC_MSG_RESULT([no])
-      AC_MSG_ERROR([cannot check Lua headers without knowing LUA_VERSION])
-    ])
-
-  dnl Make LUA_INCLUDE a precious variable.
-  AC_ARG_VAR([LUA_INCLUDE], [The Lua includes, e.g. -I/usr/include/lua5.1])
-
-  dnl Some default directories to search.
-  LUA_SHORT_VERSION=`echo "$LUA_VERSION" | $SED 's|\.||'`
-  m4_define_default([_AX_LUA_INCLUDE_LIST],
-    [ /usr/include/lua$LUA_VERSION \
-      /usr/include/lua-$LUA_VERSION \
-      /usr/include/lua/$LUA_VERSION \
-      /usr/include/lua$LUA_SHORT_VERSION \
-      /usr/local/include/lua$LUA_VERSION \
-      /usr/local/include/lua-$LUA_VERSION \
-      /usr/local/include/lua/$LUA_VERSION \
-      /usr/local/include/lua$LUA_SHORT_VERSION \
-    ])
-
-  dnl Try to find the headers.
-  _ax_lua_saved_cppflags=$CPPFLAGS
-  CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
-  AC_CHECK_HEADERS([lua.h lualib.h lauxlib.h luaconf.h])
-  CPPFLAGS=$_ax_lua_saved_cppflags
-
-  dnl Try some other directories if LUA_INCLUDE was not set.
-  AS_IF([test "x$LUA_INCLUDE" = 'x' &&
-         test "x$ac_cv_header_lua_h" != 'xyes'],
-    [ dnl Try some common include paths.
-      for _ax_include_path in _AX_LUA_INCLUDE_LIST; do
-        test ! -d "$_ax_include_path" && continue
-
-        AC_MSG_CHECKING([for Lua headers in])
-        AC_MSG_RESULT([$_ax_include_path])
-
-        AS_UNSET([ac_cv_header_lua_h])
-        AS_UNSET([ac_cv_header_lualib_h])
-        AS_UNSET([ac_cv_header_lauxlib_h])
-        AS_UNSET([ac_cv_header_luaconf_h])
-
-        _ax_lua_saved_cppflags=$CPPFLAGS
-        CPPFLAGS="$CPPFLAGS -I$_ax_include_path"
-        AC_CHECK_HEADERS([lua.h lualib.h lauxlib.h luaconf.h])
-        CPPFLAGS=$_ax_lua_saved_cppflags
-
-        AS_IF([test "x$ac_cv_header_lua_h" = 'xyes'],
-          [ LUA_INCLUDE="-I$_ax_include_path"
-            break
-          ])
-      done
-    ])
-
-  AS_IF([test "x$ac_cv_header_lua_h" = 'xyes'],
-    [ dnl Make a program to print LUA_VERSION defined in the header.
-      dnl TODO It would be really nice if we could do this without compiling a
-      dnl program, then it would work when cross compiling. But I'm not sure how
-      dnl to do this reliably. For now, assume versions match when cross compiling.
-
-      AS_IF([test "x$cross_compiling" != 'xyes'],
-        [ AC_CACHE_CHECK([for Lua header version],
-            [ax_cv_lua_header_version],
-            [ _ax_lua_saved_cppflags=$CPPFLAGS
-              CPPFLAGS="$CPPFLAGS $LUA_INCLUDE"
-              AC_RUN_IFELSE(
-                [ AC_LANG_SOURCE([[
-#include <lua.h>
-#include <stdlib.h>
-#include <stdio.h>
-int main(int argc, char ** argv)
-{
-  if(argc > 1) printf("%s", LUA_VERSION);
-  exit(EXIT_SUCCESS);
-}
-]])
-                ],
-                [ ax_cv_lua_header_version=`./conftest$EXEEXT p | \
-                    $SED -n "s|^Lua \(@<:@0-9@:>@\{1,\}\.@<:@0-9@:>@\{1,\}\).\{0,\}|\1|p"`
-                ],
-                [ax_cv_lua_header_version='unknown'])
-              CPPFLAGS=$_ax_lua_saved_cppflags
-            ])
-
-          dnl Compare this to the previously found LUA_VERSION.
-          AC_MSG_CHECKING([if Lua header version matches $LUA_VERSION])
-          AS_IF([test "x$ax_cv_lua_header_version" = "x$LUA_VERSION"],
-            [ AC_MSG_RESULT([yes])
-              ax_header_version_match='yes'
-            ],
-            [ AC_MSG_RESULT([no])
-              ax_header_version_match='no'
-            ])
-        ],
-        [ AC_MSG_WARN([cross compiling so assuming header version number matches])
-          ax_header_version_match='yes'
-        ])
-    ])
-
-  dnl Was LUA_INCLUDE specified?
-  AS_IF([test "x$ax_header_version_match" != 'xyes' &&
-         test "x$LUA_INCLUDE" != 'x'],
-    [AC_MSG_ERROR([cannot find headers for specified LUA_INCLUDE])])
-
-  dnl Test the final result and run user code.
-  AS_IF([test "x$ax_header_version_match" = 'xyes'], [$1],
-    [m4_default([$2], [AC_MSG_ERROR([cannot find Lua includes])])])
-])
-
-dnl AX_LUA_HEADERS_VERSION no longer exists, use AX_LUA_HEADERS.
-AC_DEFUN([AX_LUA_HEADERS_VERSION],
-[
-  AC_MSG_WARN([[$0 is deprecated, please use AX_LUA_HEADERS instead]])
-])
-
-
-dnl =========================================================================
-dnl AX_LUA_LIBS([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-dnl =========================================================================
-AC_DEFUN([AX_LUA_LIBS],
-[
-  dnl TODO Should this macro also check various -L flags?
-
-  dnl Check for LUA_VERSION.
-  AC_MSG_CHECKING([if LUA_VERSION is defined])
-  AS_IF([test "x$LUA_VERSION" != 'x'],
-    [AC_MSG_RESULT([yes])],
-    [ AC_MSG_RESULT([no])
-      AC_MSG_ERROR([cannot check Lua libs without knowing LUA_VERSION])
-    ])
-
-  dnl Make LUA_LIB a precious variable.
-  AC_ARG_VAR([LUA_LIB], [The Lua library, e.g. -llua5.1])
-
-  AS_IF([test "x$LUA_LIB" != 'x'],
-  [ dnl Check that LUA_LIBS works.
-    _ax_lua_saved_libs=$LIBS
-    LIBS="$LIBS $LUA_LIB"
-    AC_SEARCH_LIBS([lua_load], [],
-      [_ax_found_lua_libs='yes'],
-      [_ax_found_lua_libs='no'])
-    LIBS=$_ax_lua_saved_libs
-
-    dnl Check the result.
-    AS_IF([test "x$_ax_found_lua_libs" != 'xyes'],
-      [AC_MSG_ERROR([cannot find libs for specified LUA_LIB])])
-  ],
-  [ dnl First search for extra libs.
-    _ax_lua_extra_libs=''
-
-    _ax_lua_saved_libs=$LIBS
-    LIBS="$LIBS $LUA_LIB"
-    AC_SEARCH_LIBS([exp], [m])
-    AC_SEARCH_LIBS([dlopen], [dl])
-    LIBS=$_ax_lua_saved_libs
-
-    AS_IF([test "x$ac_cv_search_exp" != 'xno' &&
-           test "x$ac_cv_search_exp" != 'xnone required'],
-      [_ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_exp"])
-
-    AS_IF([test "x$ac_cv_search_dlopen" != 'xno' &&
-           test "x$ac_cv_search_dlopen" != 'xnone required'],
-      [_ax_lua_extra_libs="$_ax_lua_extra_libs $ac_cv_search_dlopen"])
-
-    dnl Try to find the Lua libs.
-    _ax_lua_saved_libs=$LIBS
-    LIBS="$LIBS $LUA_LIB"
-    AC_SEARCH_LIBS([lua_load],
-      [ lua$LUA_VERSION \
-        lua$LUA_SHORT_VERSION \
-        lua-$LUA_VERSION \
-        lua-$LUA_SHORT_VERSION \
-        lua \
-      ],
-      [_ax_found_lua_libs='yes'],
-      [_ax_found_lua_libs='no'],
-      [$_ax_lua_extra_libs])
-    LIBS=$_ax_lua_saved_libs
-
-    AS_IF([test "x$ac_cv_search_lua_load" != 'xno' &&
-           test "x$ac_cv_search_lua_load" != 'xnone required'],
-      [LUA_LIB="$ac_cv_search_lua_load $_ax_lua_extra_libs"])
-  ])
-
-  dnl Test the result and run user code.
-  AS_IF([test "x$_ax_found_lua_libs" = 'xyes'], [$1],
-    [m4_default([$2], [AC_MSG_ERROR([cannot find Lua libs])])])
-])
-
-
-dnl =========================================================================
-dnl AX_LUA_READLINE([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-dnl =========================================================================
-AC_DEFUN([AX_LUA_READLINE],
-[
-  AX_LIB_READLINE
-  AS_IF([test "x$ac_cv_header_readline_readline_h" != 'x' &&
-         test "x$ac_cv_header_readline_history_h" != 'x'],
-    [ LUA_LIBS_CFLAGS="-DLUA_USE_READLINE $LUA_LIBS_CFLAGS"
-      $1
-    ],
-    [$2])
-])
diff --git a/m4/funcdecl.m4 b/m4/funcdecl.m4
deleted file mode 100644 (file)
index f46be2e..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-dnl ---------------------------------------------------------------------------
-dnl Check if a function is declared by including a set of include files.
-dnl Invoke the corresponding actions according to whether it is found or not.
-dnl
-dnl Gcc (unlike other compilers) will only warn about the miscast assignment
-dnl in the first test, but most compilers will oblige with an error in the
-dnl second test.
-dnl
-dnl CF_CHECK_FUNCDECL(INCLUDES, FUNCTION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-AC_DEFUN([CF_CHECK_FUNCDECL],
-[
-AC_MSG_CHECKING([for $2 declaration])
-AC_CACHE_VAL(ac_cv_func_decl_$2,
-[AC_TRY_COMPILE([$1],
-[#ifndef ${ac_func}
-extern int     ${ac_func}();
-#endif],[
-AC_TRY_COMPILE([$1],
-[#ifndef ${ac_func}
-int    (*p)() = ${ac_func};
-#endif],[
-eval "ac_cv_func_decl_$2=yes"],[
-eval "ac_cv_func_decl_$2=no"])],[
-eval "ac_cv_func_decl_$2=yes"])])
-if eval "test \"`echo '$ac_cv_func_'decl_$2`\" = yes"; then
-  AC_MSG_RESULT(yes)
-  ifelse([$3], , :, [$3])
-else
-  AC_MSG_RESULT(no)
-ifelse([$4], , , [$4
-])dnl
-fi
-])dnl
-dnl ---------------------------------------------------------------------------
-dnl Check if functions are declared by including a set of include files.
-dnl and define DECL_XXX if not.
-dnl
-dnl CF_CHECK_FUNCDECLS(INCLUDES, FUNCTION... [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-AC_DEFUN([CF_CHECK_FUNCDECLS],
-[for ac_func in $2
-do
-CF_CHECK_FUNCDECL([$1], $ac_func,
-[
-  CF_UPPER(ac_tr_func,HAVE_$ac_func)
-  AC_DEFINE_UNQUOTED($ac_tr_func) $3],
-[$4])dnl
-dnl [$3],
-dnl [
-dnl   CF_UPPER(ac_tr_func,DECL_$ac_func)
-dnl   AC_DEFINE_UNQUOTED($ac_tr_func) $4])dnl
-done
-])dnl
-dnl ---------------------------------------------------------------------------
-dnl Make an uppercase version of a variable
-dnl $1=uppercase($2)
-AC_DEFUN([CF_UPPER],
-[
-changequote(,)dnl
-$1=`echo $2 | tr '[a-z]' '[A-Z]'`
-changequote([,])dnl
-])dnl
-dnl ---------------------------------------------------------------------------
diff --git a/m4/gssapi.m4 b/m4/gssapi.m4
deleted file mode 100644 (file)
index 75654c1..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-# gssapi.m4: Find GSSAPI libraries in either Heimdal or MIT implementations
-# Brendan Cully <brendan@kublai.com> 20010529
-
-dnl MUTT_AM_PATH_GSSAPI(PREFIX)
-dnl Search for a GSSAPI implementation in the standard locations plus PREFIX,
-dnl if it is set and not "yes".
-dnl Defines GSSAPI_CFLAGS and GSSAPI_LIBS if found.
-dnl Defines GSSAPI_IMPL to "Heimdal", "MIT", or "OldMIT", or "none" if not found
-AC_DEFUN([MUTT_AM_PATH_GSSAPI],
-[
-  GSSAPI_PREFIX=[$]$1
-  GSSAPI_IMPL="none"
-  saved_CPPFLAGS="$CPPFLAGS"
-  saved_LDFLAGS="$LDFLAGS"
-  saved_LIBS="$LIBS"
-  dnl First try krb5-config
-  if test "$GSSAPI_PREFIX" != "yes"
-  then
-    krb5_path="$GSSAPI_PREFIX/bin"
-  else
-    krb5_path="$PATH"
-  fi
-  AC_PATH_PROG(KRB5CFGPATH, krb5-config, none, $krb5_path)
-  if test "$KRB5CFGPATH" != "none"
-  then
-    GSSAPI_CFLAGS="`$KRB5CFGPATH --cflags gssapi`"
-    GSSAPI_LIBS="`$KRB5CFGPATH --libs gssapi`"
-    case "`$KRB5CFGPATH --version`" in
-      "Kerberos 5 "*)  GSSAPI_IMPL="MIT";;
-      ?eimdal*)                GSSAPI_IMPL="Heimdal";;
-      Solaris*)                GSSAPI_IMPL="Solaris";;
-      *)               GSSAPI_IMPL="Unknown";;
-   esac
-  else
-    dnl No krb5-config, run the old code
-    if test "$GSSAPI_PREFIX" != "yes"
-    then
-      GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
-      GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
-      CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
-      LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
-    fi
-
-    dnl New MIT kerberos V support
-    AC_CHECK_LIB(gssapi_krb5, gss_init_sec_context, [
-      GSSAPI_IMPL="MIT",
-      GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
-      ],, -lkrb5 -lk5crypto -lcom_err)
-
-    dnl Heimdal kerberos V support
-    if test "$GSSAPI_IMPL" = "none"
-    then
-      AC_CHECK_LIB(gssapi, gss_init_sec_context, [
-          GSSAPI_IMPL="Heimdal"
-          GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
-          GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
-          ],, -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err)
-    fi
-
-    dnl Old MIT Kerberos V
-    dnl Note: older krb5 distributions use -lcrypto instead of
-    dnl -lk5crypto, which collides with OpenSSL.  One way of dealing
-    dnl with that is to extract all objects from krb5's libcrypto
-    dnl and from openssl's libcrypto into the same directory, then
-    dnl to create a new libcrypto from these.
-    if test "$GSSAPI_IMPL" = "none"
-    then
-      AC_CHECK_LIB(gssapi_krb5, g_order_init, [
-        GSSAPI_IMPL="OldMIT",
-        GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
-        ],, -lkrb5 -lcrypto -lcom_err)
-    fi
-  fi
-
-  CPPFLAGS="$saved_CPPFLAGS"
-  LDFLAGS="$saved_LDFLAGS"
-  LIBS="$saved_LIBS"
-])
diff --git a/mutt/Makefile.am b/mutt/Makefile.am
deleted file mode 100644 (file)
index 49f1018..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in
-include $(top_srcdir)/flymake.am
-
-AUTOMAKE_OPTIONS = 1.6 foreign
-
-EXTRA_DIST = mutt.h base64.h buffer.h charset.h date.h debug.h exit.h file.h hash.h list.h mapping.h mbyte.h md5.h memory.h message.h queue.h sha1.h signal2.h string2.h
-
-AM_CPPFLAGS = -I$(top_srcdir)
-
-noinst_LIBRARIES = libmutt.a
-
-libmutt_a_SOURCES = base64.c buffer.c charset.c date.c debug.c exit.c file.c hash.c list.c mapping.c mbyte.c md5.c memory.c message.c sha1.c signal.c string.c
-
diff --git a/ncrypt/Makefile.am b/ncrypt/Makefile.am
deleted file mode 100644 (file)
index e84244c..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-## Process this file with automake to produce Makefile.in
-include $(top_srcdir)/flymake.am
-
-AUTOMAKE_OPTIONS = 1.6 foreign
-
-EXTRA_DIST = crypt_gpgme.c crypt_mod_pgp_classic.c crypt_mod_pgp_gpgme.c \
-       crypt_mod_smime_classic.c crypt_mod_smime_gpgme.c gnupgparse.c pgp.c \
-       pgpinvoke.c pgpkey.c pgplib.c pgpmicalg.c pgppacket.c smime.c
-
-AM_CPPFLAGS = -I$(top_srcdir)
-
-noinst_LIBRARIES = libncrypt.a
-noinst_HEADERS = crypt.h cryptglue.h crypt_gpgme.h crypt_mod.h gnupgparse.h \
-       ncrypt.h pgp.h pgpinvoke.h pgpkey.h pgplib.h pgpmicalg.h pgppacket.h \
-       smime.h
-
-libncrypt_a_SOURCES = crypt.c cryptglue.c crypt_mod.c
-
-if BUILD_NCRYPT_GPGME
-libncrypt_a_SOURCES += crypt_gpgme.c crypt_mod_pgp_gpgme.c crypt_mod_smime_gpgme.c
-endif
-
-if BUILD_NCRYPT_PGP
-libncrypt_a_SOURCES += pgp.c pgpinvoke.c pgpkey.c pgplib.c gnupgparse.c \
-       pgpmicalg.c pgppacket.c crypt_mod_pgp_classic.c
-endif
-
-if BUILD_NCRYPT_SMIME
-libncrypt_a_SOURCES += smime.c crypt_mod_smime_classic.c
-endif
-
diff --git a/po/Makevars b/po/Makevars
deleted file mode 100644 (file)
index 2d79f85..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# Makefile variables for PO directory in any package using GNU gettext.
-
-# Usually the message domain is the same as the package name.
-DOMAIN = $(PACKAGE)
-
-# These two variables depend on the location of this directory.
-subdir = po
-top_builddir = ..
-
-# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --no-wrap --add-comments=L10N
-
-COPYRIGHT_HOLDER = NeoMutt Project
-MSGID_BUGS_ADDRESS = neomutt-devel@neomutt.org
-
index b572eef0c5fbef0e8ed5341e7b053ac4d224e59f..348709af9f58e41b702244a4d960bac15c70dd8e 100644 (file)
@@ -141,7 +141,6 @@ status.c
 system.c
 tags.c
 thread.c
-txt2c.c
 url.c
 version.c
 wcscasecmp.c
diff --git a/prepare b/prepare
deleted file mode 100755 (executable)
index 59541a0..0000000
--- a/prepare
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-if autoreconf --install && ./configure "$@"
-then
-  echo
-  echo "The mutt source code was successfully prepared and configured."
-  echo "Type   make && make install   to build and install mutt."
-  echo
-else
-  echo
-  echo "Some part of the preparation process failed."
-  echo "Please refer to https://www.neomutt.org/dev/newbie-tutorial for details."
-  echo
-  exit 1
-fi
diff --git a/txt2c.c b/txt2c.c
deleted file mode 100644 (file)
index 49e2314..0000000
--- a/txt2c.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * @file
- * Encode the compilation options as a C-string
- *
- * @authors
- * @copyright
- * This program is free software: you can redistribute it and/or modify it under
- * the terms of the GNU General Public License as published by the Free Software
- * Foundation, either version 2 of the License, or (at your option) any later
- * version.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
- * details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include <stdbool.h>
-#include <stdio.h>
-
-#define PER_LINE 12
-
-static void txt2c(char *sym, FILE *fp)
-{
-  unsigned char buf[PER_LINE];
-  int sz = 0;
-
-  printf("unsigned char %s[] = {\n", sym);
-  while (true)
-  {
-    sz = fread(buf, sizeof(unsigned char), PER_LINE, fp);
-    if (sz == 0)
-      break;
-    printf("\t");
-    for (int i = 0; i < sz; i++)
-      printf("0x%02x, ", buf[i]);
-    printf("\n");
-  }
-
-  printf("\t0x00\n};\n");
-}
-
-int main(int argc, char *argv[])
-{
-  if (argc != 2)
-  {
-    fprintf(stderr, "usage: %s symbol <textfile >textfile.c\n", argv[0]);
-    return 2;
-  }
-
-  txt2c(argv[1], stdin);
-  return 0;
-}
diff --git a/txt2c.sh b/txt2c.sh
deleted file mode 100755 (executable)
index 7b337d5..0000000
--- a/txt2c.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-txt2c_fallback () {
-       # consumes stdin
-
-       # declaration
-       echo "unsigned char $1[] = "
-
-       # initializer - filter out unwanted characters, then convert problematic
-       # or odd-looking sequences.  The result is a sequence of quote-bounded
-       # C strings, which the compiler concatenates into a single C string.
-       tr -c '\011\012\015\040[!-~]' '?' |
-       sed \
-           -e 's/\\/\\\\/g' \
-           -e 's/"/\\"/g' \
-           -e 's/??/\\?\\?/g' \
-           -e 's/      /\\t/'g \
-           -e 's/\r/\\r/g' \
-           -e 's/^/    "/g' \
-           -e 's/$/\\n"/g'
-       echo ";"
-}
-
-./txt2c test </dev/null >/dev/null 2>&1 &&
-./txt2c "$1" ||
-txt2c_fallback "$1"