commit 297f50841cd6eb86cc78530a64da8e7891a09ca8 Author: Jacob Welsh AuthorDate: Fri Nov 18 04:20:49 2022 +0000 Commit: Jacob Welsh CommitDate: Fri Nov 18 04:33:41 2022 +0000 Type: option removal drop autoconf-automake build system diff --git a/.gitignore b/.gitignore index 9695e8733c..83cc5938a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -Makefile.in *.a *.o *.lo @@ -15,45 +14,6 @@ Makefile.in compile_commands.json *~ -/configure -/config.cache -/config.guess -/config.h.in -/config.log -/config.status -/config.sub -/config.rpath -/compile -/depcomp -/dummy-config.h -/dummy-config.h.in -/fts-config.h -/install-sh -/libtool -/ltmain.sh -/missing -/run-test.sh -/stamp.h -/stamp-h1 -/stamp-h2 -/ylwrap -/autom4te.cache -/ChangeLog -/cc-wrapper.sh -/dovecot-config -/dovecot-config.in -/dovecot-version.h -/dovecot.service -/README -/INSTALL - -/aclocal.m4 -/m4/libtool.m4 -/m4/ltoptions.m4 -/m4/ltsugar.m4 -/m4/ltversion.m4 -/m4/lt~obsolete.m4 - src/**/test-* !src/**/test-*.c !src/**/test-*.h @@ -103,7 +63,6 @@ doc/man/dovecot.1 doc/man/dovecot-sysreport.1 doc/example-config/README -doc/wiki/Makefile.am src/anvil/anvil src/auth/checkpassword-reply src/auth/auth diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index d0efe4911d..0000000000 --- a/Makefile.am +++ /dev/null @@ -1,113 +0,0 @@ -aclocaldir = $(datadir)/aclocal -ACLOCAL_AMFLAGS = -I m4 - -SUBDIRS = \ - . \ - src \ - doc - -dist_pkginclude_HEADERS = \ - dovecot-version.h - -EXTRA_DIST = \ - COPYING.LGPL \ - COPYING.MIT \ - ChangeLog \ - README \ - README.md \ - INSTALL \ - INSTALL.md \ - update-version.sh \ - run-test-valgrind.supp \ - dovecot.service.in \ - dovecot.socket \ - $(conf_DATA) - -noinst_DATA = dovecot-config - -nodist_pkginclude_HEADERS = config.h - -README: README.md - $(PANDOC) -f markdown_github -t plain -o $@ $< - -INSTALL: INSTALL.md - $(PANDOC) -f markdown_github -t plain -o $@ $< - -ChangeLog: - git log --name-status --pretty="format:%ai %aN <%aE> (%h)%n%n%w(80,4,4)%s%n%n%b" 5d5c4f2bfb812c767084c0338dae692db476da10^.. > ChangeLog || rm -f ChangeLog - -aclocal_DATA = m4/dovecot.m4 - -dovecot-version.h: noop - $(SHELL) $(top_srcdir)/update-version.sh $(top_srcdir) $(top_builddir) - -noop: - -dovecot-config: dovecot-config.in Makefile - old=`pwd` && cd $(top_builddir) && abs_builddir=`pwd` && cd $$old && \ - cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$old && \ - (echo "DOVECOT_INSTALLED=no"; cat dovecot-config.in | sed \ - -e "s|\$$(top_builddir)|$$abs_builddir|g" \ - -e "s|\$$(incdir)|$$abs_srcdir|g" \ - -e "s|\$$(LIBICONV)|$(LIBICONV)|g" \ - -e "s|^\(dovecot_pkgincludedir\)=|\1=$(pkgincludedir)|" \ - -e "s|^\(dovecot_pkglibdir\)=|\1=$(pkglibdir)|" \ - -e "s|^\(dovecot_pkglibexecdir\)=|\1=$(libexecdir)/dovecot|" \ - -e "s|^\(dovecot_docdir\)=|\1=$(docdir)|" \ - -e "s|^\(dovecot_moduledir\)=|\1=$(moduledir)|" \ - -e "s|^\(dovecot_statedir\)=|\1=$(statedir)|" \ - ) > dovecot-config - -%.service: %.service.in - $(AM_V_GEN)sed -e 's,@sbindir\@,$(sbindir),g' \ - -e 's,@bindir\@,$(bindir),g' \ - -e 's,@rundir\@,$(rundir),g' \ - -e 's,@systemdservicetype\@,$(systemdservicetype),g' \ - $< > $@ - -if WANT_SYSTEMD -systemdsystemunit_DATA = \ - dovecot.socket \ - dovecot.service -endif - -install-exec-hook: - $(mkdir_p) $(DESTDIR)$(pkglibdir); \ - grep -v '^LIBDOVECOT_.*_INCLUDE' dovecot-config | \ - grep -v '^LIBDOVECOT.*_DEPS' | sed \ - -e "s|^\(DOVECOT_INSTALLED\)=.*$$|\1=yes|" \ - -e "s|^\(LIBDOVECOT\)=.*$$|\1='-L$(pkglibdir) -ldovecot'|" \ - -e "s|^\(LIBDOVECOT_LOGIN\)=.*$$|\1='-ldovecot-login $(SSL_LIBS)'|" \ - -e "s|^\(LIBDOVECOT_SQL\)=.*$$|\1=-ldovecot-sql|" \ - -e "s|^\(LIBDOVECOT_COMPRESS\)=.*$$|\1=-ldovecot-compression|" \ - -e "s|^\(LIBDOVECOT_DSYNC\)=.*$$|\1=-ldovecot-dsync|" \ - -e "s|^\(LIBDOVECOT_LDA\)=.*$$|\1=-ldovecot-lda|" \ - -e "s|^\(LIBDOVECOT_LIBFTS\)=.*$$|\1=-ldovecot-fts|" \ - -e "s|^\(LIBDOVECOT_LUA\)=.*$$|\1=-ldovecot-lua|" \ - -e "s|^\(LIBDOVECOT_STORAGE\)=.*$$|\1='-ldovecot-storage $(LINKED_STORAGE_LDADD)'|" \ - -e "s|^\(LIBDOVECOT_INCLUDE\)=.*$$|\1=-I$(pkgincludedir)|" \ - > $(DESTDIR)$(pkglibdir)/dovecot-config - -uninstall-hook: - rm $(DESTDIR)$(pkglibdir)/dovecot-config - -if WANT_SYSTEMD -CLEANFILES = dovecot.service -endif - -DISTCLEANFILES = \ - $(top_builddir)/dovecot-version.h \ - $(top_builddir)/dovecot-config \ - $(top_builddir)/run-test.sh - -distcheck-hook: - if which scan-build > /dev/null; then \ - cd $(distdir)/_build; \ - scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-cassandra=auto --with-lua=auto --with-gssapi=auto --with-libwrap=auto --enable-static-checker; \ - rm -rf scan-reports; \ - scan-build -o scan-reports make 2>&1 || exit 1; \ - if ! rmdir scan-reports 2>/dev/null; then \ - exit 1; \ - fi; \ - make distclean; \ - fi diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 878901855c..0000000000 --- a/autogen.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -# If you've non-standard directories, set these -ACLOCAL_DIR=m4 -#GETTEXT_DIR= - -ACLOCAL="aclocal -I$ACLOCAL_DIR" -export ACLOCAL - -for dir in $GETTEXT_DIR /usr/share/gettext /usr/local/share/gettext; do - if test -f $dir/config.rpath; then - /bin/cp -f $dir/config.rpath . - break - fi -done - -if test ! -f doc/wiki/Authentication.txt; then - cd doc - wget https://www.dovecot.org/tmp/wiki2-export.tar.gz - tar xzf wiki2-export.tar.gz - if [ $? != 0 ]; then - echo "Failed to uncompress wiki docs" - exit - fi - mv wiki2-export/*.txt wiki/ - rm -rf wiki2-export wiki2-export.tar.gz - cd .. -fi - -cd doc/wiki -cp -f Makefile.am.in Makefile.am -echo *.txt | sed 's, , \\/ ,g' | tr '/' '\n' >> Makefile.am -cd ../.. - -autoreconf -i - -rm -f ChangeLog diff --git a/configure.ac b/configure.ac deleted file mode 100644 index dad4f63e0d..0000000000 --- a/configure.ac +++ /dev/null @@ -1,907 +0,0 @@ -AC_PREREQ([2.59]) - -# Be sure to update ABI version also if anything changes that might require -# recompiling plugins. Most importantly that means if any structs are changed. -AC_INIT([Dovecot],[2.3.19],[dovecot@dovecot.org]) -AC_DEFINE_UNQUOTED([DOVECOT_ABI_VERSION], "2.3.ABIv19($PACKAGE_VERSION)", [Dovecot ABI version]) - -AC_CONFIG_SRCDIR([src]) -AC_CONFIG_MACRO_DIR([m4]) - -AM_INIT_AUTOMAKE([foreign]) - -AM_MAINTAINER_MODE -PKG_PREREQ([0.28]) -PKG_PROG_PKG_CONFIG - -ACLOCAL_AMFLAGS='-I $(top_srcdir)/m4' -AC_SUBST(ACLOCAL_AMFLAGS) - -AC_ARG_ENABLE(devel-checks, -AS_HELP_STRING([--enable-devel-checks], [Enable some extra expensive checks for developers]), - if test x$enableval = xyes; then - AC_DEFINE(DEBUG,, [Build with extra debugging checks]) - want_devel_checks=yes - fi) - -AC_ARG_ENABLE(static-checker, -AS_HELP_STRING([--enable-static-checker], [Enable code to be used when building with static code analyzer]), - if test x$enableval = xyes; then - AC_DEFINE(STATIC_CHECKER,, [Building with static code analyzer]) - fi) - -AC_ARG_ENABLE(asserts, -AS_HELP_STRING([--enable-asserts], [Enable asserts (default)]), - if test x$enableval = xno; then - AC_DEFINE(DISABLE_ASSERTS,, [Disable asserts]) - fi) - -AC_ARG_WITH(shared-libs, -AS_HELP_STRING([--with-shared-libs], [Link binaries using shared Dovecot libraries (default)]), - want_shared_libs=$withval, - want_shared_libs=yes) -AM_CONDITIONAL(BUILD_SHARED_LIBS, test "$want_shared_libs" = "yes") - -AC_ARG_WITH(mem-align, -AS_HELP_STRING([--with-mem-align=BYTES], [Set the memory alignment (default: 8)]), - mem_align=$withval, - mem_align=8) - -AC_ARG_WITH(ioloop, -AS_HELP_STRING([--with-ioloop=IOLOOP], [Specify the I/O loop method to use (epoll, kqueue, poll; best for the fastest available; default is best)]), - ioloop=$withval, - ioloop=best) - -AC_ARG_WITH(notify, -AS_HELP_STRING([--with-notify=NOTIFY], [Specify the file system notification method to use (inotify, kqueue, none; default is detected in the above order)]), - notify=$withval, - notify=) - -AC_ARG_WITH(nss, -AS_HELP_STRING([--with-nss], [Build with NSS module support (auto)]), - TEST_WITH(nss, $withval), - want_nss=auto) - -AC_ARG_WITH(shadow, -AS_HELP_STRING([--with-shadow], [Build with shadow password support (auto)]), - TEST_WITH(shadow, $withval), - want_shadow=auto) - -AC_ARG_WITH(pam, -AS_HELP_STRING([--with-pam], [Build with PAM support (auto)]), - TEST_WITH(pam, $withval), - want_pam=auto) - -AC_ARG_WITH(bsdauth, -AS_HELP_STRING([--with-bsdauth], [Build with BSD authentication support (auto)]), - TEST_WITH(bsdauth, $withval), - want_bsdauth=auto) - -AC_ARG_WITH(gssapi, -AS_HELP_STRING([--with-gssapi], [Build with GSSAPI authentication support]), - TEST_WITH(gssapi, $withval), - want_gssapi=no) - -AC_ARG_WITH(ldap, -AS_HELP_STRING([--with-ldap], [Build with LDAP support]), - TEST_WITH(ldap, $withval), - want_ldap=no) - -AC_ARG_WITH(libunwind, -AS_HELP_STRING([--with-libunwind], [Build with libunwind support (auto)]), - TEST_WITH(libunwind, $withval), - want_libunwind=auto) - -# Berkeley DB support is more or less broken. Disabled for now. -#AC_ARG_WITH(db, -#AS_HELP_STRING([--with-db], [Build with Berkeley DB support]), -# TEST_WITH(db, $withval), -# want_db=no) -want_db=no - -AC_ARG_WITH(cdb, -AS_HELP_STRING([--with-cdb], [Build with CDB support]), - TEST_WITH(cdb, $withval), - want_cdb=no) - -AC_ARG_WITH(pgsql, -AS_HELP_STRING([--with-pgsql], [Build with PostgreSQL driver support]), - TEST_WITH(pgsql, $withval), - want_pgsql=no) - -AC_ARG_WITH(mysql, -AS_HELP_STRING([--with-mysql], [Build with MySQL driver support]), - TEST_WITH(mysql, $withval), - want_mysql=no) - -AC_ARG_WITH(sqlite, -AS_HELP_STRING([--with-sqlite], [Build with SQLite3 driver support]), - TEST_WITH(sqlite, $withval), - want_sqlite=no) - -AC_ARG_WITH(cassandra, -AS_HELP_STRING([--with-cassandra], [Build with Cassandra driver support]), - TEST_WITH(cassandra, $withval), - want_cassandra=no) - -AC_ARG_WITH(stemmer, -AS_HELP_STRING([--with-stemmer], [Build with libstemmer support (for FTS) (auto)]), - TEST_WITH(stemmer, $withval), - want_stemmer=auto) - -AC_ARG_WITH(textcat, -AS_HELP_STRING([--with-textcat], [Build with libtextcat support (for FTS) (auto)]), - TEST_WITH(textcat, $withval), - want_textcat=auto) - -AC_ARG_WITH(icu, -AS_HELP_STRING([--with-icu], [Build with libicu support (for FTS normalization) (auto)]), - want_icu=$withval, - want_icu=auto) - -AC_ARG_WITH(solr, -AS_HELP_STRING([--with-solr], [Build with Solr full text search support]), - TEST_WITH(solr, $withval), - want_solr=no) - -AC_ARG_WITH(sodium, -AS_HELP_STRING([--with-sodium], [Build with libsodium support (enables argon2, default: auto)]), - TEST_WITH(sodium, $withval), - want_sodium=auto) - -AC_ARG_WITH(zlib, -AS_HELP_STRING([--with-zlib], [Build with zlib compression support (auto)]), - TEST_WITH(zlib, $withval), - want_zlib=auto) - -AC_ARG_WITH(bzlib, -AS_HELP_STRING([--with-bzlib], [Build with bzlib compression support (auto)]), - TEST_WITH(bzlib, $withval), - want_bzlib=auto) - -AC_ARG_WITH(lzma, -AS_HELP_STRING([--with-lzma], [Build with LZMA decompression support (auto)]), - TEST_WITH(lzma, $withval), - want_lzma=auto) - -AC_ARG_WITH(lz4, -AS_HELP_STRING([--with-lz4], [Build with LZ4 compression support (auto)]), - TEST_WITH(lz4, $withval), - want_lz4=auto) - -AC_ARG_WITH(zstd, -AS_HELP_STRING([--with-zstd], [Build with ZSTD compression support (auto)]), - TEST_WITH(zstd, $withval), - want_zstd=auto) - -AC_ARG_WITH(libcap, -AS_HELP_STRING([--with-libcap], [Build with libcap support (Dropping capabilities) (auto)]), - TEST_WITH(libcap, $withval), - want_libcap=auto) - -AC_ARG_WITH(libwrap, -AS_HELP_STRING([--with-libwrap], [Build with libwrap, ie. TCP-wrappers]), - TEST_WITH(libwrap, $withval), - want_libwrap=no) - -AC_ARG_WITH(ssl, -AS_HELP_STRING([--with-ssl=gnutls|openssl], [Build with GNUTLS or OpenSSL (default)]), - if test x$withval = xno; then - want_gnutls=no - want_openssl=no - elif test x$withval = xgnutls; then - AC_ERROR([GNUTLS support is broken currently]) - want_gnutls=yes - want_openssl=no - elif test x$withval = xopenssl; then - want_gnutls=no - want_openssl=yes - elif test x$withval = xyes; then - want_gnutls=no - want_openssl=yes - else - AC_ERROR([--with-ssl: Invalid value: $withval]) - fi, [ - want_gnutls=no - want_openssl=auto - ]) - -AC_ARG_WITH(ssldir, -AS_HELP_STRING([--with-ssldir=DIR], [SSL base directory for certificates (/etc/ssl)]), - ssldir="$withval", - ssldir=/etc/ssl -) -AC_SUBST(ssldir) - -AC_ARG_WITH(rundir, -AS_HELP_STRING([--with-rundir=DIR], [Runtime data directory (LOCALSTATEDIR/run/dovecot)]), - rundir="$withval", - rundir=$localstatedir/run/$PACKAGE -) -AC_SUBST(rundir) - -AC_ARG_WITH(statedir, -AS_HELP_STRING([--with-statedir=DIR], [Permanent data directory (LOCALSTATEDIR/lib/dovecot)]), - statedir="$withval", - statedir=$localstatedir/lib/$PACKAGE -) -AC_SUBST(statedir) - -AC_ARG_WITH([systemd], - AS_HELP_STRING([--with-systemd], [Build with systemd support (default=auto)]), - want_systemd="$withval", - want_systemd="auto" -) - -DOVECOT_WANT_SYSTEMD - -dovecot_moduledir="$libdir/dovecot" -DC_DOVECOT_MODULEDIR - -AC_ARG_WITH(docs, -AS_HELP_STRING([--with-docs], [Install documentation (default)]), - if test x$withval = xno; then - want_docs=no - else - want_docs=yes - fi, - want_docs=yes) -AM_CONDITIONAL(BUILD_DOCS, test "$want_docs" = "yes") - -dnl always enable all of the passbs and userdbs that don't require extra libs -want_passwd=yes -want_passwd_file=yes -want_checkpassword=yes -want_prefetch_userdb=yes - -AC_ISC_POSIX -AC_PROG_CC -AC_PROG_CPP -AC_CHECK_TOOL([FLEX],[flex],[:]) -AC_CHECK_TOOL([BISON],[bison],[:]) -AS_IF([test "$BISON" = ":" && test ! -e src/lib/event-filter-parser.h], - AC_MSG_ERROR([Bison is required when building from git]) -]) -AS_IF([test "$FLEX" = ":" && test ! -e src/lib/event-filter-lexer.c], - AC_MSG_ERROR([flex is required when building from git]) -]) -AC_HEADER_STDC -AC_C_INLINE -AC_PROG_LIBTOOL -AM_ICONV - -AC_DEFINE_UNQUOTED(DOVECOT_NAME, "$PACKAGE_NAME", [Dovecot name]) -AC_DEFINE_UNQUOTED(DOVECOT_STRING, "$PACKAGE_STRING", [Dovecot string]) -AC_DEFINE_UNQUOTED(DOVECOT_VERSION, "$PACKAGE_VERSION", [Dovecot version]) - -AC_DEFINE([DOVECOT_VERSION_MAJOR], regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\)], [\1]), [Dovecot major version]) -AC_DEFINE([DOVECOT_VERSION_MINOR], regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\)], [\2]), [Dovecot minor version]) -AC_DEFINE([DOVECOT_VERSION_MICRO], regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\).\([0-9]+\)], [\3]), [Dovecot micro version]) - -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ -],[ -#if DOVECOT_VERSION_MICRO > 0 -#endif -])], [], AC_DEFINE([DOVECOT_VERSION_MICRO], [0], [Dovecot micro version])) - -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ -],[ -#if DOVECOT_VERSION_MAJOR > 0 && DOVECOT_VERSION_MINOR > 0 -#endif -])], [], AC_MSG_ERROR([Version macros broken])) - -AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h malloc.h \ - sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \ - sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h jfs/quota.h \ - quota.h sys/fs/quota_common.h \ - mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \ - xfs/xqm.h execinfo.h ucontext.h malloc_np.h sys/utsname.h sys/vmount.h \ - sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h crypt.h) - -CC_CLANG -AC_LD_WHOLE_ARCHIVE -DC_DOVECOT_HARDENING -DC_DOVECOT_FUZZER -DC_DOVECOT_CFLAGS - -DOVECOT_NSL -DOVECOT_FDATASYNC -DOVECOT_LIBCAP -DOVECOT_LIBWRAP - -AC_DEFINE(PACKAGE_WEBPAGE, "http://www.dovecot.org/", [Support URL]) - -dnl * after -lsocket and -lnsl tests, inet_aton() may be in them -AC_CHECK_FUNCS(fcntl flock lockf inet_aton sigaction getpagesize madvise \ - strcasecmp stricmp vsyslog writev pread uname \ - setrlimit setproctitle seteuid setreuid setegid setresgid \ - getmntinfo setpriority quotactl getmntent kqueue kevent \ - backtrace_symbols walkcontext dirfd clearenv \ - malloc_usable_size glob fallocate posix_fadvise \ - getpeereid getpeerucred inotify_init timegm) - -DOVECOT_SOCKPEERCRED -DOVECOT_CLOCK_GETTIME - -DOVECOT_TYPEOF -DOVECOT_IOLOOP -DOVECOT_NOTIFY - -DOVECOT_GLIBC - -dnl * OS specific options -DC_PLUGIN_DEPS -case "$host_os" in - hpux*) - CFLAGS="$CFLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED" - # for getting fd_send/fd_recv working: - LDFLAGS="$LDFLAGS -Wl,+b,:" - LIBS="-lxnet $LIBS" - AC_DEFINE(PREAD_BROKEN,, [Define if pread/pwrite implementation is broken]) - ;; - linux*|darwin*) - AC_DEFINE(PROCTITLE_HACK,, [Define if process title can be changed by modifying argv]) - ;; - *) - ;; -esac - -AC_CHECK_SIZEOF(int) -AC_CHECK_SIZEOF(long) -AC_CHECK_SIZEOF(void *) -AC_CHECK_SIZEOF(long long) - -AC_SYS_LARGEFILE -AC_CHECK_TYPES(_Bool) - -AC_CHECK_TYPE(uoff_t, [ - have_uoff_t=yes - AC_DEFINE(HAVE_UOFF_T,, [Define if you have a native uoff_t type]) -], [ - have_uoff_t=no -]) - -AC_TYPEOF(off_t, long int long-long) -case "$typeof_off_t" in - int) - offt_max=INT_MAX - uofft_max=UINT_MAX - uofft_fmt="u" - if test "$have_uoff_t" != "yes"; then - AC_DEFINE(UOFF_T_INT,, [Define if off_t is int]) - fi - offt_bits=`expr 8 \* $ac_cv_sizeof_int` - ;; - long) - offt_max=LONG_MAX - uofft_max=ULONG_MAX - uofft_fmt="lu" - if test "$have_uoff_t" != "yes"; then - AC_DEFINE(UOFF_T_LONG,, [Define if off_t is long]) - fi - offt_bits=`expr 8 \* $ac_cv_sizeof_long` - ;; - "long long") - offt_max=LLONG_MAX - uofft_max=ULLONG_MAX - uofft_fmt="llu" - if test "$have_uoff_t" != "yes"; then - AC_DEFINE(UOFF_T_LONG_LONG,, [Define if off_t is long long]) - fi - offt_bits=`expr 8 \* $ac_cv_sizeof_long_long` - ;; - *) - AC_MSG_ERROR([Unsupported off_t type]) - ;; -esac - -DOVECOT_DIRENT_DTYPE -DOVECOT_OFF_T_MAX -DOVECOT_UOFF_T_MAX - -AC_DEFINE_UNQUOTED(PRIuUOFF_T, "$uofft_fmt", [printf() format for uoff_t]) - -DOVECOT_SIZE_T_SIGNED - -AC_DEFINE_UNQUOTED(SSIZE_T_MAX, $ssizet_max, [Maximum value of ssize_t]) - -dnl we require inttypes.h for PRIu{8,16,32,64} macros -AC_CHECK_HEADER(inttypes.h,,AC_MSG_ERROR([inttypes.h missing but required])) - -dnl some systems don't have stdint.h, but still have some of the types -dnl defined elsewhere -AC_CHECK_HEADER(stdint.h, [ - stdint_include="#include " -]) - -AC_CHECKTYPE2(uintmax_t, [$stdint_include]) -if test $i_cv_type_uintmax_t = yes; then - AC_DEFINE(HAVE_UINTMAX_T,, [Define if you have uintmax_t (C99 type)]) -fi - -dnl use separate check, eg. Solaris 8 has uintmax_t but not uint_fast32_t -AC_CHECKTYPE2(uint_fast32_t, [$stdint_include]) -if test $i_cv_type_uint_fast32_t = yes; then - AC_DEFINE(HAVE_UINT_FAST32_T,, [Define if you have uint_fast32_t (C99 type)]) -fi - -AC_CHECKTYPE2(socklen_t, [#include ]) -if test $i_cv_type_socklen_t = yes; then - AC_DEFINE(HAVE_SOCKLEN_T,, [Define to 'int' if you don't have socklen_t]) -fi - -AC_DEFINE_UNQUOTED(MEM_ALIGN_SIZE, $mem_align, [Required memory alignment]) - -DOVECOT_TM_GMTOFF -DOVECOT_GMTIME_MAX -DOVECOT_TIME_T - -DOVECOT_C_STATIC_ARRAY -DOVECOT_C_FLEXIBLE_ARRAY_MEMBER - -DOVECOT_IOVEC - -DOVECOT_TYPEOF_DEV_T - -DOVECOT_RLIMIT_AS -DOVECOT_RLIMIT_NPROC -DOVECOT_RLIMIT_CORE - -DOVECOT_PR_SET_DUMPABLE - -DOVECOT_LINUX_MREMAP - -DOVECOT_MMAP_WRITE - -DOVECOT_FD_PASSING - -DOVECOT_SENDFILE - -DOVECOT_CRYPT_XPG6 -DOVECOT_CRYPT - -DOVECOT_ST_TIM_TIMESPEC - -DOVECOT_FILE_BLOCKDEV - -DOVECOT_DQBLK_CURBLOCKS -DOVECOT_DQBLK_CURSPACE - -DOVECOT_Q_QUOTACTL - -DOVECOT_C99_VSNPRINTF - -DOVECOT_VA_COPY -DOVECOT_VA_COPY_BYVAL - -DOVECOT_MNTCTL - -DOVECOT_SSL - -DOVECOT_WANT_UNWIND - -dnl ** -dnl ** userdb and passdb checks -dnl ** - -userdb="" -passdb="" -not_userdb="" -not_passdb="" - -passdb="$passdb static" -userdb="$userdb static" -dict_drivers="" - -dnl *** auth/userdb/dict things -DOVECOT_WANT_LUA -DOVECOT_WANT_PREFETCH -DOVECOT_WANT_PASSWD -DOVECOT_WANT_SHADOW -DOVECOT_WANT_PAM -DOVECOT_WANT_CHECKPASSWORD -DOVECOT_WANT_BSDAUTH -DOVECOT_WANT_GSSAPI -DOVECOT_WANT_LDAP -DOVECOT_WANT_DB -DOVECOT_WANT_CDB -DOVECOT_WANT_PGSQL -DOVECOT_WANT_MYSQL -DOVECOT_WANT_SODIUM -DOVECOT_WANT_SQLITE -DOVECOT_WANT_CASSANDRA - -DOVECOT_SQL - -AM_CONDITIONAL([HAVE_LUA], [test "x$with_lua" = "xyes"]) -AS_IF([test "x$with_lua" = "xyes"], - [userdb="$userdb lua"; passdb="$passdb lua"], - []) -AM_CONDITIONAL([DLUA_WITH_YIELDS], [test "$dlua_with_yields" = "yes"]) - -AC_SUBST(AUTH_CFLAGS) -AC_SUBST(AUTH_LIBS) -AC_SUBST(SQL_CFLAGS) -AC_SUBST(SQL_LIBS) -AC_SUBST(MYSQL_CFLAGS) -AC_SUBST(MYSQL_LIBS) -AC_SUBST(PGSQL_CFLAGS) -AC_SUBST(PGSQL_LIBS) -AC_SUBST(SQLITE_CFLAGS) -AC_SUBST(SQLITE_LIBS) -AC_SUBST(CASSANDRA_CFLAGS) -AC_SUBST(CASSANDRA_LIBS) - -AC_SUBST(DICT_LIBS) -AC_SUBST(CDB_LIBS) -AC_SUBST(dict_drivers) - -AC_C_BIGENDIAN - -DOVECOT_IPV6 - -dnl ** -dnl ** storage classes -dnl ** - -CORE_LIBS='$(top_builddir)/src/lib-dovecot/libdovecot.la' -STORAGE_LIB='$(top_builddir)/src/lib-storage/libdovecot-storage.la' - -LINKED_STORAGE_LDADD= -AC_SUBST(LINKED_STORAGE_LDADD) - -dnl ** -dnl ** Shared libraries usage -dnl ** - -LIBDOVECOT_LA_LIBS='\ - $(top_builddir)/src/lib-dict-extra/libdict_extra.la \ - $(top_builddir)/src/lib-oauth2/liboauth2.la \ - $(top_builddir)/src/lib-smtp/libsmtp.la \ - $(top_builddir)/src/lib-program-client/libprogram_client.la \ - $(top_builddir)/src/lib-master/libmaster.la \ - $(top_builddir)/src/lib-settings/libsettings.la \ - $(top_builddir)/src/lib-old-stats/libold_stats.la \ - $(top_builddir)/src/lib-http/libhttp.la \ - $(top_builddir)/src/lib-fs/libfs.la \ - $(top_builddir)/src/lib-dict/libdict.la \ - $(top_builddir)/src/lib-dns/libdns.la \ - $(top_builddir)/src/lib-imap/libimap.la \ - $(top_builddir)/src/lib-mail/libmail.la \ - $(top_builddir)/src/lib-sasl/libsasl.la \ - $(top_builddir)/src/lib-auth/libauth.la \ - $(top_builddir)/src/lib-charset/libcharset.la \ - $(top_builddir)/src/lib-ssl-iostream/libssl_iostream.la \ - $(top_builddir)/src/lib-dcrypt/libdcrypt.la \ - $(top_builddir)/src/lib-test/libtest.la \ - $(top_builddir)/src/lib/liblib.la' -# This is used in dovecot-config, which is grepped in dovecot.m4, -# so it needs to be in a single line. -LIBDOVECOT_LA_LIBS=`echo "$LIBDOVECOT_LA_LIBS" | tr -d '\t\n\\\\'` - -if test "$want_shared_libs" = "yes"; then - LIBDOVECOT_DEPS='$(top_builddir)/src/lib-dovecot/libdovecot.la' - LIBDOVECOT="$LIBDOVECOT_DEPS" - LIBDOVECOT_STORAGE_DEPS='$(top_builddir)/src/lib-storage/libdovecot-storage.la $(top_builddir)/src/lib-imap-storage/libimap-storage.la' - LIBDOVECOT_LOGIN='$(top_builddir)/src/login-common/libdovecot-login.la' - LIBDOVECOT_LDA='$(top_builddir)/src/lib-lda/libdovecot-lda.la' -else - LIBDOVECOT_DEPS="$LIBDOVECOT_LA_LIBS" - LIBDOVECOT="$LIBDOVECOT_DEPS \$(LIBICONV)" - LIBDOVECOT_STORAGE_DEPS='$(top_builddir)/src/lib-storage/libstorage.la' - LIBDOVECOT_LOGIN='$(top_builddir)/src/login-common/liblogin.la' - LIBDOVECOT_LDA='$(top_builddir)/src/lib-lda/liblda.la' -fi -if test $want_ldap != no; then - LIBDOVECOT_LDAP='$(top_builddir)/src/lib-ldap/libdovecot-ldap.la' -else - LIBDOVECOT_LDAP='' -fi -LIBDOVECOT_STORAGE="$LIBDOVECOT_STORAGE_DEPS" -LIBDOVECOT_DSYNC='$(top_builddir)/src/doveadm/dsync/libdovecot-dsync.la' -LIBDOVECOT_SQL='$(top_builddir)/src/lib-sql/libsql.la' -LIBDOVECOT_COMPRESS='$(top_builddir)/src/lib-compression/libcompression.la' -LIBDOVECOT_LIBFTS='$(top_builddir)/src/lib-fts/libfts.la' - -if test $with_lua != no; then - LIBDOVECOT_LUA='$(top_builddir)/src/lib-lua/libdovecot-lua.la' -else - LIBDOVECOT_LUA='' -fi - -AC_SUBST(LIBDOVECOT) -AC_SUBST(LIBDOVECOT_LA_LIBS) -AC_SUBST(LIBDOVECOT_DEPS) -AC_SUBST(LIBDOVECOT_STORAGE) -AC_SUBST(LIBDOVECOT_STORAGE_DEPS) -AC_SUBST(LIBDOVECOT_LOGIN) -AC_SUBST(LIBDOVECOT_SQL) -AC_SUBST(LIBDOVECOT_COMPRESS) -AC_SUBST(LIBDOVECOT_DSYNC) -AC_SUBST(LIBDOVECOT_LDA) -AC_SUBST(LIBDOVECOT_LDAP) -AC_SUBST(LIBDOVECOT_LIBFTS) -AC_SUBST(LIBDOVECOT_LIBFTS_DEPS) -AC_SUBST(LIBDOVECOT_LUA) -AC_SUBST(LIBDOVECOT_LUA_DEPS) - -dnl ** -dnl ** SQL drivers -dnl ** - -build_pgsql=no -build_mysql=no -build_sqlite=no -build_cassandra=no -for driver in $sql_drivers; do - if test "$driver" = "pgsql"; then - AC_DEFINE(BUILD_PGSQL,, [Built-in PostgreSQL support]) - build_pgsql=yes - elif test "$driver" = "mysql"; then - AC_DEFINE(BUILD_MYSQL,, [Built-in MySQL support]) - build_mysql=yes - elif test "$driver" = "sqlite"; then - AC_DEFINE(BUILD_SQLITE,, [Built-in SQLite support]) - build_sqlite=yes - elif test "$driver" = "cassandra"; then - AC_DEFINE(BUILD_CASSANDRA,, [Built-in Cassandra support]) - build_cassandra=yes - fi -done -if test $build_pgsql = no; then - not_sql_drivers="$not_sql_drivers pgsql" -fi -if test $build_mysql = no; then - not_sql_drivers="$not_sql_drivers mysql" -fi -if test $build_sqlite = no; then - not_sql_drivers="$not_sql_drivers sqlite" -fi -if test $build_cassandra = no; then - not_sql_drivers="$not_sql_drivers cassandra" -fi - -AC_SUBST(sql_drivers) -AM_CONDITIONAL(BUILD_PGSQL, test "$build_pgsql" = "yes") -AM_CONDITIONAL(BUILD_MYSQL, test "$build_mysql" = "yes") -AM_CONDITIONAL(BUILD_SQLITE, test "$build_sqlite" = "yes") -AM_CONDITIONAL(BUILD_CASSANDRA, test "$build_cassandra" = "yes") - -dnl ** -dnl ** Plugins -dnl ** - -COMPRESS_LIBS= - -DOVECOT_WANT_ZLIB -DOVECOT_WANT_BZLIB -DOVECOT_WANT_LZMA -DOVECOT_WANT_LZ4 -DOVECOT_WANT_ZSTD - -AC_SUBST(COMPRESS_LIBS) - -AM_CONDITIONAL(BUILD_ZLIB_PLUGIN, test "$have_compress_lib" = "yes") - -DOVECOT_RPCGEN -DOVECOT_QUOTA - -dnl -dnl ** Full text search -dnl - -fts=" squat" -not_fts="" - -DOVECOT_WANT_SOLR -DOVECOT_WANT_STEMMER -DOVECOT_WANT_TEXTCAT - -DOVECOT_WANT_ICU - -DOVECOT_WANT_APPARMOR - -if test $have_solr = no; then - not_fts="$not_fts solr" -fi - -dnl ** -dnl ** Settings -dnl ** - -dnl get a list of setting .[ch] files, but list .h files first -FILES1=`find $srcdir/src -name '*settings.[[ch]]'|grep "$srcdir/src/lib-" | sed 's/^\(.*\)\(.\)$/\2 \1\2/' | grep -E -v 'lib-(master|smtp|settings).*c$' | sort -r | sed s/^..//` -FILES2=`find $srcdir/src -name '*settings.[[ch]]'|grep -v "$srcdir/src/lib-" | sed 's/^\(.*\)\(.\)$/\2 \1\2/' | grep -v all-settings | sort -r | sed s/^..//` -SETTING_FILES=`echo $FILES1 $FILES2 | sed -e s,$srcdir/src,./src,g -e 's,./src,$(top_srcdir)/src,g'` -AC_SUBST(SETTING_FILES) - -dnl ** -dnl ** capabilities -dnl ** - -dnl IDLE doesn't really belong to banner. It's there just to make Blackberries -dnl happy, because otherwise BIS server disables push email. -capability_banner="IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE" -capability="$capability_banner SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE" -AC_DEFINE_UNQUOTED(CAPABILITY_STRING, "$capability", [IMAP capabilities]) -AC_DEFINE_UNQUOTED(CAPABILITY_BANNER_STRING, "$capability_banner", [IMAP capabilities advertised in banner]) - -CFLAGS="$CFLAGS $EXTRA_CFLAGS" -BINARY_LDFLAGS="$PIE_LDFLAGS $RELRO_LDFLAGS" -BINARY_CFLAGS="$PIE_CFLAGS" - -AC_SUBST(BINARY_CFLAGS) -AC_SUBST(BINARY_LDFLAGS) - -NOPLUGIN_LDFLAGS="-no-undefined" -if test "$with_gnu_ld" = yes; then - NOPLUGIN_LDFLAGS="$NOPLUGIN_LDFLAGS -Wl,--as-needed" -fi -LDFLAGS="\$(NOPLUGIN_LDFLAGS) $LDFLAGS $EXTRA_LDFLAGS" -AC_SUBST(NOPLUGIN_LDFLAGS) - -DC_CC_WRAPPER -DC_PANDOC - -if test "$docdir" = ""; then - dnl docdir supported only by autoconf v2.59c and later - docdir='${datadir}/doc/${PACKAGE_TARNAME}' -fi -AC_SUBST(docdir) - -DC_DOVECOT_TEST_WRAPPER -AC_SUBST(abs_top_builddir) - -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([ -Makefile -doc/Makefile -doc/man/Makefile -doc/wiki/Makefile -doc/example-config/Makefile -doc/example-config/conf.d/Makefile -src/Makefile -src/lib/Makefile -src/lib-sql/Makefile -src/lib-auth/Makefile -src/lib-charset/Makefile -src/lib-compression/Makefile -src/lib-dcrypt/Makefile -src/lib-dict/Makefile -src/lib-dict-backend/Makefile -src/lib-dict-extra/Makefile -src/lib-dns/Makefile -src/lib-fs/Makefile -src/lib-fts/Makefile -src/lib-http/Makefile -src/lib-oauth2/Makefile -src/lib-imap/Makefile -src/lib-imap-storage/Makefile -src/lib-imap-client/Makefile -src/lib-imap-urlauth/Makefile -src/lib-index/Makefile -src/lib-lda/Makefile -src/lib-ldap/Makefile -src/lib-lua/Makefile -src/lib-mail/Makefile -src/lib-master/Makefile -src/lib-program-client/Makefile -src/lib-otp/Makefile -src/lib-dovecot/Makefile -src/lib-sasl/Makefile -src/lib-settings/Makefile -src/lib-smtp/Makefile -src/lib-ssl-iostream/Makefile -src/lib-old-stats/Makefile -src/lib-test/Makefile -src/lib-storage/Makefile -src/lib-storage/list/Makefile -src/lib-storage/index/Makefile -src/lib-storage/index/imapc/Makefile -src/lib-storage/index/pop3c/Makefile -src/lib-storage/index/maildir/Makefile -src/lib-storage/index/mbox/Makefile -src/lib-storage/index/dbox-common/Makefile -src/lib-storage/index/dbox-multi/Makefile -src/lib-storage/index/dbox-single/Makefile -src/lib-storage/index/raw/Makefile -src/lib-storage/index/shared/Makefile -src/anvil/Makefile -src/auth/Makefile -src/config/Makefile -src/doveadm/Makefile -src/doveadm/dsync/Makefile -src/lda/Makefile -src/log/Makefile -src/lmtp/Makefile -src/dict/Makefile -src/director/Makefile -src/dns/Makefile -src/indexer/Makefile -src/ipc/Makefile -src/imap/Makefile -src/imap-hibernate/Makefile -src/imap-login/Makefile -src/imap-urlauth/Makefile -src/login-common/Makefile -src/master/Makefile -src/pop3/Makefile -src/pop3-login/Makefile -src/submission/Makefile -src/submission-login/Makefile -src/replication/Makefile -src/replication/aggregator/Makefile -src/replication/replicator/Makefile -src/stats/Makefile -src/old-stats/Makefile -src/util/Makefile -src/plugins/Makefile -src/plugins/acl/Makefile -src/plugins/imap-acl/Makefile -src/plugins/fts/Makefile -src/plugins/fts-solr/Makefile -src/plugins/fts-squat/Makefile -src/plugins/last-login/Makefile -src/plugins/lazy-expunge/Makefile -src/plugins/listescape/Makefile -src/plugins/mail-log/Makefile -src/plugins/mail-lua/Makefile -src/plugins/mailbox-alias/Makefile -src/plugins/notify/Makefile -src/plugins/notify-status/Makefile -src/plugins/push-notification/Makefile -src/plugins/pop3-migration/Makefile -src/plugins/quota/Makefile -src/plugins/quota-clone/Makefile -src/plugins/imap-quota/Makefile -src/plugins/replication/Makefile -src/plugins/old-stats/Makefile -src/plugins/imap-old-stats/Makefile -src/plugins/trash/Makefile -src/plugins/virtual/Makefile -src/plugins/welcome/Makefile -src/plugins/zlib/Makefile -src/plugins/imap-zlib/Makefile -src/plugins/apparmor/Makefile -src/plugins/charset-alias/Makefile -stamp.h -dovecot-config.in]) - -AC_OUTPUT - -not_passdb=`echo "$not_passdb"|sed 's/ / -/g'` -not_userdb=`echo "$not_userdb"|sed 's/ / -/g'` -not_sql_drivers=`echo "$not_sql_drivers"|sed 's/ / -/g'` -not_fts=`echo "$not_fts"|sed 's/ / -/g'` - -echo -echo "Install prefix . : $prefix" -echo "File offsets ... : ${offt_bits}bit" -echo "I/O polling .... : $ioloop" -echo "I/O notifys .... : $have_notify" -echo "SSL ............ : $have_ssl" -echo "GSSAPI ......... : $have_gssapi" -echo "passdbs ........ :$passdb" -if test "$not_passdb" != ""; then - echo " :$not_passdb" -fi -echo "userdbs ........ :$userdb" -if test "$not_userdb" != ""; then - echo " :$not_userdb" -fi -echo "CFLAGS ......... : $CFLAGS" - -if test "$systemdsystemunitdir" != ""; then - echo "SYSTEMD ........ : $systemdservicetype - $systemdsystemunitdir/dovecot.service"; -else - echo "SYSTEMD ........ : $systemdservicetype - (no unit file)" -fi - -echo "SQL drivers .... :$sql_drivers" -if test "$not_sql_drivers" != ""; then - echo " :$not_sql_drivers" -fi -echo "Full text search :$fts" -if test "$not_fts" != ""; then - echo " :$not_fts" -fi diff --git a/doc/Makefile.am b/doc/Makefile.am deleted file mode 100644 index 5577ef729d..0000000000 --- a/doc/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -if BUILD_DOCS -DOCDIRS = wiki example-config -endif - -SUBDIRS = man $(DOCDIRS) - -docfiles = \ - documentation.txt \ - securecoding.txt \ - thread-refs.txt \ - mkcert.sh \ - dovecot-openssl.cnf \ - solr-schema.xml \ - solr-schema-7.7.0.xml \ - solr-config-7.7.0.xml - -if BUILD_DOCS -doc_DATA = $(docfiles) -endif - -EXTRA_DIST = \ - dovecot-initd.sh \ - $(docfiles) diff --git a/doc/example-config/Makefile.am b/doc/example-config/Makefile.am deleted file mode 100644 index 5a2dd8ba44..0000000000 --- a/doc/example-config/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -SUBDIRS = conf.d - -pkgsysconfdir = $(sysconfdir)/dovecot -nodist_pkgsysconf_DATA = README -# nodist_ prefix just doesn't seem to work, so rm it directly: -dist-hook: - rm -f $(distdir)/README - -README: README.in Makefile - cat $(srcdir)/README.in | sed "s|@exampledir@|$(exampledir)|" > README - -exampledir = $(docdir)/example-config -example_DATA = \ - dovecot.conf \ - dovecot-dict-auth.conf.ext \ - dovecot-dict-sql.conf.ext \ - dovecot-ldap.conf.ext \ - dovecot-sql.conf.ext - -EXTRA_DIST = \ - $(example_DATA) \ - README.in - -install-data-local: - $(mkdir_p) $(DESTDIR)/$(pkgsysconfdir) - -CLEANFILES = README diff --git a/doc/example-config/conf.d/Makefile.am b/doc/example-config/conf.d/Makefile.am deleted file mode 100644 index 1950fd518b..0000000000 --- a/doc/example-config/conf.d/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -pkgsysconfdir = $(sysconfdir)/dovecot - -exampledir = $(docdir)/example-config/conf.d -example_DATA = \ - auth-checkpassword.conf.ext \ - auth-deny.conf.ext \ - auth-dict.conf.ext \ - auth-ldap.conf.ext \ - auth-master.conf.ext \ - auth-passwdfile.conf.ext \ - auth-sql.conf.ext \ - auth-static.conf.ext \ - auth-system.conf.ext \ - 10-auth.conf \ - 10-director.conf \ - 10-logging.conf \ - 10-mail.conf \ - 10-master.conf \ - 10-metrics.conf \ - 10-ssl.conf \ - 15-lda.conf \ - 15-mailboxes.conf \ - 20-imap.conf \ - 20-lmtp.conf \ - 20-pop3.conf \ - 20-submission.conf \ - 90-acl.conf \ - 90-plugin.conf \ - 90-quota.conf - -EXTRA_DIST = \ - $(example_DATA) diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am deleted file mode 100644 index 0b0b8fbb4d..0000000000 --- a/doc/man/Makefile.am +++ /dev/null @@ -1,118 +0,0 @@ -pkgsysconfdir = $(sysconfdir)/dovecot - -SUFFIXES = .1.in .1 - -dist_man1_MANS = \ - deliver.1 \ - doveadm-backup.1 \ - doveadm-config.1 \ - doveadm-copy.1 \ - doveadm-reload.1 \ - doveadm-stop.1 \ - dsync.1 - -dist_man7_MANS = \ - doveadm-search-query.7 - -nodist_man1_MANS = \ - doveadm.1 \ - doveadm-acl.1 \ - doveadm-altmove.1 \ - doveadm-auth.1 \ - doveadm-batch.1 \ - doveadm-deduplicate.1 \ - doveadm-director.1 \ - doveadm-dump.1 \ - doveadm-exec.1 \ - doveadm-expunge.1 \ - doveadm-fetch.1 \ - doveadm-flags.1 \ - doveadm-fs.1 \ - doveadm-fts.1 \ - doveadm-import.1 \ - doveadm-instance.1 \ - doveadm-index.1 \ - doveadm-force-resync.1 \ - doveadm-help.1 \ - doveadm-kick.1 \ - doveadm-log.1 \ - doveadm-mailbox.1 \ - doveadm-mailbox-cryptokey.1 \ - doveadm-move.1 \ - doveadm-penalty.1 \ - doveadm-proxy.1 \ - doveadm-purge.1 \ - doveadm-pw.1 \ - doveadm-quota.1 \ - doveadm-rebuild.1 \ - doveadm-replicator.1 \ - doveadm-save.1 \ - doveadm-search.1 \ - doveadm-stats.1 \ - doveadm-sync.1 \ - doveadm-user.1 \ - doveadm-who.1 \ - doveconf.1 \ - dovecot.1 \ - dovecot-lda.1 \ - dovecot-sysreport.1 - -man_includefiles = \ - $(srcdir)/global-options-formatter.inc \ - $(srcdir)/global-options.inc \ - $(srcdir)/option-A.inc \ - $(srcdir)/option-F-file.inc \ - $(srcdir)/option-S-socket.inc \ - $(srcdir)/option-u-user.inc \ - $(srcdir)/reporting-bugs.inc - -EXTRA_DIST = \ - doveadm.1.in \ - doveadm-acl.1.in \ - doveadm-altmove.1.in \ - doveadm-auth.1.in \ - doveadm-batch.1.in \ - doveadm-deduplicate.1.in \ - doveadm-director.1.in \ - doveadm-dump.1.in \ - doveadm-exec.1.in \ - doveadm-expunge.1.in \ - doveadm-fetch.1.in \ - doveadm-flags.1.in \ - doveadm-fs.1.in \ - doveadm-fts.1.in \ - doveadm-import.1.in \ - doveadm-instance.1.in \ - doveadm-index.1.in \ - doveadm-force-resync.1.in \ - doveadm-help.1.in \ - doveadm-kick.1.in \ - doveadm-log.1.in \ - doveadm-mailbox.1.in \ - doveadm-mailbox-cryptokey.1.in \ - doveadm-move.1.in \ - doveadm-penalty.1.in \ - doveadm-proxy.1.in \ - doveadm-purge.1.in \ - doveadm-pw.1.in \ - doveadm-quota.1.in \ - doveadm-rebuild.1.in \ - doveadm-replicator.1.in \ - doveadm-save.1.in \ - doveadm-search.1.in \ - doveadm-stats.1.in \ - doveadm-sync.1.in \ - doveadm-user.1.in \ - doveadm-who.1.in \ - doveconf.1.in \ - dovecot.1.in \ - dovecot-lda.1.in \ - dovecot-sysreport.1.in \ - sed.sh \ - $(man_includefiles) - -CLEANFILES = $(nodist_man1_MANS) - -.1.in.1: $(man_includefiles) Makefile - $(SHELL) $(srcdir)/sed.sh $(srcdir) $(rundir) $(pkgsysconfdir) \ - $(pkglibexecdir) < $< > $@ diff --git a/doc/wiki/Makefile.am.in b/doc/wiki/Makefile.am.in deleted file mode 100644 index e96ed9f435..0000000000 --- a/doc/wiki/Makefile.am.in +++ /dev/null @@ -1,9 +0,0 @@ -if BUILD_DOCS -wikidir = $(docdir)/wiki -wiki_DATA = $(wikifiles) -endif - -EXTRA_DIST = \ - $(wikifiles) - -wikifiles = \ No newline at end of file diff --git a/dovecot-config.in.in b/dovecot-config.in.in deleted file mode 100644 index 8f84ea4be0..0000000000 --- a/dovecot-config.in.in +++ /dev/null @@ -1,58 +0,0 @@ -DOVECOT_CFLAGS="@CFLAGS@" -DOVECOT_LIBS="@LIBS@" -DOVECOT_SSL_LIBS="@SSL_LIBS@" -DOVECOT_SQL_LIBS="@SQL_LIBS@" -DOVECOT_COMPRESS_LIBS="@COMPRESS_LIBS@" -DOVECOT_LUA_LIBS="@LUA_LIBS@" -DOVECOT_LUA_CFLAGS="@LUA_CFLAGS@" -DOVECOT_BINARY_CFLAGS="@BINARY_CFLAGS@" -DOVECOT_BINARY_LDFLAGS="@BINARY_LDFLAGS@" - -LIBDOVECOT="@LIBDOVECOT@" -LIBDOVECOT_LOGIN="@LIBDOVECOT_LOGIN@ @SSL_LIBS@" -LIBDOVECOT_SQL="@LIBDOVECOT_SQL@" -LIBDOVECOT_COMPRESS="@LIBDOVECOT_COMPRESS@" -LIBDOVECOT_LDA="@LIBDOVECOT_LDA@" -LIBDOVECOT_STORAGE="@LIBDOVECOT_STORAGE@" -LIBDOVECOT_DSYNC="@LIBDOVECOT_DSYNC@" -LIBDOVECOT_LIBFTS="@LIBDOVECOT_LIBFTS@" -LIBDOVECOT_LUA="@LIBDOVECOT_LUA@" - -LIBDOVECOT_DEPS="@LIBDOVECOT_DEPS@" -LIBDOVECOT_LOGIN_DEPS="@LIBDOVECOT_LOGIN@" -LIBDOVECOT_SQL_DEPS="@LIBDOVECOT_SQL@" -LIBDOVECOT_COMPRESS_DEPS="@LIBDOVECOT_COMPRESS@" -LIBDOVECOT_LDA_DEPS="@LIBDOVECOT_LDA@" -LIBDOVECOT_STORAGE_DEPS="@LIBDOVECOT_STORAGE_DEPS@" -LIBDOVECOT_DSYNC_DEPS="@LIBDOVECOT_DSYNC@" -LIBDOVECOT_LIBFTS_DEPS="@LIBDOVECOT_LIBFTS@" -LIBDOVECOT_LUA_DEPS="@LIBDOVECOT_LUA@" - -LIBDOVECOT_INCLUDE="-I$(incdir) -I$(incdir)/src/lib -I$(incdir)/src/lib-dict -I$(incdir)/src/lib-dns -I$(incdir)/src/lib-http -I$(incdir)/src/lib-mail -I$(incdir)/src/lib-smtp -I$(incdir)/src/lib-imap -I$(incdir)/src/lib-fs -I$(incdir)/src/lib-charset -I$(incdir)/src/lib-auth -I$(incdir)/src/lib-master -I$(incdir)/src/lib-ssl-iostream -I$(incdir)/src/lib-compression -I$(incdir)/src/lib-settings -I$(incdir)/src/lib-test -I$(incdir)/src/lib-sasl -I$(incdir)/src/lib-old-stats -I$(incdir)/src/lib-dcrypt -I$(incdir)/src/lib-program-client" -LIBDOVECOT_LDA_INCLUDE="-I$(incdir)/src/lib-lda -I$(incdir)/src/lda" -LIBDOVECOT_AUTH_INCLUDE="-I$(incdir)/src/auth" -LIBDOVECOT_DOVEADM_INCLUDE="-I$(incdir)/src/doveadm" -LIBDOVECOT_STORAGE_INCLUDE="-I$(incdir)/src/lib-index -I$(incdir)/src/lib-storage -I$(incdir)/src/lib-storage/list -I$(incdir)/src/lib-storage/index -I$(incdir)/src/lib-storage/index/raw -I$(incdir)/src/lib-imap-storage -I$(incdir)/src/plugins/quota" -LIBDOVECOT_DSYNC_INCLUDE="-I$(incdir)/src/doveadm/dsync" -LIBDOVECOT_LOGIN_INCLUDE="-I$(incdir)/src/login-common" -LIBDOVECOT_SQL_INCLUDE="-I$(incdir)/src/lib-sql" -LIBDOVECOT_IMAP_LOGIN_INCLUDE="-I$(incdir)/src/imap-login" -LIBDOVECOT_IMAP_INCLUDE="-I$(incdir)/src/imap" -LIBDOVECOT_POP3_INCLUDE="-I$(incdir)/src/pop3" -LIBDOVECOT_SUBMISSION_INCLUDE="-I$(incdir)/src/submission" -LIBDOVECOT_LMTP_INCLUDE="-I$(incdir)/src/lmtp" -LIBDOVECOT_CONFIG_INCLUDE="-I$(incdir)/src/config" -LIBDOVECOT_IMAPC_INCLUDE="-I$(incdir)/src/lib-imap-client -I$(incdir)/src/lib-storage/index/imapc" -LIBDOVECOT_FTS_INCLUDE="-I$(incdir)/src/plugins/fts" -LIBDOVECOT_NOTIFY_INCLUDE="-I$(incdir)/src/plugins/notify" -LIBDOVECOT_PUSH_NOTIFICATION_INCLUDE="-I$(incdir)/src/plugins/push-notification" -LIBDOVECOT_ACL_INCLUDE="-I$(incdir)/src/plugins/acl" -LIBDOVECOT_LIBFTS_INCLUDE="-I$(incdir)/src/lib-fts" -LIBDOVECOT_LUA_INCLUDE="-I$(incdir)/src/lib-lua" - -dovecot_pkgincludedir= -dovecot_pkglibdir= -dovecot_pkglibexecdir= -dovecot_docdir= -dovecot_moduledir= -dovecot_statedir= diff --git a/m4/ac_checktype2.m4 b/m4/ac_checktype2.m4 deleted file mode 100644 index 397c99d089..0000000000 --- a/m4/ac_checktype2.m4 +++ /dev/null @@ -1,8 +0,0 @@ -AC_DEFUN([AC_CHECKTYPE2], [ - AC_MSG_CHECKING([for $1]) - AC_CACHE_VAL(i_cv_type_$1, - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - $2]], [[$1 t;]])],[i_cv_type_$1=yes],[i_cv_type_$1=no])]) - AC_MSG_RESULT($i_cv_type_$1) -]) diff --git a/m4/ac_typeof.m4 b/m4/ac_typeof.m4 deleted file mode 100644 index 0a2a7e0d42..0000000000 --- a/m4/ac_typeof.m4 +++ /dev/null @@ -1,121 +0,0 @@ -AC_DEFUN([AC_TYPEOF], [ - dnl * first check if we can get the size with redefining typedefs - - order="$2" - if test "$2" = ""; then - order="int long long-long" - fi - - result="" - visible="unknown" - AC_MSG_CHECKING([type of $1]) - AC_CACHE_VAL(i_cv_typeof_$1,[ - if test "x$ac_cv_c_compiler_gnu" = "xyes"; then - dnl * try with printf() + -Werror - old_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - - for type in $order; do - case "$type" in - int) - fmt="%d" - ;; - unsigned-int) - fmt="%u" - ;; - long) - fmt="%ld" - ;; - unsigned-long) - fmt="%lu" - ;; - long-long) - fmt="%lld" - ;; - unsigned-long-long) - fmt="%llu" - ;; - *) - fmt="" - ;; - esac - - if test "$fmt" != ""; then - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - ]], [[ - printf("$fmt", ($1)0); - ]])],[ - if test "$result" != ""; then - dnl * warning check isn't working - result="" - visible="unknown" - break - fi - result="`echo $type|sed 's/-/ /g'`" - visible="$result" - ],[]) - fi - done - CFLAGS="$old_CFLAGS" - fi - - if test "$result" = ""; then - for type in $order; do - type="`echo $type|sed 's/-/ /g'`" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - typedef $type $1; - ]], [[]])],[ - if test "$result" != ""; then - dnl * compiler allows redefining to anything - result="" - visible="unknown" - break - fi - result="$type" - visible="$type" - ],[]) - done - fi - - if test "$result" = ""; then - dnl * check with sizes - - dnl * older autoconfs don't include sys/types.h, so do it manually - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - int main() { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof($1)); - exit(0); - } - ]])],[ - size=`cat conftestval` - rm -f conftestval - - for type in $order; do - actype="ac_cv_sizeof_`echo $type|sed 's/-/_/g'`" - if test "$size" = "`eval echo \\$$actype`"; then - result="`echo $type|sed 's/-/ /g'`" - visible="`expr $size \* 8`bit (using $result)" - break - fi - done - if test "$result" = ""; then - result=unknown - visible="`expr $size \* 8`bit (unknown type)" - fi - ],[],[]) - fi - i_cv_typeof_$1=$result/$visible - ]) - - typeof_$1=`echo $i_cv_typeof_$1 | sed s,/.*$,,` - visible=`echo $i_cv_typeof_$1 | sed s,^.*/,,` - AC_MSG_RESULT($visible) -]) - diff --git a/m4/blockdev.m4 b/m4/blockdev.m4 deleted file mode 100644 index e44589e49e..0000000000 --- a/m4/blockdev.m4 +++ /dev/null @@ -1,41 +0,0 @@ -dnl * Check if statvfs() can be used to find out block device for files -AC_DEFUN([DOVECOT_FILE_BLOCKDEV], [ - AC_CACHE_CHECK([if statvfs.f_mntfromname exists],i_cv_have_statvfs_f_mntfromname,[ - AC_TRY_COMPILE([ - #include - #include - ], [ - struct statvfs buf; - char *p = buf.f_mntfromname; - - statvfs(".", &buf); - ], [ - i_cv_have_statvfs_f_mntfromname=yes - ], [ - i_cv_have_statvfs_f_mntfromname=no - ]) - ]) - if test $i_cv_have_statvfs_f_mntfromname = yes; then - AC_DEFINE(HAVE_STATVFS_MNTFROMNAME,, [Define if you have statvfs.f_mntfromname]) - fi - - dnl * Check if statfs() can be used to find out block device for files - AC_CACHE_CHECK([if statfs.f_mntfromname exists],i_cv_have_statfs_f_mntfromname,[ - AC_TRY_COMPILE([ - #include - #include - ], [ - struct statfs buf; - char *p = buf.f_mntfromname; - - statfs(".", &buf); - ], [ - i_cv_have_statfs_f_mntfromname=yes - ], [ - i_cv_have_statfs_f_mntfromname=no - ]) - ]) - if test $i_cv_have_statfs_f_mntfromname = yes; then - AC_DEFINE(HAVE_STATFS_MNTFROMNAME,, [Define if you have statfs.f_mntfromname]) - fi -]) diff --git a/m4/c99_vsnprintf.m4 b/m4/c99_vsnprintf.m4 deleted file mode 100644 index e64208393f..0000000000 --- a/m4/c99_vsnprintf.m4 +++ /dev/null @@ -1,29 +0,0 @@ -dnl *** -dnl *** C99 vsnprintf()? -dnl *** - -AC_DEFUN([DOVECOT_C99_VSNPRINTF], [ - AC_CACHE_CHECK([for C99 vsnprintf()],i_cv_c99_vsnprintf,[ - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - static int f(const char *fmt, ...) { - va_list args; - char buf[13]; - int ret; - - va_start(args, fmt); - ret = vsnprintf(buf, 11, fmt, args) != 12 || buf[11-1] != '\0'; - va_end(args); - return ret; - } - int main() { - return f("hello %s%d", "world", 1); - }]])], - [i_cv_c99_vsnprintf=yes], - [i_cv_c99_vsnprintf=no]) - ]) - if test $i_cv_c99_vsnprintf = no; then - AC_DEFINE(HAVE_OLD_VSNPRINTF,, [Define if you don't have C99 compatible vsnprintf() call]) - fi -]) diff --git a/m4/clock_gettime.m4 b/m4/clock_gettime.m4 deleted file mode 100644 index d93b680cae..0000000000 --- a/m4/clock_gettime.m4 +++ /dev/null @@ -1,5 +0,0 @@ -AC_DEFUN([DOVECOT_CLOCK_GETTIME], [ - AC_SEARCH_LIBS(clock_gettime, rt, [ - AC_DEFINE(HAVE_CLOCK_GETTIME,, [Define if you have the clock_gettime function]) - ]) -]) diff --git a/m4/crypt.m4 b/m4/crypt.m4 deleted file mode 100644 index 5aa1e14832..0000000000 --- a/m4/crypt.m4 +++ /dev/null @@ -1,11 +0,0 @@ -AC_DEFUN([DOVECOT_CRYPT], [ - AC_CHECK_FUNC(crypt,, [ - AC_CHECK_LIB(crypt, crypt, [ - AUTH_LIBS="-lcrypt $AUTH_LIBS" - CRYPT_LIBS="-lcrypt" - ], [ - AC_MSG_ERROR([crypt() wasn't found]) - ]) - ]) - AC_SUBST(CRYPT_LIBS) -]) diff --git a/m4/crypt_xpg6.m4 b/m4/crypt_xpg6.m4 deleted file mode 100644 index 9a86f46e55..0000000000 --- a/m4/crypt_xpg6.m4 +++ /dev/null @@ -1,23 +0,0 @@ -dnl * Check for crypt() if unistd.h compiles with _XOPEN_SOURCE + _XPG6 -dnl * Add other macros there too "just in case". -AC_DEFUN([DOVECOT_CRYPT_XPG6], [ - AC_CACHE_CHECK([if we should use _XPG6 macro for crypt()],i_cv_use_xpg6_crypt,[ - AC_TRY_COMPILE([ - #define _XOPEN_SOURCE 4 - #define _XOPEN_SOURCE_EXTENDED 1 - #define _XOPEN_VERSION 4 - #define _XPG4_2 - #define _XPG6 - #include - ], [ - crypt("a", "b"); - ], [ - i_cv_use_xpg6_crypt=yes - ], [ - i_cv_use_xpg6_crypt=no - ]) - ]) - if test $i_cv_use_xpg6_crypt = yes; then - AC_DEFINE(CRYPT_USE_XPG6,, [Define if _XPG6 macro is needed for crypt()]) - fi -]) diff --git a/m4/dbqlk.m4 b/m4/dbqlk.m4 deleted file mode 100644 index d030f8fa14..0000000000 --- a/m4/dbqlk.m4 +++ /dev/null @@ -1,39 +0,0 @@ -dnl * Check if we have struct dqblk.dqb_curblocks -AC_DEFUN([DOVECOT_DQBLK_CURBLOCKS], [ - AC_CACHE_CHECK([if struct dqblk.dqb_curblocks exists],i_cv_have_dqblk_dqb_curblocks,[ - AC_TRY_COMPILE([ - #include - #include "$srcdir/src/plugins/quota/quota-fs.h" - ], [ - struct dqblk dqblk; - unsigned int x = dqblk.dqb_curblocks; - ], [ - i_cv_have_dqblk_dqb_curblocks=yes - ], [ - i_cv_have_dqblk_dqb_curblocks=no - ]) - ]) - if test $i_cv_have_dqblk_dqb_curblocks = yes; then - AC_DEFINE(HAVE_STRUCT_DQBLK_CURBLOCKS,, [Define if struct sqblk.dqb_curblocks exists]) - fi -]) - -dnl * Check if we have struct dqblk.dqb_curspace -AC_DEFUN([DOVECOT_DQBLK_CURSPACE], [ - AC_CACHE_CHECK([if struct dqblk.dqb_curspace exists],i_cv_have_dqblk_dqb_curspace,[ - AC_TRY_COMPILE([ - #include - #include "$srcdir/src/plugins/quota/quota-fs.h" - ], [ - struct dqblk dqblk; - unsigned int x = dqblk.dqb_curspace; - ], [ - i_cv_have_dqblk_dqb_curspace=yes - ], [ - i_cv_have_dqblk_dqb_curspace=no - ]) - ]) - if test $i_cv_have_dqblk_dqb_curspace = yes; then - AC_DEFINE(HAVE_STRUCT_DQBLK_CURSPACE,, [Define if struct sqblk.dqb_curspace exists]) - fi -]) diff --git a/m4/dirent_dtype.m4 b/m4/dirent_dtype.m4 deleted file mode 100644 index a5740404fb..0000000000 --- a/m4/dirent_dtype.m4 +++ /dev/null @@ -1,11 +0,0 @@ -AC_DEFUN([DOVECOT_DIRENT_DTYPE], [ - dnl * Do we have struct dirent->d_type - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - ]], [[ - struct dirent d; - d.d_type = DT_DIR; - ]])],[ - AC_DEFINE(HAVE_DIRENT_D_TYPE,, [Define if you have struct dirent->d_type]) - ],[]) -]) diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 deleted file mode 100644 index 037d5e40e6..0000000000 --- a/m4/dovecot.m4 +++ /dev/null @@ -1,609 +0,0 @@ -dnl dovecot.m4 - Check presence of dovecot -*-Autoconf-*- -dnl -dnl Copyright (C) 2010 Dennis Schridde -dnl -dnl This file is free software; the authors give -dnl unlimited permission to copy and/or distribute it, with or without -dnl modifications, as long as this notice is preserved. - -# serial 34 - -dnl -dnl Check for support for D_FORTIFY_SOURCE=2 -dnl - -AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[ - AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS]) - AS_IF([test "$enable_hardening" = yes], [ - case "$host" in - *) - gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2], [ - CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" - ], - [], - [AC_LANG_PROGRAM()] - ) - esac - ]) -]) - -dnl * gcc specific options -AC_DEFUN([DC_DOVECOT_CFLAGS],[ - AS_IF([test "x$ac_cv_c_compiler_gnu" = "xyes"], [ - dnl -Wcast-qual -Wcast-align -Wconversion -Wunreachable-code # too many warnings - dnl -Wstrict-prototypes -Wredundant-decls # may give warnings in some systems - dnl -Wmissing-format-attribute -Wmissing-noreturn -Wwrite-strings # a couple of warnings - CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast" - - AS_IF([test "$have_clang" = "yes"], [ - AC_TRY_COMPILE([ - #if __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 3) - # error new clang - #endif - ],,,[ - dnl clang 3.3+ unfortunately this gives warnings with hash.h - CFLAGS="$CFLAGS -Wno-duplicate-decl-specifier" - ]) - ], [ - dnl This is simply to avoid warning when building strftime() wrappers.. - CFLAGS="$CFLAGS -fno-builtin-strftime" - ]) - - AC_TRY_COMPILE([ - #if __GNUC__ < 4 - # error old gcc - #endif - ],,[ - dnl gcc4 - CFLAGS="$CFLAGS -Wstrict-aliasing=2" - ]) - - dnl Use std=gnu99 if we have new enough gcc - old_cflags=$CFLAGS - CFLAGS="-std=gnu99" - AC_TRY_COMPILE([ - ],, [ - CFLAGS="$CFLAGS $old_cflags" - ], [ - CFLAGS="$old_cflags" - ]) - - ]) -]) - -AC_DEFUN([AC_LD_WHOLE_ARCHIVE], [ - LD_WHOLE_ARCHIVE= - LD_NO_WHOLE_ARCHIVE= - AC_MSG_CHECKING([for linker option to include whole archive]) - ld_help="`$CC -Wl,-help 2>&1`" - case "$ld_help" in - *"--whole-archive"*) - LD_WHOLE_ARCHIVE="--whole-archive" - LD_NO_WHOLE_ARCHIVE="--no-whole-archive" - ;; - esac - AS_IF([test "x$LD_WHOLE_ARCHIVE" != "x"], - [AC_MSG_RESULT([-Wl,$LD_WHOLE_ARCHIVE])], - [AC_MSG_RESULT([not supported])] - ) - AC_SUBST([LD_WHOLE_ARCHIVE]) - AC_SUBST([LD_NO_WHOLE_ARCHIVE]) - AM_CONDITIONAL([HAVE_WHOLE_ARCHIVE], [test "x$LD_WHOLE_ARCHIVE" != "x"]) -]) - -dnl -dnl Check for -z now and -z relro linker flags -dnl -dnl Copyright (C) 2013 Red Hat, Inc. -dnl -dnl This library is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU Lesser General Public -dnl License as published by the Free Software Foundation; either -dnl version 2.1 of the License, or (at your option) any later version. -dnl -dnl This library is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl Lesser General Public License for more details. -dnl -dnl You should have received a copy of the GNU Lesser General Public -dnl License along with this library. If not, see -dnl . -dnl - -AC_DEFUN([AC_LD_RELRO],[ - RELRO_LDFLAGS= - AS_IF([test "$enable_hardening" = yes], [ - AC_MSG_CHECKING([for how to force completely read-only GOT table]) - ld_help=`$CC -Wl,-help 2>&1` - case $ld_help in - *"-z relro"*) RELRO_LDFLAGS="-Wl,-z -Wl,relro" ;; - esac - case $ld_help in - *"-z now"*) RELRO_LDFLAGS="$RELRO_LDFLAGS -Wl,-z -Wl,now" ;; - esac - AS_IF([test "x$RELRO_LDFLAGS" != "x"], - [AC_MSG_RESULT([$RELRO_LDFLAGS])], - [AC_MSG_RESULT([unknown])] - ) - ]) - AC_SUBST([RELRO_LDFLAGS]) -]) - -dnl -dnl Check for support for position independent executables -dnl -dnl Copyright (C) 2013 Red Hat, Inc. -dnl -dnl This library is free software; you can redistribute it and/or -dnl modify it under the terms of the GNU Lesser General Public -dnl License as published by the Free Software Foundation; either -dnl version 2.1 of the License, or (at your option) any later version. -dnl -dnl This library is distributed in the hope that it will be useful, -dnl but WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl Lesser General Public License for more details. -dnl -dnl You should have received a copy of the GNU Lesser General Public -dnl License along with this library. If not, see -dnl . -dnl - -AC_DEFUN([AC_CC_PIE],[ - AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS]) - PIE_CFLAGS= - PIE_LDFLAGS= - - AS_IF([test "$enable_hardening" = yes], [ - OLD_CFLAGS=$CFLAGS - case "$host" in - *-*-mingw* | *-*-msvc* | *-*-cygwin* ) - ;; dnl All code is position independent on Win32 target - *) - CFLAGS="-fPIE -DPIE" - gl_COMPILER_OPTION_IF([-pie], [ - PIE_CFLAGS="-fPIE -DPIE" - PIE_LDFLAGS="-pie" - ], [ - dnl some versions of clang require -Wl,-pie instead of -pie - gl_COMPILER_OPTION_IF([[-Wl,-pie]], [ - PIE_CFLAGS="-fPIE -DPIE" - PIE_LDFLAGS="-Wl,-pie" - ], [AC_MSG_RESULT([not supported])], - [AC_LANG_PROGRAM()] - ) - ], - [AC_LANG_PROGRAM()] - ) - esac - CFLAGS=$OLD_CFLAGS - ]) - AC_SUBST([PIE_CFLAGS]) - AC_SUBST([PIE_LDFLAGS]) -]) - -dnl -dnl Check for support for Retpoline -dnl - -AC_DEFUN([AC_CC_RETPOLINE],[ - AC_ARG_WITH(retpoline, - AS_HELP_STRING([--with-retpoline=], [Retpoline mitigation choice (default: keep)]), - with_retpoline=$withval, - with_retpoline=keep) - - AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS]) - AS_IF([test "$enable_hardening" = yes], [ - case "$host" in - *) - gl_COMPILER_OPTION_IF([-mfunction-return=$with_retpoline], - [CFLAGS="$CFLAGS -mfunction-return=$with_retpoline"], - [], - [AC_LANG_PROGRAM()] - ) - gl_COMPILER_OPTION_IF([-mindirect-branch=$with_retpoline], [ - CFLAGS="$CFLAGS -mindirect-branch=$with_retpoline" - ], - [], - [AC_LANG_PROGRAM()] - ) - esac - ]) -]) - -dnl -dnl Check for support for -fstack-protector or -strong -dnl - -AC_DEFUN([AC_CC_F_STACK_PROTECTOR],[ - AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS]) - AS_IF([test "$enable_hardening" = yes], [ - case "$host" in - *) - gl_COMPILER_OPTION_IF([-fstack-protector-strong], [ - CFLAGS="$CFLAGS -fstack-protector-strong" - ], - [ - gl_COMPILER_OPTION_IF([-fstack-protector], [ - CFLAGS="$CFLAGS -fstack-protector" - ], [], [AC_LANG_PROGRAM()]) - ], - [AC_LANG_PROGRAM()] - ) - esac - ]) -]) - -AC_DEFUN([DC_DOVECOT_MODULEDIR],[ - AC_ARG_WITH(moduledir, - [ --with-moduledir=DIR Base directory for dynamically loadable modules], - [moduledir="$withval"], - [moduledir="$dovecot_moduledir"] - ) - AC_SUBST(moduledir) -]) - -AC_DEFUN([DC_PLUGIN_DEPS],[ - _plugin_deps=yes - AC_MSG_CHECKING([whether OS supports plugin dependencies]) - case "$host_os" in - darwin*) - dnl OSX loads the plugins twice, which breaks stuff - _plugin_deps=no - ;; - esac - AC_MSG_RESULT([$_plugin_deps]) - AM_CONDITIONAL([DOVECOT_PLUGIN_DEPS], [test "x$_plugin_deps" = "xyes"]) - unset _plugin_deps -]) - -AC_DEFUN([DC_DOVECOT_TEST_WRAPPER],[ - AC_ARG_VAR([VALGRIND], [Path to valgrind]) - AC_PATH_PROG(VALGRIND, valgrind, reject) - AS_IF([test "$VALGRIND" != reject], [ - cat > run-test.sh <<_DC_EOF -#!/bin/sh -top_srcdir=\$[1] -shift - -if test "\$NOUNDEF" != ""; then - noundef="--undef-value-errors=no" -else - noundef="" -fi - -if test "\$NOCHILDREN" != ""; then - trace_children="--trace-children=no" -else - trace_children="--trace-children=yes" -fi - -skip_path="\$top_srcdir/run-test-valgrind.exclude" -if test -r "\$skip_path" && grep -w -q "\$(basename \$[1])" "\$skip_path"; then - NOVALGRIND=true -fi - -if test "\$NOVALGRIND" != ""; then - \$[*] - ret=\$? -else - test_out="test.out~\$\$" - trap "rm -f \$test_out" 0 1 2 3 15 - supp_path="\$top_srcdir/run-test-valgrind.supp" - if test -r "\$supp_path"; then - $VALGRIND -q \$trace_children --error-exitcode=213 --leak-check=full --gen-suppressions=all --suppressions="\$supp_path" --log-file=\$test_out \$noundef \$[*] - else - $VALGRIND -q \$trace_children --error-exitcode=213 --leak-check=full --gen-suppressions=all --log-file=\$test_out \$noundef \$[*] - fi - ret=\$? - if test -s \$test_out; then - cat \$test_out - ret=1 - fi -fi -if test \$ret != 0; then - echo "Failed to run: \$[*]" >&2 -fi -exit \$ret -_DC_EOF - RUN_TEST='$(LIBTOOL) execute $(SHELL) $(top_builddir)/run-test.sh $(top_srcdir)' - ], [ - RUN_TEST='' - ]) - AC_SUBST(RUN_TEST) -]) - -dnl Substitute every var in the given comma separated list -AC_DEFUN([AX_SUBST_L],[ - m4_foreach([__var__], [$@], [AC_SUBST(__var__)]) -]) - -AC_DEFUN([DC_DOVECOT_HARDENING],[ - AC_ARG_ENABLE(hardening, - AS_HELP_STRING([--enable-hardening=yes], [Enable various hardenings (default: yes)]), - enable_hardening=$enableval, - enable_hardening=yes) - - AC_MSG_CHECKING([Whether to enable hardening]) - AC_MSG_RESULT([$enable_hardening]) - - AC_CC_PIE - AC_CC_F_STACK_PROTECTOR - AC_CC_D_FORTIFY_SOURCE - AC_CC_RETPOLINE - AC_LD_RELRO - DOVECOT_WANT_UBSAN -]) - -AC_DEFUN([DC_DOVECOT_FUZZER],[ - AC_ARG_WITH(fuzzer, - AS_HELP_STRING([--with-fuzzer=clang], [Build with clang fuzzer (default: no)]), - with_fuzzer=$withval, - with_fuzzer=no) - AS_IF([test x$with_fuzzer = xclang], [ - CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link" - # use $LIB_FUZZING_ENGINE for linking if it exists - FUZZER_LDFLAGS=${LIB_FUZZING_ENGINE--fsanitize=fuzzer} - # May need to use CXXLINK for linking, which wants sources to - # be compiled with -fPIE - FUZZER_CPPFLAGS='$(AM_CPPFLAGS) -fPIE -DPIE' - ], [test x$with_fuzzer != xno], [ - AC_MSG_ERROR([Unknown fuzzer $with_fuzzer]) - ]) - AC_SUBST([FUZZER_CPPFLAGS]) - AC_SUBST([FUZZER_LDFLAGS]) - AM_CONDITIONAL([USE_FUZZER], [test "x$with_fuzzer" != "xno"]) - -]) - -AC_DEFUN([DC_DOVECOT],[ - AC_ARG_WITH(dovecot, - [ --with-dovecot=DIR Dovecot base directory], - [ dovecotdir="$withval" ], [ - dc_prefix=$prefix - test "x$dc_prefix" = xNONE && dc_prefix=$ac_default_prefix - dovecotdir="$dc_prefix/lib/dovecot" - ] - ) - - AC_ARG_WITH(dovecot-install-dirs, - [AC_HELP_STRING([--with-dovecot-install-dirs], - [Use install directories configured for Dovecot (default)])], - AS_IF([test x$withval = xno], [ - use_install_dirs=no - ], [ - use_install_dirs=yes - ]), - use_install_dirs=yes) - - AC_MSG_CHECKING([for "$dovecotdir/dovecot-config"]) - AS_IF([test -f "$dovecotdir/dovecot-config"], [ - AC_MSG_RESULT([$dovecotdir/dovecot-config]) - ], [ - AC_MSG_RESULT([not found]) - AC_MSG_NOTICE([]) - AC_MSG_NOTICE([Use --with-dovecot=DIR to provide the path to the dovecot-config file.]) - AC_MSG_ERROR([dovecot-config not found]) - ]) - - old=`pwd` - cd $dovecotdir - abs_dovecotdir=`pwd` - cd $old - DISTCHECK_CONFIGURE_FLAGS="--with-dovecot=$abs_dovecotdir --without-dovecot-install-dirs" - - dnl Make sure dovecot-config doesn't accidentically override flags - ORIG_CFLAGS="$CFLAGS" - ORIG_LDFLAGS="$LDFLAGS" - ORIG_BINARY_CFLAGS="$BINARY_CFLAGS" - ORIG_BINARY_LDFLAGS="$BINARY_LDFLAGS" - - eval `grep -i '^dovecot_[[a-z_]]*=' "$dovecotdir"/dovecot-config` - eval `grep '^LIBDOVECOT[[A-Z0-9_]]*=' "$dovecotdir"/dovecot-config` - - CFLAGS="$ORIG_CFLAGS" - LDFLAGS="$ORIG_LDFLAGS" - BINARY_CFLAGS="$ORIG_BINARY_CFLAGS" - BINARY_LDFLAGS="$ORIG_BINARY_LDFLAGS" - - dovecot_installed_moduledir="$dovecot_moduledir" - - AS_IF([test "$use_install_dirs" = "no"], [ - dnl the main purpose of these is to fix make distcheck for plugins - dnl other than that, they don't really make much sense - dovecot_pkgincludedir='$(pkgincludedir)' - dovecot_pkglibdir='$(pkglibdir)' - dovecot_pkglibexecdir='$(libexecdir)/dovecot' - dovecot_docdir='$(docdir)' - dovecot_moduledir='$(moduledir)' - dovecot_statedir='$(statedir)' - ]) - - CC_CLANG - DC_DOVECOT_CFLAGS - DC_DOVECOT_HARDENING - - AX_SUBST_L([DISTCHECK_CONFIGURE_FLAGS], [dovecotdir], [dovecot_moduledir], [dovecot_installed_moduledir], [dovecot_pkgincludedir], [dovecot_pkglibexecdir], [dovecot_pkglibdir], [dovecot_docdir], [dovecot_statedir]) - AX_SUBST_L([DOVECOT_INSTALLED], [DOVECOT_CFLAGS], [DOVECOT_LIBS], [DOVECOT_SSL_LIBS], [DOVECOT_SQL_LIBS], [DOVECOT_COMPRESS_LIBS], [DOVECOT_BINARY_CFLAGS], [DOVECOT_BINARY_LDFLAGS]) - AX_SUBST_L([LIBDOVECOT], [LIBDOVECOT_LOGIN], [LIBDOVECOT_SQL], [LIBDOVECOT_SSL], [LIBDOVECOT_COMPRESS], [LIBDOVECOT_LDA], [LIBDOVECOT_STORAGE], [LIBDOVECOT_DSYNC], [LIBDOVECOT_LIBFTS]) - AX_SUBST_L([LIBDOVECOT_DEPS], [LIBDOVECOT_LOGIN_DEPS], [LIBDOVECOT_SQL_DEPS], [LIBDOVECOT_SSL_DEPS], [LIBDOVECOT_COMPRESS_DEPS], [LIBDOVECOT_LDA_DEPS], [LIBDOVECOT_STORAGE_DEPS], [LIBDOVECOT_DSYNC_DEPS], [LIBDOVECOT_LIBFTS_DEPS]) - AX_SUBST_L([LIBDOVECOT_INCLUDE], [LIBDOVECOT_LDA_INCLUDE], [LIBDOVECOT_AUTH_INCLUDE], [LIBDOVECOT_DOVEADM_INCLUDE], [LIBDOVECOT_SERVICE_INCLUDE], [LIBDOVECOT_STORAGE_INCLUDE], [LIBDOVECOT_LOGIN_INCLUDE], [LIBDOVECOT_SQL_INCLUDE]) - AX_SUBST_L([LIBDOVECOT_IMAP_LOGIN_INCLUDE], [LIBDOVECOT_CONFIG_INCLUDE], [LIBDOVECOT_IMAP_INCLUDE], [LIBDOVECOT_POP3_INCLUDE], [LIBDOVECOT_SUBMISSION_INCLUDE], [LIBDOVECOT_LMTP_INCLUDE], [LIBDOVECOT_DSYNC_INCLUDE], [LIBDOVECOT_IMAPC_INCLUDE], [LIBDOVECOT_FTS_INCLUDE]) - AX_SUBST_L([LIBDOVECOT_NOTIFY_INCLUDE], [LIBDOVECOT_PUSH_NOTIFICATION_INCLUDE], [LIBDOVECOT_ACL_INCLUDE], [LIBDOVECOT_LIBFTS_INCLUDE], [LIBDOVECOT_LUA_INCLUDE]) - AX_SUBST_L([DOVECOT_LUA_LIBS], [DOVECOT_LUA_CFLAGS], [LIBDOVECOT_LUA], [LIBDOVECOT_LUA_DEPS]) - - AM_CONDITIONAL(DOVECOT_INSTALLED, test "$DOVECOT_INSTALLED" = "yes") - - DC_PLUGIN_DEPS - DC_DOVECOT_TEST_WRAPPER -]) - -AC_DEFUN([DC_CC_WRAPPER],[ - AS_IF([test "$want_shared_libs" != "yes"], [ - dnl want_shared_libs=no is for internal use. the liblib.la check is for plugins - AS_IF([test "$want_shared_libs" = "no" || echo "$LIBDOVECOT" | grep "/liblib.la" > /dev/null], [ - AS_IF([test "$with_gnu_ld" = yes], [ - dnl libtool can't handle using whole-archive flags, so we need to do this - dnl with a CC wrapper.. shouldn't be much of a problem, since most people - dnl are building with shared libs. - cat > cc-wrapper.sh <<_DC_EOF -#!/bin/sh - -if echo "\$[*]" | grep -- -ldl > /dev/null; then - # the binary uses plugins. make sure we include everything from .a libs - exec $CC -Wl,--whole-archive \$[*] -Wl,--no-whole-archive -else - exec $CC \$[*] -fi -_DC_EOF - chmod +x cc-wrapper.sh - CC=`pwd`/cc-wrapper.sh - ]) - ]) - ]) -]) - -AC_DEFUN([DC_PANDOC], [ - AC_ARG_VAR(PANDOC, [Path to pandoc program]) - - dnl Optional tool for making documentation - AC_CHECK_PROGS(PANDOC, [pandoc], [true]) - - AS_IF([test "$PANDOC" = "true"], [ - AS_IF([test ! -e README], [ - AC_MSG_ERROR([Cannot produce documentation without pandoc - disable with PANDOC=false ./configure]) - ]) - ]) -]) -# warnings.m4 serial 11 -dnl Copyright (C) 2008-2015 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Simon Josefsson - -# gl_AS_VAR_APPEND(VAR, VALUE) -# ---------------------------- -# Provide the functionality of AS_VAR_APPEND if Autoconf does not have it. -m4_ifdef([AS_VAR_APPEND], -[m4_copy([AS_VAR_APPEND], [gl_AS_VAR_APPEND])], -[m4_define([gl_AS_VAR_APPEND], -[AS_VAR_SET([$1], [AS_VAR_GET([$1])$2])])]) - - -# gl_COMPILER_OPTION_IF(OPTION, [IF-SUPPORTED], [IF-NOT-SUPPORTED], -# [PROGRAM = AC_LANG_PROGRAM()]) -# ----------------------------------------------------------------- -# Check if the compiler supports OPTION when compiling PROGRAM. -# -# FIXME: gl_Warn must be used unquoted until we can assume Autoconf -# 2.64 or newer. -AC_DEFUN([gl_COMPILER_OPTION_IF], -[AS_VAR_PUSHDEF([gl_Warn], [gl_cv_warn_[]_AC_LANG_ABBREV[]_$1])dnl -AS_VAR_PUSHDEF([gl_Flags], [_AC_LANG_PREFIX[]FLAGS])dnl -AS_LITERAL_IF([$1], - [m4_pushdef([gl_Positive], m4_bpatsubst([$1], [^-Wno-], [-W]))], - [gl_positive="$1" -case $gl_positive in - -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; -esac -m4_pushdef([gl_Positive], [$gl_positive])])dnl -AC_CACHE_CHECK([whether _AC_LANG compiler handles $1], m4_defn([gl_Warn]), [ - gl_save_compiler_FLAGS="$gl_Flags" - gl_AS_VAR_APPEND(m4_defn([gl_Flags]), - [" $gl_unknown_warnings_are_errors ]m4_defn([gl_Positive])["]) - AC_LINK_IFELSE([m4_default([$4], [AC_LANG_PROGRAM([])])], - [AS_VAR_SET(gl_Warn, [yes])], - [AS_VAR_SET(gl_Warn, [no])]) - gl_Flags="$gl_save_compiler_FLAGS" -]) -AS_VAR_IF(gl_Warn, [yes], [$2], [$3]) -m4_popdef([gl_Positive])dnl -AS_VAR_POPDEF([gl_Flags])dnl -AS_VAR_POPDEF([gl_Warn])dnl -]) - -# gl_UNKNOWN_WARNINGS_ARE_ERRORS -# ------------------------------ -# Clang doesn't complain about unknown warning options unless one also -# specifies -Wunknown-warning-option -Werror. Detect this. -AC_DEFUN([gl_UNKNOWN_WARNINGS_ARE_ERRORS], -[gl_COMPILER_OPTION_IF([-Werror -Wunknown-warning-option], - [gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'], - [gl_unknown_warnings_are_errors=])]) - -# gl_WARN_ADD(OPTION, [VARIABLE = WARN_CFLAGS], -# [PROGRAM = AC_LANG_PROGRAM()]) -# --------------------------------------------- -# Adds parameter to WARN_CFLAGS if the compiler supports it when -# compiling PROGRAM. For example, gl_WARN_ADD([-Wparentheses]). -# -# If VARIABLE is a variable name, AC_SUBST it. -AC_DEFUN([gl_WARN_ADD], -[AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS]) -gl_COMPILER_OPTION_IF([$1], - [gl_AS_VAR_APPEND(m4_if([$2], [], [[WARN_CFLAGS]], [[$2]]), [" $1"])], - [], - [$3]) -m4_ifval([$2], - [AS_LITERAL_IF([$2], [AC_SUBST([$2])])], - [AC_SUBST([WARN_CFLAGS])])dnl -]) - -# Local Variables: -# mode: autoconf -# End: -dnl * clang check -AC_DEFUN([CC_CLANG],[ - AC_MSG_CHECKING([whether $CC is clang 3.3+]) - AS_IF([$CC -dM -E -x c /dev/null | grep __clang__ > /dev/null 2>&1], [ - AS_VAR_SET([have_clang], [yes]) - ], [ - AS_VAR_SET([have_clang], [no]) - ]) - AC_MSG_RESULT([$have_clang]) -]) - -AC_DEFUN([DOVECOT_WANT_UBSAN], [ - AC_ARG_ENABLE(ubsan, - AS_HELP_STRING([--enable-ubsan], [Enable undefined behaviour sanitizes (default=no)]), - [want_ubsan=yes], [want_ubsan=no]) - AC_MSG_CHECKING([whether we want undefined behaviour sanitizer]) - AC_MSG_RESULT([$want_ubsan]) - AS_IF([test x$want_ubsan = xyes], [ - san_flags="" - gl_COMPILER_OPTION_IF([-fsanitize=undefined], [ - san_flags="$san_flags -fsanitize=undefined" - AC_DEFINE([HAVE_FSANITIZE_UNDEFINED], [1], [Define if your compiler has -fsanitize=undefined]) - ]) - gl_COMPILER_OPTION_IF([-fno-sanitize=nonnull-attribute], [ - san_flags="$san_flags -fno-sanitize=nonnull-attribute" - AC_DEFINE([HAVE_FNO_SANITIZE_NONNULL_ATTRIBUTE], [1], [Define if your compiler has -fno-sanitize=nonnull-attribute]) - ]) - gl_COMPILER_OPTION_IF([-fsanitize=implicit-integer-truncation], [ - san_flags="$san_flags -fsanitize=implicit-integer-truncation" - AC_DEFINE([HAVE_FSANITIZE_IMPLICIT_INTEGER_TRUNCATION], [1], [Define if your compiler has -fsanitize=implicit-integer-truncation]) - ]) - gl_COMPILER_OPTION_IF([-fsanitize=local-bounds], [ - san_flags="$san_flags -fsanitize=local-bounds" - AC_DEFINE([HAVE_FSANITIZE_LOCAL_BOUNDS], [1], [Define if your compiler has -fsanitize=local-bounds]) - ]) - gl_COMPILER_OPTION_IF([-fsanitize=integer], [ - san_flags="$san_flags -fsanitize=integer" - AC_DEFINE([HAVE_FSANITIZE_INTEGER], [1], [Define if your compiler has -fsanitize=integer]) - ]) - gl_COMPILER_OPTION_IF([-fsanitize=nullability], [ - san_flags="$san_flags -fsanitize=nullability" - AC_DEFINE([HAVE_FSANITIZE_NULLABILITY], [1], [Define if your compiler has -fsanitize=nullability]) - ]) - AS_IF([test "$san_flags" != "" ], [ - EXTRA_CFLAGS="$EXTRA_CFLAGS $san_flags -U_FORTIFY_SOURCE -g -ggdb3 -O0 -fno-omit-frame-pointer" - AC_DEFINE([HAVE_UNDEFINED_SANITIZER], [1], [Define if your compiler supports undefined sanitizers]) - ], [ - AC_MSG_ERROR([No undefined sanitizer support in your compiler]) - ]) - san_flags="" - ]) -]) diff --git a/m4/fd_passing.m4 b/m4/fd_passing.m4 deleted file mode 100644 index 6b96c0fb94..0000000000 --- a/m4/fd_passing.m4 +++ /dev/null @@ -1,93 +0,0 @@ -dnl * see if fd passing works -AC_DEFUN([DOVECOT_FD_PASSING], [ - AC_CACHE_CHECK([whether fd passing works],i_cv_fd_passing,[ - for i in 1 2; do - old_cflags="$CFLAGS" - CFLAGS="$CFLAGS -I$srcdir/src/lib $srcdir/src/lib/fdpass.c" - if test $i = 2; then - CFLAGS="$CFLAGS -DBUGGY_CMSG_MACROS" - fi - - AC_TRY_RUN([ - #include - #include - #include - #include - #include - #include - #include "fdpass.h" - - static - int nopen(void) - { - int i, n; - struct stat sb; - for (i = n = 0; i < 256; i++) - if (fstat(i, &sb) == 0) n++; - return n; - } - int main(void) - { - int fd[2], send_fd, recv_fd, status, n1, n2; - struct stat st, st2; - char data; - - send_fd = creat("conftest.fdpass", 0600); - if (send_fd == -1) return 2; - unlink("conftest.fdpass"); - if (fstat(send_fd, &st) < 0) return 2; - if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) return 2; - n1 = nopen(); - - switch (fork()) { - case -1: - return 2; - case 0: - alarm(1); - if (fd_send(fd[0], send_fd, &data, 1) != 1) return 2; - return 0; - default: - alarm(2); - if (wait(&status) == -1) - return 2; - if (status != 0) - return status; - if (fd_read(fd[1], &data, 1, &recv_fd) != 1) return 1; - if (fstat(recv_fd, &st2) < 0) return 2; - /* nopen check is for making sure that only a single fd - was received */ - n2 = nopen(); - return st.st_ino == st2.st_ino && n2 == n1 + 1 ? 0 : 1; - } - } - ], [ - CFLAGS=$old_cflags - if test $i = 2; then - i_cv_fd_passing=buggy_cmsg_macros - else - i_cv_fd_passing=yes - fi - break - ], [ - dnl no, try with BUGGY_CMSG_MACROS - CFLAGS=$old_cflags - i_cv_fd_passing=no - ]) - done - ]); - - case "$host_os" in - darwin[[1-9]].*) - if test "$i_cv_fd_passing" = "yes"; then - i_cv_fd_passing=buggy_cmsg_macros - fi - ;; - esac - - if test $i_cv_fd_passing = buggy_cmsg_macros; then - AC_DEFINE(BUGGY_CMSG_MACROS,, [Define if you have buggy CMSG macros]) - fi - if test $i_cv_fd_passing = no; then - AC_ERROR([fd passing is required for Dovecot to work]) - fi -]) diff --git a/m4/fdatasync.m4 b/m4/fdatasync.m4 deleted file mode 100644 index bb17e94e75..0000000000 --- a/m4/fdatasync.m4 +++ /dev/null @@ -1,5 +0,0 @@ -AC_DEFUN([DOVECOT_FDATASYNC], [ - AC_SEARCH_LIBS(fdatasync, rt, [ - AC_DEFINE(HAVE_FDATASYNC,, [Define if you have fdatasync()]) - ]) -]) diff --git a/m4/flexible_array_member.m4 b/m4/flexible_array_member.m4 deleted file mode 100644 index 10fea3b433..0000000000 --- a/m4/flexible_array_member.m4 +++ /dev/null @@ -1,25 +0,0 @@ -dnl Our implementation of AC_C_FLEXIBLE_ARRAY_MEMBER. -dnl Use it until autoconf 2.61+ becomes more widely used -AC_DEFUN([DOVECOT_C_FLEXIBLE_ARRAY_MEMBER], [ - AC_CACHE_CHECK([if we can use C99-like flexible array members],i_cv_c99_flex_arrays,[ - AC_TRY_COMPILE([ - struct foo { - int x; - char y[]; - }; - ], [ - struct foo foo; - ], [ - i_cv_c99_flex_arrays=yes - ], [ - i_cv_c99_flex_arrays=no - ]) - ]) - - if test $i_cv_c99_flex_arrays = yes; then - flexible_value= - else - flexible_value=1 - fi - AC_DEFINE_UNQUOTED(FLEXIBLE_ARRAY_MEMBER, $flexible_value, [How to define flexible array members in structs]) -]) diff --git a/m4/glibc.m4 b/m4/glibc.m4 deleted file mode 100644 index 5d722aab5b..0000000000 --- a/m4/glibc.m4 +++ /dev/null @@ -1,49 +0,0 @@ -AC_DEFUN([DOVECOT_GLIBC], [ - AC_CACHE_CHECK([whether we have glibc],i_cv_have_glibc,[ - AC_TRY_COMPILE([ - #include - #ifdef __GLIBC__ - we have glibc - #endif - ],, [ - i_cv_have_glibc=no - ], [ - i_cv_have_glibc=yes - ]) - ]) - if test "$i_cv_have_glibc" = "yes"; then - AC_DEFINE(PREAD_WRAPPERS,, [Define if pread/pwrite needs _XOPEN_SOURCE 500]) - fi - dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. - dnl * It may also be broken in AIX. - AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[ - AC_TRY_RUN([ - #define _XOPEN_SOURCE 600 - #include - #include - #include - #include - #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) - possibly broken posix_fallocate - #endif - int main() { - int fd = creat("conftest.temp", 0600); - int ret; - if (fd == -1) { - perror("creat()"); - return 2; - } - ret = posix_fallocate(fd, 1024, 1024) < 0 ? 1 : 0; - unlink("conftest.temp"); - return ret; - } - ], [ - i_cv_posix_fallocate_works=yes - ], [ - i_cv_posix_fallocate_works=no - ]) - ]) - if test $i_cv_posix_fallocate_works = yes; then - AC_DEFINE(HAVE_POSIX_FALLOCATE,, [Define if you have a working posix_fallocate()]) - fi -]) diff --git a/m4/gmtime_max.m4 b/m4/gmtime_max.m4 deleted file mode 100644 index 1613cb25c2..0000000000 --- a/m4/gmtime_max.m4 +++ /dev/null @@ -1,42 +0,0 @@ -dnl * how large time_t values does gmtime() accept? -AC_DEFUN([DOVECOT_GMTIME_MAX], [ - AC_CACHE_CHECK([how large time_t values gmtime() accepts],i_cv_gmtime_max_time_t,[ - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - int main() { - FILE *f; - int bits; - - for (bits = 1; bits < sizeof(time_t)*8; bits++) { - time_t t = ((time_t)1 << bits) - 1; - if (gmtime(&t) == NULL) { - bits--; - break; - } - } - if (bits > 40) { - /* Solaris 9 breaks after 55 bits. Perhaps other systems break earlier. - Let's just do the same as Cyrus folks and limit it to 40 bits. */ - bits = 40; - } - - f = fopen("conftest.temp", "w"); - if (f == NULL) { - perror("fopen()"); - return 1; - } - fprintf(f, "%d", bits); - fclose(f); - return 0; - } - ]])],[ - i_cv_gmtime_max_time_t=`cat conftest.temp` - rm -f conftest.temp - ], [ - printf "check failed, assuming " - i_cv_gmtime_max_time_t=31 - ],[]) - ]) - AC_DEFINE_UNQUOTED(TIME_T_MAX_BITS, $i_cv_gmtime_max_time_t, [max. time_t bits gmtime() can handle]) -]) diff --git a/m4/gmtime_tm_gmtoff.m4 b/m4/gmtime_tm_gmtoff.m4 deleted file mode 100644 index 57df6aeb1e..0000000000 --- a/m4/gmtime_tm_gmtoff.m4 +++ /dev/null @@ -1,14 +0,0 @@ -dnl * do we have tm_gmtoff -AC_DEFUN([DOVECOT_TM_GMTOFF], [ - AC_MSG_CHECKING([for tm_gmtoff]) - AC_CACHE_VAL(i_cv_field_tm_gmtoff, - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include ]], - [[struct tm *tm; return tm->tm_gmtoff;]])], - [i_cv_field_tm_gmtoff=yes], - [i_cv_field_tm_gmtoff=no])]) - if test $i_cv_field_tm_gmtoff = yes; then - AC_DEFINE(HAVE_TM_GMTOFF,, [Define if you have struct tm->tm_gmtoff]) - fi - AC_MSG_RESULT($i_cv_field_tm_gmtoff) -]) diff --git a/m4/ioloop.m4 b/m4/ioloop.m4 deleted file mode 100644 index 0f7dde05e6..0000000000 --- a/m4/ioloop.m4 +++ /dev/null @@ -1,53 +0,0 @@ -dnl * I/O loop function -AC_DEFUN([DOVECOT_IOLOOP], [ - have_ioloop=no - - if test "$ioloop" = "best" || test "$ioloop" = "epoll"; then - AC_CACHE_CHECK([whether we can use epoll],i_cv_epoll_works,[ - AC_TRY_RUN([ - #include - - int main() - { - return epoll_create(5) < 1; - } - ], [ - i_cv_epoll_works=yes - ], [ - i_cv_epoll_works=no - ]) - ]) - if test $i_cv_epoll_works = yes; then - AC_DEFINE(IOLOOP_EPOLL,, [Implement I/O loop with Linux 2.6 epoll()]) - have_ioloop=yes - ioloop=epoll - else - if test "$ioloop" = "epoll" ; then - AC_MSG_ERROR([epoll ioloop requested but epoll_create() is not available]) - fi - fi - fi - - if test "$ioloop" = "best" || test "$ioloop" = "kqueue"; then - if test "$ac_cv_func_kqueue" = yes && test "$ac_cv_func_kevent" = yes; then - AC_DEFINE(IOLOOP_KQUEUE,, [Implement I/O loop with BSD kqueue()]) - ioloop=kqueue - have_ioloop=yes - elif test "$ioloop" = "kqueue"; then - AC_MSG_ERROR([kqueue ioloop requested but kqueue() is not available]) - fi - fi - - if test "$ioloop" = "best" || test "$ioloop" = "poll"; then - AC_CHECK_FUNC(poll, [ - AC_DEFINE(IOLOOP_POLL,, [Implement I/O loop with poll()]) - ioloop=poll - have_ioloop=yes - ]) - fi - - if test "$have_ioloop" = "no"; then - AC_DEFINE(IOLOOP_SELECT,, [Implement I/O loop with select()]) - ioloop="select" - fi -]) diff --git a/m4/iovec.m4 b/m4/iovec.m4 deleted file mode 100644 index a1f3b48558..0000000000 --- a/m4/iovec.m4 +++ /dev/null @@ -1,17 +0,0 @@ -dnl * do we have struct iovec -AC_DEFUN([DOVECOT_IOVEC], [ - AC_MSG_CHECKING([for struct iovec]) - AC_CACHE_VAL(i_cv_struct_iovec, - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - #include ]], - [[struct iovec *iovec;]])], - [i_cv_struct_iovec=yes], - [i_cv_struct_iovec=no])]) - - if test $i_cv_struct_iovec = yes; then - AC_DEFINE(HAVE_STRUCT_IOVEC,, [Define if you have struct iovec]) - fi - AC_MSG_RESULT($i_cv_struct_iovec) -]) diff --git a/m4/ipv6.m4 b/m4/ipv6.m4 deleted file mode 100644 index 02c400eb33..0000000000 --- a/m4/ipv6.m4 +++ /dev/null @@ -1,25 +0,0 @@ -dnl ** -dnl ** IPv6 support -dnl ** - -AC_DEFUN([DOVECOT_IPV6], [ - have_ipv6=no - AC_MSG_CHECKING([for IPv6]) - AC_CACHE_VAL(i_cv_type_in6_addr, - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - #include - #include - #include ]], - [[struct in6_addr i; (void)i;]])], - [i_cv_type_in6_addr=yes], - [i_cv_type_in6_addr=no])]) - if test $i_cv_type_in6_addr = yes; then - AC_DEFINE(HAVE_IPV6,, [Build with IPv6 support]) - have_ipv6=yes - else - AC_ERROR([Can't build without IPv6 support.]) - fi - AC_MSG_RESULT($i_cv_type_in6_addr) -]) diff --git a/m4/libcap.m4 b/m4/libcap.m4 deleted file mode 100644 index b4ab9cc133..0000000000 --- a/m4/libcap.m4 +++ /dev/null @@ -1,13 +0,0 @@ -AC_DEFUN([DOVECOT_LIBCAP],[ - if test $want_libcap != no; then - AC_CHECK_LIB(cap, cap_init, [ - AC_DEFINE(HAVE_LIBCAP,, [libcap is installed for cap_init()]) - LIBCAP="-lcap" - AC_SUBST(LIBCAP) - ], [ - if test "$want_libcap" = "yes"; then - AC_ERROR([Can't build with libcap support: libcap not found]) - fi - ]) - fi -]) diff --git a/m4/libwrap.m4 b/m4/libwrap.m4 deleted file mode 100644 index 895c067b64..0000000000 --- a/m4/libwrap.m4 +++ /dev/null @@ -1,38 +0,0 @@ -AC_DEFUN([DOVECOT_LIBWRAP], [ - have_libwrap=no - if test $want_libwrap != no; then - AC_CHECK_HEADER(tcpd.h, [ - old_LIBS=$LIBS - - AC_CACHE_CHECK([whether we have libwrap],i_cv_have_libwrap,[ - AC_TRY_COMPILE([ - #include - int allow_severity = 0; - int deny_severity = 0; - ], [ - request_init((void *)0); - ], [ - i_cv_have_libwrap=yes - ], [ - i_cv_have_libwrap=no - ]) - ]) - if test $i_cv_have_libwrap = yes; then - AC_DEFINE(HAVE_LIBWRAP,, [Define if you have libwrap]) - LIBWRAP_LIBS=-lwrap - AC_SUBST(LIBWRAP_LIBS) - have_libwrap=yes - else - if test "$want_libwrap" = "yes"; then - AC_ERROR([Can't build with libwrap support: libwrap not found]) - fi - fi - LIBS=$old_LIBS - ], [ - if test "$want_libwrap" = "yes"; then - AC_ERROR([Can't build with libwrap support: tcpd.h not found]) - fi - ]) - fi - AM_CONDITIONAL(TCPWRAPPERS, test "$have_libwrap" = "yes") -]) diff --git a/m4/linux_mremap.m4 b/m4/linux_mremap.m4 deleted file mode 100644 index 7eb0cce41c..0000000000 --- a/m4/linux_mremap.m4 +++ /dev/null @@ -1,19 +0,0 @@ -dnl * Linux compatible mremap() -AC_DEFUN([DOVECOT_LINUX_MREMAP], [ - AC_CACHE_CHECK([Linux compatible mremap()],i_cv_have_linux_mremap,[ - AC_TRY_LINK([ - #include - #define __USE_GNU - #include - ], [ - mremap(0, 0, 0, MREMAP_MAYMOVE); - ], [ - i_cv_have_linux_mremap=yes - ], [ - i_cv_have_linux_mremap=no - ]) - ]) - if test $i_cv_have_linux_mremap = yes; then - AC_DEFINE(HAVE_LINUX_MREMAP,, [Define if you have Linux-compatible mremap()]) - fi -]) diff --git a/m4/mmap_write.m4 b/m4/mmap_write.m4 deleted file mode 100644 index 3352c3af23..0000000000 --- a/m4/mmap_write.m4 +++ /dev/null @@ -1,44 +0,0 @@ -dnl * If mmap() plays nicely with write() -AC_DEFUN([DOVECOT_MMAP_WRITE], [ - AC_CACHE_CHECK([whether shared mmaps get updated by write()s],i_cv_mmap_plays_with_write,[ - AC_TRY_RUN([ - #include - #include - #include - #include - #include - #include - #include - int main() { - /* return 0 if we're signed */ - int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC, 0600); - void *mem; - if (f == -1) { - perror("open()"); - return 1; - } - unlink("conftest.mmap"); - - write(f, "1", 2); - mem = mmap(NULL, 2, PROT_READ|PROT_WRITE, MAP_SHARED, f, 0); - if (mem == MAP_FAILED) { - perror("mmap()"); - return 1; - } - strcpy(mem, "2"); - msync(mem, 2, MS_SYNC); - lseek(f, 0, SEEK_SET); - write(f, "3", 2); - - return strcmp(mem, "3") == 0 ? 0 : 1; - } - ], [ - i_cv_mmap_plays_with_write=yes - ], [ - i_cv_mmap_plays_with_write=no - ]) - ]) - if test $i_cv_mmap_plays_with_write = no; then - AC_DEFINE(MMAP_CONFLICTS_WRITE,, [Define if shared mmaps don't get updated by write()s]) - fi -]) diff --git a/m4/mntctl.m4 b/m4/mntctl.m4 deleted file mode 100644 index 9d0dde1d13..0000000000 --- a/m4/mntctl.m4 +++ /dev/null @@ -1,30 +0,0 @@ -dnl ** -dnl ** AIX mntctl -dnl ** - -AC_DEFUN([DOVECOT_MNTCTL], [ - if test $ac_cv_header_sys_vmount_h = yes; then - AC_MSG_CHECKING([for reasonable mntctl buffer size]) - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - #include - int main() { - int size,count; char *m; - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - if ((count=mntctl(MCTL_QUERY,sizeof(size),&size))!=0 || !(m=malloc(size)) || - (count=mntctl(MCTL_QUERY,size,m))<=0) exit(1); - fprintf(f, "%d\n",(size * (count + 5))/count & ~1); /* 5 mounts more */ - exit(0); - } - ]])],[ - size=`cat conftestval` - rm -f conftestval - AC_DEFINE_UNQUOTED(STATIC_MTAB_SIZE,$size, [reasonable mntctl buffer size]) - AC_MSG_RESULT($size) - ],[ - AC_MSG_RESULT(default) - ]) - fi -]) diff --git a/m4/notify.m4 b/m4/notify.m4 deleted file mode 100644 index e4da4b965a..0000000000 --- a/m4/notify.m4 +++ /dev/null @@ -1,41 +0,0 @@ -AC_DEFUN([DOVECOT_NOTIFY], [ - have_notify=none - - if test "$notify" = "" || test "$notify" = "inotify" ; then - dnl * inotify? - AC_MSG_CHECKING([whether we can use inotify]) - if test "$ac_cv_func_inotify_init" = yes; then - have_notify=inotify - notify=inotify - AC_MSG_RESULT("yes") - AC_DEFINE(IOLOOP_NOTIFY_INOTIFY,, [Use Linux inotify]) - else - AC_MSG_RESULT("no") - if test "$notify" = "inotify"; then - AC_MSG_ERROR([inotify requested but not available]) - notify="" - fi - fi - fi - - if (test "$notify" = "" && test "$ioloop" = kqueue) || test "$notify" = "kqueue"; then - dnl * BSD kqueue() notify - AC_MSG_CHECKING([whether we can use BSD kqueue() notify]) - if test "$ac_cv_func_kqueue" = yes && test "$ac_cv_func_kevent" = yes ; then - have_notify=kqueue - notify=kqueue - AC_MSG_RESULT("yes") - AC_DEFINE(IOLOOP_NOTIFY_KQUEUE,, [Use BSD kqueue directory changes notification]) - else - AC_MSG_RESULT("no") - if test "$notify" = "kqueue" ; then - AC_MSG_ERROR([kqueue notify requested but kqueue() is not available]) - notify="" - fi - fi - fi - - if test "$have_notify" = "none"; then - AC_DEFINE(IOLOOP_NOTIFY_NONE,, [No special notify support]) - fi -]) diff --git a/m4/nsl.m4 b/m4/nsl.m4 deleted file mode 100644 index f0b9bf97b2..0000000000 --- a/m4/nsl.m4 +++ /dev/null @@ -1,6 +0,0 @@ -AC_DEFUN([DOVECOT_NSL], [ - AC_SEARCH_LIBS([inet_aton], [resolv]) - AC_SEARCH_LIBS([gethostbyname], [nsl]) - AC_SEARCH_LIBS([socket], [socket]) - AC_SEARCH_LIBS([gethostent], [nsl]) -]) diff --git a/m4/off_t_max.m4 b/m4/off_t_max.m4 deleted file mode 100644 index 4ec6d08b4e..0000000000 --- a/m4/off_t_max.m4 +++ /dev/null @@ -1,13 +0,0 @@ -AC_DEFUN([DOVECOT_OFF_T_MAX], [ - dnl * Do we have OFF_T_MAX? - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - ]], [[ - off_t i = OFF_T_MAX; - ]])],[ - : - ],[ - AC_DEFINE_UNQUOTED(OFF_T_MAX, $offt_max, [Maximum value of off_t]) - ]) -]) diff --git a/m4/pkg.m4 b/m4/pkg.m4 deleted file mode 100644 index d8549a4789..0000000000 --- a/m4/pkg.m4 +++ /dev/null @@ -1,343 +0,0 @@ -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# serial 11 (pkg-config-0.29.1) - -dnl Copyright © 2004 Scott James Remnant . -dnl Copyright © 2012-2015 Dan Nicholson -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, but -dnl WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception to the GNU General Public License, if you -dnl distribute this file as part of a program that contains a -dnl configuration script generated by Autoconf, you may include it under -dnl the same distribution terms that you use for the rest of that -dnl program. - -dnl PKG_PREREQ(MIN-VERSION) -dnl ----------------------- -dnl Since: 0.29 -dnl -dnl Verify that the version of the pkg-config macros are at least -dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's -dnl installed version of pkg-config, this checks the developer's version -dnl of pkg.m4 when generating configure. -dnl -dnl To ensure that this macro is defined, also add: -dnl m4_ifndef([PKG_PREREQ], -dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) -dnl -dnl See the "Since" comment for each macro you use to see what version -dnl of the macros you require. -m4_defun([PKG_PREREQ], -[m4_define([PKG_MACROS_VERSION], [0.29.1]) -m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, - [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) -])dnl PKG_PREREQ - -dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) -dnl ---------------------------------- -dnl Since: 0.16 -dnl -dnl Search for the pkg-config tool and set the PKG_CONFIG variable to -dnl first found in the path. Checks that the version of pkg-config found -dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is -dnl used since that's the first version where most current features of -dnl pkg-config existed. -AC_DEFUN([PKG_PROG_PKG_CONFIG], -[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) -m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) -m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) -AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) -AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) -AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) - -if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then - AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) -fi -if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) - AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - PKG_CONFIG="" - fi -fi[]dnl -])dnl PKG_PROG_PKG_CONFIG - -dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -dnl ------------------------------------------------------------------- -dnl Since: 0.18 -dnl -dnl Check to see whether a particular set of modules exists. Similar to -dnl PKG_CHECK_MODULES(), but does not set variables or print errors. -dnl -dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -dnl only at the first occurence in configure.ac, so if the first place -dnl it's called might be skipped (such as if it is within an "if", you -dnl have to call PKG_CHECK_EXISTS manually -AC_DEFUN([PKG_CHECK_EXISTS], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -if test -n "$PKG_CONFIG" && \ - AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then - m4_default([$2], [:]) -m4_ifvaln([$3], [else - $3])dnl -fi]) - -dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -dnl --------------------------------------------- -dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting -dnl pkg_failed based on the result. -m4_define([_PKG_CONFIG], -[if test -n "$$1"; then - pkg_cv_[]$1="$$1" - elif test -n "$PKG_CONFIG"; then - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes ], - [pkg_failed=yes]) - else - pkg_failed=untried -fi[]dnl -])dnl _PKG_CONFIG - -dnl _PKG_SHORT_ERRORS_SUPPORTED -dnl --------------------------- -dnl Internal check to see if pkg-config supports short errors. -AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi[]dnl -])dnl _PKG_SHORT_ERRORS_SUPPORTED - - -dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -dnl [ACTION-IF-NOT-FOUND]) -dnl -------------------------------------------------------------- -dnl Since: 0.4.0 -dnl -dnl Note that if there is a possibility the first call to -dnl PKG_CHECK_MODULES might not happen, you should be sure to include an -dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac -AC_DEFUN([PKG_CHECK_MODULES], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl -AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl - -pkg_failed=no -AC_MSG_CHECKING([for $1]) - -_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) -_PKG_CONFIG([$1][_LIBS], [libs], [$2]) - -m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS -and $1[]_LIBS to avoid the need to call pkg-config. -See the pkg-config man page for more details.]) - -if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) - _PKG_SHORT_ERRORS_SUPPORTED - if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - - m4_default([$4], [AC_MSG_ERROR( -[Package requirements ($2) were not met: - -$$1_PKG_ERRORS - -Consider adjusting the PKG_CONFIG_PATH environment variable if you -installed software in a non-standard prefix. - -_PKG_TEXT])[]dnl - ]) -elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( -[The pkg-config script could not be found or is too old. Make sure it -is in your PATH or set the PKG_CONFIG environment variable to the full -path to pkg-config. - -_PKG_TEXT - -To get pkg-config, see .])[]dnl - ]) -else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS - AC_MSG_RESULT([yes]) - $3 -fi[]dnl -])dnl PKG_CHECK_MODULES - - -dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -dnl [ACTION-IF-NOT-FOUND]) -dnl --------------------------------------------------------------------- -dnl Since: 0.29 -dnl -dnl Checks for existence of MODULES and gathers its build flags with -dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags -dnl and VARIABLE-PREFIX_LIBS from --libs. -dnl -dnl Note that if there is a possibility the first call to -dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to -dnl include an explicit call to PKG_PROG_PKG_CONFIG in your -dnl configure.ac. -AC_DEFUN([PKG_CHECK_MODULES_STATIC], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -_save_PKG_CONFIG=$PKG_CONFIG -PKG_CONFIG="$PKG_CONFIG --static" -PKG_CHECK_MODULES($@) -PKG_CONFIG=$_save_PKG_CONFIG[]dnl -])dnl PKG_CHECK_MODULES_STATIC - - -dnl PKG_INSTALLDIR([DIRECTORY]) -dnl ------------------------- -dnl Since: 0.27 -dnl -dnl Substitutes the variable pkgconfigdir as the location where a module -dnl should install pkg-config .pc files. By default the directory is -dnl $libdir/pkgconfig, but the default can be changed by passing -dnl DIRECTORY. The user can override through the --with-pkgconfigdir -dnl parameter. -AC_DEFUN([PKG_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([pkgconfigdir], - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, - [with_pkgconfigdir=]pkg_default) -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -])dnl PKG_INSTALLDIR - - -dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) -dnl -------------------------------- -dnl Since: 0.27 -dnl -dnl Substitutes the variable noarch_pkgconfigdir as the location where a -dnl module should install arch-independent pkg-config .pc files. By -dnl default the directory is $datadir/pkgconfig, but the default can be -dnl changed by passing DIRECTORY. The user can override through the -dnl --with-noarch-pkgconfigdir parameter. -AC_DEFUN([PKG_NOARCH_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([noarch-pkgconfigdir], - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, - [with_noarch_pkgconfigdir=]pkg_default) -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -])dnl PKG_NOARCH_INSTALLDIR - - -dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, -dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -dnl ------------------------------------------- -dnl Since: 0.28 -dnl -dnl Retrieves the value of the pkg-config variable for the given module. -AC_DEFUN([PKG_CHECK_VAR], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl - -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) -AS_VAR_COPY([$1], [pkg_cv_][$1]) - -AS_VAR_IF([$1], [""], [$5], [$4])dnl -])dnl PKG_CHECK_VAR - -dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, -dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], -dnl [DESCRIPTION], [DEFAULT]) -dnl ------------------------------------------ -dnl -dnl Prepare a "--with-" configure option using the lowercase -dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and -dnl PKG_CHECK_MODULES in a single macro. -AC_DEFUN([PKG_WITH_MODULES], -[ -m4_pushdef([with_arg], m4_tolower([$1])) - -m4_pushdef([description], - [m4_default([$5], [build with ]with_arg[ support])]) - -m4_pushdef([def_arg], [m4_default([$6], [auto])]) -m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) -m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) - -m4_case(def_arg, - [yes],[m4_pushdef([with_without], [--without-]with_arg)], - [m4_pushdef([with_without],[--with-]with_arg)]) - -AC_ARG_WITH(with_arg, - AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, - [AS_TR_SH([with_]with_arg)=def_arg]) - -AS_CASE([$AS_TR_SH([with_]with_arg)], - [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], - [auto],[PKG_CHECK_MODULES([$1],[$2], - [m4_n([def_action_if_found]) $3], - [m4_n([def_action_if_not_found]) $4])]) - -m4_popdef([with_arg]) -m4_popdef([description]) -m4_popdef([def_arg]) - -])dnl PKG_WITH_MODULES - -dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, -dnl [DESCRIPTION], [DEFAULT]) -dnl ----------------------------------------------- -dnl -dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES -dnl check._[VARIABLE-PREFIX] is exported as make variable. -AC_DEFUN([PKG_HAVE_WITH_MODULES], -[ -PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) - -AM_CONDITIONAL([HAVE_][$1], - [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) -])dnl PKG_HAVE_WITH_MODULES - -dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, -dnl [DESCRIPTION], [DEFAULT]) -dnl ------------------------------------------------------ -dnl -dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after -dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make -dnl and preprocessor variable. -AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], -[ -PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) - -AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], - [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) -])dnl PKG_HAVE_DEFINE_WITH_MODULES diff --git a/m4/pr_set_dumpable.m4 b/m4/pr_set_dumpable.m4 deleted file mode 100644 index a5f94f79b6..0000000000 --- a/m4/pr_set_dumpable.m4 +++ /dev/null @@ -1,16 +0,0 @@ -AC_DEFUN([DOVECOT_PR_SET_DUMPABLE], [ - AC_CACHE_CHECK([whether PR_SET_DUMPABLE exists],i_cv_have_pr_set_dumpable,[ - AC_TRY_LINK([ - #include - ], [ - prctl(PR_SET_DUMPABLE, 1, 0, 0, 0); - ], [ - i_cv_have_pr_set_dumpable=yes - ], [ - i_cv_have_pr_set_dumpable=no - ]) - ]) - if test $i_cv_have_pr_set_dumpable = yes; then - AC_DEFINE(HAVE_PR_SET_DUMPABLE,, [Define if you have prctl(PR_SET_DUMPABLE)]) - fi -]) diff --git a/m4/q_quotactl.m4 b/m4/q_quotactl.m4 deleted file mode 100644 index 36099ab439..0000000000 --- a/m4/q_quotactl.m4 +++ /dev/null @@ -1,20 +0,0 @@ -dnl * Check if we have Q_QUOTACTL ioctl (Solaris) -AC_DEFUN([DOVECOT_Q_QUOTACTL], [ - AC_CACHE_CHECK([if Q_QUOTACTL ioctl exists],i_cv_have_ioctl_q_quotactl,[ - AC_TRY_COMPILE([ - #include - #include - ], [ - struct quotctl ctl; - ioctl(0, Q_QUOTACTL, &ctl); - ], [ - i_cv_have_ioctl_q_quotactl=yes - ], [ - i_cv_have_ioctl_q_quotactl=no - ]) - ]) - - if test $i_cv_have_ioctl_q_quotactl = yes; then - AC_DEFINE(HAVE_Q_QUOTACTL,, [Define if Q_QUOTACTL exists]) - fi -]) diff --git a/m4/quota.m4 b/m4/quota.m4 deleted file mode 100644 index d75af447e1..0000000000 --- a/m4/quota.m4 +++ /dev/null @@ -1,31 +0,0 @@ -AC_DEFUN([DOVECOT_RPCGEN], [ - RPCGEN=${RPCGEN-rpcgen} - if ! $RPCGEN -c /dev/null > /dev/null; then - RPCGEN= - fi - AC_SUBST(RPCGEN) - - have_rquota=no - if test -f /usr/include/rpcsvc/rquota.x && test -n "$RPCGEN"; then - PKG_CHECK_MODULES(LIBTIRPC, libtirpc, [ - have_rquota=yes - QUOTA_LIBS="$QUOTA_LIBS \$(LIBTIRPC_LIBS)" - ], [ - AC_CHECK_HEADER([rpc/rpc.h], [ - have_rquota=yes - ]) - ]) - fi - if test "$have_rquota" = yes; then - AC_DEFINE(HAVE_RQUOTA,, [Define if you wish to retrieve quota of NFS mounted mailboxes]) - fi - AM_CONDITIONAL(HAVE_RQUOTA, test "$have_rquota" = "yes") -]) - -AC_DEFUN([DOVECOT_QUOTA], [ - AC_SEARCH_LIBS(quota_open, quota, [ - AC_DEFINE(HAVE_QUOTA_OPEN,, [Define if you have quota_open()]) - QUOTA_LIBS="$QUOTA_LIBS -lquota" - ]) - AC_SUBST(QUOTA_LIBS) -]) diff --git a/m4/rlimit.m4 b/m4/rlimit.m4 deleted file mode 100644 index 9e652a4924..0000000000 --- a/m4/rlimit.m4 +++ /dev/null @@ -1,65 +0,0 @@ -dnl * Do we have RLIMIT_AS? -AC_DEFUN([DOVECOT_RLIMIT_AS], [ - AC_CACHE_CHECK([whether RLIMIT_AS exists],i_cv_have_rlimit_as,[ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - #include - ]], [[ - struct rlimit r; - getrlimit(RLIMIT_AS, &r); - ]])],[ - i_cv_have_rlimit_as=yes - ], [ - i_cv_have_rlimit_as=no - ]) - ]) - - if test $i_cv_have_rlimit_as = yes; then - AC_DEFINE(HAVE_RLIMIT_AS,, [Define if you have RLIMIT_AS for setrlimit()]) - fi -]) - -dnl * Do we have RLIMIT_NPROC? -AC_DEFUN([DOVECOT_RLIMIT_NPROC], [ - AC_CACHE_CHECK([whether RLIMIT_NPROC exists],i_cv_have_rlimit_nproc,[ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - #include - ]], [[ - struct rlimit r; - getrlimit(RLIMIT_NPROC, &r); - ]])],[ - i_cv_have_rlimit_nproc=yes - ],[ - i_cv_have_rlimit_nproc=no - ]) - ]) - - if test $i_cv_have_rlimit_nproc = yes; then - AC_DEFINE(HAVE_RLIMIT_NPROC,, [Define if you have RLIMIT_NPROC for setrlimit()]) - fi -]) - -dnl * Do we have RLIMIT_CORE? -AC_DEFUN([DOVECOT_RLIMIT_CORE], [ - AC_CACHE_CHECK([whether RLIMIT_CORE exists],i_cv_have_rlimit_core,[ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - #include - ]], [[ - struct rlimit r; - getrlimit(RLIMIT_CORE, &r); - ]])],[ - i_cv_have_rlimit_core=yes - ],[ - i_cv_have_rlimit_core=no - ]) - ]) - - if test $i_cv_have_rlimit_core = yes; then - AC_DEFINE(HAVE_RLIMIT_CORE,, [Define if you have RLIMIT_CORE for getrlimit()]) - fi -]) diff --git a/m4/sendfile.m4 b/m4/sendfile.m4 deleted file mode 100644 index 33ec88b4f5..0000000000 --- a/m4/sendfile.m4 +++ /dev/null @@ -1,46 +0,0 @@ -dnl * Compatible sendfile() -AC_DEFUN([DOVECOT_SENDFILE], [ - AC_CHECK_LIB(sendfile, sendfile, [ - LIBS="$LIBS -lsendfile" - AC_DEFINE(HAVE_SOLARIS_SENDFILE,, [Define if you have Solaris-compatible sendfile()]) - ], [ - dnl * Linux compatible sendfile() - don't check if Solaris one was found. - dnl * This seems to pass with Solaris for some reason.. - AC_CACHE_CHECK([Linux compatible sendfile()],i_cv_have_linux_sendfile,[ - AC_TRY_LINK([ - #undef _FILE_OFFSET_BITS - #include - #include - #include - ], [ - sendfile(0, 0, (void *) 0, 0); - ], [ - i_cv_have_linux_sendfile=yes - ], [ - i_cv_have_linux_sendfile=no - ]) - ]) - if test $i_cv_have_linux_sendfile = yes; then - AC_DEFINE(HAVE_LINUX_SENDFILE,, [Define if you have Linux-compatible sendfile()]) - fi - - dnl * FreeBSD compatible sendfile() - AC_CACHE_CHECK([FreeBSD compatible sendfile()],i_cv_have_freebsd_sendfile,[ - AC_TRY_LINK([ - #include - #include - #include - ], [ - struct sf_hdtr hdtr; - sendfile(0, 0, 0, 0, &hdtr, (void *) 0, 0); - ], [ - i_cv_have_freebsd_sendfile=yes - ], [ - i_cv_have_freebsd_sendfile=no - ]) - ]) - if test $i_cv_have_freebsd_sendfile = yes; then - AC_DEFINE(HAVE_FREEBSD_SENDFILE,, [Define if you have FreeBSD-compatible sendfile()]) - fi - ]) -]) diff --git a/m4/size_t_signed.m4 b/m4/size_t_signed.m4 deleted file mode 100644 index 90e0ee047f..0000000000 --- a/m4/size_t_signed.m4 +++ /dev/null @@ -1,51 +0,0 @@ -dnl * make sure size_t isn't signed. we'd probably work fine with it, but -dnl * it's more likely vulnerable to buffer overflows. Anyway, C99 specifies -dnl * that it's unsigned and only some old systems define it as signed. -AC_DEFUN([DOVECOT_SIZE_T_SIGNED], [ - AC_CACHE_CHECK([whether size_t is signed],i_cv_signed_size_t,[ - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ - #include - #include - int arr[(size_t)-1 > 0 ? 1 : -1]; - ]])],[ - i_cv_signed_size_t=no - ],[ - i_cv_signed_size_t=yes - - echo - echo "Your system's size_t is a signed integer, Dovecot isn't designed to" - echo "support it. It probably works just fine, but it's less resistant to" - echo "buffer overflows. If you're not worried about this and still want to" - echo "compile Dovecot, set ignore_signed_size=1 environment." - - if test "$ignore_signed_size" = ""; then - AC_MSG_ERROR([aborting]) - fi - echo "..ignoring as requested.." - ],[]) - ]) - dnl Note: we check size_t rather than ssize_t here, because on OSX 10.2 - dnl ssize_t = int and size_t = unsigned long. We're mostly concerned about - dnl printf format here, so check the size_t one. - AC_TYPEOF(size_t, unsigned-int unsigned-long unsigned-long-long) - case "$typeof_size_t" in - "unsigned long") - ssizet_max=LONG_MAX - sizet_fmt="lu" - ;; - "unsigned long long") - ssizet_max=LLONG_MAX - sizet_fmt="llu" - ;; - *) - dnl older systems didn't have ssize_t, default to int - ssizet_max=INT_MAX - sizet_fmt="u" - - if test "$typeof_size_t" = ""; then - AC_DEFINE(size_t, unsigned int, [Define to 'unsigned int' if you don't have it]) - AC_DEFINE(ssize_t, int, [Define to 'int' if you don't have it]) - fi - ;; - esac -]) diff --git a/m4/sockpeercred.m4 b/m4/sockpeercred.m4 deleted file mode 100644 index 96b4822c51..0000000000 --- a/m4/sockpeercred.m4 +++ /dev/null @@ -1,6 +0,0 @@ -AC_DEFUN([DOVECOT_SOCKPEERCRED], [ - AC_CHECK_TYPES([struct sockpeercred],,,[ - #include - #include - ]) -]) diff --git a/m4/sql.m4 b/m4/sql.m4 deleted file mode 100644 index df5dfa1cf7..0000000000 --- a/m4/sql.m4 +++ /dev/null @@ -1,19 +0,0 @@ -AC_DEFUN([DOVECOT_SQL], [ - SQL_CFLAGS="$MYSQL_CFLAGS $PGSQL_CFLAGS $SQLITE_CFLAGS $CASSANDRA_CFLAGS" - SQL_LIBS="$MYSQL_LIBS $PGSQL_LIBS $SQLITE_LIBS $CASSANDRA_LIBS" - sql_drivers= - not_sql_drivers= - - if test "$found_sql_drivers" != ""; then - sql_drivers="$found_sql_drivers" - - AC_DEFINE(PASSDB_SQL,, [Build with SQL support]) - AC_DEFINE(USERDB_SQL,, [Build with SQL support]) - AUTH_LIBS="$AUTH_LIBS $SQL_LIBS" - passdb="$passdb sql" - userdb="$userdb sql" - else - not_passdb="$not_passdb sql" - not_userdb="$not_userdb sql" - fi -]) diff --git a/m4/ssl.m4 b/m4/ssl.m4 deleted file mode 100644 index 199e1ee4d3..0000000000 --- a/m4/ssl.m4 +++ /dev/null @@ -1,284 +0,0 @@ -AC_DEFUN([DOVECOT_SSL], [ - have_ssl=no - build_dcrypt_openssl=no - - if test $want_openssl != no && test $have_ssl = no; then - if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists openssl 2>/dev/null; then - PKG_CHECK_MODULES(SSL, openssl) - CFLAGS="$CFLAGS $SSL_CFLAGS" - have_openssl=yes - else - # openssl 0.9.8 wants -ldl and it's required if there's only .a lib - AC_CHECK_LIB(ssl, SSL_read, [ - AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h, [ - SSL_LIBS="-lssl -lcrypto $DLLIB" - AC_SUBST(SSL_LIBS) - have_openssl=yes - ], [ - if test $want_openssl = yes; then - AC_ERROR([Can't build with OpenSSL: openssl/ssl.h or openssl/err.h not found]) - fi - ]) - ], [ - if test $want_openssl = yes; then - AC_ERROR([Can't build with OpenSSL: libssl not found]) - fi - ], -lcrypto $DLLIB) - fi - if test "$have_openssl" = "yes"; then - AC_DEFINE(HAVE_OPENSSL,, [Build with OpenSSL support]) - have_ssl="yes (OpenSSL)" - - AC_MSG_CHECKING([if OpenSSL version is 1.0.1 or newer]) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #if OPENSSL_VERSION_NUMBER < 0x10001000L - #error "fail-compile" - #endif]], [[ return 0; ]])], - [ssl_version_ge_101=true], [ssl_version_ge_101=false]) - AC_MSG_RESULT([$ssl_version_ge_101]) - if test $ssl_version_ge_101 = false; then - AC_MSG_ERROR([Found deprecated OpenSSL version, use 1.0.1 or newer]) - fi - - AC_MSG_CHECKING([if OpenSSL version is 1.0.2 or better]) - - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #if OPENSSL_VERSION_NUMBER < 0x10002000L - #error "fail-compile" - #endif]], [[ return 0; ]])], [ssl_version_ge_102=true], [ssl_version_ge_102=false]) - AC_MSG_RESULT([$ssl_version_ge_102]) - - # SSL_clear_options introduced in openssl 0.9.8m but may be backported to - # older versions in "enterprise" OS releases; originally implemented as a - # macro but as a function in more recent openssl versions - AC_CACHE_CHECK([whether SSL_clear_options exists],i_cv_have_ssl_clear_options,[ - old_LIBS=$LIBS - LIBS="$LIBS -lssl" - AC_TRY_LINK([ - #include - ], [ - SSL *ssl; - long options; - SSL_clear_options(ssl, options); - ], [ - i_cv_have_ssl_clear_options=yes - ], [ - i_cv_have_ssl_clear_options=no - ]) - LIBS=$old_LIBS - ]) - if test $i_cv_have_ssl_clear_options = yes; then - AC_DEFINE(HAVE_SSL_CLEAR_OPTIONS,, [Define if you have SSL_clear_options]) - fi - - # New style mem functions? Should be in v1.1+ - AC_CACHE_CHECK([whether CRYPTO_set_mem_functions has new style parameters],i_cv_have_ssl_new_mem_funcs,[ - old_LIBS=$LIBS - LIBS="$LIBS -lssl" - AC_TRY_LINK([ - #include - int CRYPTO_set_mem_functions( - void *(*m) (size_t, const char *, int), - void *(*r) (void *, size_t, const char *, int), - void (*f) (void *, const char *, int)); - ], [ - ], [ - i_cv_have_ssl_new_mem_funcs=yes - ], [ - i_cv_have_ssl_new_mem_funcs=no - ]) - LIBS=$old_LIBS - ]) - if test $i_cv_have_ssl_new_mem_funcs = yes; then - AC_DEFINE(HAVE_SSL_NEW_MEM_FUNCS,, [Define if CRYPTO_set_mem_functions has new style parameters]) - fi - - # SSL_CTX_set1_curves_list is a macro so plain AC_CHECK_LIB fails here. - AC_CACHE_CHECK([whether SSL_CTX_set1_curves_list exists],i_cv_have_ssl_ctx_set1_curves_list,[ - old_LIBS=$LIBS - LIBS="$LIBS -lssl" - AC_TRY_LINK([ - #include - ], [ - SSL_CTX_set1_curves_list((void*)0, ""); - ], [ - i_cv_have_ssl_ctx_set1_curves_list=yes - ], [ - i_cv_have_ssl_ctx_set1_curves_list=no - ]) - LIBS=$old_LIBS - ]) - if test $i_cv_have_ssl_ctx_set1_curves_list = yes; then - AC_DEFINE(HAVE_SSL_CTX_SET1_CURVES_LIST,, [Define if you have SSL_CTX_set1_curves_list]) - fi - - # SSL_CTX_set_min_proto_version is also a macro so AC_CHECK_LIB fails here. - AC_CACHE_CHECK([whether SSL_CTX_set_min_proto_version exists],i_cv_have_ssl_ctx_set_min_proto_version,[ - old_LIBS=$LIBS - LIBS="$LIBS -lssl" - AC_TRY_LINK([ - #include - ], [ - SSL_CTX_set_min_proto_version((void*)0, 0); - ], [ - i_cv_have_ssl_ctx_set_min_proto_version=yes - ], [ - i_cv_have_ssl_ctx_set_min_proto_version=no - ]) - LIBS=$old_LIBS - ]) - if test $i_cv_have_ssl_ctx_set_min_proto_version = yes; then - AC_DEFINE(HAVE_SSL_CTX_SET_MIN_PROTO_VERSION,, [Define if you have SSL_CTX_set_min_proto_version]) - fi - - # SSL_CTX_add0_chain_cert is also a macro so AC_CHECK_LIB fails here. - AC_CACHE_CHECK([whether SSL_CTX_add0_chain_cert exists],i_cv_have_ssl_ctx_add0_chain_cert,[ - old_LIBS=$LIBS - LIBS="$LIBS -lssl" - AC_TRY_LINK([ - #include - ], [ - SSL_CTX_add0_chain_cert((void*)0, 0); - ], [ - i_cv_have_ssl_ctx_add0_chain_cert=yes - ], [ - i_cv_have_ssl_ctx_add0_chain_cert=no - ]) - LIBS=$old_LIBS - ]) - if test $i_cv_have_ssl_ctx_add0_chain_cert = yes; then - AC_DEFINE(HAVE_SSL_CTX_ADD0_CHAIN_CERT,, [Define if you have SSL_CTX_add0_chain_cert]) - fi - - # SSL_CTX_set_current_cert is also a macro so AC_CHECK_LIB fails here. - AC_CACHE_CHECK([whether SSL_CTX_set_current_cert exists],i_cv_have_ssl_ctx_set_current_cert,[ - old_LIBS=$LIBS - LIBS="$LIBS -lssl" - AC_TRY_LINK([ - #include - ], [ - SSL_CTX_set_current_cert((void*)0, 0); - ], [ - i_cv_have_ssl_ctx_set_current_cert=yes - ], [ - i_cv_have_ssl_ctx_set_current_cert=no - ]) - LIBS=$old_LIBS - ]) - if test $i_cv_have_ssl_ctx_set_current_cert = yes; then - AC_DEFINE(HAVE_SSL_CTX_SET_CURRENT_CERT,, [Define if you have SSL_CTX_set_current_cert]) - fi - - - AC_CHECK_LIB(ssl, SSL_CIPHER_get_kx_nid, [ - AC_DEFINE(HAVE_SSL_CIPHER_get_kx_nid,, [Define if you have SSL_CIPHER_get_kx_nid]) - ],, $SSL_LIBS) - - AC_CHECK_LIB(ssl, ERR_remove_thread_state, [ - AC_DEFINE(HAVE_OPENSSL_ERR_REMOVE_THREAD_STATE,, [Define if you have ERR_remove_thread_state]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, OPENSSL_thread_stop, [ - AC_DEFINE(HAVE_OPENSSL_AUTO_THREAD_DEINIT,, [Define if OpenSSL performs thread cleanup automatically]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, OPENSSL_cleanup, [ - AC_DEFINE(HAVE_OPENSSL_CLEANUP,, [OpenSSL supports OPENSSL_cleanup()]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, SSL_get_current_compression, [ - AC_DEFINE(HAVE_SSL_COMPRESSION,, [Build with OpenSSL compression]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, SSL_get_servername, [ - AC_DEFINE(HAVE_SSL_GET_SERVERNAME,, [Build with TLS hostname support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, SSL_COMP_free_compression_methods, [ - AC_DEFINE(HAVE_SSL_COMP_FREE_COMPRESSION_METHODS,, [Build with SSL_COMP_free_compression_methods() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, RSA_generate_key_ex, [ - AC_DEFINE(HAVE_RSA_GENERATE_KEY_EX,, [Build with RSA_generate_key_ex() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, ASN1_STRING_get0_data, [ - AC_DEFINE(HAVE_ASN1_STRING_GET0_DATA,, [Build with ASN1_STRING_get0_data() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, HMAC_CTX_new, [ - AC_DEFINE(HAVE_HMAC_CTX_NEW,, [Build with HMAC_CTX_new() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, EVP_MD_CTX_new, [ - AC_DEFINE(HAVE_EVP_MD_CTX_NEW,, [Build with EVP_MD_CTX_new() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, OBJ_length, [ - AC_DEFINE(HAVE_OBJ_LENGTH,, [Build with OBJ_length() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, EVP_PKEY_get0_RSA, [ - AC_DEFINE(HAVE_EVP_PKEY_get0,, [Build with EVP_PKEY_get0_*() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, SSL_CTX_set_ciphersuites, [ - AC_DEFINE(HAVE_SSL_CTX_SET_CIPHERSUITES,, [Build with SSL_CTX_set_ciphersuites() support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, BN_secure_new, [ - AC_DEFINE(HAVE_BN_SECURE_NEW,, [Build with BN_secure_new support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, RSA_set0_key, [ - AC_DEFINE(HAVE_RSA_SET0_KEY,, [Build with RSA_set0_key support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, RSA_set0_factors, [ - AC_DEFINE(HAVE_RSA_SET0_FACTORS,, [Build with RSA_set0_factors support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, RSA_set0_crt_params, [ - AC_DEFINE(HAVE_RSA_SET0_CRT_PARAMS,, [Build with RSA_set0_crt_params support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, ECDSA_SIG_get0, [ - AC_DEFINE(HAVE_ECDSA_SIG_GET0,, [Build with ECDSA_SIG_get0 support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, ECDSA_SIG_set0, [ - AC_DEFINE(HAVE_ECDSA_SIG_SET0,, [Build with ECDSA_SIG_set0 support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, EC_GROUP_order_bits, [ - AC_DEFINE(HAVE_EC_GROUP_order_bits,, [Build with EC_GROUP_order_bits support]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, X509_check_host, [ - AC_DEFINE(HAVE_X509_CHECK_HOST,, [OpenSSL supports X509_check_host()]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, X509_check_ip, [ - AC_DEFINE(HAVE_X509_CHECK_IP,, [OpenSSL supports X509_check_ip()]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, X509_check_ip_asc, [ - AC_DEFINE(HAVE_X509_CHECK_IP_ASC,, [OpenSSL supports X509_check_ip_asc()]) - ],, $SSL_LIBS) - AC_CHECK_LIB(ssl, [EVP_PKEY_CTX_new_id], [have_evp_pkey_ctx_new_id="yes"],, $SSL_LIBS) - AC_CHECK_LIB(ssl, [EC_KEY_new], [have_ec_key_new="yes"],, $SSL_LIBS) - if test "$have_evp_pkey_ctx_new_id" = "yes" && test "$have_ec_key_new" = "yes"; then - build_dcrypt_openssl="yes" - else - AC_MSG_WARN([No ECC support in OpenSSL - not enabling dcrypt]) - fi - fi - fi - AM_CONDITIONAL(BUILD_OPENSSL, test "$have_openssl" = "yes") - AM_CONDITIONAL(BUILD_DCRYPT_OPENSSL, test "$build_dcrypt_openssl" = "yes") - AM_CONDITIONAL([SSL_VERSION_GE_102], [test x$ssl_version_ge_102 = xtrue]) - - if test $want_gnutls != no && test $have_ssl = no; then - AC_CHECK_LIB(gnutls, gnutls_global_init, [ - AC_CHECK_HEADER(gnutls/gnutls.h, [ - AC_DEFINE(HAVE_GNUTLS,, [Build with GNUTLS support]) - SSL_LIBS="-lgnutls -lgcrypt" - AC_SUBST(SSL_LIBS) - have_ssl="yes (GNUTLS)" - have_gnutls=yes - ], [ - if test $want_gnutls = yes; then - AC_ERROR([Can't build with GNUTLS: gnutls/gnutls.h not found]) - fi - ]) - ], [ - if test $want_gnutls = yes; then - AC_ERROR([Can't build with GNUTLS: libgnutls not found]) - fi - ], -lgcrypt) - fi - - if test "$have_ssl" != "no"; then - AC_DEFINE(HAVE_SSL,, [Build with SSL/TLS support]) - fi -]) diff --git a/m4/st_tim.m4 b/m4/st_tim.m4 deleted file mode 100644 index aa790b63e7..0000000000 --- a/m4/st_tim.m4 +++ /dev/null @@ -1,41 +0,0 @@ -AC_DEFUN([DOVECOT_ST_TIM_TIMESPEC], [ - AC_CACHE_CHECK([if struct stat has st_?tim timespec fields],i_cv_have_st_tim_timespec,[ - AC_TRY_COMPILE([ - #include - #include - #include - ], [ - struct stat st; - unsigned long x = st.st_mtim.tv_nsec; - - return 0; - ], [ - i_cv_have_st_tim_timespec=yes - ], [ - i_cv_have_st_tim_timespec=no - ]) - ]) - if test $i_cv_have_st_tim_timespec = yes; then - AC_DEFINE(HAVE_STAT_XTIM,, [Define if you have st_?tim timespec fields in struct stat]) - fi - - AC_CACHE_CHECK([if struct stat has st_?timespec fields],i_cv_have_st_timespec,[ - AC_TRY_COMPILE([ - #include - #include - #include - ], [ - struct stat st; - unsigned long x = st.st_mtimespec.tv_nsec; - - return 0; - ], [ - i_cv_have_st_timespec=yes - ], [ - i_cv_have_st_timespec=no - ]) - ]) - if test $i_cv_have_st_timespec = yes; then - AC_DEFINE(HAVE_STAT_XTIMESPEC,, [Define if you have st_?timespec fields in struct stat]) - fi -]) diff --git a/m4/static_array.m4 b/m4/static_array.m4 deleted file mode 100644 index e4466c435a..0000000000 --- a/m4/static_array.m4 +++ /dev/null @@ -1,19 +0,0 @@ -AC_DEFUN([DOVECOT_C_STATIC_ARRAY], [ - AC_CACHE_CHECK([if we can use C99 static in array sizes],i_cv_c99_static_arrays,[ - AC_TRY_COMPILE([ - void foo(unsigned char arr[static 20]); - ], [ - ], [ - i_cv_c99_static_arrays=yes - ], [ - i_cv_c99_static_arrays=no - ]) - ]) - - if test $i_cv_c99_static_arrays = yes; then - static_value=static - else - static_value= - fi - AC_DEFINE_UNQUOTED(STATIC_ARRAY, $static_value, [C99 static array]) -]) diff --git a/m4/test_with.m4 b/m4/test_with.m4 deleted file mode 100644 index 85a99c1d0d..0000000000 --- a/m4/test_with.m4 +++ /dev/null @@ -1,18 +0,0 @@ -dnl TEST_WITH(name, value, [plugin]) -AC_DEFUN([TEST_WITH], [ - want=want_`echo $1|sed s/-/_/g` - if test $2 = yes || test $2 = no || test $2 = auto; then - eval $want=$2 - elif test $2 = plugin; then - if test "$3" = plugin; then - eval $want=plugin - else - AC_ERROR([--with-$1=plugin not supported]) - fi - elif `echo $2|grep '^/' >/dev/null`; then - AC_ERROR([--with-$1=path not supported. You may want to use instead: -CPPFLAGS=-I$2/include LDFLAGS=-L$2/lib ./configure --with-$1]) - else - AC_ERROR([--with-$1: Unknown value: $2]) - fi -]) diff --git a/m4/time_t.m4 b/m4/time_t.m4 deleted file mode 100644 index 24a02426da..0000000000 --- a/m4/time_t.m4 +++ /dev/null @@ -1,42 +0,0 @@ -AC_DEFUN([DOVECOT_TIME_T], [ - AC_TYPEOF(time_t, long int long-long unsigned-int unsigned-long unsigned-long-long) - case "$typeof_time_t" in - long) - timet_len="l" - i_cv_signed_time_t=yes - ;; - int) - timet_len="" - i_cv_signed_time_t=yes - ;; - "long long") - timet_len="ll" - i_cv_signed_time_t=yes - ;; - "unsigned int") - timet_len="" - i_cv_signed_time_t=no - ;; - "unsigned long") - timet_len="l" - i_cv_signed_time_t=no - ;; - "unsigned long long") - timet_len="ll" - i_cv_signed_time_t=no - ;; - *) - AC_MSG_ERROR([Unsupported time_t type]) - ;; - esac - if test $i_cv_signed_time_t = yes; then - AC_DEFINE(TIME_T_SIGNED,, [Define if your time_t is signed]) - timet_d_fmt="$timet_len"d - else - timet_d_fmt="$timet_len"u - fi - timet_x_fmt="$timet_len"x - - AC_DEFINE_UNQUOTED(PRIdTIME_T, "$timet_d_fmt", [printf() fmt for dec time_t]) - AC_DEFINE_UNQUOTED(PRIxTIME_T, "$timet_x_fmt", [printf() fmt for hex time_t]) -]) diff --git a/m4/typeof.m4 b/m4/typeof.m4 deleted file mode 100644 index b98cda7dbb..0000000000 --- a/m4/typeof.m4 +++ /dev/null @@ -1,16 +0,0 @@ -AC_DEFUN([DOVECOT_TYPEOF],[ - AC_CACHE_CHECK([for typeof],i_cv_have_typeof,[ - AC_TRY_COMPILE([ - ], [ - int foo; - typeof(foo) bar; - ], [ - i_cv_have_typeof=yes - ], [ - i_cv_have_typeof=no - ]) - ]) - if test $i_cv_have_typeof = yes; then - AC_DEFINE(HAVE_TYPEOF,, [Define if you have typeof()]) - fi -]) diff --git a/m4/typeof_dev_t.m4 b/m4/typeof_dev_t.m4 deleted file mode 100644 index bec20ab982..0000000000 --- a/m4/typeof_dev_t.m4 +++ /dev/null @@ -1,18 +0,0 @@ -dnl * is dev_t an integer or something else? -AC_DEFUN([DOVECOT_TYPEOF_DEV_T], [ - AC_CACHE_CHECK([whether dev_t is struct],i_cv_dev_t_struct,[ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - struct test { dev_t a; }; - static struct test t = { 0 }; - ]], - [[ ]])], [ - i_cv_dev_t_struct=no - ],[ - i_cv_dev_t_struct=yes - ]) - ]) - if test $i_cv_dev_t_struct = yes; then - AC_DEFINE(DEV_T_STRUCT,, [Define if your dev_t is a structure instead of integer type]) - fi -]) diff --git a/m4/uoff_t_max.m4 b/m4/uoff_t_max.m4 deleted file mode 100644 index 78ca4d19a0..0000000000 --- a/m4/uoff_t_max.m4 +++ /dev/null @@ -1,13 +0,0 @@ -AC_DEFUN([DOVECOT_UOFF_T_MAX], [ - dnl * Do we have UOFF_T_MAX? - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ - #include - #include - ]], [[ - uoff_t i = UOFF_T_MAX; - ]])],[ - : - ],[ - AC_DEFINE_UNQUOTED(UOFF_T_MAX, $uofft_max, [Maximum value of uoff_t]) - ]) -]) diff --git a/m4/vararg.m4 b/m4/vararg.m4 deleted file mode 100644 index 6bc8dcc0fb..0000000000 --- a/m4/vararg.m4 +++ /dev/null @@ -1,77 +0,0 @@ -AC_DEFUN([DOVECOT_VA_COPY], [ - AC_CACHE_CHECK([for an implementation of va_copy()],lib_cv_va_copy,[ - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - void f (int i, ...) { - va_list args1, args2; - va_start (args1, i); - va_copy (args2, args1); - if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) - exit (1); - va_end (args1); va_end (args2); - } - int main() { - f (0, 42); - return 0; - }]])], - [lib_cv_va_copy=yes], - [lib_cv_va_copy=no],[]) - ]) - AC_CACHE_CHECK([for an implementation of __va_copy()],lib_cv___va_copy,[ - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - void f (int i, ...) { - va_list args1, args2; - va_start (args1, i); - __va_copy (args2, args1); - if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) - exit (1); - va_end (args1); va_end (args2); - } - int main() { - f (0, 42); - return 0; - }]])], - [lib_cv___va_copy=yes], - [lib_cv___va_copy=no],[]) - ]) - - if test "x$lib_cv_va_copy" = "xyes"; then - va_copy_func=va_copy - else if test "x$lib_cv___va_copy" = "xyes"; then - va_copy_func=__va_copy - fi - fi - - if test -n "$va_copy_func"; then - AC_DEFINE_UNQUOTED(VA_COPY,$va_copy_func,[A 'va_copy' style function]) - fi -]) - -AC_DEFUN([DOVECOT_VA_COPY_BYVAL], [ - AC_CACHE_CHECK([whether va_lists can be copied by value],lib_cv_va_val_copy,[ - AC_RUN_IFELSE([AC_LANG_SOURCE([[ - #include - #include - void f (int i, ...) { - va_list args1, args2; - va_start (args1, i); - args2 = args1; - if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) - exit (1); - va_end (args1); va_end (args2); - } - int main() { - f (0, 42); - return 0; - }]])], - [lib_cv_va_val_copy=yes], - [lib_cv_va_val_copy=no],[]) - ]) - - if test "x$lib_cv_va_val_copy" = "xno"; then - AC_DEFINE(VA_COPY_AS_ARRAY,1, ['va_lists' cannot be copied as values]) - fi -]) diff --git a/m4/want_apparmor.m4 b/m4/want_apparmor.m4 deleted file mode 100644 index 6934ea79c3..0000000000 --- a/m4/want_apparmor.m4 +++ /dev/null @@ -1,24 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_APPARMOR], [ - want_apparmor=auto - AC_ARG_WITH([apparmor], - [AS_HELP_STRING([--with-apparmor], [enable apparmor plugin (default=auto)])], - [want_apparmor=$withval]) - - have_apparmor=no - if test $want_apparmor != no; then - AC_CHECK_HEADER([sys/apparmor.h], [ - AC_CHECK_LIB([apparmor], [aa_change_hat], [ - have_apparmor=yes - AC_SUBST([APPARMOR_LIBS], [-lapparmor]) - ]) - ]) - fi - - if test $want_apparmor = yes; then - if test $have_apparmor = no; then - AC_MSG_FAILURE([apparmor was not found]) - fi - fi - - AM_CONDITIONAL(HAVE_APPARMOR, test "$have_apparmor" = "yes") -]) diff --git a/m4/want_bsdauth.m4 b/m4/want_bsdauth.m4 deleted file mode 100644 index cd64c8de08..0000000000 --- a/m4/want_bsdauth.m4 +++ /dev/null @@ -1,18 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_BSDAUTH], [ - have_bsdauth=no - if test $want_bsdauth != no; then - AC_CHECK_FUNC(auth_userokay, [ - AC_DEFINE(PASSDB_BSDAUTH,, [Build with BSD authentication support]) - have_bsdauth=yes - ], [ - if test $want_bsdauth = yes; then - AC_ERROR([Can't build with BSD authentication support: auth_userokay() not found]) - fi - ]) - fi - if test $have_bsdauth = no; then - not_passdb="$not_passdb bsdauth" - else - passdb="$passdb bsdauth" - fi -]) diff --git a/m4/want_bzlib.m4 b/m4/want_bzlib.m4 deleted file mode 100644 index 50609072d6..0000000000 --- a/m4/want_bzlib.m4 +++ /dev/null @@ -1,20 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_BZLIB], [ - AS_IF([test "$want_bzlib" != "no"], [ - AC_CHECK_HEADER(bzlib.h, [ - AC_CHECK_LIB(bz2, BZ2_bzdopen, [ - have_bzlib=yes - have_compress_lib=yes - AC_DEFINE(HAVE_BZLIB,, [Define if you have bzlib library]) - COMPRESS_LIBS="$COMPRESS_LIBS -lbz2" - ], [ - AS_IF([test "$want_bzlib" = "yes"], [ - AC_ERROR([Can't build with bzlib support: libbz2 not found]) - ]) - ]) - ], [ - AS_IF([test "$want_bzlib" = "yes"], [ - AC_ERROR([Can't build with bzlib support: bzlib.h not found]) - ]) - ]) - ]) -]) diff --git a/m4/want_cassandra.m4 b/m4/want_cassandra.m4 deleted file mode 100644 index 1cf3e58134..0000000000 --- a/m4/want_cassandra.m4 +++ /dev/null @@ -1,25 +0,0 @@ - AC_DEFUN([DOVECOT_WANT_CASSANDRA], [ - AS_IF([test "$want_cassandra" != no], [ - AC_CHECK_LIB([cassandra], [cass_session_new], [ - AC_CHECK_HEADER([cassandra.h], [ - CASSANDRA_LIBS="$CASSANDRA_LIBS -lcassandra" - AC_DEFINE(HAVE_CASSANDRA,, [Build with Cassandra support]) - found_sql_drivers="$found_sql_drivers cassandra" - AC_CHECK_LIB(cassandra, cass_cluster_set_constant_speculative_execution_policy, [ - AC_DEFINE(HAVE_CASSANDRA_SPECULATIVE_POLICY, 1, [Cassandra supports speculative execution policy]) - ],, $CASSANDRA_LIBS) - AC_CHECK_LIB(cassandra, cass_cluster_set_use_hostname_resolution, [ - AC_DEFINE(HAVE_CASS_CLUSTER_SET_USE_HOSTNAME_RESOLUTION,, [Build with cass_cluster_set_use_hostname_resolution() support]) - ],, $CASSANDRA_LIBS) - AC_CHECK_DECLS([CASS_SSL_VERIFY_PEER_IDENTITY_DNS], [], [], [[#include ]]) - ], [ - AS_IF([test "$want_cassandra" = yes], [ - AC_ERROR([Can't build with Cassandra support: cassandra.h not found]) - ]) - ]) - ], [AS_IF([test "$want_cassandra" = yes], [ - AC_ERROR([Can't build with Cassandra support: libcassandra not found]) - ]) - ]) - ]) -]) diff --git a/m4/want_cdb.m4 b/m4/want_cdb.m4 deleted file mode 100644 index b18ff490c6..0000000000 --- a/m4/want_cdb.m4 +++ /dev/null @@ -1,19 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_CDB], [ - if test $want_cdb != no; then - AC_CHECK_LIB(cdb, cdb_init, [ - AC_CHECK_HEADER(cdb.h, [ - DICT_LIBS="$DICT_LIBS -lcdb" - dict_drivers="$dict_drivers cdb" - AC_DEFINE(BUILD_CDB,, [Build with CDB support]) - ], [ - if test $want_cdb = yes; then - AC_ERROR([Can't build with CDB support: cdb.h not found]) - fi - ]) - ], [ - if test $want_cdb = yes; then - AC_ERROR([Can't build with CDB support: libcdb not found]) - fi - ]) - fi -]) diff --git a/m4/want_checkpassword.m4 b/m4/want_checkpassword.m4 deleted file mode 100644 index 696adb47ec..0000000000 --- a/m4/want_checkpassword.m4 +++ /dev/null @@ -1,11 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_CHECKPASSWORD], [ - if test $want_checkpassword != no; then - AC_DEFINE(PASSDB_CHECKPASSWORD,, [Build with checkpassword passdb support]) - AC_DEFINE(USERDB_CHECKPASSWORD,, [Build with checkpassword userdb support]) - passdb="$passdb checkpassword" - userdb="$userdb checkpassword" - else - not_passdb="$not_passdb checkpassword" - not_userdb="$not_userdb checkpassword" - fi -]) diff --git a/m4/want_db.m4 b/m4/want_db.m4 deleted file mode 100644 index 469dedb190..0000000000 --- a/m4/want_db.m4 +++ /dev/null @@ -1,33 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_DB], [ - if test $want_db != no; then - AC_CACHE_CHECK([db_env_create in -ldb],i_cv_have_db_env_create,[ - old_LIBS=$LIBS - LIBS="$LIBS -ldb" - AC_TRY_LINK([ - #include - ], [ - db_env_create(0, 0); - ], [ - i_cv_have_db_env_create=yes - ], [ - i_cv_have_db_env_create=no - ]) - LIBS=$old_LIBS - ]) - if test $i_cv_have_db_env_create = yes; then - AC_CHECK_HEADER(db.h, [ - DICT_LIBS="$DICT_LIBS -ldb" - dict_drivers="$dict_drivers db" - AC_DEFINE(BUILD_DB,, [Build with Berkeley DB support]) - ], [ - if test $want_db = yes; then - AC_ERROR([Can't build with db support: db.h not found]) - fi - ]) - else - if test $want_db = yes; then - AC_ERROR([Can't build with db support: libdb not found]) - fi - fi - fi -]) diff --git a/m4/want_gssapi.m4 b/m4/want_gssapi.m4 deleted file mode 100644 index 4e97aaa093..0000000000 --- a/m4/want_gssapi.m4 +++ /dev/null @@ -1,105 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_GSSAPI], [ - have_gssapi=no - if test $want_gssapi != no; then - AC_CHECK_PROG(KRB5CONFIG, krb5-config, krb5-config, NO) - if test $KRB5CONFIG != NO; then - KRB5_LIBS="`$KRB5CONFIG --libs`" - KRB5_CFLAGS=`$KRB5CONFIG --cflags` - if ! $KRB5CONFIG --version gssapi 2>/dev/null > /dev/null; then - # krb5-config doesn't support gssapi. - AC_CHECK_LIB(gss, gss_acquire_cred, [ - # Solaris - KRB5_LIBS="$KRB5_LIBS -lgss" - ], [ - # failed - KRB5_LIBS= - ], $KRB5_LIBS) - else - KRB5_LIBS="$KRB5_LIBS `$KRB5CONFIG --libs gssapi`" - KRB5_CFLAGS="$KRB5_CFLAGS `$KRB5CONFIG --cflags gssapi`" - fi - if test "$KRB5_LIBS" != ""; then - AC_SUBST(KRB5_LIBS) - AC_SUBST(KRB5_CFLAGS) - - # Although krb5-config exists, all systems still don't - # have gssapi.h - old_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $KRB5_CFLAGS" - AC_CHECK_HEADER([gssapi/gssapi.h], [ - AC_DEFINE(HAVE_GSSAPI_GSSAPI_H,, [GSSAPI headers in gssapi/gssapi.h]) - have_gssapi=yes - ]) - AC_CHECK_HEADER([gssapi.h], [ - AC_DEFINE(HAVE_GSSAPI_H,, [GSSAPI headers in gssapi.h]) - have_gssapi=yes - ]) - if test $have_gssapi != no; then - AC_DEFINE(HAVE_GSSAPI,, [Build with GSSAPI support]) - AC_CHECK_HEADERS(gssapi/gssapi_ext.h gssapi_krb5.h gssapi/gssapi_krb5.h) - AC_CHECK_LIB(gss, __gss_userok, [ - AC_DEFINE(HAVE___GSS_USEROK,, - [Define if you have __gss_userok()]) - KRB5_LIBS="$KRB5_LIBS -lgss" - ],, $KRB5_LIBS) - - # MIT has a #define for Heimdal acceptor_identity, but it's way too - # difficult to test for it.. - old_LIBS=$LIBS - LIBS="$LIBS $KRB5_LIBS" - AC_CHECK_FUNCS(gsskrb5_register_acceptor_identity krb5_gss_register_acceptor_identity) - AC_CHECK_FUNCS(krb5_free_context) - - # does the kerberos library support SPNEGO? - AC_CACHE_CHECK([whether GSSAPI supports SPNEGO],i_cv_gssapi_spnego,[ - AC_TRY_RUN([ - #ifdef HAVE_GSSAPI_H - # include - #else - # include - #endif - #include - #include - int main(void) { - OM_uint32 minor_status; - gss_OID_set mech_set; - unsigned char spnego_oid[] = { 0x2b, 0x06, 0x01, 0x05, 0x05, 0x02 }; - unsigned int i; - - gss_indicate_mechs(&minor_status, &mech_set); - for (i = 0; i < mech_set->count; i++) { - if (mech_set->elements[i].length == 6 && - memcmp(mech_set->elements[i].elements, - spnego_oid, 6) == 0) - return 0; - } - return 1; - } - ], [ - i_cv_gssapi_spnego=yes - ], [ - i_cv_gssapi_spnego=no - ]) - ]) - if test "$i_cv_gssapi_spnego" = "yes"; then - AC_DEFINE(HAVE_GSSAPI_SPNEGO,, [GSSAPI supports SPNEGO]) - fi - LIBS=$old_LIBS - - AUTH_LIBS="$AUTH_LIBS $KRB5_LIBS" - AUTH_CFLAGS="$AUTH_CFLAGS $KRB5_CFLAGS" - AC_DEFINE(BUILTIN_GSSAPI,, [GSSAPI support is built in]) - else - if test $want_gssapi != auto; then - AC_ERROR([Can't build with GSSAPI support: gssapi.h not found]) - fi - fi - CFLAGS=$old_CFLAGS - fi - else - if test $want_gssapi != auto; then - AC_ERROR([Can't build with GSSAPI support: krb5-config not found]) - fi - fi - fi -]) diff --git a/m4/want_icu.m4 b/m4/want_icu.m4 deleted file mode 100644 index 9127ebccb6..0000000000 --- a/m4/want_icu.m4 +++ /dev/null @@ -1,12 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_ICU], [ - if test "$want_icu" != "no"; then - if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists icu-i18n 2>/dev/null; then - PKG_CHECK_MODULES(LIBICU, icu-i18n) - have_icu=yes - AC_DEFINE(HAVE_LIBICU,, [Define if you want ICU normalization support for FTS]) - elif test "$want_icu" = "yes"; then - AC_ERROR([Can't build with libicu support: libicu-i18n not found]) - fi - fi - AM_CONDITIONAL(BUILD_LIBICU, test "$have_icu" = "yes") -]) diff --git a/m4/want_ldap.m4 b/m4/want_ldap.m4 deleted file mode 100644 index 0b608c2135..0000000000 --- a/m4/want_ldap.m4 +++ /dev/null @@ -1,50 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_LDAP], [ - have_ldap=no - if test $want_ldap != no; then - AC_CHECK_LIB(ldap, ldap_init, [ - AC_CHECK_HEADER(ldap.h, [ - AC_CHECK_LIB(ldap, ldap_initialize, [ - AC_DEFINE(LDAP_HAVE_INITIALIZE,, [Define if you have ldap_initialize]) - ]) - AC_CHECK_LIB(ldap, ldap_start_tls_s, [ - AC_DEFINE(LDAP_HAVE_START_TLS_S,, [Define if you have ldap_start_tls_s]) - ]) - LDAP_LIBS="-lldap" - AC_CHECK_LIB(ldap, ber_free, [ - # do nothing, default is to add -lldap to LIBS - : - ], [ - AC_CHECK_LIB(lber, ber_free, [ - LDAP_LIBS="$LDAP_LIBS -llber" - ]) - ]) - AC_SUBST(LDAP_LIBS) - AUTH_LIBS="$AUTH_LIBS $LDAP_LIBS" - DICT_LIBS="$DICT_LIBS $LDAP_LIBS" - AC_DEFINE(BUILTIN_LDAP,, [LDAP support is built in]) - - AC_DEFINE(USERDB_LDAP,, [Build with LDAP support]) - AC_DEFINE(PASSDB_LDAP,, [Build with LDAP support]) - AC_CHECK_HEADERS(sasl.h sasl/sasl.h) - have_ldap=yes - ], [ - if test $want_ldap != auto; then - AC_ERROR([Can't build with LDAP support: ldap.h not found]) - fi - ]) - ], [ - if test $want_ldap != auto; then - AC_ERROR([Can't build with LDAP support: libldap not found]) - fi - ]) - fi - - if test $have_ldap = no; then - not_passdb="$not_passdb ldap" - not_userdb="$not_userdb ldap" - else - userdb="$userdb ldap" - passdb="$passdb ldap" - fi - AM_CONDITIONAL(HAVE_LDAP, test "$want_ldap" != "no") -]) diff --git a/m4/want_lua.m4 b/m4/want_lua.m4 deleted file mode 100644 index ad8571fc24..0000000000 --- a/m4/want_lua.m4 +++ /dev/null @@ -1,57 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_LUA],[ - AC_ARG_WITH([lua], - [AS_HELP_STRING([--with-lua], [build Lua Bindings])], - [with_lua=$withval], - [with_lua=no] - ) - - AS_IF([test "x$with_lua" != "xno"], [ - AS_IF([test -n "$LUA_CFLAGS" -o -n "$LUA_LIBS"], [ - with_lua=yes - ], [ - for LUAPC in lua5.3 lua-5.3 lua53 lua5.1 lua-5.1 lua51 lua; do - PKG_CHECK_MODULES([LUA], [$LUAPC >= 5.1 $LUAPC != 5.2] , [ - with_lua=yes - ], [LUAPC=""]) # otherwise pkg_check will fail - if test "x$LUA_LIBS" != "x"; then break; fi - done - ]) - ]) - - AS_IF([test "x$with_lua" = "xyes"], [ - AC_MSG_CHECKING([for chosen LUA]) - AC_DEFINE([HAVE_LUA], [1], [Define to 1 if you have lua]) - AS_IF([test "x$LUAPC" != "x"], [ - AC_MSG_RESULT([$LUAPC]) - ],[ - AC_MSG_RESULT([specified via LUA_CFLAGS and LUA_LIBS]) - ]) - ]) - - AS_IF([test "x$with_lua" = "xyes"], - AC_DEFINE([BUILTIN_LUA],, [Lua support is builtin]) - dnl Check if various lua functions are present - old_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $LUA_CFLAGS" - old_LIBS="$LIBS" - LIBS="$LIBS $LUA_LIBS" - - AC_CHECK_FUNCS([luaL_setfuncs]) - AC_CHECK_FUNCS([luaL_setmetatable]) - AC_CHECK_FUNCS([lua_isinteger]) - AC_CHECK_FUNCS([lua_resume]) - AC_CHECK_FUNCS([lua_seti]) - AC_CHECK_FUNCS([lua_tointegerx]) - AC_CHECK_FUNCS([lua_yieldk]) - - AS_IF([test "$ac_cv_func_lua_resume" = "yes" -a \ - "$ac_cv_func_lua_yieldk" = "yes"], - AC_DEFINE([DLUA_WITH_YIELDS],, - [Lua scripts will be able to yield]) - dlua_with_yields=yes - ) - - CFLAGS="$old_CFLAGS" - LIBS="$old_LIBS" - ) -]) diff --git a/m4/want_lz4.m4 b/m4/want_lz4.m4 deleted file mode 100644 index 923403027e..0000000000 --- a/m4/want_lz4.m4 +++ /dev/null @@ -1,24 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_LZ4], [ - AS_IF([test "$want_lz4" != "no"], [ - AC_CHECK_HEADER(lz4.h, [ - AC_CHECK_LIB(lz4, LZ4_compress, [ - have_lz4=yes - have_compress_lib=yes - AC_DEFINE(HAVE_LZ4,, [Define if you have lz4 library]) - COMPRESS_LIBS="$COMPRESS_LIBS -llz4" - ], [ - AS_IF([test "$want_lz4" = "yes"], [ - AC_ERROR([Can't build with lz4 support: liblz4 not found]) - ]) - ]) - AC_CHECK_LIB(lz4, LZ4_compress_default, [ - AC_DEFINE(HAVE_LZ4_COMPRESS_DEFAULT,, - [Define if you have LZ4_compress_default]) - ]) - ], [ - AS_IF([test "$want_lz4" = "yes"], [ - AC_ERROR([Can't build with lz4 support: lz4.h not found]) - ]) - ]) - ]) -]) diff --git a/m4/want_lzma.m4 b/m4/want_lzma.m4 deleted file mode 100644 index 7f67dea700..0000000000 --- a/m4/want_lzma.m4 +++ /dev/null @@ -1,20 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_LZMA], [ - AS_IF([test "$want_lzma" != "no"], [ - AC_CHECK_HEADER(lzma.h, [ - AC_CHECK_LIB(lzma, lzma_stream_decoder, [ - have_lzma=yes - have_compress_lib=yes - AC_DEFINE(HAVE_LZMA,, [Define if you have lzma library]) - COMPRESS_LIBS="$COMPRESS_LIBS -llzma" - ], [ - AS_IF([test "$want_lzma" = "yes"], [ - AC_ERROR([Can't build with lzma support: liblzma not found]) - ]) - ]) - ], [ - AS_IF([test "$want_lzma" = "yes"], [ - AC_ERROR([Can't build with lzma support: lzma.h not found]) - ]) - ]) - ]) -]) diff --git a/m4/want_mysql.m4 b/m4/want_mysql.m4 deleted file mode 100644 index 98e6f9371a..0000000000 --- a/m4/want_mysql.m4 +++ /dev/null @@ -1,89 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_MYSQL], [ - have_mysql=no - if test $want_mysql != no; then - AC_CHECK_PROG(MYSQL_CONFIG, mysql_config, mysql_config, NO) - if test $MYSQL_CONFIG = NO; then - # based on code from PHP - MYSQL_LIBS="-lmysqlclient -lz -lm" - for i in /usr /usr/local /usr/local/mysql; do - for j in include include/mysql ""; do - if test -r "$i/$j/mysql.h"; then - MYSQL_INCLUDE="-I$i/$j" - fi - done - for j in lib lib/mysql lib64 lib64/mysql ""; do - if test -f "$i/$j/libmysqlclient.so" || test -f "$i/$j/libmysqlclient.a"; then - MYSQL_LIBS="-L$i/$j -lmysqlclient -lz -lm" - fi - done - done - else - MYSQL_INCLUDE="`$MYSQL_CONFIG --include`" - MYSQL_LIBS="`$MYSQL_CONFIG --libs`" - fi - - old_LIBS=$LIBS - if test "$MYSQL_LIBS" != ""; then - LIBS="$LIBS $MYSQL_LIBS" - fi - - mysql_lib="" - LIBS="$LIBS -lz -lm" - AC_CHECK_LIB(mysqlclient, mysql_init, [ - old_CPPFLAGS=$CPPFLAGS - if test "$MYSQL_INCLUDE" != ""; then - CPPFLAGS="$CPPFLAGS $MYSQL_INCLUDE" - fi - AC_CHECK_HEADER(mysql.h, [ - if test "$MYSQL_INCLUDE" != ""; then - MYSQL_CFLAGS="$MYSQL_CFLAGS $MYSQL_INCLUDE" - fi - - AC_CHECK_LIB(mysqlclient, mysql_ssl_set, [ - AC_DEFINE(HAVE_MYSQL_SSL,, [Define if your MySQL library has SSL functions]) - if test "x$have_openssl" = "yes"; then - ssl_define="#define HAVE_OPENSSL" - else - ssl_define="" - fi - AC_TRY_COMPILE([ - $ssl_define - #include - ], [ - mysql_ssl_set(0, 0, 0, 0, 0, 0); - ], [ - AC_DEFINE(HAVE_MYSQL_SSL_CIPHER,, [Define if your MySQL library supports setting cipher]) - - AC_TRY_COMPILE([ - $ssl_define - #include - ], [ - int i = MYSQL_OPT_SSL_VERIFY_SERVER_CERT; - ], [ - AC_DEFINE(HAVE_MYSQL_SSL_VERIFY_SERVER_CERT,, [Defineif your MySQL library supports verifying the name in the SSL certificate]) - ]) - ]) - ]) - - have_mysql=yes - AC_DEFINE(HAVE_MYSQL,, [Build with MySQL support]) - found_sql_drivers="$found_sql_drivers mysql" - ], [ - if test $want_mysql = yes; then - AC_ERROR([Can't build with MySQL support: mysql.h not found]) - fi - ]) - CPPFLAGS=$old_CPPFLAGS - ], [ - if test $want_mysql = yes; then - AC_ERROR([Can't build with MySQL support: libmysqlclient not found]) - fi - ]) - - if test $have_mysql != yes; then - MYSQL_LIBS= - MYSQL_CFLAGS= - fi - LIBS=$old_LIBS - fi -]) diff --git a/m4/want_nss.m4 b/m4/want_nss.m4 deleted file mode 100644 index 1c87963bc0..0000000000 --- a/m4/want_nss.m4 +++ /dev/null @@ -1,36 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_NSS], [ - have_nss=no - if test $want_nss != no; then - if test $have_modules != yes; then - if test $want_nss = yes; then - AC_ERROR([Can't build with NSS support: Dynamic modules not supported]) - fi - else - AC_CACHE_CHECK([for NSS support],i_cv_have_nss,[ - AC_TRY_COMPILE([ - #include - ], [ - enum nss_status status = NSS_STATUS_TRYAGAIN; - ], [ - i_cv_have_nss=yes - ], [ - i_cv_have_nss=no - ]) - ]) - if test $i_cv_have_nss = yes; then - AC_DEFINE(USERDB_NSS,, [Build with NSS module support]) - have_nss=yes - else - if test $want_nss = yes; then - AC_ERROR([Can't build with NSS support: nss.h not found or not usable]) - fi - fi - fi - fi - - if test $have_nss = no; then - not_userdb="$not_userdb nss" - else - userdb="$userdb nss" - fi -]) diff --git a/m4/want_pam.m4 b/m4/want_pam.m4 deleted file mode 100644 index 7d4474e72a..0000000000 --- a/m4/want_pam.m4 +++ /dev/null @@ -1,36 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_PAM], [ - if test $want_pam != no; then - AC_CHECK_LIB(pam, pam_start, [ - have_pam=no - AC_CHECK_HEADER(security/pam_appl.h, [ - AC_DEFINE(HAVE_SECURITY_PAM_APPL_H,, - [Define if you have security/pam_appl.h]) - have_pam=yes - ]) - - AC_CHECK_HEADER(pam/pam_appl.h, [ - AC_DEFINE(HAVE_PAM_PAM_APPL_H,, - [Define if you have pam/pam_appl.h]) - have_pam=yes - ]) - ], [ - if test $want_pam = yes; then - AC_ERROR([Can't build with PAM support: libpam not found]) - fi - ]) - fi - - if test "$have_pam" = "yes"; then - AUTH_LIBS="$AUTH_LIBS -lpam" - AC_DEFINE(PASSDB_PAM,, [Build with PAM support]) - passdb="$passdb pam" - - AC_CHECK_LIB(pam, pam_setcred, [ - AC_DEFINE(HAVE_PAM_SETCRED,, [Define if you have pam_setcred()]) - ]) - elif test $want_pam = yes; then - AC_ERROR([Can't build with PAM support: pam_appl.h not found]) - else - not_passdb="$not_passdb pam" - fi -]) diff --git a/m4/want_passwd.m4 b/m4/want_passwd.m4 deleted file mode 100644 index 11b5763ffa..0000000000 --- a/m4/want_passwd.m4 +++ /dev/null @@ -1,21 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_PASSWD], [ - if test $want_passwd != no; then - AC_DEFINE(USERDB_PASSWD,, [Build with passwd support]) - AC_DEFINE(PASSDB_PASSWD,, [Build with passwd support]) - userdb="$userdb passwd" - passdb="$passdb passwd" - else - not_passdb="$not_passdb passwd" - not_userdb="$not_userdb passwd" - fi - - if test $want_passwd_file != no; then - AC_DEFINE(USERDB_PASSWD_FILE,, [Build with passwd-file support]) - AC_DEFINE(PASSDB_PASSWD_FILE,, [Build with passwd-file support]) - userdb="$userdb passwd-file" - passdb="$passdb passwd-file" - else - not_passdb="$not_passdb passwd-file" - not_userdb="$not_userdb passwd-file" - fi -]) diff --git a/m4/want_pgsql.m4 b/m4/want_pgsql.m4 deleted file mode 100644 index b81d556e60..0000000000 --- a/m4/want_pgsql.m4 +++ /dev/null @@ -1,61 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_PGSQL], [ - if test $want_pgsql != no; then - AC_CHECK_PROG(PG_CONFIG, pg_config, pg_config, NO) - if test $PG_CONFIG = NO; then - # based on code from PHP - for i in /usr /usr/local /usr/local/pgsql; do - for j in include include/pgsql include/postgres include/postgresql ""; do - if test -r "$i/$j/libpq-fe.h"; then - PGSQL_INCLUDE=$i/$j - fi - done - for lib in lib lib64; do - for j in $lib $lib/pgsql $lib/postgres $lib/postgresql ""; do - if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then - PGSQL_LIBDIR=$i/$j - fi - done - done - done - else - PGSQL_INCLUDE="`$PG_CONFIG --includedir`" - PGSQL_LIBDIR="`$PG_CONFIG --libdir`" - fi - - old_LIBS=$LIBS - if test "$PGSQL_LIBDIR" != ""; then - LIBS="$LIBS -L$PGSQL_LIBDIR" - fi - - AC_CHECK_LIB(pq, PQconnectdb, [ - AC_CHECK_LIB(pq, PQescapeStringConn, [ - AC_DEFINE(HAVE_PQESCAPE_STRING_CONN,, [Define if libpq has PQescapeStringConn function]) - ]) - old_CPPFLAGS=$CPPFLAGS - if test "$PGSQL_INCLUDE" != ""; then - CPPFLAGS="$CPPFLAGS -I$PGSQL_INCLUDE" - fi - AC_CHECK_HEADER(libpq-fe.h, [ - if test "$PGSQL_INCLUDE" != ""; then - PGSQL_CFLAGS="$PGSQL_CFLAGS -I$PGSQL_INCLUDE" - fi - if test "$PGSQL_LIBDIR" != ""; then - PGSQL_LIBS="$PGSQL_LIBS -L$PGSQL_LIBDIR" - fi - PGSQL_LIBS="$PGSQL_LIBS -lpq" - AC_DEFINE(HAVE_PGSQL,, [Build with PostgreSQL support]) - found_sql_drivers="$found_sql_drivers pgsql" - ], [ - if test $want_pgsql = yes; then - AC_ERROR([Can't build with PostgreSQL support: libpq-fe.h not found]) - fi - ]) - CPPFLAGS=$old_CPPFLAGS - ], [ - if test $want_pgsql = yes; then - AC_ERROR([Can't build with PostgreSQL support: libpq not found]) - fi - ]) - LIBS=$old_LIBS - fi -]) diff --git a/m4/want_prefetch.m4 b/m4/want_prefetch.m4 deleted file mode 100644 index 49d2f65b06..0000000000 --- a/m4/want_prefetch.m4 +++ /dev/null @@ -1,8 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_PREFETCH], [ - if test $want_prefetch_userdb != no; then - AC_DEFINE(USERDB_PREFETCH,, [Build with prefetch userdb support]) - userdb="$userdb prefetch" - else - not_userdb="$not_userdb prefetch" - fi -]) diff --git a/m4/want_shadow.m4 b/m4/want_shadow.m4 deleted file mode 100644 index 64409ebda2..0000000000 --- a/m4/want_shadow.m4 +++ /dev/null @@ -1,24 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_SHADOW], [ - have_shadow=no - if test $want_shadow != no; then - AC_CHECK_FUNC(getspnam, [ - AC_CHECK_HEADER(shadow.h, [ - AC_DEFINE(PASSDB_SHADOW,, [Build with shadow support]) - have_shadow=yes - ], [ - if test $want_shadow = yes; then - AC_ERROR([Can't build with shadow support: shadow.h not found]) - fi - ]) - ], [ - if test $want_shadow = yes; then - AC_ERROR([Can't build with shadow support: getspnam() not found]) - fi - ]) - fi - if test $have_shadow = no; then - not_passdb="$not_passdb shadow" - else - passdb="$passdb shadow" - fi -]) diff --git a/m4/want_sodium.m4 b/m4/want_sodium.m4 deleted file mode 100644 index f82edeb55d..0000000000 --- a/m4/want_sodium.m4 +++ /dev/null @@ -1,18 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_SODIUM], [ - AS_IF([test "$want_sodium" != "no"], [ - PKG_CHECK_MODULES(LIBSODIUM, libsodium, [ - OLD_LIBS="$LIBS" - LIBS="$LIBS $LIBSODIUM_LIBS" - AC_CHECK_FUNC([crypto_pwhash_str_verify], [ - have_sodium=yes - AUTH_LIBS="$AUTH_LIBS $LIBSODIUM_LIBS" - AC_DEFINE(HAVE_LIBSODIUM, [1], [Define if you have libsodium]) - ]) - LIBS="$OLD_LIBS" - ], [have_sodium=no]) - AS_IF([test "$want_sodium" = "yes" && test "$have_sodium" != "yes"] , [ - AC_ERROR([Can't build with libsodium: not found]) - ]) - ]) - AM_CONDITIONAL(BUILD_LIBSODIUM, test "$have_sodium" = "yes") -]) diff --git a/m4/want_solr.m4 b/m4/want_solr.m4 deleted file mode 100644 index a7dee18d5a..0000000000 --- a/m4/want_solr.m4 +++ /dev/null @@ -1,21 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_SOLR], [ - have_solr=no - if test "$want_solr" != "no"; then - dnl need libexpat - AC_CHECK_LIB(expat, XML_Parse, [ - AC_CHECK_HEADER(expat.h, [ - have_solr=yes - fts="$fts solr" - ], [ - if test $want_solr = yes; then - AC_ERROR([Can't build with Solr support: expat.h not found]) - fi - ]) - ], [ - if test $want_solr = yes; then - AC_ERROR([Can't build with Solr support: libexpat not found]) - fi - ]) - fi - AM_CONDITIONAL(BUILD_SOLR, test "$have_solr" = "yes") -]) diff --git a/m4/want_sqlite.m4 b/m4/want_sqlite.m4 deleted file mode 100644 index 0af632f846..0000000000 --- a/m4/want_sqlite.m4 +++ /dev/null @@ -1,20 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_SQLITE], [ - if test $want_sqlite != no; then - AC_CHECK_LIB(sqlite3, sqlite3_open, [ - AC_CHECK_HEADER(sqlite3.h, [ - SQLITE_LIBS="$SQLITE_LIBS -lsqlite3" - - AC_DEFINE(HAVE_SQLITE,, [Build with SQLite3 support]) - found_sql_drivers="$found_sql_drivers sqlite" - ], [ - if test $want_sqlite = yes; then - AC_ERROR([Can't build with SQLite support: sqlite3.h not found]) - fi - ]) - ], [ - if test $want_sqlite = yes; then - AC_ERROR([Can't build with SQLite support: libsqlite3 not found]) - fi - ]) - fi -]) diff --git a/m4/want_stemmer.m4 b/m4/want_stemmer.m4 deleted file mode 100644 index f3b93d373b..0000000000 --- a/m4/want_stemmer.m4 +++ /dev/null @@ -1,14 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_STEMMER], [ - if test $want_stemmer != no; then - AC_CHECK_LIB(stemmer, sb_stemmer_new, [ - have_fts_stemmer=yes - AC_DEFINE(HAVE_FTS_STEMMER,, [Define if you want stemming support for FTS]) - ], [ - if test $want_stemmer = yes; then - AC_ERROR([Can't build with stemmer support: libstemmer not found]) - fi - ]) - fi - - AM_CONDITIONAL([BUILD_FTS_STEMMER], [test "$have_fts_stemmer" = "yes"]) -]) diff --git a/m4/want_systemd.m4 b/m4/want_systemd.m4 deleted file mode 100644 index fbccbc2c0d..0000000000 --- a/m4/want_systemd.m4 +++ /dev/null @@ -1,36 +0,0 @@ -dnl Checks for libsystemd existence and where -dnl to put systemd unit files. You can have -dnl systemd units without libsystemd. - -AC_DEFUN([DOVECOT_WANT_SYSTEMD], [ - systemdservicetype='simple' - have_libsystemd=no - - AS_IF([test "$want_systemd" != "no"], [ - dnl Check for actual systemd integration - PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [ - AC_DEFINE([HAVE_LIBSYSTEMD],[1], [Define to 1 if you have libsystemd]) - systemdservicetype='notify' - have_libsystemd=yes - ], AS_IF([test "$want_systemd" = "yes"], [ - AC_MSG_WARN([libsystemd not found - full integration disabled]) - ]) - ) - dnl Check for unit file installation - AC_MSG_CHECKING([for systemd unit directory]) - AS_IF([test "$systemdsystemunitdir" = ""], [ - PKG_CHECK_VAR([systemdsystemunitdir], [systemd], [systemdsystemunitdir]) - ]) - AC_MSG_RESULT([$systemdsystemunitdir]) - AS_IF([test "$systemdsystemunitdir" = ""], [ - AS_IF([test "$want_systemd" = "yes"], [ - AC_MSG_ERROR([Cannot determine where to put systemd files - Provide systemdsystemunitdir manually]) - ]) - dnl Cannot enable even unit file installation. - want_systemd=no - ]) - ]) - AC_SUBST(systemdsystemunitdir) - AC_SUBST(systemdservicetype) - AM_CONDITIONAL(WANT_SYSTEMD, [test "$want_systemd" != "no"]) -]) diff --git a/m4/want_textcat.m4 b/m4/want_textcat.m4 deleted file mode 100644 index 8bf7774814..0000000000 --- a/m4/want_textcat.m4 +++ /dev/null @@ -1,36 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_TEXTCAT], [ - if test $want_textcat != no; then - if test "$PKG_CONFIG" != "" && $PKG_CONFIG --exists libexttextcat 2>/dev/null; then - PKG_CHECK_MODULES(LIBEXTTEXTCAT, libexttextcat) - TEXTCAT_DATADIR=`$PKG_CONFIG --variable=pkgdatadir libexttextcat` - AC_DEFINE(HAVE_FTS_EXTTEXTCAT,, [Define if you want exttextcat support for FTS]) - have_fts_exttextcat=yes - # Debian Wheezy workaround - LIBEXTTEXTCAT_CFLAGS include path is wrong: - AC_CHECK_HEADERS(libexttextcat/textcat.h) - else - AC_CHECK_LIB(exttextcat, special_textcat_Init, [ - have_fts_exttextcat=yes - AC_CHECK_HEADERS(libexttextcat/textcat.h) - LIBEXTTEXTCAT_LIBS=-lexttextcat - AC_DEFINE(HAVE_FTS_EXTTEXTCAT,, [Define if you want exttextcat support for FTS]) - TEXTCAT_DATADIR="/usr/share/libexttextcat" - AC_SUBST(LIBEXTTEXTCAT_LIBS) - ], [ - AC_CHECK_LIB(textcat, special_textcat_Init, [ - have_fts_textcat=yes - TEXTCAT_DATADIR="/usr/share/libtextcat" - AC_CHECK_HEADERS(libtextcat/textcat.h) - ]) - ]) - if test $want_textcat = yes && test "$have_fts_exttextcat" != yes && test "$have_fts_textcat" != yes; then - AC_ERROR([Can't build with textcat support: libtextcat or libexttextcat not found]) - fi - fi - if test "$have_fts_exttextcat" = yes || test "$have_fts_textcat" = yes; then - AC_DEFINE(HAVE_FTS_TEXTCAT,, [Define if you want textcat support for FTS]) - AC_DEFINE_UNQUOTED(TEXTCAT_DATADIR, "$TEXTCAT_DATADIR", [Points to textcat pkgdatadir containing the language files]) - fi - fi - AM_CONDITIONAL(BUILD_FTS_TEXTCAT, test "$have_fts_textcat" = "yes") - AM_CONDITIONAL(BUILD_FTS_EXTTEXTCAT, test "$have_fts_exttextcat" = "yes") -]) diff --git a/m4/want_unwind.m4 b/m4/want_unwind.m4 deleted file mode 100644 index cadb62b71d..0000000000 --- a/m4/want_unwind.m4 +++ /dev/null @@ -1,19 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_UNWIND], [ - have_libunwind=no - AS_IF([test "$want_libunwind" != "no"], [ - PKG_CHECK_EXISTS([libunwind], [ - PKG_CHECK_MODULES([LIBUNWIND], [libunwind-generic],[ - have_libunwind=yes - AC_DEFINE([HAVE_LIBUNWIND],,[Define this if you have libunwind]) - ]) - ]) - ]) - - AC_MSG_CHECKING([whether we will be linking with libunwind]); - AS_IF([test "$want_libunwind" = yes], [ - AS_IF([test "$have_libunwind" != yes], [ - AC_MSG_ERROR([Cannot find libunwind]) - ]) - ]) - AC_MSG_RESULT([$have_libunwind]) -]) diff --git a/m4/want_zlib.m4 b/m4/want_zlib.m4 deleted file mode 100644 index 397b8db51b..0000000000 --- a/m4/want_zlib.m4 +++ /dev/null @@ -1,14 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_ZLIB], [ - if test "$want_zlib" != "no"; then - AC_CHECK_HEADER(zlib.h, [ - have_zlib=yes - have_compress_lib=yes - AC_DEFINE(HAVE_ZLIB,, [Define if you have zlib library]) - COMPRESS_LIBS="$COMPRESS_LIBS -lz" - ], [ - if test "$want_zlib" = "yes"; then - AC_ERROR([Can't build with zlib support: zlib.h not found]) - fi - ]) - fi -]) diff --git a/m4/want_zstd.m4 b/m4/want_zstd.m4 deleted file mode 100644 index 57b1b03477..0000000000 --- a/m4/want_zstd.m4 +++ /dev/null @@ -1,22 +0,0 @@ -AC_DEFUN([DOVECOT_WANT_ZSTD], [ - have_zstd=no - - AS_IF([test $want_zstd = yes], [ - PKG_CHECK_MODULES([ZSTD], [libzstd], [have_zstd=yes], [AC_MSG_ERROR([libzstd not found])]) - ], [AS_IF([test $want_zstd != no], [ - PKG_CHECK_MODULES([ZSTD], [libzstd], [have_zstd=yes], [have_zstd=no]) - ]) - ]) - - AS_IF([test $have_zstd = yes], [ - have_compress_lib=yes - COMPRESS_LIBS="$COMPRESS_LIBS $ZSTD_LIBS" - AC_DEFINE([HAVE_ZSTD], [], [Define if you have ZSTD library]) - AC_CHECK_DECLS([ZSTD_error_parameter_unsupported, ZSTD_minCLevel], [], [], [[#include ]]) - AC_CHECK_LIB([zstd], [ZSTD_getErrorCode], [ - AC_DEFINE([HAVE_ZSTD_GETERRORCODE], [1], [Whether zstd has ZSTD_getErrorCode]) - ], []) - ]) - - AM_CONDITIONAL([BUILD_ZSTD], test "$have_zstd" = "yes") -]) diff --git a/src/Makefile.am b/src/Makefile.am deleted file mode 100644 index b8d3f307e7..0000000000 --- a/src/Makefile.am +++ /dev/null @@ -1,70 +0,0 @@ -if HAVE_LDAP -LIB_LDAP=lib-ldap -endif -if HAVE_LUA -LIB_LUA=lib-lua -endif - -LIBDOVECOT_SUBDIRS = \ - lib-test \ - lib \ - lib-settings \ - lib-auth \ - lib-dns \ - lib-master \ - lib-charset \ - lib-ssl-iostream \ - lib-dict \ - lib-sasl \ - lib-old-stats \ - lib-http \ - lib-fs \ - lib-mail \ - lib-program-client \ - lib-smtp \ - lib-imap \ - lib-imap-storage \ - -SUBDIRS = \ - $(LIBDOVECOT_SUBDIRS) \ - lib-dict-extra \ - lib-dovecot \ - $(LIB_LDAP) \ - $(LIB_LUA) \ - lib-fts \ - lib-imap-client \ - lib-imap-urlauth \ - lib-compression \ - lib-index \ - lib-storage \ - lib-sql \ - lib-otp \ - lib-lda \ - lib-dict-backend \ - anvil \ - auth \ - dict \ - dns \ - indexer \ - ipc \ - master \ - login-common \ - imap-hibernate \ - imap-login \ - imap \ - imap-urlauth \ - pop3-login \ - pop3 \ - submission-login \ - submission \ - lda \ - lmtp \ - log \ - config \ - director \ - replication \ - util \ - doveadm \ - stats \ - old-stats \ - plugins diff --git a/src/anvil/Makefile.am b/src/anvil/Makefile.am deleted file mode 100644 index 1af526fe63..0000000000 --- a/src/anvil/Makefile.am +++ /dev/null @@ -1,48 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = anvil - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - $(BINARY_CFLAGS) - -anvil_LDADD = \ - $(LIBDOVECOT) \ - $(RAND_LIBS) \ - $(BINARY_LDFLAGS) - -anvil_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -anvil_SOURCES = \ - main.c \ - anvil-connection.c \ - anvil-settings.c \ - connect-limit.c \ - penalty.c - -noinst_HEADERS = \ - anvil-connection.h \ - common.h \ - connect-limit.h \ - penalty.h - -test_programs = \ - test-penalty - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_penalty_SOURCES = test-penalty.c -test_penalty_LDADD = penalty.o $(test_libs) -test_penalty_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/auth/Makefile.am b/src/auth/Makefile.am deleted file mode 100644 index ce8d036001..0000000000 --- a/src/auth/Makefile.am +++ /dev/null @@ -1,257 +0,0 @@ -noinst_LTLIBRARIES = libpassword.la libauth.la -auth_moduledir = $(moduledir)/auth - -# automake seems to force making this unconditional.. -NOPLUGIN_LDFLAGS = - -AUTH_LUA_LIBS = -AUTH_LUA_LDADD = - -if HAVE_LUA -AUTH_LUA_LIBS += $(LIBDOVECOT_LUA) -AUTH_LUA_LDADD += $(LUA_LIBS) -endif - -auth_module_LTLIBRARIES = \ - libauthdb_imap.la - -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = auth checkpassword-reply - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-http \ - -I$(top_srcdir)/src/lib-sql \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-old-stats \ - -I$(top_srcdir)/src/lib-otp \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-lua \ - -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - -DSYSCONFDIR=\""$(sysconfdir)/dovecot"\" \ - $(LUA_CFLAGS) \ - $(AUTH_CFLAGS) - -auth_LDFLAGS = -export-dynamic - -libpassword_la_SOURCES = \ - crypt-blowfish.c \ - mycrypt.c \ - password-scheme.c \ - password-scheme-crypt.c \ - password-scheme-md5crypt.c \ - password-scheme-scram.c \ - password-scheme-otp.c \ - password-scheme-pbkdf2.c \ - password-scheme-sodium.c -libpassword_la_CFLAGS = $(AM_CPPFLAGS) $(LIBSODIUM_CFLAGS) - -auth_libs = \ - libauth.la \ - libstats_auth.la \ - libpassword.la \ - ../lib-otp/libotp.la \ - $(AUTH_LUA_LIBS) \ - $(LIBDOVECOT_SQL) - -auth_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) -auth_LDADD = $(auth_libs) $(LIBDOVECOT) $(AUTH_LIBS) $(BINARY_LDFLAGS) $(AUTH_LUA_LDADD) -auth_DEPENDENCIES = $(auth_libs) $(LIBDOVECOT_DEPS) -auth_SOURCES = main.c - -ldap_sources = db-ldap.c passdb-ldap.c userdb-ldap.c -lua_sources = db-lua.c passdb-lua.c userdb-lua.c - -libauth_la_DEPENDENCIES = $(LIBDOVECOT_DEPS) -libauth_la_SOURCES = \ - auth.c \ - auth-cache.c \ - auth-client-connection.c \ - auth-master-connection.c \ - auth-policy.c \ - mech-otp-common.c \ - mech-plain-common.c \ - auth-penalty.c \ - auth-request.c \ - auth-request-fields.c \ - auth-request-handler.c \ - auth-request-stats.c \ - auth-request-var-expand.c \ - auth-settings.c \ - auth-fields.c \ - auth-token.c \ - auth-worker-client.c \ - auth-worker-server.c \ - db-checkpassword.c \ - db-dict.c \ - db-dict-cache-key.c \ - db-sql.c \ - db-passwd-file.c \ - mech.c \ - mech-anonymous.c \ - mech-plain.c \ - mech-login.c \ - mech-cram-md5.c \ - mech-digest-md5.c \ - mech-external.c \ - mech-gssapi.c \ - mech-otp.c \ - mech-scram.c \ - mech-apop.c \ - mech-winbind.c \ - mech-dovecot-token.c \ - passdb.c \ - passdb-blocking.c \ - passdb-bsdauth.c \ - passdb-cache.c \ - passdb-checkpassword.c \ - passdb-dict.c \ - passdb-passwd.c \ - passdb-passwd-file.c \ - passdb-pam.c \ - passdb-shadow.c \ - passdb-sql.c \ - passdb-static.c \ - passdb-template.c \ - userdb.c \ - userdb-blocking.c \ - userdb-checkpassword.c \ - userdb-dict.c \ - userdb-passwd.c \ - userdb-passwd-file.c \ - userdb-prefetch.c \ - userdb-static.c \ - userdb-sql.c \ - userdb-template.c \ - $(ldap_sources) \ - $(lua_sources) - -headers = \ - auth.h \ - auth-cache.h \ - auth-client-connection.h \ - auth-common.h \ - auth-master-connection.h \ - mech-otp-common.h \ - mech-plain-common.h \ - mech-digest-md5-private.h \ - mech-scram.h \ - auth-penalty.h \ - auth-policy.h \ - auth-request.h \ - auth-request-handler.h \ - auth-request-handler-private.h \ - auth-request-stats.h \ - auth-request-var-expand.h \ - auth-settings.h \ - auth-stats.h \ - auth-fields.h \ - auth-token.h \ - auth-worker-client.h \ - auth-worker-server.h \ - db-dict.h \ - db-ldap.h \ - db-sql.h \ - db-passwd-file.h \ - db-checkpassword.h \ - mech.h \ - mycrypt.h \ - passdb.h \ - passdb-blocking.h \ - passdb-cache.h \ - passdb-template.h \ - password-scheme.h \ - userdb.h \ - userdb-blocking.h \ - userdb-template.h - -libauthdb_imap_la_LDFLAGS = -module -avoid-version -libauthdb_imap_la_LIBADD = \ - ../lib-imap-client/libimap_client.la \ - $(LIBDOVECOT) -libauthdb_imap_la_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-imap-client -libauthdb_imap_la_SOURCES = passdb-imap.c - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -checkpassword_reply_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) -checkpassword_reply_LDADD = $(LIBDOVECOT) $(BINARY_LDFLAGS) -checkpassword_reply_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -checkpassword_reply_sources = \ - checkpassword-reply.c - -stats_moduledir = $(moduledir)/old-stats -stats_module_LTLIBRARIES = libstats_auth.la - -libstats_auth_la_LDFLAGS = -module -avoid-version -libstats_auth_la_LIBADD = $(LIBDOVECOT) -libstats_auth_la_DEPENDENCIES = $(LIBDOVECOT_DEPS) -libstats_auth_la_SOURCES = auth-stats.c - -test_programs = \ - test-libpassword \ - test-auth-cache \ - test-auth \ - test-mech - -noinst_PROGRAMS = $(test_programs) - -noinst_HEADERS = test-auth.h crypt-blowfish.h db-lua.h - -test_libs = \ - ../lib-dovecot/libdovecot.la - -test_libpassword_SOURCES = test-libpassword.c -test_libpassword_LDADD = \ - libpassword.la \ - ../lib-otp/libotp.la \ - $(CRYPT_LIBS) \ - $(LIBDOVECOT_SQL) \ - $(LIBSODIUM_LIBS) \ - $(test_libs) \ - $(BINARY_LDFLAGS) - -test_libpassword_DEPENDENCIES = libpassword.la -test_libpassword_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) - -test_auth_cache_SOURCES = auth-cache.c test-auth-cache.c -test_auth_cache_LDADD = $(test_libs) -test_auth_cache_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs) -# this is needed to force auth-cache.c recompilation -test_auth_cache_CPPFLAGS = $(AM_CPPFLAGS) - -test_auth_SOURCES = \ - test-auth-request-var-expand.c \ - test-auth-request-fields.c \ - test-username-filter.c \ - test-db-dict.c \ - test-lua.c \ - test-mock.c \ - test-main.c - -test_auth_LDADD = $(test_libs) $(auth_libs) $(AUTH_LIBS) $(LUA_LIBS) -test_auth_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs) - -test_mech_SOURCES = \ - test-mock.c \ - test-mech.c - -test_mech_LDADD = $(test_libs) $(auth_libs) $(AUTH_LIBS) $(LUA_LIBS) -test_mech_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/config/Makefile.am b/src/config/Makefile.am deleted file mode 100644 index 206dd39f2f..0000000000 --- a/src/config/Makefile.am +++ /dev/null @@ -1,97 +0,0 @@ -pkgsysconfdir = $(sysconfdir)/dovecot -pkglibexecdir = $(libexecdir)/dovecot -exampledir = $(docdir)/example-config - -bin_PROGRAMS = doveconf -pkglibexec_PROGRAMS = config - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - -DPKG_STATEDIR=\""$(statedir)"\" \ - -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \ - -DEXAMPLE_CONFIG_DIR=\""$(exampledir)"\" \ - -DSSLDIR=\""$(ssldir)\"" \ - -DSYSCONFDIR=\""$(pkgsysconfdir)"\" \ - $(BINARY_CFLAGS) - -noinst_LTLIBRARIES = libconfig.la - -config_LDADD = \ - $(noinst_LTLIBRARIES) \ - $(LIBDOVECOT) \ - $(RAND_LIBS) \ - $(BINARY_LDFLAGS) \ - -lm - -config_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES) - -doveconf_LDADD = \ - $(noinst_LTLIBRARIES) \ - $(LIBDOVECOT) \ - $(RAND_LIBS) \ - $(BINARY_LDFLAGS) \ - -lm - -doveconf_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES) - -common = \ - config-connection.c \ - config-filter.c \ - config-parser.c \ - config-request.c \ - old-set-parser.c \ - sysinfo-get.c - -libconfig_la_SOURCES = $(common) - -config_SOURCES = \ - all-settings.c \ - main.c - -doveconf_SOURCES = \ - all-settings.c \ - doveconf.c - -noinst_HEADERS = \ - all-settings.h \ - config-connection.h \ - old-set-parser.h \ - sysinfo-get.h - -pkginclude_HEADERS = \ - config-filter.h \ - config-parser.h \ - config-parser-private.h \ - config-request.h - -all-settings.c: $(SETTING_FILES) $(top_srcdir)/src/config/settings-get.pl - $(top_srcdir)/src/config/settings-get.pl $(SETTING_FILES) > all-settings.c || rm -f all-settings.c - -EXTRA_DIST = \ - config-settings.c \ - settings-get.pl - -test_programs = \ - test-config-parser - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - $(noinst_LTLIBRARIES) \ - $(LIBDOVECOT) - -test_config_parser_CFLAGS = $(AM_CPPFLAGS) -test_config_parser_SOURCES = test-config-parser.c -test_config_parser_LDADD = $(test_libs) -test_config_parser_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/dict/Makefile.am b/src/dict/Makefile.am deleted file mode 100644 index 1de912b67c..0000000000 --- a/src/dict/Makefile.am +++ /dev/null @@ -1,42 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = dict - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-sql \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - $(BINARY_CFLAGS) - -dict_LDFLAGS = -export-dynamic \ - $(BINARY_LDFLAGS) - -libs = \ - ../lib-dict-backend/libdict_backend.la \ - $(LIBDOVECOT_SQL) - -dict_LDADD = \ - $(libs) \ - $(LIBDOVECOT) \ - $(DICT_LIBS) \ - $(SQL_LIBS) \ - -lm - -dict_DEPENDENCIES = $(libs) $(LIBDOVECOT_DEPS) - -dict_SOURCES = \ - dict-connection.c \ - dict-commands.c \ - dict-settings.c \ - dict-init-cache.c \ - main.c - -noinst_HEADERS = \ - dict-connection.h \ - dict-commands.h \ - dict-settings.h \ - dict-init-cache.h \ - main.h diff --git a/src/director/Makefile.am b/src/director/Makefile.am deleted file mode 100644 index c202353e3e..0000000000 --- a/src/director/Makefile.am +++ /dev/null @@ -1,70 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = director - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-program-client \ - $(BINARY_CFLAGS) - -director_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -director_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -director_SOURCES = \ - main.c \ - auth-connection.c \ - director.c \ - director-connection.c \ - director-host.c \ - director-request.c \ - director-settings.c \ - doveadm-connection.c \ - login-connection.c \ - mail-host.c \ - notify-connection.c \ - user-directory.c - -noinst_HEADERS = \ - auth-connection.h \ - director.h \ - director-connection.h \ - director-host.h \ - director-request.h \ - director-settings.h \ - doveadm-connection.h \ - login-connection.h \ - mail-host.h \ - notify-connection.h \ - user-directory.h - -noinst_PROGRAMS = director-test $(test_programs) - -director_test_LDADD = $(LIBDOVECOT) -director_test_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -director_test_SOURCES = \ - director-test.c - -test_programs = \ - test-user-directory - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_user_directory_SOURCES = test-user-directory.c -test_user_directory_LDADD = user-directory.o $(test_libs) -test_user_directory_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/dns/Makefile.am b/src/dns/Makefile.am deleted file mode 100644 index 87f4b6cdf1..0000000000 --- a/src/dns/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = dns-client - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-settings \ - $(BINARY_CFLAGS) - -dns_client_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -dns_client_DEPENDENCIES = $(LIBDOVECOT_DEPS) -dns_client_SOURCES = \ - dns-client.c \ - dns-client-settings.c diff --git a/src/doveadm/Makefile.am b/src/doveadm/Makefile.am deleted file mode 100644 index 5604941287..0000000000 --- a/src/doveadm/Makefile.am +++ /dev/null @@ -1,195 +0,0 @@ -doveadm_moduledir = $(moduledir)/doveadm -pkglibexecdir = $(libexecdir)/dovecot - -SUBDIRS = dsync - -bin_PROGRAMS = doveadm -pkglibexec_PROGRAMS = doveadm-server - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-compression \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-imap-storage \ - -I$(top_srcdir)/src/lib-http \ - -I$(top_srcdir)/src/auth \ - -I$(top_srcdir)/src/stats \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - -DPKG_STATEDIR=\""$(statedir)"\" \ - -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \ - -DBINDIR=\""$(bindir)"\" \ - -DMANDIR=\""$(mandir)"\" \ - $(BINARY_CFLAGS) - -cmd_pw_libs = \ - ../auth/libpassword.la \ - ../lib-otp/libotp.la - -libs = \ - dsync/libdsync.la \ - ../lib-compression/libcompression.la - -doveadm_LDADD = \ - $(libs) \ - $(cmd_pw_libs) \ - $(CRYPT_LIBS) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) \ - $(LIBSODIUM_LIBS) \ - $(BINARY_LDFLAGS) \ - -lm - -doveadm_DEPENDENCIES = \ - $(libs) \ - $(cmd_pw_libs) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -doveadm_server_LDADD = \ - $(libs) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) \ - -lm - -doveadm_server_DEPENDENCIES = \ - $(libs) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -doveadm_common_cmds = \ - doveadm-auth.c \ - doveadm-dict.c \ - doveadm-director.c \ - doveadm-fs.c \ - doveadm-instance.c \ - doveadm-kick.c \ - doveadm-log.c \ - doveadm-master.c \ - doveadm-mutf7.c \ - doveadm-penalty.c \ - doveadm-proxy.c \ - doveadm-replicator.c \ - doveadm-sis.c \ - doveadm-stats.c \ - doveadm-oldstats.c \ - doveadm-who.c - -doveadm_common_mail_cmds = \ - doveadm-dsync.c \ - doveadm-mail.c \ - doveadm-mail-altmove.c \ - doveadm-mail-batch.c \ - doveadm-mail-deduplicate.c \ - doveadm-mail-expunge.c \ - doveadm-mail-fetch.c \ - doveadm-mail-flags.c \ - doveadm-mail-import.c \ - doveadm-mail-index.c \ - doveadm-mail-iter.c \ - doveadm-mail-mailbox.c \ - doveadm-mail-mailbox-metadata.c \ - doveadm-mail-mailbox-status.c \ - doveadm-mail-copymove.c \ - doveadm-mailbox-list-iter.c \ - doveadm-mail-save.c \ - doveadm-mail-search.c \ - doveadm-mail-server.c \ - doveadm-mail-mailbox-cache.c \ - doveadm-mail-rebuild.c - -# these aren't actually useful in doveadm-server, but plugins may implement -# both dumping and some other commands inside a single plugin. not having the -# dump functions in doveadm-server fails to load such plugins. -doveadm_common_dump_cmds = \ - doveadm-dump.c \ - doveadm-dump-dbox.c \ - doveadm-dump-index.c \ - doveadm-dump-log.c \ - doveadm-dump-mailboxlog.c \ - doveadm-dump-thread.c \ - doveadm-zlib.c - -common = \ - $(doveadm_common_cmds) \ - $(doveadm_common_mail_cmds) \ - $(doveadm_common_dump_cmds) \ - doveadm-cmd.c \ - doveadm-print.c \ - doveadm-settings.c \ - doveadm-util.c \ - server-connection.c \ - doveadm-print-formatted.c - -doveadm_SOURCES = \ - $(common) \ - doveadm.c \ - doveadm-print-flow.c \ - doveadm-print-pager.c \ - doveadm-print-tab.c \ - doveadm-print-table.c \ - doveadm-print-json.c \ - doveadm-pw.c - -doveadm_server_SOURCES = \ - $(common) \ - doveadm-auth-server.c \ - client-connection.c \ - client-connection-tcp.c \ - client-connection-http.c \ - doveadm-print-server.c \ - doveadm-print-json.c \ - main.c - -pkginc_libdir = $(pkgincludedir) -pkginc_lib_HEADERS = \ - doveadm.h \ - doveadm-cmd.h \ - doveadm-dsync.h \ - doveadm-dump.h \ - doveadm-mail.h \ - doveadm-mail-iter.h \ - doveadm-mailbox-list-iter.h \ - doveadm-print.h \ - doveadm-print-private.h \ - doveadm-settings.h \ - doveadm-util.h - -noinst_HEADERS = \ - client-connection.h \ - client-connection-private.h \ - server-connection.h \ - doveadm-server.h \ - doveadm-who.h - -install-exec-local: - rm -f $(DESTDIR)$(bindir)/dsync - $(LN_S) doveadm $(DESTDIR)$(bindir)/dsync - -test_programs = \ - test-doveadm-util -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c -test_doveadm_util_LDADD = $(test_libs) -test_doveadm_util_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/doveadm/dsync/Makefile.am b/src/doveadm/dsync/Makefile.am deleted file mode 100644 index 20cbfc74f3..0000000000 --- a/src/doveadm/dsync/Makefile.am +++ /dev/null @@ -1,76 +0,0 @@ -pkglib_LTLIBRARIES = libdovecot-dsync.la -noinst_LTLIBRARIES = libdsync.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -libdsync_la_SOURCES = \ - dsync-brain.c \ - dsync-brain-mailbox.c \ - dsync-brain-mailbox-tree.c \ - dsync-brain-mailbox-tree-sync.c \ - dsync-brain-mails.c \ - dsync-deserializer.c \ - dsync-mail.c \ - dsync-mailbox.c \ - dsync-mailbox-import.c \ - dsync-mailbox-export.c \ - dsync-mailbox-state.c \ - dsync-mailbox-tree.c \ - dsync-mailbox-tree-fill.c \ - dsync-mailbox-tree-sync.c \ - dsync-serializer.c \ - dsync-ibc.c \ - dsync-ibc-stream.c \ - dsync-ibc-pipe.c \ - dsync-transaction-log-scan.c - -libdovecot_dsync_la_SOURCES = -libdovecot_dsync_la_LIBADD = libdsync.la ../../lib-storage/libdovecot-storage.la ../../lib-dovecot/libdovecot.la -libdovecot_dsync_la_DEPENDENCIES = libdsync.la -libdovecot_dsync_la_LDFLAGS = -export-dynamic - -pkginc_libdir = $(pkgincludedir) -pkginc_lib_HEADERS = \ - dsync-brain.h \ - dsync-ibc.h - -noinst_HEADERS = \ - dsync-brain-private.h \ - dsync-mail.h \ - dsync-mailbox.h \ - dsync-mailbox-import.h \ - dsync-mailbox-export.h \ - dsync-mailbox-state.h \ - dsync-mailbox-tree.h \ - dsync-mailbox-tree-private.h \ - dsync-serializer.h \ - dsync-deserializer.h \ - dsync-ibc-private.h \ - dsync-transaction-log-scan.h - -test_programs = \ - test-dsync-mailbox-tree-sync - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../../lib-test/libtest.la \ - ../../lib/liblib.la - -test_dsync_mailbox_tree_sync_SOURCES = test-dsync-mailbox-tree-sync.c -test_dsync_mailbox_tree_sync_LDADD = dsync-mailbox-tree-sync.lo dsync-mailbox-tree.lo $(test_libs) -test_dsync_mailbox_tree_sync_DEPENDENCIES = $(pkglib_LTLIBRARIES) $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/imap-hibernate/Makefile.am b/src/imap-hibernate/Makefile.am deleted file mode 100644 index 3641c90e13..0000000000 --- a/src/imap-hibernate/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = imap-hibernate - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-imap \ - $(BINARY_CFLAGS) - -imap_hibernate_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -imap_hibernate_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -imap_hibernate_SOURCES = \ - imap-client.c \ - imap-hibernate-client.c \ - imap-hibernate-settings.c \ - imap-master-connection.c \ - main.c - -noinst_HEADERS = \ - imap-client.h \ - imap-hibernate-client.h \ - imap-master-connection.h diff --git a/src/imap-login/Makefile.am b/src/imap-login/Makefile.am deleted file mode 100644 index 904f530c29..0000000000 --- a/src/imap-login/Makefile.am +++ /dev/null @@ -1,41 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = imap-login - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-sasl \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/login-common \ - $(BINARY_CFLAGS) - -imap_login_LDADD = \ - $(LIBDOVECOT_LOGIN) \ - $(LIBDOVECOT) \ - $(SSL_LIBS) \ - $(BINARY_LDFLAGS) - -imap_login_DEPENDENCIES = \ - $(LIBDOVECOT_LOGIN) \ - $(LIBDOVECOT_DEPS) - -imap_login_SOURCES = \ - imap-login-client.c \ - client-authenticate.c \ - imap-login-cmd-id.c \ - imap-login-commands.c \ - imap-login-settings.c \ - imap-proxy.c - -noinst_HEADERS = \ - client-authenticate.h \ - imap-proxy.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = \ - imap-login-client.h \ - imap-login-commands.h \ - imap-login-settings.h diff --git a/src/imap-urlauth/Makefile.am b/src/imap-urlauth/Makefile.am deleted file mode 100644 index c9a37e683b..0000000000 --- a/src/imap-urlauth/Makefile.am +++ /dev/null @@ -1,85 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -# Refer to comment in imap-urlauth.c for info on what these binaries are for. -pkglibexec_PROGRAMS = imap-urlauth-login imap-urlauth imap-urlauth-worker - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-master \ - $(BINARY_CFLAGS) - -# imap-urlauth-login - -imap_urlauth_login_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/login-common - -imap_urlauth_login_LDADD = \ - $(LIBDOVECOT_LOGIN) \ - $(LIBDOVECOT) \ - $(SSL_LIBS) \ - $(BINARY_LDFLAGS) - -imap_urlauth_login_DEPENDENCIES = \ - $(LIBDOVECOT_LOGIN_DEPS) \ - $(LIBDOVECOT_DEPS) - -imap_urlauth_login_SOURCES = \ - imap-urlauth-login.c \ - imap-urlauth-login-settings.c - -# imap-urlauth - -imap_urlauth_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib-dict \ - -DPKG_RUNDIR=\""$(rundir)"\" - -imap_urlauth_LDFLAGS = -export-dynamic - -imap_urlauth_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -imap_urlauth_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -imap_urlauth_SOURCES = \ - imap-urlauth.c \ - imap-urlauth-client.c \ - imap-urlauth-settings.c - -# imap-urlauth-worker - -imap_urlauth_worker_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/imap \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-imap-storage \ - -I$(top_srcdir)/src/lib-imap-urlauth \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/login-common - -imap_urlauth_worker_LDFLAGS = -export-dynamic \ - $(BINARY_LDFLAGS) - -urlauth_libs = \ - $(top_builddir)/src/lib-imap-urlauth/libimap-urlauth.la - -imap_urlauth_worker_LDADD = $(urlauth_libs) $(LIBDOVECOT_STORAGE) $(LIBDOVECOT) -imap_urlauth_worker_DEPENDENCIES = $(urlauth_libs) $(LIBDOVECOT_STORAGE_DEPS) $(LIBDOVECOT_DEPS) - -imap_urlauth_worker_SOURCES = \ - imap-urlauth-worker.c \ - imap-urlauth-worker-settings.c - -noinst_HEADERS = \ - imap-urlauth-client.h \ - imap-urlauth-common.h \ - imap-urlauth-settings.h \ - imap-urlauth-login-settings.h \ - imap-urlauth-worker-settings.h - diff --git a/src/imap/Makefile.am b/src/imap/Makefile.am deleted file mode 100644 index 0a45fd3926..0000000000 --- a/src/imap/Makefile.am +++ /dev/null @@ -1,130 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = imap - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-imap-urlauth \ - -I$(top_srcdir)/src/lib-imap-storage \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - $(BINARY_CFLAGS) - -imap_LDFLAGS = -export-dynamic \ - $(BINARY_LDFLAGS) - -imap_LDADD = \ - ../lib-imap-urlauth/libimap-urlauth.la \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) -imap_DEPENDENCIES = \ - ../lib-imap-urlauth/libimap-urlauth.la \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -cmds = \ - cmd-append.c \ - cmd-capability.c \ - cmd-cancelupdate.c \ - cmd-check.c \ - cmd-close.c \ - cmd-copy.c \ - cmd-create.c \ - cmd-delete.c \ - cmd-enable.c \ - cmd-examine.c \ - cmd-expunge.c \ - cmd-fetch.c \ - cmd-genurlauth.c \ - cmd-getmetadata.c \ - cmd-id.c \ - cmd-idle.c \ - cmd-list.c \ - cmd-logout.c \ - cmd-lsub.c \ - cmd-namespace.c \ - cmd-noop.c \ - cmd-notify.c \ - cmd-rename.c \ - cmd-resetkey.c \ - cmd-search.c \ - cmd-select.c \ - cmd-setmetadata.c \ - cmd-sort.c \ - cmd-status.c \ - cmd-store.c \ - cmd-subscribe.c \ - cmd-thread.c \ - cmd-unselect.c \ - cmd-unsubscribe.c \ - cmd-urlfetch.c \ - cmd-x-cancel.c \ - cmd-x-state.c - -common_sources = \ - $(cmds) \ - imap-client.c \ - imap-client-hibernate.c \ - imap-commands.c \ - imap-commands-util.c \ - imap-expunge.c \ - imap-feature.c \ - imap-fetch.c \ - imap-fetch-body.c \ - imap-list.c \ - imap-master-client.c \ - imap-notify.c \ - imap-search.c \ - imap-search-args.c \ - imap-settings.c \ - imap-status.c \ - imap-state.c \ - imap-sync.c \ - mail-storage-callbacks.c - -imap_SOURCES = \ - $(common_sources) \ - main.c - -headers = \ - imap-client.h \ - imap-commands.h \ - imap-commands-util.h \ - imap-common.h \ - imap-expunge.h \ - imap-feature.h \ - imap-fetch.h \ - imap-list.h \ - imap-master-client.h \ - imap-notify.h \ - imap-search.h \ - imap-search-args.h \ - imap-settings.h \ - imap-status.h \ - imap-state.h \ - imap-sync.h \ - imap-sync-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-imap-client-hibernate -noinst_PROGRAMS = $(test_programs) - -test_imap_client_hibernate_SOURCES = \ - test-imap-client-hibernate.c $(common_sources) -test_imap_client_hibernate_LDADD = $(imap_LDADD) -test_imap_client_hibernate_DEPENDENCIES = $(imap_DEPENDENCIES) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/indexer/Makefile.am b/src/indexer/Makefile.am deleted file mode 100644 index 8bfc891fa7..0000000000 --- a/src/indexer/Makefile.am +++ /dev/null @@ -1,47 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = indexer indexer-worker - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - $(BINARY_CFLAGS) - -indexer_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -indexer_DEPENDENCIES = $(LIBDOVECOT_DEPS) -indexer_SOURCES = \ - indexer.c \ - indexer-client.c \ - indexer-queue.c \ - indexer-settings.c \ - worker-connection.c \ - worker-pool.c - -indexer_worker_LDADD = \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -indexer_worker_DEPENDENCIES = \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) -indexer_worker_SOURCES = \ - indexer-worker.c \ - indexer-worker-settings.c \ - master-connection.c - -noinst_HEADERS = \ - indexer.h \ - indexer-client.h \ - indexer-queue.h \ - master-connection.h \ - worker-connection.h \ - worker-pool.h - diff --git a/src/ipc/Makefile.am b/src/ipc/Makefile.am deleted file mode 100644 index a12609e468..0000000000 --- a/src/ipc/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = ipc - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - $(BINARY_CFLAGS) - -ipc_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) -ipc_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -ipc_SOURCES = \ - client.c \ - main.c \ - ipc-connection.c \ - ipc-group.c \ - ipc-settings.c - -noinst_HEADERS = \ - client.h \ - ipc-connection.h \ - ipc-group.h diff --git a/src/lda/Makefile.am b/src/lda/Makefile.am deleted file mode 100644 index eb1807972b..0000000000 --- a/src/lda/Makefile.am +++ /dev/null @@ -1,38 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = dovecot-lda - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-lda \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/raw \ - $(BINARY_CFLAGS) - -dovecot_lda_LDFLAGS = -export-dynamic - -dovecot_lda_LDADD = \ - $(LIBDOVECOT_LDA) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -dovecot_lda_DEPENDENCIES = \ - $(LIBDOVECOT_LDA) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -dovecot_lda_SOURCES = \ - main.c - -install-exec-local: - rm -f $(DESTDIR)$(pkglibexecdir)/deliver - $(LN_S) dovecot-lda $(DESTDIR)$(pkglibexecdir)/deliver diff --git a/src/lib-auth/Makefile.am b/src/lib-auth/Makefile.am deleted file mode 100644 index 9e237e1452..0000000000 --- a/src/lib-auth/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -noinst_LTLIBRARIES = libauth.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-test - -libauth_la_SOURCES = \ - auth-client.c \ - auth-client-request.c \ - auth-client-connection.c \ - auth-master.c - -headers = \ - auth-client.h \ - auth-client-interface.h \ - auth-client-private.h \ - auth-master.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-auth-master - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - $(noinst_LTLIBRARIES) \ - ../lib-test/libtest.la \ - ../lib/liblib.la \ - -test_deps = \ - $(noinst_LTLIBRARIES) \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_auth_master_SOURCES = test-auth-master.c -test_auth_master_LDADD = $(test_libs) -test_auth_master_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-charset/Makefile.am b/src/lib-charset/Makefile.am deleted file mode 100644 index 5c41f074c0..0000000000 --- a/src/lib-charset/Makefile.am +++ /dev/null @@ -1,37 +0,0 @@ -noinst_LTLIBRARIES = libcharset.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test - -libcharset_la_LIBADD = $(LTLIBICONV) -libcharset_la_SOURCES = \ - charset-iconv.c \ - charset-utf8.c \ - charset-utf8-only.c - -headers = \ - charset-utf8.h \ - charset-utf8-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-charset - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_charset_SOURCES = test-charset.c -test_charset_LDADD = libcharset.la $(test_libs) -test_charset_DEPENDENCIES = libcharset.la $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-compression/Makefile.am b/src/lib-compression/Makefile.am deleted file mode 100644 index f689b0c783..0000000000 --- a/src/lib-compression/Makefile.am +++ /dev/null @@ -1,61 +0,0 @@ -noinst_LTLIBRARIES = libcompression.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - $(ZSTD_CFLAGS) - -libcompression_la_SOURCES = \ - compression.c \ - istream-decompress.c \ - istream-lzma.c \ - istream-lz4.c \ - istream-zlib.c \ - istream-bzlib.c \ - istream-zstd.c \ - ostream-lz4.c \ - ostream-zlib.c \ - ostream-bzlib.c \ - ostream-zstd.c -libcompression_la_LIBADD = \ - $(COMPRESS_LIBS) - -pkginc_libdir = $(pkgincludedir) -pkginc_lib_HEADERS = \ - compression.h \ - iostream-lz4.h \ - istream-zlib.h \ - ostream-zlib.h - -noinst_HEADERS = \ - iostream-zstd-private.h - -pkglib_LTLIBRARIES = libdovecot-compression.la -libdovecot_compression_la_SOURCES = -libdovecot_compression_la_LIBADD = libcompression.la ../lib-dovecot/libdovecot.la $(COMPRESS_LIBS) -libdovecot_compression_la_DEPENDENCIES = libcompression.la ../lib-dovecot/libdovecot.la -libdovecot_compression_la_LDFLAGS = -export-dynamic - -test_programs = \ - test-compression - -noinst_PROGRAMS = $(test_programs) bench-compression - -test_libs = \ - $(noinst_LTLIBRARIES) \ - ../lib-test/libtest.la \ - ../lib/liblib.la -test_deps = $(test_libs) - -test_compression_SOURCES = test-compression.c -test_compression_LDADD = $(test_libs) -test_compression_DEPENDENCIES = $(test_deps) - -bench_compression_SOURCES = bench-compression.c -bench_compression_LDADD = $(test_libs) -bench_compression_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-dict-backend/Makefile.am b/src/lib-dict-backend/Makefile.am deleted file mode 100644 index c57797466e..0000000000 --- a/src/lib-dict-backend/Makefile.am +++ /dev/null @@ -1,103 +0,0 @@ -noinst_LTLIBRARIES = libdict_backend.la - -dict_drivers = @dict_drivers@ - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-ldap \ - -I$(top_srcdir)/src/lib-sql \ - -I$(top_srcdir)/src/lib-settings \ - $(SQL_CFLAGS) - -NOPLUGIN_LDFLAGS = - -ldap_sources = \ - dict-ldap.c \ - dict-ldap-settings.c - -libdict_backend_la_SOURCES = \ - dict-cdb.c \ - dict-sql.c \ - dict-sql-settings.c \ - $(ldap_sources) -libdict_backend_la_LIBADD = - -nodist_libdict_backend_la_SOURCES = \ - dict-drivers-register.c - -noinst_HEADERS = \ - dict-ldap-settings.h \ - dict-sql.h \ - dict-sql-private.h \ - dict-sql-settings.h - -if HAVE_LDAP -libdict_backend_la_LIBADD += $(LIBDOVECOT_LDAP) -dict_drivers += ldap -endif - -EXTRA_DIST = dict.conf - -dict-drivers-register.c: Makefile $(top_builddir)/config.h - rm -f $@ - echo '/* this file automatically generated by Makefile */' >$@ - echo '#include "lib.h"' >>$@ - echo '#include "dict.h"' >>$@ - echo '#include "ldap-client.h"' >>$@ - echo '#include "dict-sql.h"' >>$@ - for i in $(dict_drivers) null; do \ - if [ "$${i}" != "null" ]; then \ - echo "extern struct dict dict_driver_$${i};" >>$@ ; \ - fi; \ - done - echo 'void dict_drivers_register_all(void) {' >>$@ - echo 'dict_drivers_register_builtin();' >>$@ - echo 'dict_sql_register();' >>$@ - for i in $(dict_drivers) null; do \ - if [ "$${i}" != "null" ]; then \ - echo "dict_driver_register(&dict_driver_$${i});" >>$@ ; \ - fi; \ - done - echo '}' >>$@ - echo 'void dict_drivers_unregister_all(void) {' >>$@ - echo '#ifdef BUILTIN_LDAP' >>$@ - echo 'ldap_clients_cleanup();' >>$@ - echo '#endif' >>$@ - echo 'dict_drivers_unregister_builtin();' >>$@ - echo 'dict_sql_unregister();' >>$@ - for i in $(dict_drivers) null; do \ - if [ "$${i}" != "null" ]; then \ - echo "dict_driver_unregister(&dict_driver_$${i});" >>$@ ; \ - fi; \ - done - echo '}' >>$@ - -distclean-generic: - rm -f Makefile dict-drivers-register.c - -test_programs = \ - test-dict-sql - -noinst_PROGRAMS = $(test_programs) - -test_dict_sql_CFLAGS = $(AM_CPPFLAGS) -DDICT_SRC_DIR=\"$(top_srcdir)/src/lib-dict-backend\" -test_dict_sql_SOURCES = \ - test-dict-sql.c -test_dict_sql_LDADD = \ - $(noinst_LTLIBRARIES) \ - $(DICT_LIBS) \ - ../lib-sql/libdriver_test.la \ - ../lib-sql/libsql.la \ - ../lib-dovecot/libdovecot.la -test_dict_sql_DEPENDENCIES = \ - $(noinst_LTLIBRARIES) \ - ../lib-sql/libdriver_test.la \ - ../lib-sql/libsql.la \ - ../lib-dovecot/libdovecot.la - -check-local: - for bin in $(test_programs) $(check_PROGRAMS); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-dict-extra/Makefile.am b/src/lib-dict-extra/Makefile.am deleted file mode 100644 index c04bbf9c11..0000000000 --- a/src/lib-dict-extra/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -noinst_LTLIBRARIES = libdict_extra.la - -dict_drivers = @dict_drivers@ - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-settings - -libdict_extra_la_SOURCES = \ - dict-fs.c \ - dict-register.c - -NOPLUGIN_LDFLAGS = - -test_programs = \ - test-dict-fs - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib-dict/libdict.la \ - ../lib/liblib.la - -test_dict_fs_SOURCES = test-dict-fs.c -test_dict_fs_LDADD = $(noinst_LTLIBRARIES) ../lib-fs/libfs.la $(test_libs) -test_dict_fs_DEPENDENCIES = $(noinst_LTLIBRARIES) ../lib-fs/libfs.la $(test_libs) - -check-local: - for bin in $(test_programs) $(check_PROGRAMS); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-dict/Makefile.am b/src/lib-dict/Makefile.am deleted file mode 100644 index 97e5eb6135..0000000000 --- a/src/lib-dict/Makefile.am +++ /dev/null @@ -1,73 +0,0 @@ -noinst_LTLIBRARIES = \ - libdict.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings - -base_sources = \ - dict.c \ - dict-client.c \ - dict-file.c \ - dict-memcached.c \ - dict-memcached-ascii.c \ - dict-redis.c \ - dict-fail.c \ - dict-transaction-memory.c - -libdict_la_SOURCES = \ - $(base_sources) - -headers = \ - dict.h \ - dict-client.h \ - dict-private.h \ - dict-transaction-memory.h - -# Internally, the dict methods yield via lua_yieldk() as implemented in Lua -# 5.3 and newer. -if DLUA_WITH_YIELDS -noinst_LTLIBRARIES += libdict_lua.la - -libdict_lua_la_SOURCES = \ - dict-lua.c \ - dict-iter-lua.c \ - dict-txn-lua.c -libdict_lua_la_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - $(LUA_CFLAGS) \ - -I$(top_srcdir)/src/lib-lua -libdict_lua_la_LIBADD = -libdict_lua_la_DEPENDENCIES = \ - libdict.la - -headers += \ - dict-lua.h \ - dict-lua-private.h -endif - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-dict - -noinst_PROGRAMS = $(test_programs) test-dict-client - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_dict_SOURCES = test-dict.c -test_dict_LDADD = libdict.la $(test_libs) -test_dict_DEPENDENCIES = $(noinst_LTLIBRARIES) $(test_libs) - -test_dict_client_SOURCES = test-dict-client.c -test_dict_client_LDADD = $(noinst_LTLIBRARIES) ../lib/liblib.la -test_dict_client_DEPENDENCIES = $(noinst_LTLIBRARIES) $(test_libs) - -check-local: - for bin in $(test_programs) $(check_PROGRAMS); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-dns/Makefile.am b/src/lib-dns/Makefile.am deleted file mode 100644 index 509f7b0988..0000000000 --- a/src/lib-dns/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -noinst_LTLIBRARIES = libdns.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib - -libdns_la_SOURCES = \ - dns-lookup.c \ - dns-util.c - -headers = \ - dns-lookup.h \ - dns-util.h - -test_programs = \ - test-dns-util - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - libdns.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_dns_util_SOURCE = test-dns-util.c -test_dns_util_LDADD = $(test_libs) -test_dns_util_CFLAGS = $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib-test - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-dovecot/Makefile.am b/src/lib-dovecot/Makefile.am deleted file mode 100644 index 3fe935ec0d..0000000000 --- a/src/lib-dovecot/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -pkglib_LTLIBRARIES = libdovecot.la - -libdovecot_la_SOURCES = - -libdovecot_la_LIBADD = \ - $(LIBDOVECOT_LA_LIBS) \ - $(RELRO_LDFLAGS) - -libdovecot_la_DEPENDENCIES = $(LIBDOVECOT_LA_LIBS) -libdovecot_la_LDFLAGS = -export-dynamic diff --git a/src/lib-fs/Makefile.am b/src/lib-fs/Makefile.am deleted file mode 100644 index d0fc17f91b..0000000000 --- a/src/lib-fs/Makefile.am +++ /dev/null @@ -1,68 +0,0 @@ -noinst_LTLIBRARIES = libfs.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -libfs_la_SOURCES = \ - fs-api.c \ - fs-dict.c \ - fs-metawrap.c \ - fs-randomfail.c \ - fs-posix.c \ - fs-test.c \ - fs-test-async.c \ - fs-sis.c \ - fs-sis-common.c \ - fs-sis-queue.c \ - fs-wrapper.c \ - istream-fs-file.c \ - istream-fs-stats.c \ - istream-metawrap.c \ - ostream-metawrap.c \ - ostream-cmp.c - -headers = \ - fs-api.h \ - fs-api-private.h \ - fs-sis-common.h \ - fs-wrapper.h \ - fs-test.h \ - istream-fs-file.h \ - istream-fs-stats.h \ - istream-metawrap.h \ - ostream-metawrap.h \ - ostream-cmp.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -noinst_PROGRAMS = $(test_programs) - -test_programs = \ - test-fs-metawrap \ - test-fs-posix - -test_deps = \ - $(noinst_LTLIBRARIES) \ - ../lib-dict/libdict.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_libs = \ - $(test_deps) \ - -test_fs_metawrap_SOURCES = test-fs-metawrap.c -test_fs_metawrap_LDADD = $(test_libs) -test_fs_metawrap_DEPENDENCIES = $(test_deps) - -test_fs_posix_SOURCES = test-fs-posix.c -test_fs_posix_LDADD = $(test_libs) -test_fs_posix_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-fts/Makefile.am b/src/lib-fts/Makefile.am deleted file mode 100644 index 1b100701d5..0000000000 --- a/src/lib-fts/Makefile.am +++ /dev/null @@ -1,156 +0,0 @@ -noinst_LTLIBRARIES = libfts.la - -# I$(top_srcdir)/src/lib-fts needed to include -# word-break-data.c and word-boundary-data.c -# in fts-tokenizer-generic.c -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-fts \ - $(LIBEXTTEXTCAT_CFLAGS) \ - $(LIBICU_CFLAGS) \ - -DUDHRDIR=\""$(top_srcdir)/src/lib-fts"\" \ - -DDATADIR=\"$(pkgdatadir)\" \ - -DTEST_STOPWORDS_DIR=\""$(top_srcdir)/src/lib-fts/stopwords"\" - -stopwordsdir = $(datadir)/${PACKAGE_TARNAME}/stopwords -dist_stopwords_DATA = \ - stopwords/stopwords_da.txt \ - stopwords/stopwords_de.txt \ - stopwords/stopwords_en.txt \ - stopwords/stopwords_es.txt \ - stopwords/stopwords_fi.txt \ - stopwords/stopwords_fr.txt \ - stopwords/stopwords_it.txt \ - stopwords/stopwords_nl.txt \ - stopwords/stopwords_no.txt \ - stopwords/stopwords_pt.txt \ - stopwords/stopwords_ro.txt \ - stopwords/stopwords_ru.txt \ - stopwords/stopwords_sv.txt \ - stopwords/stopwords_tr.txt - -BUILT_SOURCES = $(srcdir)/word-boundary-data.c \ - $(srcdir)/word-break-data.c - -EXTRA_DIST = \ - udhr_fra.txt \ - PropList.txt \ - word-properties.pl \ - WordBreakProperty.txt \ - word-boundary-data.c \ - word-break-data.c \ - stopwords/stopwords_malformed.txt - -$(srcdir)/WordBreakProperty.txt: - test -f $@ || wget -O $@ https://dovecot.org/res/WordBreakProperty.txt -$(srcdir)/word-boundary-data.c: $(srcdir)/word-properties.pl $(srcdir)/WordBreakProperty.txt - perl $(srcdir)/word-properties.pl boundaries $(srcdir)/WordBreakProperty.txt > $@ - -$(srcdir)/PropList.txt: - test -f $@ || wget -O $@ https://dovecot.org/res/PropList.txt -$(srcdir)/word-break-data.c: $(srcdir)/word-properties.pl $(srcdir)/PropList.txt - perl $(srcdir)/word-properties.pl breaks $(srcdir)/PropList.txt > $@ - - -if BUILD_FTS_STEMMER -STEMMER_LIBS = -lstemmer -endif - -if BUILD_FTS_EXTTEXTCAT -TEXTCAT_LIBS = $(LIBEXTTEXTCAT_LIBS) -else -if BUILD_FTS_TEXTCAT -TEXTCAT_LIBS = -ltextcat -endif -endif - -if BUILD_LIBICU -ICU_SOURCES = fts-icu.c -NORMALIZER_LIBS = $(LIBICU_LIBS) -ICU_TESTS = test-fts-icu -endif - -libfts_la_LIBADD = \ - $(STEMMER_LIBS) \ - $(TEXTCAT_LIBS) \ - $(NORMALIZER_LIBS) - -libfts_la_SOURCES = \ - fts-filter.c \ - fts-filter-contractions.c \ - fts-filter-common.c \ - fts-filter-english-possessive.c \ - fts-filter-lowercase.c \ - fts-filter-normalizer-icu.c \ - fts-filter-stopwords.c \ - fts-filter-stemmer-snowball.c \ - fts-language.c \ - fts-library.c \ - fts-tokenizer.c \ - fts-tokenizer-address.c \ - fts-tokenizer-common.c \ - fts-tokenizer-generic.c \ - $(ICU_SOURCES) - -headers = \ - fts-common.h \ - fts-filter.h \ - fts-filter-common.h \ - fts-filter-private.h \ - fts-icu.h \ - fts-language.h \ - fts-library.h \ - fts-tokenizer.h \ - fts-tokenizer-common.h \ - fts-tokenizer-private.h \ - fts-tokenizer-generic-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -deps=../lib-dovecot/libdovecot.la - -pkglib_LTLIBRARIES = libdovecot-fts.la -libdovecot_fts_la_SOURCES = -libdovecot_fts_la_LIBADD = libfts.la $(deps) -libdovecot_fts_la_DEPENDENCIES = libfts.la $(deps) -libdovecot_fts_la_LDFLAGS = -export-dynamic - -test_programs = \ - $(ICU_TESTS) \ - $(TEST_FTS_LANGUAGE) \ - test-fts-filter \ - test-fts-tokenizer - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_fts_icu_SOURCES = test-fts-icu.c -test_fts_icu_LDADD = fts-icu.lo $(LIBICU_LIBS) $(test_libs) -test_fts_icu_DEPENDENCIES = fts-icu.lo $(test_deps) - -test_fts_filter_SOURCES = test-fts-filter.c -test_fts_filter_LDADD = libfts.la $(test_libs) -test_fts_filter_DEPENDENCIES = libfts.la $(test_deps) - -if BUILD_FTS_EXTTEXTCAT -TEST_FTS_LANGUAGE = test-fts-language -test_fts_language_SOURCES = test-fts-language.c -test_fts_language_LDADD = fts-language.lo $(test_libs) $(TEXTCAT_LIBS) -test_fts_language_DEPENDENCIES = $(test_deps) -endif - -test_fts_tokenizer_SOURCES = test-fts-tokenizer.c -test_fts_tokenizer_LDADD = fts-tokenizer.lo fts-tokenizer-generic.lo fts-tokenizer-address.lo fts-tokenizer-common.lo ../lib-mail/libmail.la $(test_libs) -test_fts_tokenizer_DEPENDENCIES = ../lib-mail/libmail.la $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-http/Makefile.am b/src/lib-http/Makefile.am deleted file mode 100644 index 9951f651e4..0000000000 --- a/src/lib-http/Makefile.am +++ /dev/null @@ -1,210 +0,0 @@ -noinst_LTLIBRARIES = libhttp.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-master \ - -DPKG_RUNDIR=\""$(rundir)"\" - -libhttp_la_SOURCES = \ - http-date.c \ - http-url.c \ - http-parser.c \ - http-header.c \ - http-header-parser.c \ - http-transfer-chunked.c \ - http-auth.c \ - http-message-parser.c \ - http-request.c \ - http-request-parser.c \ - http-response.c \ - http-response-parser.c \ - http-client-request.c \ - http-client-connection.c \ - http-client-peer.c \ - http-client-queue.c \ - http-client-host.c \ - http-client.c \ - http-server-ostream.c \ - http-server-response.c \ - http-server-request.c \ - http-server-connection.c \ - http-server-resource.c \ - http-server.c - -headers = \ - http-common.h \ - http-date.h \ - http-url.h \ - http-parser.h \ - http-header.h \ - http-header-parser.h \ - http-transfer.h \ - http-auth.h \ - http-message-parser.h \ - http-request.h \ - http-request-parser.h \ - http-response.h \ - http-response-parser.h \ - http-client-private.h \ - http-client.h \ - http-server-private.h \ - http-server.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-http-date \ - test-http-url \ - test-http-header-parser \ - test-http-transfer \ - test-http-auth \ - test-http-response-parser \ - test-http-request-parser \ - test-http-payload \ - test-http-client-errors \ - test-http-client-request \ - test-http-server-errors - -test_nocheck_programs = \ - test-http-client \ - test-http-server - -noinst_PROGRAMS = $(test_programs) $(test_nocheck_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la \ - -test_deps = \ - $(noinst_LTLIBRARIES) \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_http_url_SOURCES = test-http-url.c -test_http_url_LDADD = http-url.lo http-header.lo $(test_libs) -test_http_url_DEPENDENCIES = $(test_deps) - -test_http_date_SOURCES = test-http-date.c -test_http_date_LDADD = http-date.lo $(test_libs) -test_http_date_DEPENDENCIES = $(test_deps) - -test_http_header_parser_SOURCES = test-http-header-parser.c -test_http_header_parser_LDADD = http-parser.lo http-header-parser.lo http-header.lo $(test_libs) -test_http_header_parser_DEPENDENCIES = $(test_deps) - -test_http_transfer_SOURCES = test-http-transfer.c -test_http_transfer_LDADD = \ - http-parser.lo \ - http-header-parser.lo \ - http-transfer-chunked.lo \ - http-header.lo \ - $(test_libs) -test_http_transfer_DEPENDENCIES = $(test_deps) - -test_http_auth_SOURCES = test-http-auth.c -test_http_auth_LDADD = \ - http-auth.lo \ - http-parser.lo \ - $(test_libs) -test_http_auth_DEPENDENCIES = $(test_deps) - -test_http_response_parser_SOURCES = test-http-response-parser.c -test_http_response_parser_LDADD = \ - http-date.lo \ - http-parser.lo \ - http-header.lo \ - http-header-parser.lo \ - http-transfer-chunked.lo \ - http-message-parser.lo \ - http-response-parser.lo \ - $(test_libs) -test_http_response_parser_DEPENDENCIES = $(test_deps) - -test_http_request_parser_SOURCES = test-http-request-parser.c -test_http_request_parser_LDADD = \ - http-date.lo \ - http-parser.lo \ - http-url.lo \ - http-header.lo \ - http-header-parser.lo \ - http-transfer-chunked.lo \ - http-message-parser.lo \ - http-request-parser.lo \ - $(test_libs) -test_http_request_parser_DEPENDENCIES = $(test_deps) - -test_http_libs = \ - libhttp.la \ - ../lib-dns/libdns.la \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-master/libmaster.la \ - ../lib-auth/libauth.la \ - ../lib-settings/libsettings.la \ - $(test_libs) -test_http_deps = \ - libhttp.la \ - ../lib-dns/libdns.la \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-master/libmaster.la \ - ../lib-auth/libauth.la \ - ../lib-settings/libsettings.la \ - $(test_deps) - -test_http_libs_ssl= -if BUILD_OPENSSL -test_http_libs_ssl += ../lib-ssl-iostream/libssl_iostream_openssl.la -endif - -test_http_payload_SOURCES = test-http-payload.c -test_http_payload_LDFLAGS = -export-dynamic -test_http_payload_LDADD = \ - $(test_http_libs) \ - $(test_http_libs_ssl) -test_http_payload_DEPENDENCIES = \ - $(test_http_deps) - -test_http_client_SOURCES = test-http-client.c -test_http_client_LDFLAGS = -export-dynamic -test_http_client_LDADD = \ - $(test_http_libs) \ - $(test_http_libs_ssl) - -test_http_client_DEPENDENCIES = \ - $(test_http_deps) - -test_http_client_errors_SOURCES = test-http-client-errors.c -test_http_client_errors_LDFLAGS = -export-dynamic -test_http_client_errors_LDADD = \ - $(test_http_libs) -test_http_client_errors_DEPENDENCIES = \ - $(test_http_deps) - -test_http_client_request_SOURCES = test-http-client-request.c -test_http_client_request_LDFLAGS = -export-dynamic -test_http_client_request_LDADD = \ - $(test_http_libs) -test_http_client_request_DEPENDENCIES = \ - $(test_http_deps) - -test_http_server_SOURCES = test-http-server.c -test_http_server_LDFLAGS = -export-dynamic -test_http_server_LDADD = \ - $(test_http_libs) -test_http_server_DEPENDENCIES = \ - $(test_http_deps) - -test_http_server_errors_SOURCES = test-http-server-errors.c -test_http_server_errors_LDFLAGS = -export-dynamic -test_http_server_errors_LDADD = \ - $(test_http_libs) -test_http_server_errors_DEPENDENCIES = \ - $(test_http_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-imap-client/Makefile.am b/src/lib-imap-client/Makefile.am deleted file mode 100644 index 342fbd2f24..0000000000 --- a/src/lib-imap-client/Makefile.am +++ /dev/null @@ -1,52 +0,0 @@ -noinst_LTLIBRARIES = libimap_client.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-sasl \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap - -libimap_client_la_SOURCES = \ - imapc-client.c \ - imapc-connection.c \ - imapc-msgmap.c - -headers = \ - imapc-client.h \ - imapc-client-private.h \ - imapc-connection.h \ - imapc-msgmap.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-imapc-client - -noinst_PROGRAMS = $(test_programs) - -test_deps = \ - $(noinst_LTLIBRARIES) \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-sasl/libsasl.la \ - ../lib-imap/libimap.la \ - ../lib-mail/libmail.la \ - ../lib-charset/libcharset.la \ - ../lib-dns/libdns.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_libs = \ - $(test_deps) \ - -test_imapc_client_SOURCES = test-imapc-client.c -test_imapc_client_LDADD = $(test_libs) -test_imapc_client_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-imap-storage/Makefile.am b/src/lib-imap-storage/Makefile.am deleted file mode 100644 index b08465371f..0000000000 --- a/src/lib-imap-storage/Makefile.am +++ /dev/null @@ -1,24 +0,0 @@ -noinst_LTLIBRARIES = libimap-storage.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-charset \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-imap - -libimap_storage_la_SOURCES = \ - imap-msgpart.c \ - imap-msgpart-url.c \ - imap-metadata.c - -headers = \ - imap-msgpart.h \ - imap-msgpart-url.h \ - imap-metadata.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - diff --git a/src/lib-imap-urlauth/Makefile.am b/src/lib-imap-urlauth/Makefile.am deleted file mode 100644 index 6734b7251e..0000000000 --- a/src/lib-imap-urlauth/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -noinst_LTLIBRARIES = libimap-urlauth.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-charset \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-imap-storage - -libimap_urlauth_la_SOURCES = \ - imap-urlauth.c \ - imap-urlauth-fetch.c \ - imap-urlauth-backend.c \ - imap-urlauth-connection.c - -headers = \ - imap-urlauth.h \ - imap-urlauth-private.h \ - imap-urlauth-fetch.h \ - imap-urlauth-backend.h \ - imap-urlauth-connection.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - diff --git a/src/lib-imap/Makefile.am b/src/lib-imap/Makefile.am deleted file mode 100644 index 2f59f93770..0000000000 --- a/src/lib-imap/Makefile.am +++ /dev/null @@ -1,120 +0,0 @@ -noinst_LTLIBRARIES = libimap.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-charset \ - -I$(top_srcdir)/src/lib-mail - -libimap_la_SOURCES = \ - imap-arg.c \ - imap-base-subject.c \ - imap-bodystructure.c \ - imap-date.c \ - imap-envelope.c \ - imap-id.c \ - imap-keepalive.c \ - imap-match.c \ - imap-parser.c \ - imap-quote.c \ - imap-url.c \ - imap-seqset.c \ - imap-utf7.c \ - imap-util.c - -headers = \ - imap-arg.h \ - imap-base-subject.h \ - imap-bodystructure.h \ - imap-date.h \ - imap-envelope.h \ - imap-id.h \ - imap-keepalive.h \ - imap-match.h \ - imap-parser.h \ - imap-resp-code.h \ - imap-quote.h \ - imap-url.h \ - imap-seqset.h \ - imap-utf7.h \ - imap-util.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-imap-bodystructure \ - test-imap-envelope \ - test-imap-match \ - test-imap-parser \ - test-imap-quote \ - test-imap-url \ - test-imap-utf7 \ - test-imap-util - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_imap_bodystructure_SOURCES = test-imap-bodystructure.c -test_imap_bodystructure_LDADD = imap-bodystructure.lo imap-envelope.lo imap-quote.lo imap-parser.lo imap-arg.lo ../lib-mail/libmail.la $(test_libs) -test_imap_bodystructure_DEPENDENCIES = $(test_deps) ../lib-mail/libmail.la - -test_imap_envelope_SOURCES = test-imap-envelope.c -test_imap_envelope_LDADD = imap-envelope.lo imap-quote.lo imap-parser.lo imap-arg.lo ../lib-mail/libmail.la $(test_libs) -test_imap_envelope_DEPENDENCIES = $(test_deps) ../lib-mail/libmail.la - -test_imap_match_SOURCES = test-imap-match.c -test_imap_match_LDADD = imap-match.lo $(test_libs) -test_imap_match_DEPENDENCIES = $(test_deps) - -test_imap_parser_SOURCES = test-imap-parser.c -test_imap_parser_LDADD = imap-parser.lo imap-arg.lo $(test_libs) -test_imap_parser_DEPENDENCIES = $(test_deps) - -test_imap_quote_SOURCES = test-imap-quote.c -test_imap_quote_LDADD = imap-quote.lo $(test_libs) -test_imap_quote_DEPENDENCIES = $(test_deps) - -test_imap_url_SOURCES = test-imap-url.c -test_imap_url_LDADD = imap-url.lo $(test_libs) -test_imap_url_DEPENDENCIES = $(test_deps) - -test_imap_utf7_SOURCES = test-imap-utf7.c -test_imap_utf7_LDADD = imap-utf7.lo $(test_libs) -test_imap_utf7_DEPENDENCIES = $(test_deps) - -test_imap_util_SOURCES = test-imap-util.c -test_imap_util_LDADD = imap-util.lo imap-arg.lo $(test_libs) -test_imap_util_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - -if USE_FUZZER -noinst_PROGRAMS += \ - fuzz-imap-utf7 \ - fuzz-imap-bodystructure - -nodist_EXTRA_fuzz_imap_utf7_SOURCES = force-cxx-linking.cxx -fuzz_imap_utf7_SOURCES = fuzz-imap-utf7.c -fuzz_imap_utf7_CPPFLAGS = $(FUZZER_CPPFLAGS) -fuzz_imap_utf7_LDFLAGS = $(FUZZER_LDFLAGS) -fuzz_imap_utf7_LDADD = libimap.la $(test_libs) -fuzz_imap_utf7_DEPENDENCIES = libimap.la $(test_deps) - -nodist_EXTRA_fuzz_imap_bodystructure_SOURCES = force-cxx-linking.cxx -fuzz_imap_bodystructure_SOURCES = fuzz-imap-bodystructure.c -fuzz_imap_bodystructure_CPPFLAGS = $(FUZZER_CPPFLAGS) -fuzz_imap_bodystructure_LDFLAGS = $(FUZZER_LDFLAGS) -fuzz_imap_bodystructure_LDADD = libimap.la $(test_libs) -fuzz_imap_bodystructure_DEPENDENCIES = libimap.la $(test_deps) - - -endif diff --git a/src/lib-index/Makefile.am b/src/lib-index/Makefile.am deleted file mode 100644 index f203201bf7..0000000000 --- a/src/lib-index/Makefile.am +++ /dev/null @@ -1,150 +0,0 @@ -noinst_LTLIBRARIES = libindex.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-mail - -libindex_la_SOURCES = \ - mail-cache.c \ - mail-cache-decisions.c \ - mail-cache-fields.c \ - mail-cache-lookup.c \ - mail-cache-purge.c \ - mail-cache-transaction.c \ - mail-cache-sync-update.c \ - mail-index.c \ - mail-index-alloc-cache.c \ - mail-index-dummy-view.c \ - mail-index-fsck.c \ - mail-index-lock.c \ - mail-index-map.c \ - mail-index-map-hdr.c \ - mail-index-map-read.c \ - mail-index-modseq.c \ - mail-index-transaction.c \ - mail-index-transaction-export.c \ - mail-index-transaction-finish.c \ - mail-index-transaction-sort-appends.c \ - mail-index-transaction-update.c \ - mail-index-transaction-view.c \ - mail-index-strmap.c \ - mail-index-sync.c \ - mail-index-sync-ext.c \ - mail-index-sync-keywords.c \ - mail-index-sync-update.c \ - mail-index-util.c \ - mail-index-view.c \ - mail-index-view-sync.c \ - mail-index-write.c \ - mail-transaction-log.c \ - mail-transaction-log-append.c \ - mail-transaction-log-file.c \ - mail-transaction-log-modseq.c \ - mail-transaction-log-view.c \ - mailbox-log.c - -headers = \ - mail-cache.h \ - mail-cache-private.h \ - mail-index.h \ - mail-index-alloc-cache.h \ - mail-index-modseq.h \ - mail-index-private.h \ - mail-index-strmap.h \ - mail-index-sync-private.h \ - mail-index-transaction-private.h \ - mail-index-util.h \ - mail-index-view-private.h \ - mail-transaction-log.h \ - mail-transaction-log-private.h \ - mail-transaction-log-view-private.h \ - mailbox-log.h - -test_programs = \ - test-mail-cache \ - test-mail-cache-fields \ - test-mail-cache-purge \ - test-mail-index \ - test-mail-index-map \ - test-mail-index-modseq \ - test-mail-index-sync-ext \ - test-mail-index-transaction-finish \ - test-mail-index-transaction-update \ - test-mail-index-write \ - test-mail-transaction-log-append \ - test-mail-transaction-log-file \ - test-mail-transaction-log-view - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - mail-index-util.lo \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_mail_cache_SOURCES = test-mail-cache-common.c test-mail-cache.c -test_mail_cache_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_cache_DEPENDENCIES = $(test_deps) - -test_mail_cache_fields_SOURCES = test-mail-cache-common.c test-mail-cache-fields.c -test_mail_cache_fields_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_cache_fields_DEPENDENCIES = $(test_deps) - -test_mail_cache_purge_SOURCES = test-mail-cache-common.c test-mail-cache-purge.c -test_mail_cache_purge_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_cache_purge_DEPENDENCIES = $(test_deps) - -test_mail_index_SOURCES = test-mail-index.c -test_mail_index_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_index_DEPENDENCIES = $(test_deps) - -test_mail_index_map_SOURCES = test-mail-index-map.c -test_mail_index_map_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_index_map_DEPENDENCIES = $(test_deps) - -test_mail_index_modseq_SOURCES = test-mail-index-modseq.c -test_mail_index_modseq_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_index_modseq_DEPENDENCIES = $(test_deps) - -test_mail_index_sync_ext_SOURCES = test-mail-index-sync-ext.c -test_mail_index_sync_ext_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_index_sync_ext_DEPENDENCIES = $(test_deps) - -test_mail_index_transaction_finish_SOURCES = test-mail-index-transaction-finish.c -test_mail_index_transaction_finish_LDADD = mail-index-transaction-finish.lo $(test_libs) -test_mail_index_transaction_finish_DEPENDENCIES = $(test_deps) - -test_mail_index_transaction_update_SOURCES = test-mail-index-transaction-update.c -test_mail_index_transaction_update_LDADD = mail-index-transaction-update.lo $(test_libs) -test_mail_index_transaction_update_DEPENDENCIES = $(test_deps) - -test_mail_index_write_SOURCES = test-mail-index-write.c -test_mail_index_write_LDADD = mail-index-write.lo $(test_libs) -test_mail_index_write_DEPENDENCIES = $(test_deps) - -test_mail_transaction_log_append_SOURCES = test-mail-transaction-log-append.c -test_mail_transaction_log_append_LDADD = mail-transaction-log-append.lo $(test_libs) -test_mail_transaction_log_append_DEPENDENCIES = $(test_deps) - -test_mail_transaction_log_file_SOURCES = test-mail-transaction-log-file.c -test_mail_transaction_log_file_LDADD = $(noinst_LTLIBRARIES) $(test_libs) -test_mail_transaction_log_file_DEPENDENCIES = $(test_deps) - -test_mail_transaction_log_view_SOURCES = test-mail-transaction-log-view.c -test_mail_transaction_log_view_LDADD = mail-transaction-log-view.lo $(test_libs) -test_mail_transaction_log_view_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -noinst_HEADERS = \ - test-mail-cache.h \ - test-mail-index.h diff --git a/src/lib-lda/Makefile.am b/src/lib-lda/Makefile.am deleted file mode 100644 index 3ea04f3193..0000000000 --- a/src/lib-lda/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -noinst_LTLIBRARIES = liblda.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-ssl-iostream - -liblda_la_SOURCES = \ - lda-settings.c \ - mail-deliver.c \ - mail-send.c - -headers = \ - lda-settings.h \ - mail-deliver.h \ - mail-send.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -deps=../lib-storage/libdovecot-storage.la ../lib-dovecot/libdovecot.la - -pkglib_LTLIBRARIES = libdovecot-lda.la -libdovecot_lda_la_SOURCES = -libdovecot_lda_la_LIBADD = liblda.la $(deps) -libdovecot_lda_la_DEPENDENCIES = liblda.la $(deps) -libdovecot_lda_la_LDFLAGS = -export-dynamic - - diff --git a/src/lib-ldap/Makefile.am b/src/lib-ldap/Makefile.am deleted file mode 100644 index 14f53a6ba4..0000000000 --- a/src/lib-ldap/Makefile.am +++ /dev/null @@ -1,42 +0,0 @@ -pkglib_LTLIBRARIES = libdovecot-ldap.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - $(LDAP_CFLAGS) - -libdovecot_ldap_la_SOURCES = \ - ldap-client.c \ - ldap-connection.c \ - ldap-connection-pool.c \ - ldap-iterator.c \ - ldap-search.c \ - ldap-compare.c \ - ldap-entry.c - -libdovecot_ldap_la_DEPENDENCIES = ../lib-dovecot/libdovecot.la -libdovecot_ldap_la_LDFLAGS = -export-dynamic -libdovecot_ldap_la_LIBADD = ../lib-dovecot/libdovecot.la $(LDAP_LIBS) - -headers = \ - ldap-client.h - -noinst_HEADERS = \ - ldap-connection-pool.h \ - ldap-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib/liblib.la - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-lua/Makefile.am b/src/lib-lua/Makefile.am deleted file mode 100644 index 34164892fa..0000000000 --- a/src/lib-lua/Makefile.am +++ /dev/null @@ -1,68 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-http \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-master \ - $(LUA_CFLAGS) - -pkglib_LTLIBRARIES = libdovecot-lua.la -libdovecot_lua_la_SOURCES = \ - dlua-script.c \ - dlua-pushstring.c \ - dlua-error.c \ - dlua-dovecot.c \ - dlua-dovecot-http.c \ - dlua-compat.c \ - dlua-resume.c \ - dlua-table.c \ - dlua-thread.c - -test_programs = test-lua - -LIBDICT_LUA= -if DLUA_WITH_YIELDS -LIBDICT_LUA += ../lib-dict/libdict_lua.la -test_programs += test-dict-lua -endif - -# Note: the only things this lib should depend on are libdovecot and lua. -libdovecot_lua_la_DEPENDENCIES = \ - ../lib-dovecot/libdovecot.la \ - $(LIBDICT_LUA) -libdovecot_lua_la_LIBADD = \ - ../lib-dovecot/libdovecot.la \ - $(LIBDICT_LUA) \ - $(LUA_LIBS) -libdovecot_lua_la_LDFLAGS = -export-dynamic - -headers = \ - dlua-compat.h \ - dlua-script.h \ - dlua-script-private.h \ - dlua-wrapper.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -noinst_PROGRAMS = $(test_programs) - -test_libs =\ - libdovecot-lua.la \ - ../lib-dovecot/libdovecot.la - -test_lua_SOURCES = test-lua.c -test_lua_CFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) -test_lua_LDFLAGS = $(BINARY_LDFLAGS) -test_lua_LDADD = $(test_libs) $(LUA_LIBS) -test_lua_DEPENDENCIES = $(test_libs) - -test_dict_lua_SOURCES = test-dict-lua.c -test_dict_lua_LDADD = $(test_libs) $(LUA_LIBS) -test_dict_lua_DEPENDENCIES = $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-mail/Makefile.am b/src/lib-mail/Makefile.am deleted file mode 100644 index 67bb1cc15a..0000000000 --- a/src/lib-mail/Makefile.am +++ /dev/null @@ -1,262 +0,0 @@ -noinst_LTLIBRARIES = libmail.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-charset \ - -I$(top_srcdir)/src/lib-smtp - -libmail_la_SOURCES = \ - istream-attachment-connector.c \ - istream-attachment-extractor.c \ - istream-binary-converter.c \ - istream-dot.c \ - istream-header-filter.c \ - istream-nonuls.c \ - istream-qp-decoder.c \ - istream-qp-encoder.c \ - mail-html2text.c \ - mail-user-hash.c \ - mbox-from.c \ - message-address.c \ - message-binary-part.c \ - message-date.c \ - message-decoder.c \ - message-header-decode.c \ - message-header-encode.c \ - message-header-hash.c \ - message-header-parser.c \ - message-id.c \ - message-parser.c \ - message-parser-from-parts.c \ - message-part.c \ - message-part-data.c \ - message-part-serialize.c \ - message-search.c \ - message-size.c \ - message-snippet.c \ - ostream-dot.c \ - qp-decoder.c \ - qp-encoder.c \ - quoted-printable.c \ - rfc2231-parser.c \ - rfc822-parser.c - -noinst_HEADERS = \ - html-entities.h \ - message-parser-private.h - -headers = \ - istream-attachment-connector.h \ - istream-attachment-extractor.h \ - istream-binary-converter.h \ - istream-dot.h \ - istream-header-filter.h \ - istream-nonuls.h \ - istream-qp.h \ - mail-user-hash.h \ - mbox-from.h \ - mail-html2text.h \ - mail-types.h \ - message-address.h \ - message-binary-part.h \ - message-date.h \ - message-decoder.h \ - message-header-decode.h \ - message-header-encode.h \ - message-header-hash.h \ - message-header-parser.h \ - message-id.h \ - message-parser.h \ - message-part.h \ - message-part-data.h \ - message-part-serialize.h \ - message-search.h \ - message-size.h \ - message-snippet.h \ - ostream-dot.h \ - qp-decoder.h \ - qp-encoder.h \ - quoted-printable.h \ - rfc2231-parser.h \ - rfc822-parser.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-istream-dot \ - test-istream-attachment \ - test-istream-binary-converter \ - test-istream-header-filter \ - test-istream-qp-decoder \ - test-istream-qp-encoder \ - test-mail-html2text \ - test-mail-user-hash \ - test-mbox-from \ - test-message-address \ - test-message-date \ - test-message-decoder \ - test-message-header-decode \ - test-message-header-encode \ - test-message-header-hash \ - test-message-header-parser \ - test-message-id \ - test-message-parser \ - test-message-part \ - test-message-part-serialize \ - test-message-search \ - test-message-size \ - test-message-snippet \ - test-ostream-dot \ - test-qp-decoder \ - test-qp-encoder \ - test-quoted-printable \ - test-rfc2231-parser \ - test-rfc822-parser - -fuzz_programs = - -if USE_FUZZER -fuzz_programs += fuzz-message-parser - -nodist_EXTRA_fuzz_message_parser_SOURCES = force-cxx-linking.cxx - -fuzz_message_parser_CPPFLAGS = $(FUZZER_CPPFLAGS) -fuzz_message_parser_LDFLAGS = $(FUZZER_LDFLAGS) -fuzz_message_parser_SOURCES = fuzz-message-parser.c -fuzz_message_parser_LDADD = $(test_libs) -fuzz_message_parser_DEPENDENCIES = $(test_deps) - -endif - -noinst_PROGRAMS = $(fuzz_programs) $(test_programs) - -test_libs = \ - $(noinst_LTLIBRARIES) \ - ../lib-charset/libcharset.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_istream_dot_SOURCES = test-istream-dot.c -test_istream_dot_LDADD = $(test_libs) -test_istream_dot_DEPENDENCIES = $(test_deps) - -test_istream_qp_decoder_SOURCES = test-istream-qp-decoder.c -test_istream_qp_decoder_LDADD = $(test_libs) -test_istream_qp_decoder_DEPENDENCIES = $(test_deps) - -test_istream_qp_encoder_SOURCES = test-istream-qp-encoder.c -test_istream_qp_encoder_LDADD = $(test_libs) -test_istream_qp_encoder_DEPENDENCIES = $(test_deps) - -test_istream_binary_converter_SOURCES = test-istream-binary-converter.c -test_istream_binary_converter_LDADD = $(test_libs) -test_istream_binary_converter_DEPENDENCIES = $(test_deps) - -test_istream_attachment_SOURCES = test-istream-attachment.c -test_istream_attachment_LDADD = $(test_libs) -test_istream_attachment_DEPENDENCIES = $(test_deps) - -test_istream_header_filter_SOURCES = test-istream-header-filter.c -test_istream_header_filter_LDADD = $(test_libs) -test_istream_header_filter_DEPENDENCIES = $(test_deps) - -test_mbox_from_SOURCES = test-mbox-from.c -test_mbox_from_LDADD = $(test_libs) -test_mbox_from_DEPENDENCIES = $(test_deps) - -test_message_address_SOURCES = test-message-address.c -test_message_address_LDADD = $(test_libs) -test_message_address_DEPENDENCIES = $(test_deps) - -test_message_date_SOURCES = test-message-date.c -test_message_date_LDADD = $(test_libs) -test_message_date_DEPENDENCIES = $(test_deps) - -test_message_decoder_SOURCES = test-message-decoder.c -test_message_decoder_LDADD = $(test_libs) ../lib-charset/libcharset.la -test_message_decoder_DEPENDENCIES = $(test_deps) ../lib-charset/libcharset.la - -test_message_header_decode_SOURCES = test-message-header-decode.c -test_message_header_decode_LDADD = $(test_libs) -test_message_header_decode_DEPENDENCIES = $(test_deps) - -test_message_header_encode_SOURCES = test-message-header-encode.c -test_message_header_encode_LDADD = $(test_libs) -test_message_header_encode_DEPENDENCIES = $(test_deps) - -test_message_header_hash_SOURCES = test-message-header-hash.c -test_message_header_hash_LDADD = $(test_libs) -test_message_header_hash_DEPENDENCIES = $(test_deps) - -test_message_header_parser_SOURCES = test-message-header-parser.c -test_message_header_parser_LDADD = $(test_libs) -test_message_header_parser_DEPENDENCIES = $(test_deps) - -test_message_id_SOURCES = test-message-id.c -test_message_id_LDADD = $(test_libs) -test_message_id_DEPENDENCIES = $(test_deps) - -test_message_parser_SOURCES = test-message-parser.c -test_message_parser_LDADD = $(test_libs) -test_message_parser_DEPENDENCIES = $(test_deps) - -test_message_part_SOURCES = test-message-part.c -test_message_part_LDADD = $(test_libs) -test_message_part_DEPENDENCIES = $(test_deps) - -test_message_search_SOURCES = test-message-search.c -test_message_search_LDADD = $(test_libs) ../lib-charset/libcharset.la -test_message_search_DEPENDENCIES = $(test_deps) ../lib-charset/libcharset.la - -test_message_size_SOURCES = test-message-size.c -test_message_size_LDADD = $(test_libs) -test_message_size_DEPENDENCIES = $(test_deps) - -test_message_snippet_SOURCES = test-message-snippet.c -test_message_snippet_LDADD = $(test_message_decoder_LDADD) -test_message_snippet_DEPENDENCIES = $(test_deps) - -test_mail_html2text_SOURCES = test-mail-html2text.c -test_mail_html2text_LDADD = $(test_libs) -test_mail_html2text_DEPENDENCIES = $(test_deps) - -test_ostream_dot_SOURCES = test-ostream-dot.c -test_ostream_dot_LDADD = $(test_libs) -test_ostream_dot_DEPENDENCIES = $(test_deps) - -test_qp_decoder_SOURCES = test-qp-decoder.c -test_qp_decoder_LDADD = $(test_libs) -test_qp_decoder_DEPENDENCIES = $(test_deps) - -test_qp_encoder_SOURCES = test-qp-encoder.c -test_qp_encoder_LDADD = $(test_libs) -test_qp_encoder_DEPENDENCIES = $(test_deps) - -test_quoted_printable_SOURCES = test-quoted-printable.c -test_quoted_printable_LDADD = $(test_libs) -test_quoted_printable_DEPENDENCIES = $(test_deps) - -test_rfc2231_parser_SOURCES = test-rfc2231-parser.c -test_rfc2231_parser_LDADD = $(test_libs) -test_rfc2231_parser_DEPENDENCIES = $(test_deps) - -test_rfc822_parser_SOURCES = test-rfc822-parser.c -test_rfc822_parser_LDADD = $(test_libs) -test_rfc822_parser_DEPENDENCIES = $(test_deps) - -test_mail_user_hash_SOURCES = test-mail-user-hash.c -test_mail_user_hash_LDADD = $(test_libs) -test_mail_user_hash_DEPENDENCIES = $(test_deps) - -test_message_part_serialize_SOURCES = test-message-part-serialize.c -test_message_part_serialize_LDADD = $(test_libs) -test_message_part_serialize_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-master/Makefile.am b/src/lib-master/Makefile.am deleted file mode 100644 index 8133c05361..0000000000 --- a/src/lib-master/Makefile.am +++ /dev/null @@ -1,83 +0,0 @@ -pkgsysconfdir = $(sysconfdir)/dovecot - -noinst_LTLIBRARIES = libmaster.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - -DPKG_STATEDIR=\""$(statedir)"\" \ - -DSYSCONFDIR=\""$(pkgsysconfdir)"\" \ - -DBINDIR=\""$(bindir)"\" - -libmaster_la_SOURCES = \ - anvil-client.c \ - ipc-client.c \ - ipc-server.c \ - master-auth.c \ - master-instance.c \ - master-login.c \ - master-login-auth.c \ - master-service.c \ - master-service-haproxy.c \ - master-service-settings.c \ - master-service-settings-cache.c \ - master-service-ssl.c \ - master-service-ssl-settings.c \ - stats-client.c \ - syslog-util.c - -headers = \ - anvil-client.h \ - ipc-client.h \ - ipc-server.h \ - master-auth.h \ - master-instance.h \ - master-interface.h \ - master-login.h \ - master-login-auth.h \ - master-service.h \ - master-service-private.h \ - master-service-settings.h \ - master-service-settings-cache.h \ - master-service-ssl.h \ - master-service-ssl-settings.h \ - service-settings.h \ - stats-client.h \ - syslog-util.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-master-service-settings-cache \ - test-event-stats - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../lib-test/libtest.la \ - ../lib-dns/libdns.la \ - ../lib/liblib.la - -test_event_stats_libs = \ - libmaster.la - -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_master_service_settings_cache_SOURCES = test-master-service-settings-cache.c -test_master_service_settings_cache_LDADD = master-service-settings-cache.lo ../lib-settings/libsettings.la $(test_libs) -test_master_service_settings_cache_DEPENDENCIES = $(test_deps) ../lib-settings/libsettings.la - -test_event_stats_SOURCES = test-event-stats.c -test_event_stats_LDADD = $(test_event_stats_libs) $(test_libs) -test_event_stats_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-old-stats/Makefile.am b/src/lib-old-stats/Makefile.am deleted file mode 100644 index f97cf62261..0000000000 --- a/src/lib-old-stats/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -noinst_LTLIBRARIES = libold_stats.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-master - -libold_stats_la_SOURCES = \ - stats.c \ - stats-connection.c \ - stats-parser.c - -headers = \ - stats.h \ - stats-connection.h \ - stats-parser.h - -pkginc_libdir = $(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-otp/Makefile.am b/src/lib-otp/Makefile.am deleted file mode 100644 index 5b34fba7cb..0000000000 --- a/src/lib-otp/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -noinst_LTLIBRARIES = libotp.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib - -libotp_la_SOURCES = \ - otp-dictionary.c \ - otp-hash.c \ - otp-parity.c \ - otp-parse.c - -noinst_HEADERS = \ - otp.h \ - otp-dictionary.h \ - otp-hash.h \ - otp-parity.h \ - otp-parse.h diff --git a/src/lib-program-client/Makefile.am b/src/lib-program-client/Makefile.am deleted file mode 100644 index f746a0ca9a..0000000000 --- a/src/lib-program-client/Makefile.am +++ /dev/null @@ -1,54 +0,0 @@ -noinst_LTLIBRARIES = libprogram_client.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-mail - -libprogram_client_la_SOURCES = \ - program-client.c \ - program-client-local.c \ - program-client-remote.c - -headers = \ - program-client.h - -noinst_HEADERS = \ - program-client-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-program-client-local \ - test-program-client-unix \ - test-program-client-net - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - libprogram_client.la \ - ../lib-dns/libdns.la \ - ../lib-test/libtest.la \ - ../lib-mail/libmail.la \ - ../lib-charset/libcharset.la \ - ../lib/liblib.la \ - -test_program_client_local_SOURCE = test-program-client-local.c -test_program_client_local_LDADD = $(test_libs) - -test_program_client_unix_SOURCE = test-program-client-unix.c -test_program_client_unix_LDADD = $(test_libs) - -test_program_client_net_SOURCE = test-program-client-net.c -test_program_client_net_LDADD = $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if test "$$bin" = "test-program-client-local"; then \ - if ! env NOCHILDREN=yes $(RUN_TEST) ./$$bin; then exit 1; fi; \ - else \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - fi \ - done diff --git a/src/lib-sasl/Makefile.am b/src/lib-sasl/Makefile.am deleted file mode 100644 index 63535d726a..0000000000 --- a/src/lib-sasl/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ -noinst_LTLIBRARIES = libsasl.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test - -libsasl_la_SOURCES = \ - mech-external.c \ - mech-login.c \ - mech-plain.c \ - dsasl-client.c - -headers = \ - dsasl-client.h \ - dsasl-client-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-sasl-client - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - $(noinst_LTLIBRARIES) \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_deps = $(test_libs) - -test_sasl_client_SOURCES = test-sasl-client.c -test_sasl_client_LDADD = $(test_libs) -test_sasl_client_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-settings/Makefile.am b/src/lib-settings/Makefile.am deleted file mode 100644 index 30eeff51b1..0000000000 --- a/src/lib-settings/Makefile.am +++ /dev/null @@ -1,40 +0,0 @@ -noinst_LTLIBRARIES = libsettings.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test - -libsettings_la_SOURCES = \ - settings.c \ - settings-parser.c - -headers = \ - settings.h \ - settings-parser.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-settings-parser \ - test-settings - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - libsettings.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_settings_parser_SOURCES = test-settings-parser.c -test_settings_parser_LDADD = $(test_libs) -test_settings_parser_DEPENDENCIES = $(test_libs) - -test_settings_SOURCES = test-settings.c -test_settings_LDADD = $(test_libs) -test_settings_DEPENDENCIES = $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/lib-smtp/Makefile.am b/src/lib-smtp/Makefile.am deleted file mode 100644 index a397df90cf..0000000000 --- a/src/lib-smtp/Makefile.am +++ /dev/null @@ -1,191 +0,0 @@ -noinst_LTLIBRARIES = libsmtp.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-sasl \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-program-client \ - -I$(top_srcdir)/src/lib-mail \ - -DTEST_BIN_DIR=\"$(abs_srcdir)/test-bin\" - -smtp_server_cmds = \ - smtp-server-cmd-helo.c \ - smtp-server-cmd-starttls.c \ - smtp-server-cmd-auth.c \ - smtp-server-cmd-mail.c \ - smtp-server-cmd-rcpt.c \ - smtp-server-cmd-data.c \ - smtp-server-cmd-rset.c \ - smtp-server-cmd-noop.c \ - smtp-server-cmd-quit.c \ - smtp-server-cmd-vrfy.c \ - smtp-server-cmd-xclient.c - -libsmtp_la_SOURCES = \ - smtp-parser.c \ - smtp-syntax.c \ - smtp-address.c \ - smtp-common.c \ - smtp-params.c \ - smtp-reply.c \ - smtp-reply-parser.c \ - smtp-command-parser.c \ - smtp-client-command.c \ - smtp-client-transaction.c \ - smtp-client-connection.c \ - smtp-client.c \ - $(smtp_server_cmds) \ - smtp-server-reply.c \ - smtp-server-command.c \ - smtp-server-recipient.c \ - smtp-server-transaction.c \ - smtp-server-connection.c \ - smtp-server.c \ - smtp-submit-settings.c \ - smtp-submit.c - -headers = \ - smtp-parser.h \ - smtp-syntax.h \ - smtp-address.h \ - smtp-common.h \ - smtp-params.h \ - smtp-reply.h \ - smtp-reply-parser.h \ - smtp-command.h \ - smtp-command-parser.h \ - smtp-client-command.h \ - smtp-client-transaction.h \ - smtp-client-connection.h \ - smtp-client-private.h \ - smtp-client.h \ - smtp-server-private.h \ - smtp-server.h \ - smtp-submit-settings.h \ - smtp-submit.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -test_programs = \ - test-smtp-syntax \ - test-smtp-address \ - test-smtp-params \ - test-smtp-reply \ - test-smtp-command-parser \ - test-smtp-payload \ - test-smtp-submit \ - test-smtp-client-errors \ - test-smtp-server-errors - -test_nocheck_programs = - -fuzz_programs = - -if USE_FUZZER -fuzz_programs += \ - fuzz-smtp-server -endif - -noinst_PROGRAMS = $(fuzz_programs) $(test_programs) $(test_nocheck_programs) - -EXTRA_DIST = \ - test-bin/sendmail-exit-1.sh \ - test-bin/sendmail-success.sh - -test_libs = \ - $(noinst_LTLIBRARIES) \ - ../lib-program-client/libprogram_client.la \ - ../lib-dns/libdns.la \ - ../lib-mail/libmail.la \ - ../lib-charset/libcharset.la \ - ../lib-master/libmaster.la \ - ../lib-auth/libauth.la \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-settings/libsettings.la \ - ../lib-sasl/libsasl.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la \ - -test_deps = \ - $(noinst_LTLIBRARIES) \ - ../lib-program-client/libprogram_client.la \ - ../lib-dns/libdns.la \ - ../lib-mail/libmail.la \ - ../lib-charset/libcharset.la \ - ../lib-master/libmaster.la \ - ../lib-auth/libauth.la \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-settings/libsettings.la \ - ../lib-sasl/libsasl.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_libs_ssl= -if BUILD_OPENSSL -test_libs_ssl += ../lib-ssl-iostream/libssl_iostream_openssl.la -endif - -test_smtp_syntax_SOURCES = test-smtp-syntax.c -test_smtp_syntax_LDADD = $(test_libs) -test_smtp_syntax_DEPENDENCIES = $(test_deps) - -test_smtp_address_SOURCES = test-smtp-address.c -test_smtp_address_LDFLAGS = -export-dynamic -test_smtp_address_LDADD = $(test_libs) -test_smtp_address_DEPENDENCIES = $(test_deps) - -test_smtp_params_SOURCES = test-smtp-params.c -test_smtp_params_LDFLAGS = -export-dynamic -test_smtp_params_LDADD = $(test_libs) -test_smtp_params_DEPENDENCIES = $(test_deps) - -test_smtp_reply_SOURCES = test-smtp-reply.c -test_smtp_reply_LDFLAGS = -export-dynamic -test_smtp_reply_LDADD = $(test_libs) -test_smtp_reply_DEPENDENCIES = $(test_deps) - -test_smtp_command_parser_SOURCES = test-smtp-command-parser.c -test_smtp_command_parser_LDFLAGS = -export-dynamic -test_smtp_command_parser_LDADD = $(test_libs) -test_smtp_command_parser_DEPENDENCIES = $(test_deps) - -test_smtp_payload_SOURCES = test-smtp-payload.c -test_smtp_payload_LDFLAGS = -export-dynamic -test_smtp_payload_LDADD = $(test_libs) $(test_libs_ssl) -test_smtp_payload_DEPENDENCIES = $(test_deps) - -test_smtp_submit_SOURCES = test-smtp-submit.c -test_smtp_submit_LDFLAGS = -export-dynamic -test_smtp_submit_LDADD = $(test_libs) -test_smtp_submit_DEPENDENCIES = $(test_deps) - -test_smtp_client_errors_SOURCES = test-smtp-client-errors.c -test_smtp_client_errors_LDFLAGS = -export-dynamic -test_smtp_client_errors_LDADD = $(test_libs) $(test_libs_ssl) -test_smtp_client_errors_DEPENDENCIES = $(test_deps) - -test_smtp_server_errors_SOURCES = test-smtp-server-errors.c -test_smtp_server_errors_LDFLAGS = -export-dynamic -test_smtp_server_errors_LDADD = $(test_libs) -test_smtp_server_errors_DEPENDENCIES = $(test_deps) - -nodist_EXTRA_fuzz_smtp_server_SOURCES = force-cxx-linking.cxx -fuzz_smtp_server_CPPFLAGS = $(FUZZER_CPPFLAGS) -fuzz_smtp_server_LDFLAGS = $(FUZZER_LDFLAGS) -fuzz_smtp_server_SOURCES = fuzz-smtp-server.c -fuzz_smtp_server_LDADD = $(test_libs) -fuzz_smtp_server_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if test "$$bin" = "test-smtp-submit"; then \ - if ! env NOCHILDREN=yes $(RUN_TEST) ./$$bin; then exit 1; fi; \ - else \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - fi \ - done diff --git a/src/lib-sql/Makefile.am b/src/lib-sql/Makefile.am deleted file mode 100644 index 0e54677ee9..0000000000 --- a/src/lib-sql/Makefile.am +++ /dev/null @@ -1,74 +0,0 @@ -noinst_LTLIBRARIES = libsql.la libdriver_test.la - -# automake seems to force making this unconditional.. -NOPLUGIN_LDFLAGS = - -sql_drivers = @sql_drivers@ - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - $(SQL_CFLAGS) - -dist_sources = \ - sql-api.c \ - sql-db-cache.c - -driver_sources = \ - driver-mysql.c \ - driver-pgsql.c \ - driver-sqlite.c \ - driver-cassandra.c - -libsql_la_SOURCES = \ - $(dist_sources) \ - $(driver_sources) \ - driver-sqlpool.c -libsql_la_LIBADD = $(SQL_LIBS) - -nodist_libsql_la_SOURCES = sql-drivers-register.c - -deplibs = \ - ../lib-dovecot/libdovecot.la - -libdriver_test_la_LDFLAGS = -avoid-version -libdriver_test_la_CPPFLAGS = $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib-test -libdriver_test_la_SOURCES = driver-test.c - -noinst_HEADERS = driver-test.h - -pkglib_LTLIBRARIES = libdovecot-sql.la -libdovecot_sql_la_SOURCES = -libdovecot_sql_la_LIBADD = libsql.la $(deplibs) -libdovecot_sql_la_DEPENDENCIES = libsql.la -libdovecot_sql_la_LDFLAGS = -export-dynamic - -headers = \ - sql-api.h \ - sql-api-private.h \ - sql-db-cache.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -sql-drivers-register.c: Makefile - rm -f $@ - echo '/* this file automatically generated by Makefile */' >$@ - echo '#include "lib.h"' >>$@ - echo '#include "sql-api.h"' >>$@ - for i in $(sql_drivers) null; do \ - if [ "$${i}" != "null" ]; then \ - echo "extern struct sql_db driver_$${i}_db;" >>$@ ; \ - fi; \ - done - echo 'void sql_drivers_register_all(void) {' >>$@ - for i in $(sql_drivers) null; do \ - if [ "$${i}" != "null" ]; then \ - echo "sql_driver_register(&driver_$${i}_db);" >>$@ ; \ - fi; \ - done - echo '}' >>$@ - -distclean-generic: - rm -f Makefile sql-drivers-register.c diff --git a/src/lib-ssl-iostream/Makefile.am b/src/lib-ssl-iostream/Makefile.am deleted file mode 100644 index d6240aaf0f..0000000000 --- a/src/lib-ssl-iostream/Makefile.am +++ /dev/null @@ -1,60 +0,0 @@ -noinst_LTLIBRARIES = libssl_iostream.la - -NOPLUGIN_LDFLAGS = - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -if BUILD_OPENSSL -module_LTLIBRARIES = libssl_iostream_openssl.la - -libssl_iostream_openssl_la_LDFLAGS = -module -avoid-version -libssl_iostream_openssl_la_LIBADD = $(SSL_LIBS) -libssl_iostream_openssl_la_SOURCES = \ - dovecot-openssl-common.c \ - iostream-openssl.c \ - iostream-openssl-common.c \ - iostream-openssl-context.c \ - istream-openssl.c \ - ostream-openssl.c -endif - -libssl_iostream_la_SOURCES = \ - iostream-ssl.c \ - iostream-ssl-context-cache.c \ - iostream-ssl-test.c - -noinst_HEADERS = \ - dovecot-openssl-common.h - -headers = \ - iostream-openssl.h \ - iostream-ssl.h \ - iostream-ssl-private.h \ - iostream-ssl-test.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -if BUILD_OPENSSL -test_libs = \ - $(module_LTLIBRARIES) \ - $(noinst_LTLIBRARIES) \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_iostream_ssl_SOURCES = test-iostream-ssl.c -test_iostream_ssl_LDADD = $(test_libs) $(SSL_LIBS) $(DLLIB) -test_iostream_ssl_DEPENDENCIES = $(test_libs) - -test_programs = \ - test-iostream-ssl - -noinst_PROGRAMS = $(test_programs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done -endif diff --git a/src/lib-storage/Makefile.am b/src/lib-storage/Makefile.am deleted file mode 100644 index 0b0b2b0c44..0000000000 --- a/src/lib-storage/Makefile.am +++ /dev/null @@ -1,209 +0,0 @@ -SUBDIRS = list index - -noinst_LTLIBRARIES = libstorage.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-sasl \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-charset \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - -libstorage_la_SOURCES = \ - fail-mail-storage.c \ - fail-mailbox.c \ - fail-mail.c \ - mail.c \ - mail-autoexpunge.c \ - mail-copy.c \ - mail-duplicate.c \ - mail-error.c \ - mail-namespace.c \ - mail-search.c \ - mail-search-args-cmdline.c \ - mail-search-args-imap.c \ - mail-search-args-simplify.c \ - mail-search-build.c \ - mail-search-mime.c \ - mail-search-mime-build.c \ - mail-search-mime-register.c \ - mail-search-parser.c \ - mail-search-parser-imap.c \ - mail-search-parser-cmdline.c \ - mail-search-register.c \ - mail-search-register-human.c \ - mail-search-register-imap.c \ - mail-storage.c \ - mail-storage-hooks.c \ - mail-storage-register.c \ - mail-storage-service.c \ - mail-storage-settings.c \ - mail-thread.c \ - mail-user.c \ - mailbox-attribute.c \ - mailbox-attribute-internal.c \ - mailbox-get.c \ - mailbox-guid-cache.c \ - mailbox-header.c \ - mailbox-keywords.c \ - mailbox-list.c \ - mailbox-list-notify.c \ - mailbox-list-register.c \ - mailbox-match-plugin.c \ - mailbox-recent-flags.c \ - mailbox-search-result.c \ - mailbox-tree.c \ - mailbox-uidvalidity.c \ - mailbox-watch.c \ - test-mail-storage-common.c - -headers = \ - fail-mail-storage.h \ - mail-autoexpunge.h \ - mail-copy.h \ - mail-duplicate.h \ - mail-error.h \ - mail-namespace.h \ - mail-search.h \ - mail-search-build.h \ - mail-search-mime.h \ - mail-search-mime-build.h \ - mail-search-mime-register.h \ - mail-search-register.h \ - mail-thread.h \ - mail-storage.h \ - mail-search-parser.h \ - mail-search-parser-private.h \ - mail-storage-private.h \ - mail-storage-hooks.h \ - mail-storage-service.h \ - mail-storage-settings.h \ - mail-user.h \ - mailbox-attribute.h \ - mailbox-attribute-internal.h \ - mailbox-attribute-private.h \ - mailbox-guid-cache.h \ - mailbox-list.h \ - mailbox-list-iter.h \ - mailbox-list-private.h \ - mailbox-list-notify.h \ - mailbox-match-plugin.h \ - mailbox-recent-flags.h \ - mailbox-search-result-private.h \ - mailbox-tree.h \ - mailbox-uidvalidity.h \ - mailbox-watch.h \ - test-mail-storage-common.h - -shlibs = \ - index/shared/libstorage_shared.la \ - index/dbox-multi/libstorage_dbox_multi.la \ - index/dbox-single/libstorage_dbox_single.la \ - index/dbox-common/libstorage_dbox_common.la \ - index/maildir/libstorage_maildir.la \ - index/mbox/libstorage_mbox.la \ - index/imapc/libstorage_imapc.la \ - ../lib-imap-client/libimap_client.la \ - index/pop3c/libstorage_pop3c.la \ - index/raw/libstorage_raw.la \ - list/libstorage_list.la \ - index/libstorage_index.la \ - ../lib-index/libindex.la \ - ../lib-imap-storage/libimap-storage.la - -libstorage_la_LIBADD = $(shlibs) -libstorage_la_DEPENDENCIES = $(shlibs) - -pkglib_LTLIBRARIES = libdovecot-storage.la -libdovecot_storage_la_SOURCES = -libdovecot_storage_la_LIBADD = \ - libstorage.la \ - ../lib-dovecot/libdovecot.la \ - $(LINKED_STORAGE_LDADD) -libdovecot_storage_la_DEPENDENCIES = \ - libstorage.la \ - ../lib-dovecot/libdovecot.la \ - $(LIBDOVECOT_DEPS) -libdovecot_storage_la_LDFLAGS = -export-dynamic - -if HAVE_LUA -pkglib_LTLIBRARIES += libdovecot-storage-lua.la -libdovecot_storage_lua_la_SOURCES = \ - mail-lua.c \ - mail-user-lua.c \ - mail-storage-lua.c \ - mailbox-lua.c \ - mailbox-attribute-lua.c -libdovecot_storage_lua_la_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - $(LUA_CFLAGS) \ - -I$(top_srcdir)/src/lib-lua -libdovecot_storage_lua_la_LIBADD = \ - libdovecot-storage.la \ - ../lib-lua/libdovecot-lua.la -libdovecot_storage_lua_la_DEPENDENCIES = \ - libdovecot-storage.la \ - ../lib-lua/libdovecot-lua.la -libdovecot_storage_lua_la_LDFLAGS = -export-dynamic - -headers += \ - mail-storage-lua.h \ - mail-storage-lua-private.h -endif - -test_programs = \ - test-mail-search-args-imap \ - test-mail-search-args-simplify \ - test-mail \ - test-mail-storage \ - test-mailbox-get \ - test-mailbox-list - -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - $(top_builddir)/src/lib-test/libtest.la \ - $(top_builddir)/src/lib/liblib.la - -test_mail_search_args_imap_SOURCES = test-mail-search-args-imap.c -test_mail_search_args_imap_LDADD = libstorage.la $(LIBDOVECOT) -test_mail_search_args_imap_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS) - -test_mail_search_args_simplify_SOURCES = test-mail-search-args-simplify.c -test_mail_search_args_simplify_LDADD = libstorage.la $(LIBDOVECOT) -test_mail_search_args_simplify_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS) - -test_mailbox_get_SOURCES = test-mailbox-get.c -test_mailbox_get_LDADD = mailbox-get.lo $(test_libs) -test_mailbox_get_DEPENDENCIES = $(noinst_LTLIBRARIES) $(test_libs) - -test_mail_SOURCES = test-mail.c -test_mail_LDADD = libstorage.la $(LIBDOVECOT) -test_mail_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS) - -test_mail_storage_SOURCES = test-mail-storage.c -test_mail_storage_LDADD = libstorage.la $(LIBDOVECOT) -test_mail_storage_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS) - -test_mailbox_list_SOURCES = test-mailbox-list.c -test_mailbox_list_LDADD = libstorage.la $(LIBDOVECOT) -test_mailbox_list_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) -noinst_HEADERS = $(test_headers) diff --git a/src/lib-storage/index/Makefile.am b/src/lib-storage/index/Makefile.am deleted file mode 100644 index 23461e2529..0000000000 --- a/src/lib-storage/index/Makefile.am +++ /dev/null @@ -1,58 +0,0 @@ -SUBDIRS = maildir mbox dbox-common dbox-multi dbox-single imapc pop3c raw shared - -noinst_LTLIBRARIES = libstorage_index.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -libstorage_index_la_SOURCES = \ - istream-mail.c \ - index-attachment.c \ - index-attribute.c \ - index-mail.c \ - index-mail-binary.c \ - index-mail-headers.c \ - index-mailbox-size.c \ - index-pop3-uidl.c \ - index-rebuild.c \ - index-search.c \ - index-search-mime.c \ - index-search-result.c \ - index-sort.c \ - index-sort-string.c \ - index-status.c \ - index-storage.c \ - index-sync.c \ - index-sync-changes.c \ - index-sync-pvt.c \ - index-sync-search.c \ - index-thread.c \ - index-thread-finish.c \ - index-thread-links.c \ - index-transaction.c - -headers = \ - istream-mail.h \ - index-attachment.h \ - index-mail.h \ - index-mailbox-size.h \ - index-pop3-uidl.h \ - index-rebuild.h \ - index-search-private.h \ - index-search-result.h \ - index-sort.h \ - index-sort-private.h \ - index-storage.h \ - index-sync-changes.h \ - index-sync-private.h \ - index-thread-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/dbox-common/Makefile.am b/src/lib-storage/index/dbox-common/Makefile.am deleted file mode 100644 index ec3d511abb..0000000000 --- a/src/lib-storage/index/dbox-common/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -noinst_LTLIBRARIES = libstorage_dbox_common.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -libstorage_dbox_common_la_SOURCES = \ - dbox-attachment.c \ - dbox-file.c \ - dbox-file-fix.c \ - dbox-mail.c \ - dbox-save.c \ - dbox-storage.c - -headers = \ - dbox-attachment.h \ - dbox-file.h \ - dbox-mail.h \ - dbox-save.h \ - dbox-storage.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/dbox-multi/Makefile.am b/src/lib-storage/index/dbox-multi/Makefile.am deleted file mode 100644 index 810edd21d9..0000000000 --- a/src/lib-storage/index/dbox-multi/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -noinst_LTLIBRARIES = libstorage_dbox_multi.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/dbox-common - -libstorage_dbox_multi_la_SOURCES = \ - mdbox-deleted-storage.c \ - mdbox-file.c \ - mdbox-mail.c \ - mdbox-map.c \ - mdbox-purge.c \ - mdbox-save.c \ - mdbox-settings.c \ - mdbox-sync.c \ - mdbox-storage.c \ - mdbox-storage-rebuild.c - -headers = \ - mdbox-file.h \ - mdbox-map.h \ - mdbox-map-private.h \ - mdbox-settings.h \ - mdbox-storage.h \ - mdbox-storage-rebuild.h \ - mdbox-sync.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/dbox-single/Makefile.am b/src/lib-storage/index/dbox-single/Makefile.am deleted file mode 100644 index b6f59bdeb0..0000000000 --- a/src/lib-storage/index/dbox-single/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -noinst_LTLIBRARIES = libstorage_dbox_single.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/dbox-common - -libstorage_dbox_single_la_SOURCES = \ - sdbox-copy.c \ - sdbox-file.c \ - sdbox-mail.c \ - sdbox-save.c \ - sdbox-sync.c \ - sdbox-sync-rebuild.c \ - sdbox-storage.c - -headers = \ - sdbox-file.h \ - sdbox-storage.h \ - sdbox-sync.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/imapc/Makefile.am b/src/lib-storage/index/imapc/Makefile.am deleted file mode 100644 index 72ee102ff3..0000000000 --- a/src/lib-storage/index/imapc/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -noinst_LTLIBRARIES = libstorage_imapc.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-imap-client \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/list \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-ssl-iostream - -libstorage_imapc_la_SOURCES = \ - imapc-list.c \ - imapc-mail.c \ - imapc-mail-fetch.c \ - imapc-mailbox.c \ - imapc-save.c \ - imapc-search.c \ - imapc-settings.c \ - imapc-sync.c \ - imapc-storage.c - -headers = \ - imapc-list.h \ - imapc-mail.h \ - imapc-search.h \ - imapc-settings.h \ - imapc-storage.h \ - imapc-sync.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/maildir/Makefile.am b/src/lib-storage/index/maildir/Makefile.am deleted file mode 100644 index 7acf2496d1..0000000000 --- a/src/lib-storage/index/maildir/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -noinst_LTLIBRARIES = libstorage_maildir.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -libstorage_maildir_la_SOURCES = \ - maildir-copy.c \ - maildir-filename.c \ - maildir-filename-flags.c \ - maildir-keywords.c \ - maildir-mail.c \ - maildir-save.c \ - maildir-settings.c \ - maildir-storage.c \ - maildir-sync.c \ - maildir-sync-index.c \ - maildir-uidlist.c \ - maildir-util.c - -headers = \ - maildir-filename.h \ - maildir-filename-flags.h \ - maildir-keywords.h \ - maildir-storage.h \ - maildir-settings.h \ - maildir-sync.h \ - maildir-uidlist.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/mbox/Makefile.am b/src/lib-storage/index/mbox/Makefile.am deleted file mode 100644 index 4165a20b32..0000000000 --- a/src/lib-storage/index/mbox/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ -noinst_LTLIBRARIES = libstorage_mbox.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -libstorage_mbox_la_SOURCES = \ - istream-raw-mbox.c \ - mbox-file.c \ - mbox-lock.c \ - mbox-mail.c \ - mbox-md5-apop3d.c \ - mbox-md5-all.c \ - mbox-save.c \ - mbox-settings.c \ - mbox-sync-list-index.c \ - mbox-sync-parse.c \ - mbox-sync-rewrite.c \ - mbox-sync-update.c \ - mbox-sync.c \ - mbox-storage.c - -headers = \ - istream-raw-mbox.h \ - mbox-file.h \ - mbox-lock.h \ - mbox-md5.h \ - mbox-settings.h \ - mbox-storage.h \ - mbox-sync-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/pop3c/Makefile.am b/src/lib-storage/index/pop3c/Makefile.am deleted file mode 100644 index 868dc1eb26..0000000000 --- a/src/lib-storage/index/pop3c/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -noinst_LTLIBRARIES = libstorage_pop3c.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-dns \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -libstorage_pop3c_la_SOURCES = \ - pop3c-client.c \ - pop3c-mail.c \ - pop3c-settings.c \ - pop3c-storage.c \ - pop3c-sync.c - -headers = \ - pop3c-client.h \ - pop3c-settings.h \ - pop3c-storage.h \ - pop3c-sync.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/raw/Makefile.am b/src/lib-storage/index/raw/Makefile.am deleted file mode 100644 index 58a9df3bc2..0000000000 --- a/src/lib-storage/index/raw/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -noinst_LTLIBRARIES = libstorage_raw.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -libstorage_raw_la_SOURCES = \ - raw-mail.c \ - raw-sync.c \ - raw-storage.c - -headers = \ - raw-storage.h \ - raw-sync.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/index/shared/Makefile.am b/src/lib-storage/index/shared/Makefile.am deleted file mode 100644 index 07980d6d7a..0000000000 --- a/src/lib-storage/index/shared/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -noinst_LTLIBRARIES = libstorage_shared.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -libstorage_shared_la_SOURCES = \ - shared-list.c \ - shared-storage.c - -headers = \ - shared-storage.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-storage/list/Makefile.am b/src/lib-storage/list/Makefile.am deleted file mode 100644 index 3a15e8e4be..0000000000 --- a/src/lib-storage/list/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -noinst_LTLIBRARIES = libstorage_list.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -libstorage_list_la_SOURCES = \ - mail-storage-list-index-rebuild.c \ - mailbox-list-delete.c \ - mailbox-list-fs.c \ - mailbox-list-fs-flags.c \ - mailbox-list-fs-iter.c \ - mailbox-list-index.c \ - mailbox-list-index-backend.c \ - mailbox-list-index-iter.c \ - mailbox-list-index-notify.c \ - mailbox-list-index-status.c \ - mailbox-list-index-sync.c \ - mailbox-list-iter.c \ - mailbox-list-maildir.c \ - mailbox-list-maildir-iter.c \ - mailbox-list-none.c \ - mailbox-list-notify-tree.c \ - mailbox-list-subscriptions.c \ - subscription-file.c - -headers = \ - mailbox-list-delete.h \ - mailbox-list-fs.h \ - mailbox-list-index.h \ - mailbox-list-index-storage.h \ - mailbox-list-index-sync.h \ - mailbox-list-iter-private.h \ - mailbox-list-maildir.h \ - mailbox-list-notify-tree.h \ - mailbox-list-subscriptions.h \ - subscription-file.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib-test/Makefile.am b/src/lib-test/Makefile.am deleted file mode 100644 index ce7417d642..0000000000 --- a/src/lib-test/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -noinst_LTLIBRARIES = libtest.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-charset - -libtest_la_SOURCES = \ - fuzzer.c \ - test-common.c \ - test-istream.c \ - test-ostream.c \ - test-subprocess.c - -headers = \ - fuzzer.h \ - test-common.h \ - test-subprocess.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am deleted file mode 100644 index a59bb71c48..0000000000 --- a/src/lib/Makefile.am +++ /dev/null @@ -1,483 +0,0 @@ -AM_CPPFLAGS = \ - $(LIBUNWIND_CFLAGS) - -noinst_LTLIBRARIES = liblib.la - -BUILT_SOURCES = $(srcdir)/unicodemap.c \ - event-filter-lexer.c \ - event-filter-parser.c \ - event-filter-parser.h - -EXTRA_DIST = unicodemap.c unicodemap.pl UnicodeData.txt - -# Squelch autoconf error about using .[ly] sources but not defining $(LEX) -# and $(YACC). Using false here avoids accidental use. -LEX=/bin/false -YACC=/bin/false - -# We use custom rules here because we want to use flex and bison instead -# of lex and yacc (or bison in yacc-compatibility mode). Both flex and -# bison can handle properly naming the generated files, and it is simpler -# and cleaner to make this rule ourselves instead of working around ylwrap -# and yywrap's antiquated notion of what is hapenning. -.l.c: - $(AM_V_GEN)$(FLEX) -o $@ $< - -.y.c: - $(AM_V_GEN)$(BISON) -o $@ $< - -# Bison generates both a header and a .c file. Without the following -# dependency, anything including the header will race the bison process. -event-filter-parser.h: event-filter-parser.c - -$(srcdir)/UnicodeData.txt: - test -f $@ || wget -O $@ https://dovecot.org/res/UnicodeData.txt - -$(srcdir)/unicodemap.c: $(srcdir)/unicodemap.pl $(srcdir)/UnicodeData.txt - perl $(srcdir)/unicodemap.pl < $(srcdir)/UnicodeData.txt > $@ - -liblib_la_LIBADD = $(LIBUNWIND_LIBS) -liblib_la_SOURCES = \ - array.c \ - aqueue.c \ - askpass.c \ - backtrace-string.c \ - base32.c \ - base64.c \ - bits.c \ - bsearch-insert-pos.c \ - buffer.c \ - buffer-istream.c \ - child-wait.c \ - compat.c \ - connection.c \ - cpu-limit.c \ - crc32.c \ - data-stack.c \ - eacces-error.c \ - env-util.c \ - event-filter.c \ - event-filter-lexer.l \ - event-filter-parser.y \ - event-log.c \ - execv-const.c \ - failures.c \ - fd-util.c \ - fdatasync-path.c \ - fdpass.c \ - file-cache.c \ - file-create-locked.c \ - file-copy.c \ - file-dotlock.c \ - file-lock.c \ - file-set-size.c \ - guid.c \ - hash.c \ - hash-format.c \ - hash-method.c \ - hash2.c \ - hex-binary.c \ - hex-dec.c \ - hmac.c \ - hmac-cram-md5.c \ - home-expand.c \ - hook-build.c \ - hostpid.c \ - imem.c \ - ipwd.c \ - iostream.c \ - iostream-pump.c \ - iostream-proxy.c \ - iostream-rawlog.c \ - iostream-temp.c \ - iso8601-date.c \ - istream.c \ - istream-base64-decoder.c \ - istream-base64-encoder.c \ - istream-callback.c \ - istream-chain.c \ - istream-concat.c \ - istream-crlf.c \ - istream-data.c \ - istream-failure-at.c \ - istream-file.c \ - istream-hash.c \ - istream-jsonstr.c \ - istream-limit.c \ - istream-multiplex.c \ - istream-rawlog.c \ - istream-seekable.c \ - istream-sized.c \ - istream-tee.c \ - istream-try.c \ - istream-timeout.c \ - istream-unix.c \ - ioloop.c \ - ioloop-iolist.c \ - ioloop-notify-none.c \ - ioloop-notify-fd.c \ - ioloop-notify-inotify.c \ - ioloop-notify-kqueue.c \ - ioloop-poll.c \ - ioloop-select.c \ - ioloop-epoll.c \ - ioloop-kqueue.c \ - json-parser.c \ - json-tree.c \ - lib.c \ - lib-event.c \ - lib-signals.c \ - log-throttle.c \ - md4.c \ - md5.c \ - memarea.c \ - mempool.c \ - mempool-allocfree.c \ - mempool-alloconly.c \ - mempool-datastack.c \ - mempool-system.c \ - mempool-unsafe-datastack.c \ - mkdir-parents.c \ - mmap-anon.c \ - mmap-util.c \ - module-dir.c \ - module-load-adm.c \ - module-load-mail.c \ - mountpoint.c \ - net.c \ - nfs-workarounds.c \ - numpack.c \ - ostream.c \ - ostream-buffer.c \ - ostream-failure-at.c \ - ostream-file.c \ - ostream-hash.c \ - ostream-multiplex.c \ - ostream-null.c \ - ostream-rawlog.c \ - ostream-unix.c \ - ostream-wrapper.c \ - path-util.c \ - pkcs5.c \ - primes.c \ - printf-format-fix.c \ - process-stat.c \ - process-title.c \ - priorityq.c \ - randgen.c \ - rand.c \ - read-full.c \ - restrict-access.c \ - restrict-process-size.c \ - safe-memset.c \ - safe-mkdir.c \ - safe-mkstemp.c \ - sendfile-util.c \ - seq-range-array.c \ - seq-set-builder.c \ - sha1.c \ - sha2.c \ - sha3.c \ - sleep.c \ - sort.c \ - stats-dist.c \ - str.c \ - str-find.c \ - str-sanitize.c \ - str-table.c \ - strescape.c \ - strfuncs.c \ - strnum.c \ - time-util.c \ - unix-socket-create.c \ - unlink-directory.c \ - unlink-old-files.c \ - unichar.c \ - uri-util.c \ - utc-offset.c \ - utc-mktime.c \ - var-expand.c \ - var-expand-if.c \ - wildcard-match.c \ - write-full.c - -headers = \ - aqueue.h \ - array.h \ - array-decl.h \ - askpass.h \ - backtrace-string.h \ - base32.h \ - base64.h \ - bits.h \ - bsearch-insert-pos.h \ - buffer.h \ - byteorder.h \ - child-wait.h \ - compat.h \ - connection.h \ - cpu-limit.h \ - crc32.h \ - data-stack.h \ - eacces-error.h \ - env-util.h \ - event-filter.h \ - event-filter-parser.h \ - event-filter-private.h \ - event-log.h \ - execv-const.h \ - failures.h \ - failures-private.h \ - fd-util.h \ - fdatasync-path.h \ - fdpass.h \ - file-cache.h \ - file-create-locked.h \ - file-copy.h \ - file-dotlock.h \ - file-lock.h \ - file-set-size.h \ - fsync-mode.h \ - guid.h \ - hash.h \ - hash-decl.h \ - hash-format.h \ - hash-method.h \ - hash2.h \ - hex-binary.h \ - hex-dec.h \ - hmac.h \ - hmac-cram-md5.h \ - home-expand.h \ - hook-build.h \ - hostpid.h \ - imem.h \ - ipwd.h \ - iostream.h \ - iostream-private.h \ - iostream-pump.h \ - iostream-proxy.h \ - iostream-rawlog.h \ - iostream-rawlog-private.h \ - iostream-temp.h \ - iso8601-date.h \ - istream.h \ - istream-base64.h \ - istream-callback.h \ - istream-chain.h \ - istream-concat.h \ - istream-crlf.h \ - istream-failure-at.h \ - istream-file-private.h \ - istream-hash.h \ - istream-jsonstr.h \ - istream-multiplex.h \ - istream-private.h \ - istream-rawlog.h \ - istream-seekable.h \ - istream-sized.h \ - istream-tee.h \ - istream-try.h \ - istream-timeout.h \ - istream-unix.h \ - ioloop.h \ - ioloop-iolist.h \ - ioloop-private.h \ - ioloop-notify-fd.h \ - json-parser.h \ - json-tree.h \ - lib.h \ - lib-event.h \ - lib-event-private.h \ - lib-signals.h \ - llist.h \ - log-throttle.h \ - macros.h \ - md4.h \ - md5.h \ - malloc-overflow.h \ - memarea.h \ - mempool.h \ - mkdir-parents.h \ - mmap-util.h \ - module-context.h \ - module-dir.h \ - mountpoint.h \ - net.h \ - nfs-workarounds.h \ - numpack.h \ - ostream.h \ - ostream-failure-at.h \ - ostream-file-private.h \ - ostream-hash.h \ - ostream-multiplex.h \ - ostream-private.h \ - ostream-null.h \ - ostream-rawlog.h \ - ostream-unix.h \ - ostream-wrapper.h \ - path-util.h \ - pkcs5.h \ - primes.h \ - printf-format-fix.h \ - process-stat.h \ - process-title.h \ - priorityq.h \ - randgen.h \ - read-full.h \ - restrict-access.h \ - restrict-process-size.h \ - safe-memset.h \ - safe-mkdir.h \ - safe-mkstemp.h \ - sendfile-util.h \ - seq-range-array.h \ - seq-set-builder.h \ - sha-common.h \ - sha1.h \ - sha2.h \ - sha3.h \ - sleep.h \ - sort.h \ - stats-dist.h \ - str.h \ - str-find.h \ - str-sanitize.h \ - str-table.h \ - strescape.h \ - strfuncs.h \ - strnum.h \ - time-util.h \ - unix-socket-create.h \ - unlink-directory.h \ - unlink-old-files.h \ - unichar.h \ - uri-util.h \ - utc-offset.h \ - utc-mktime.h \ - var-expand.h \ - var-expand-private.h \ - wildcard-match.h \ - write-full.h - -test_programs = test-lib -noinst_PROGRAMS = $(test_programs) - -test_lib_CPPFLAGS = \ - -I$(top_srcdir)/src/lib-test - -test_libs = \ - ../lib-test/libtest.la \ - liblib.la - -test_lib_SOURCES = \ - test-lib.c \ - test-array.c \ - test-aqueue.c \ - test-backtrace.c \ - test-base32.c \ - test-base64.c \ - test-bits.c \ - test-bsearch-insert-pos.c \ - test-buffer.c \ - test-buffer-istream.c \ - test-byteorder.c \ - test-connection.c \ - test-crc32.c \ - test-cpu-limit.c \ - test-data-stack.c \ - test-env-util.c \ - test-event-category-register.c \ - test-event-filter.c \ - test-event-filter-expr.c \ - test-event-filter-merge.c \ - test-event-filter-parser.c \ - test-event-flatten.c \ - test-event-log.c \ - test-failures.c \ - test-fd-util.c \ - test-file-cache.c \ - test-file-create-locked.c \ - test-guid.c \ - test-hash.c \ - test-hash-format.c \ - test-hash-method.c \ - test-hmac.c \ - test-hex-binary.c \ - test-imem.c \ - test-ioloop.c \ - test-iso8601-date.c \ - test-iostream-pump.c \ - test-iostream-proxy.c \ - test-iostream-temp.c \ - test-istream.c \ - test-istream-base64-decoder.c \ - test-istream-base64-encoder.c \ - test-istream-chain.c \ - test-istream-concat.c \ - test-istream-crlf.c \ - test-istream-failure-at.c \ - test-istream-jsonstr.c \ - test-istream-multiplex.c \ - test-istream-seekable.c \ - test-istream-sized.c \ - test-istream-tee.c \ - test-istream-try.c \ - test-istream-unix.c \ - test-json-parser.c \ - test-json-tree.c \ - test-lib-event.c \ - test-lib-signals.c \ - test-llist.c \ - test-log-throttle.c \ - test-macros.c \ - test-malloc-overflow.c \ - test-memarea.c \ - test-mempool.c \ - test-mempool-allocfree.c \ - test-mempool-alloconly.c \ - test-pkcs5.c \ - test-net.c \ - test-numpack.c \ - test-ostream-buffer.c \ - test-ostream-failure-at.c \ - test-ostream-file.c \ - test-ostream-multiplex.c \ - test-multiplex.c \ - test-path-util.c \ - test-primes.c \ - test-printf-format-fix.c \ - test-priorityq.c \ - test-random.c \ - test-seq-range-array.c \ - test-seq-set-builder.c \ - test-stats-dist.c \ - test-str.c \ - test-strescape.c \ - test-strfuncs.c \ - test-strnum.c \ - test-str-find.c \ - test-str-sanitize.c \ - test-str-table.c \ - test-time-util.c \ - test-unichar.c \ - test-utc-mktime.c \ - test-uri.c \ - test-var-expand.c \ - test-wildcard-match.c - -test_headers = \ - test-lib.h \ - test-lib.inc - -test_lib_LDADD = $(test_libs) -lm -test_lib_DEPENDENCIES = $(test_libs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) -noinst_HEADERS = $(test_headers) diff --git a/src/lmtp/Makefile.am b/src/lmtp/Makefile.am deleted file mode 100644 index ecc71cf128..0000000000 --- a/src/lmtp/Makefile.am +++ /dev/null @@ -1,54 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = lmtp - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-lda \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/raw \ - $(BINARY_CFLAGS) - -lmtp_LDFLAGS = -export-dynamic \ - $(BINARY_LDFLAGS) - -lmtp_LDADD = \ - $(LIBDOVECOT_LDA) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) -lmtp_DEPENDENCIES = \ - $(LIBDOVECOT_LDA) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -lmtp_SOURCES = \ - main.c \ - lmtp-client.c \ - lmtp-commands.c \ - lmtp-recipient.c \ - lmtp-local.c \ - lmtp-proxy.c \ - lmtp-settings.c - -noinst_HEADERS = \ - lmtp-local.h \ - lmtp-proxy.h - -headers = \ - lmtp-common.h \ - lmtp-commands.h \ - lmtp-recipient.h \ - lmtp-client.h \ - lmtp-settings.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/log/Makefile.am b/src/log/Makefile.am deleted file mode 100644 index 9888fcdbab..0000000000 --- a/src/log/Makefile.am +++ /dev/null @@ -1,26 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = log - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - $(BINARY_CFLAGS) - -log_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -log_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -log_SOURCES = \ - doveadm-connection.c \ - log-connection.c \ - log-error-buffer.c \ - log-settings.c \ - main.c - -noinst_HEADERS = \ - doveadm-connection.h \ - log-connection.h \ - log-error-buffer.h diff --git a/src/login-common/Makefile.am b/src/login-common/Makefile.am deleted file mode 100644 index 4cbcbe1b8b..0000000000 --- a/src/login-common/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ -noinst_LTLIBRARIES = liblogin.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-sasl \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-mail \ - -DPKG_STATEDIR=\""$(statedir)"\" \ - -liblogin_la_SOURCES = \ - access-lookup.c \ - client-common.c \ - client-common-auth.c \ - login-proxy.c \ - login-proxy-state.c \ - login-settings.c \ - main.c \ - sasl-server.c - -headers = \ - access-lookup.h \ - client-common.h \ - login-common.h \ - login-proxy.h \ - login-proxy-state.h \ - login-settings.h \ - sasl-server.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -pkglib_LTLIBRARIES = libdovecot-login.la -libdovecot_login_la_SOURCES = -libdovecot_login_la_LIBADD = liblogin.la ../lib-dovecot/libdovecot.la $(SSL_LIBS) -libdovecot_login_la_DEPENDENCIES = liblogin.la -libdovecot_login_la_LDFLAGS = -export-dynamic diff --git a/src/master/Makefile.am b/src/master/Makefile.am deleted file mode 100644 index 9471c23bf0..0000000000 --- a/src/master/Makefile.am +++ /dev/null @@ -1,98 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -sbin_PROGRAMS = dovecot -systemd_lib = - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - -DPKG_STATEDIR=\""$(statedir)"\" \ - -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \ - -DBINDIR=\""$(bindir)"\" \ - $(BINARY_CFLAGS) - -dovecot_LDADD = \ - $(SYSTEMD_LIBS) \ - $(LIBCAP) \ - $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -dovecot_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -dovecot_SOURCES = \ - capabilities-posix.c \ - dup2-array.c \ - main.c \ - master-client.c \ - master-settings.c \ - service-anvil.c \ - service-listen.c \ - service-log.c \ - service-monitor.c \ - service-process.c \ - service-process-notify.c \ - service.c - -noinst_HEADERS = \ - capabilities.h \ - common.h \ - dup2-array.h \ - master-client.h \ - master-settings.h \ - service-anvil.h \ - service-listen.h \ - service-log.h \ - service-monitor.h \ - service-process.h \ - service-process-notify.h \ - service.h - -test_programs = \ - test-auth-client \ - test-auth-master \ - test-master-login-auth - -test_nocheck_programs = - -noinst_PROGRAMS = $(test_programs) $(test_nocheck_programs) - -test_libs = \ - ../lib-auth/libauth.la \ - ../lib-master/libmaster.la \ - ../lib-auth/libauth.la \ - ../lib-dns/libdns.la \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-settings/libsettings.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la \ - -test_deps = \ - ../lib-auth/libauth.la \ - ../lib-master/libmaster.la \ - ../lib-auth/libauth.la \ - ../lib-dns/libdns.la \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-settings/libsettings.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la - -test_auth_client_SOURCES = test-auth-client.c -test_auth_client_LDADD = $(test_libs) -test_auth_client_DEPENDENCIES = $(test_deps) - -test_auth_master_SOURCES = test-auth-master.c -test_auth_master_LDADD = $(test_libs) -test_auth_master_DEPENDENCIES = $(test_deps) - -test_master_login_auth_SOURCES = test-master-login-auth.c -test_master_login_auth_LDADD = $(test_libs) -test_master_login_auth_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/old-stats/Makefile.am b/src/old-stats/Makefile.am deleted file mode 100644 index f82ac0cc66..0000000000 --- a/src/old-stats/Makefile.am +++ /dev/null @@ -1,46 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = old-stats - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-old-stats \ - $(BINARY_CFLAGS) - -old_stats_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -old_stats_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -old_stats_SOURCES = \ - client.c \ - client-export.c \ - client-reset.c \ - fifo-input-connection.c \ - global-memory.c \ - mail-command.c \ - mail-domain.c \ - mail-ip.c \ - mail-session.c \ - mail-stats.c \ - mail-user.c \ - main.c \ - stats-carbon.c \ - stats-settings.c - -noinst_HEADERS = \ - client.h \ - client-export.h \ - client-reset.h \ - fifo-input-connection.h \ - global-memory.h \ - mail-command.h \ - mail-domain.h \ - mail-ip.h \ - mail-session.h \ - mail-stats.h \ - mail-user.h \ - stats-carbon.h \ - stats-settings.h diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am deleted file mode 100644 index 249a566e8c..0000000000 --- a/src/plugins/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -if BUILD_ZLIB_PLUGIN -ZLIB = zlib imap-zlib -endif - -if BUILD_SOLR -FTS_SOLR = fts-solr -endif - -if HAVE_APPARMOR -APPARMOR = apparmor -endif - -if HAVE_LUA -MAIL_LUA = mail-lua -endif - -SUBDIRS = \ - acl \ - imap-acl \ - fts \ - fts-squat \ - last-login \ - lazy-expunge \ - listescape \ - notify \ - notify-status \ - push-notification \ - mail-log \ - $(MAIL_LUA) \ - mailbox-alias \ - quota \ - quota-clone \ - imap-quota \ - pop3-migration \ - replication \ - old-stats \ - imap-old-stats \ - trash \ - virtual \ - welcome \ - $(ZLIB) \ - $(FTS_SOLR) \ - $(DICT_LDAP) \ - $(APPARMOR) \ - charset-alias diff --git a/src/plugins/acl/Makefile.am b/src/plugins/acl/Makefile.am deleted file mode 100644 index 8a5323e35d..0000000000 --- a/src/plugins/acl/Makefile.am +++ /dev/null @@ -1,78 +0,0 @@ -doveadm_moduledir = $(moduledir)/doveadm - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/list \ - -I$(top_srcdir)/src/doveadm - -NOPLUGIN_LDFLAGS = -lib10_doveadm_acl_plugin_la_LDFLAGS = -module -avoid-version -lib01_acl_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib01_acl_plugin.la - -lib01_acl_plugin_la_SOURCES = \ - acl-api.c \ - acl-attributes.c \ - acl-backend.c \ - acl-backend-vfile.c \ - acl-backend-vfile-acllist.c \ - acl-backend-vfile-update.c \ - acl-cache.c \ - acl-global-file.c \ - acl-lookup-dict.c \ - acl-mailbox.c \ - acl-mailbox-list.c \ - acl-plugin.c \ - acl-shared-storage.c \ - acl-storage.c - -noinst_HEADERS = \ - acl-backend-vfile.h \ - acl-shared-storage.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = \ - acl-api.h \ - acl-api-private.h \ - acl-cache.h \ - acl-global-file.h \ - acl-lookup-dict.h \ - acl-plugin.h \ - acl-storage.h - -doveadm_module_LTLIBRARIES = \ - lib10_doveadm_acl_plugin.la - -lib10_doveadm_acl_plugin_la_SOURCES = \ - doveadm-acl.c - -test_programs = \ - test-acl - -test_libs = \ - $(module_LTLIBRARIES) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) -test_deps = \ - $(module_LTLIBRARIES) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -test_acl_SOURCES = test-acl.c -test_acl_LDADD = $(test_libs) -test_acl_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! env $(test_options) $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - -noinst_PROGRAMS = $(test_programs) diff --git a/src/plugins/apparmor/Makefile.am b/src/plugins/apparmor/Makefile.am deleted file mode 100644 index 510053bbff..0000000000 --- a/src/plugins/apparmor/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -NOPLUGIN_LDFLAGS = -lib01_apparmor_plugin_la_LDFLAGS = -module -avoid-version -lib01_apparmor_plugin_la_LIBADD = $(APPARMOR_LIBS) -lib01_apparmor_plugin_la_SOURCES = \ - apparmor-plugin.c - -module_LTLIBRARIES = \ - lib01_apparmor_plugin.la diff --git a/src/plugins/charset-alias/Makefile.am b/src/plugins/charset-alias/Makefile.am deleted file mode 100644 index da99095f1d..0000000000 --- a/src/plugins/charset-alias/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-charset \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -NOPLUGIN_LDFLAGS = -lib20_charset_alias_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_charset_alias_plugin.la - -lib20_charset_alias_plugin_la_SOURCES = \ - charset-alias-plugin.c - -noinst_HEADERS = \ - charset-alias-plugin.h diff --git a/src/plugins/fts-solr/Makefile.am b/src/plugins/fts-solr/Makefile.am deleted file mode 100644 index ab10038af1..0000000000 --- a/src/plugins/fts-solr/Makefile.am +++ /dev/null @@ -1,63 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-http \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/plugins/fts - -NOPLUGIN_LDFLAGS = -lib21_fts_solr_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib21_fts_solr_plugin.la - -if DOVECOT_PLUGIN_DEPS -fts_plugin_dep = ../fts/lib20_fts_plugin.la -endif - -lib21_fts_solr_plugin_la_LIBADD = \ - $(fts_plugin_dep) \ - -lexpat - -lib21_fts_solr_plugin_la_SOURCES = \ - fts-backend-solr.c \ - fts-backend-solr-old.c \ - fts-solr-plugin.c \ - solr-response.c \ - solr-connection.c - -noinst_HEADERS = \ - fts-solr-plugin.h \ - solr-response.h \ - solr-connection.h - -test_programs = \ - test-solr-response - -test_libs = \ - ../../lib-test/libtest.la \ - ../../lib-charset/libcharset.la \ - ../../lib/liblib.la \ - -noinst_PROGRAMS = test-solr-response - -test_solr_response_CPPFLAGS = \ - $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib-test -test_solr_response_SOURCES = \ - solr-response.c \ - test-solr-response.c -test_solr_response_LDADD = \ - $(test_libs) -lexpat - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -check: check-am check-test -check-test: all-am - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/plugins/fts-squat/Makefile.am b/src/plugins/fts-squat/Makefile.am deleted file mode 100644 index 6c8181cef7..0000000000 --- a/src/plugins/fts-squat/Makefile.am +++ /dev/null @@ -1,47 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/plugins/fts - -NOPLUGIN_LDFLAGS = -lib21_fts_squat_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib21_fts_squat_plugin.la - -if DOVECOT_PLUGIN_DEPS -lib21_fts_squat_plugin_la_LIBADD = \ - ../fts/lib20_fts_plugin.la -endif - -lib21_fts_squat_plugin_la_SOURCES = \ - fts-squat-plugin.c \ - fts-backend-squat.c \ - squat-trie.c \ - squat-uidlist.c - -noinst_HEADERS = \ - fts-squat-plugin.h \ - squat-trie.h \ - squat-trie-private.h \ - squat-uidlist.h - -noinst_PROGRAMS = squat-test - -squat_test_SOURCES = \ - squat-test.c - -common_objects = \ - squat-trie.lo \ - squat-uidlist.lo - -squat_test_LDADD = \ - $(common_objects) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) -squat_test_DEPENDENCIES = \ - $(common_objects) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) diff --git a/src/plugins/fts/Makefile.am b/src/plugins/fts/Makefile.am deleted file mode 100644 index 2e7753c947..0000000000 --- a/src/plugins/fts/Makefile.am +++ /dev/null @@ -1,74 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot -doveadm_moduledir = $(moduledir)/doveadm - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-fts \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-http \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/doveadm - -NOPLUGIN_LDFLAGS = -lib20_doveadm_fts_plugin_la_LDFLAGS = -module -avoid-version -lib20_fts_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_fts_plugin.la - -lib20_fts_plugin_la_LIBADD = ../../lib-fts/libfts.la - -lib20_fts_plugin_la_SOURCES = \ - fts-api.c \ - fts-build-mail.c \ - fts-expunge-log.c \ - fts-indexer.c \ - fts-parser.c \ - fts-parser-html.c \ - fts-parser-script.c \ - fts-parser-tika.c \ - fts-plugin.c \ - fts-search.c \ - fts-search-args.c \ - fts-search-serialize.c \ - fts-storage.c \ - fts-user.c - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = \ - fts-api.h \ - fts-api-private.h \ - fts-expunge-log.h \ - fts-indexer.h \ - fts-parser.h \ - fts-storage.h \ - fts-user.h - -noinst_HEADERS = \ - doveadm-fts.h \ - fts-build-mail.h \ - fts-plugin.h \ - fts-search-args.h \ - fts-search-serialize.h - -pkglibexec_PROGRAMS = xml2text - -xml2text_SOURCES = xml2text.c fts-parser-html.c -xml2text_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) -xml2text_LDADD = $(LIBDOVECOT) $(BINARY_LDFLAGS) -xml2text_DEPENDENCIES = $(module_LTLIBRARIES) $(LIBDOVECOT_DEPS) - -pkglibexec_SCRIPTS = decode2text.sh -EXTRA_DIST = $(pkglibexec_SCRIPTS) - -doveadm_module_LTLIBRARIES = \ - lib20_doveadm_fts_plugin.la - -lib20_doveadm_fts_plugin_la_SOURCES = \ - doveadm-fts.c \ - doveadm-dump-fts-expunge-log.c diff --git a/src/plugins/imap-acl/Makefile.am b/src/plugins/imap-acl/Makefile.am deleted file mode 100644 index c6839747b5..0000000000 --- a/src/plugins/imap-acl/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/imapc \ - -I$(top_srcdir)/src/imap \ - -I$(top_srcdir)/src/plugins/acl \ - -I$(top_srcdir)/src/lib-imap-client \ - -I$(top_srcdir)/src/lib-ssl-iostream - -imap_moduledir = $(moduledir) - -NOPLUGIN_LDFLAGS = -lib02_imap_acl_plugin_la_LDFLAGS = -module -avoid-version - -imap_module_LTLIBRARIES = \ - lib02_imap_acl_plugin.la - -if DOVECOT_PLUGIN_DEPS -lib02_imap_acl_plugin_la_LIBADD = \ - ../acl/lib01_acl_plugin.la -endif - -lib02_imap_acl_plugin_la_SOURCES = \ - imap-acl-plugin.c - -noinst_HEADERS = \ - imap-acl-plugin.h diff --git a/src/plugins/imap-old-stats/Makefile.am b/src/plugins/imap-old-stats/Makefile.am deleted file mode 100644 index ed07ed5393..0000000000 --- a/src/plugins/imap-old-stats/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-old-stats \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/imap \ - -I$(top_srcdir)/src/plugins/old-stats - -imap_moduledir = $(moduledir) - -NOPLUGIN_LDFLAGS = -lib95_imap_old_stats_plugin_la_LDFLAGS = -module -avoid-version - -imap_module_LTLIBRARIES = \ - lib95_imap_old_stats_plugin.la - -if DOVECOT_PLUGIN_DEPS -lib95_imap_old_stats_plugin_la_LIBADD = \ - ../old-stats/lib90_old_stats_plugin.la -endif - -lib95_imap_old_stats_plugin_la_SOURCES = \ - imap-stats-plugin.c - -noinst_HEADERS = \ - imap-stats-plugin.h diff --git a/src/plugins/imap-quota/Makefile.am b/src/plugins/imap-quota/Makefile.am deleted file mode 100644 index 7c19c02484..0000000000 --- a/src/plugins/imap-quota/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/imap \ - -I$(top_srcdir)/src/plugins/quota - -imap_moduledir = $(moduledir) - -NOPLUGIN_LDFLAGS = -lib11_imap_quota_plugin_la_LDFLAGS = -module -avoid-version - -imap_module_LTLIBRARIES = \ - lib11_imap_quota_plugin.la - -if DOVECOT_PLUGIN_DEPS -lib11_imap_quota_plugin_la_LIBADD = \ - ../quota/lib10_quota_plugin.la -endif - -lib11_imap_quota_plugin_la_SOURCES = \ - imap-quota-plugin.c - -noinst_HEADERS = \ - imap-quota-plugin.h diff --git a/src/plugins/imap-zlib/Makefile.am b/src/plugins/imap-zlib/Makefile.am deleted file mode 100644 index fa4f2f16f7..0000000000 --- a/src/plugins/imap-zlib/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-compression \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/imap - -imap_moduledir = $(moduledir) - -NOPLUGIN_LDFLAGS = -lib30_imap_zlib_plugin_la_LDFLAGS = -module -avoid-version - -imap_module_LTLIBRARIES = \ - lib30_imap_zlib_plugin.la - -lib30_imap_zlib_plugin_la_LIBADD = \ - ../../lib-compression/libcompression.la - -lib30_imap_zlib_plugin_la_SOURCES = \ - imap-zlib-plugin.c - -noinst_HEADERS = \ - imap-zlib-plugin.h diff --git a/src/plugins/last-login/Makefile.am b/src/plugins/last-login/Makefile.am deleted file mode 100644 index cdedf43d56..0000000000 --- a/src/plugins/last-login/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -NOPLUGIN_LDFLAGS = -lib10_last_login_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib10_last_login_plugin.la - -lib10_last_login_plugin_la_SOURCES = \ - last-login-plugin.c - -noinst_HEADERS = \ - last-login-plugin.h diff --git a/src/plugins/lazy-expunge/Makefile.am b/src/plugins/lazy-expunge/Makefile.am deleted file mode 100644 index 8147b64f90..0000000000 --- a/src/plugins/lazy-expunge/Makefile.am +++ /dev/null @@ -1,21 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/maildir \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/plugins/quota - -NOPLUGIN_LDFLAGS = -lib02_lazy_expunge_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib02_lazy_expunge_plugin.la - -lib02_lazy_expunge_plugin_la_SOURCES = \ - lazy-expunge-plugin.c - -noinst_HEADERS = \ - lazy-expunge-plugin.h diff --git a/src/plugins/listescape/Makefile.am b/src/plugins/listescape/Makefile.am deleted file mode 100644 index fa614a303e..0000000000 --- a/src/plugins/listescape/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -NOPLUGIN_LDFLAGS = -lib20_listescape_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_listescape_plugin.la - -lib20_listescape_plugin_la_SOURCES = \ - listescape-plugin.c - -noinst_HEADERS = \ - listescape-plugin.h diff --git a/src/plugins/mail-log/Makefile.am b/src/plugins/mail-log/Makefile.am deleted file mode 100644 index 2f3fbc684e..0000000000 --- a/src/plugins/mail-log/Makefile.am +++ /dev/null @@ -1,24 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/plugins/notify - -NOPLUGIN_LDFLAGS = -lib20_mail_log_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_mail_log_plugin.la - -if DOVECOT_PLUGIN_DEPS -lib20_mail_log_plugin_la_LIBADD = \ - ../notify/lib15_notify_plugin.la -endif - -lib20_mail_log_plugin_la_SOURCES = \ - mail-log-plugin.c - -noinst_HEADERS = \ - mail-log-plugin.h diff --git a/src/plugins/mail-lua/Makefile.am b/src/plugins/mail-lua/Makefile.am deleted file mode 100644 index 1698cb424b..0000000000 --- a/src/plugins/mail-lua/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-lua \ - $(LUA_CFLAGS) - -NOPLUGIN_LDFLAGS = - -module_LTLIBRARIES = \ - lib01_mail_lua_plugin.la - -lib01_mail_lua_plugin_la_LDFLAGS = -module -avoid-version $(LUA_LIBS) -lib01_mail_lua_plugin_la_LIBADD = \ - ../../lib-storage/libdovecot-storage-lua.la \ - $(LIBDOVECOT) -lib01_mail_lua_plugin_la_SOURCES = \ - mail-lua-plugin.c - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = \ - mail-lua-plugin.h - -test_programs = - -check-local: - for bin in $(test_programs); do \ - if ! env $(test_options) $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - -noinst_PROGRAMS = $(test_programs) diff --git a/src/plugins/mailbox-alias/Makefile.am b/src/plugins/mailbox-alias/Makefile.am deleted file mode 100644 index fa5f785f94..0000000000 --- a/src/plugins/mailbox-alias/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -NOPLUGIN_LDFLAGS = -lib20_mailbox_alias_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_mailbox_alias_plugin.la - -lib20_mailbox_alias_plugin_la_SOURCES = \ - mailbox-alias-plugin.c - -noinst_HEADERS = \ - mailbox-alias-plugin.h diff --git a/src/plugins/notify-status/Makefile.am b/src/plugins/notify-status/Makefile.am deleted file mode 100644 index 241e88d7ad..0000000000 --- a/src/plugins/notify-status/Makefile.am +++ /dev/null @@ -1,17 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/plugins/notify - -NOPLUGIN_LDFLAGS = -lib20_notify_status_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_notify_status_plugin.la - -lib20_notify_status_plugin_la_SOURCES = \ - notify-status-plugin.c diff --git a/src/plugins/notify/Makefile.am b/src/plugins/notify/Makefile.am deleted file mode 100644 index dfa286e294..0000000000 --- a/src/plugins/notify/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/maildir - -NOPLUGIN_LDFLAGS = -lib15_notify_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib15_notify_plugin.la - -lib15_notify_plugin_la_SOURCES = \ - notify-plugin.c \ - notify-storage.c - -headers = \ - notify-plugin.h \ - notify-plugin-private.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/plugins/old-stats/Makefile.am b/src/plugins/old-stats/Makefile.am deleted file mode 100644 index 8a95363575..0000000000 --- a/src/plugins/old-stats/Makefile.am +++ /dev/null @@ -1,33 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-old-stats \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -NOPLUGIN_LDFLAGS = -lib90_old_stats_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib90_old_stats_plugin.la - -lib90_old_stats_plugin_la_SOURCES = \ - mail-stats.c \ - mail-stats-fill.c \ - mail-stats-connection.c \ - stats-plugin.c - -noinst_HEADERS = \ - mail-stats.h \ - mail-stats-connection.h \ - stats-plugin.h - -old_stats_moduledir = $(moduledir)/old-stats -old_stats_module_LTLIBRARIES = libold_stats_mail.la - -libold_stats_mail_la_LDFLAGS = -module -avoid-version -libold_stats_mail_la_LIBADD = mail-stats.lo $(LIBDOVECOT) -libold_stats_mail_la_DEPENDENCIES = mail-stats.lo -libold_stats_mail_la_SOURCES = diff --git a/src/plugins/pop3-migration/Makefile.am b/src/plugins/pop3-migration/Makefile.am deleted file mode 100644 index f58d06532e..0000000000 --- a/src/plugins/pop3-migration/Makefile.am +++ /dev/null @@ -1,41 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index - -NOPLUGIN_LDFLAGS = -lib05_pop3_migration_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib05_pop3_migration_plugin.la - -lib05_pop3_migration_plugin_la_SOURCES = \ - pop3-migration-plugin.c - -noinst_HEADERS = \ - pop3-migration-plugin.h - -noinst_PROGRAMS = $(test_programs) - -test_programs = \ - test-pop3-migration-plugin - -test_libs = \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) -test_deps = \ - $(module_LTLIBRARIES) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -test_pop3_migration_plugin_SOURCES = test-pop3-migration-plugin.c -test_pop3_migration_plugin_LDADD = pop3-migration-plugin.lo $(test_libs) -test_pop3_migration_plugin_DEPENDENCIES = $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/plugins/push-notification/Makefile.am b/src/plugins/push-notification/Makefile.am deleted file mode 100644 index c065e3853e..0000000000 --- a/src/plugins/push-notification/Makefile.am +++ /dev/null @@ -1,83 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-http \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/plugins/notify - -NOPLUGIN_LDFLAGS = -lib20_push_notification_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = lib20_push_notification_plugin.la - -if DOVECOT_PLUGIN_DEPS -notify_deps = ../notify/lib15_notify_plugin.la -endif - -lib20_push_notification_plugin_la_LIBADD = \ - $(notify_deps) - -lib20_push_notification_plugin_la_SOURCES = \ - push-notification-driver-dlog.c \ - push-notification-driver-ox.c \ - push-notification-drivers.c \ - push-notification-event-flagsclear.c \ - push-notification-event-flagsset.c \ - push-notification-event-mailboxcreate.c \ - push-notification-event-mailboxdelete.c \ - push-notification-event-mailboxrename.c \ - push-notification-event-mailboxsubscribe.c \ - push-notification-event-mailboxunsubscribe.c \ - push-notification-event-messageappend.c \ - push-notification-event-messageexpunge.c \ - push-notification-event-messagenew.c \ - push-notification-event-messageread.c \ - push-notification-event-messagetrash.c \ - push-notification-event-message-common.c \ - push-notification-events.c \ - push-notification-events-rfc5423.c \ - push-notification-plugin.c \ - push-notification-triggers.c \ - push-notification-txn-mbox.c \ - push-notification-txn-msg.c - -headers = \ - push-notification-drivers.h \ - push-notification-event-flagsclear.h \ - push-notification-event-flagsset.h \ - push-notification-event-mailboxcreate.h \ - push-notification-event-mailboxdelete.h \ - push-notification-event-mailboxrename.h \ - push-notification-event-mailboxsubscribe.h \ - push-notification-event-mailboxunsubscribe.h \ - push-notification-event-message-common.h \ - push-notification-event-messageappend.h \ - push-notification-event-messageexpunge.h \ - push-notification-event-messagenew.h \ - push-notification-event-messageread.h \ - push-notification-event-messagetrash.h \ - push-notification-events.h \ - push-notification-events-rfc5423.h \ - push-notification-plugin.h \ - push-notification-triggers.h \ - push-notification-txn-mbox.h \ - push-notification-txn-msg.h - -pkginc_libdir = $(pkgincludedir) -pkginc_lib_HEADERS = $(headers) - -if HAVE_LUA -lib22_push_notification_lua_plugin_la_CFLAGS = $(AM_CPPFLAGS) \ - -I$(top_srcdir)/src/lib-lua \ - -I$(top_srcdir)/src/plugins/mail-lua \ - $(LUA_CFLAGS) -lib22_push_notification_lua_plugin_la_LDFLAGS = module -avoid-version -module_LTLIBRARIES += \ - lib22_push_notification_lua_plugin.la -lib22_push_notification_lua_plugin_la_LIBADD = $(notify_deps) $(LUA_LIBS) -lib22_push_notification_lua_plugin_la_SOURCES = \ - push-notification-driver-lua.c -endif diff --git a/src/plugins/quota-clone/Makefile.am b/src/plugins/quota-clone/Makefile.am deleted file mode 100644 index ed4ba6872b..0000000000 --- a/src/plugins/quota-clone/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/plugins/quota - -NOPLUGIN_LDFLAGS = -lib20_quota_clone_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_quota_clone_plugin.la - -lib20_quota_clone_plugin_la_SOURCES = \ - quota-clone-plugin.c - -noinst_HEADERS = \ - quota-clone-plugin.h diff --git a/src/plugins/quota/Makefile.am b/src/plugins/quota/Makefile.am deleted file mode 100644 index e8bad8c414..0000000000 --- a/src/plugins/quota/Makefile.am +++ /dev/null @@ -1,144 +0,0 @@ -doveadm_moduledir = $(moduledir)/doveadm - -pkglibexecdir = $(libexecdir)/dovecot -pkglibexec_PROGRAMS = quota-status - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-test \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-imap-client \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/imapc \ - -I$(top_srcdir)/src/lib-storage/index/maildir \ - -I$(top_srcdir)/src/lib-program-client \ - -I$(top_srcdir)/src/doveadm \ - $(LIBTIRPC_CFLAGS) - -NOPLUGIN_LDFLAGS = -lib10_doveadm_quota_plugin_la_LDFLAGS = -module -avoid-version -lib10_quota_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib10_quota_plugin.la - -quota_dist_sources = \ - quota.c \ - quota-count.c \ - quota-fs.c \ - quota-dict.c \ - quota-dirsize.c \ - quota-imapc.c \ - quota-maildir.c \ - quota-plugin.c \ - quota-storage.c \ - quota-util.c - -quota_common_objects = \ - quota.lo \ - quota-count.lo \ - quota-fs.lo \ - quota-dict.lo \ - quota-dirsize.lo \ - quota-imapc.lo \ - quota-maildir.lo \ - quota-plugin.lo \ - quota-storage.lo \ - quota-util.lo \ - $(RQUOTA_XDR_LO) - -lib10_quota_plugin_la_SOURCES = $(quota_dist_sources) -nodist_lib10_quota_plugin_la_SOURCES = $(RQUOTA_XDR) -lib10_quota_plugin_la_LIBADD = $(QUOTA_LIBS) - -doveadm_module_LTLIBRARIES = \ - lib10_doveadm_quota_plugin.la - -lib10_doveadm_quota_plugin_la_SOURCES = \ - doveadm-quota.c - -quota_status_SOURCES = \ - quota-status.c \ - quota-status-settings.c - -quota_status_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS) -quota_status_LDADD = \ - $(quota_common_objects) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) \ - $(QUOTA_LIBS) \ - $(BINARY_LDFLAGS) -quota_status_DEPENDENCIES = \ - $(quota_common_objects) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -if HAVE_RQUOTA -RQUOTA_XDR = rquota_xdr.c -RQUOTA_XDR_LO = rquota_xdr.lo -#RQUOTA_X = /usr/include/rpcsvc/rquota.x -RQUOTA_X = $(srcdir)/rquota.x -rquota_xdr.c: Makefile rquota.h - if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ - cp $(RQUOTA_X) $(top_builddir)/src/plugins/quota/; \ - fi; \ - (echo '#include "lib.h"'; \ - echo '#undef FALSE'; \ - echo '#undef TRUE'; \ - echo '#include '; \ - $(RPCGEN) -c $(top_builddir)/src/plugins/quota/rquota.x | \ - sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \ - -e 's,!xdr_,0 == xdr_,' \ - -e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \ - -e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \ - -e 's/^static char rcsid.*//' ) > rquota_xdr.c - -rquota.h: Makefile $(RQUOTA_X) - $(RPCGEN) -h $(RQUOTA_X) > rquota.h - -quota-fs.lo: rquota.h - -endif - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = \ - quota.h \ - quota-fs.h \ - quota-plugin.h \ - quota-private.h -noinst_HEADERS = \ - quota-status-settings.h - -EXTRA_DIST = rquota.x - -clean-generic: - if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \ - rm -f $(top_builddir)/src/plugins/quota/rquota.x; \ - fi; \ - rm -f rquota_xdr.c rquota.h - -test_programs = \ - test-quota-util -noinst_PROGRAMS = $(test_programs) - -test_libs = \ - ../../lib-test/libtest.la \ - ../../lib/liblib.la -test_deps = $(noinst_LTLIBRARIES) $(test_libs) - -test_quota_util_SOURCES = test-quota-util.c -test_quota_util_LDADD = quota-util.lo $(test_libs) -test_quota_util_DEPENDENCIES = quota-util.lo $(test_deps) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done diff --git a/src/plugins/replication/Makefile.am b/src/plugins/replication/Makefile.am deleted file mode 100644 index 461935cebc..0000000000 --- a/src/plugins/replication/Makefile.am +++ /dev/null @@ -1,25 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/replication \ - -I$(top_srcdir)/src/plugins/notify - -NOPLUGIN_LDFLAGS = -lib20_replication_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_replication_plugin.la - -if DOVECOT_PLUGIN_DEPS -lib20_replication_plugin_la_LIBADD = \ - ../notify/lib15_notify_plugin.la -endif - -lib20_replication_plugin_la_SOURCES = \ - replication-plugin.c - -noinst_HEADERS = \ - replication-plugin.h diff --git a/src/plugins/trash/Makefile.am b/src/plugins/trash/Makefile.am deleted file mode 100644 index af15d13637..0000000000 --- a/src/plugins/trash/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/plugins/quota - -NOPLUGIN_LDFLAGS = -lib11_trash_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib11_trash_plugin.la - -if DOVECOT_PLUGIN_DEPS -lib11_trash_plugin_la_LIBADD = \ - ../quota/lib10_quota_plugin.la -endif - -lib11_trash_plugin_la_SOURCES = \ - trash-plugin.c - -noinst_HEADERS = \ - trash-plugin.h diff --git a/src/plugins/virtual/Makefile.am b/src/plugins/virtual/Makefile.am deleted file mode 100644 index 9ba873db54..0000000000 --- a/src/plugins/virtual/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-imap-storage - -NOPLUGIN_LDFLAGS = -lib20_virtual_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_virtual_plugin.la - -lib20_virtual_plugin_la_SOURCES = \ - virtual-config.c \ - virtual-mail.c \ - virtual-plugin.c \ - virtual-search.c \ - virtual-storage.c \ - virtual-save.c \ - virtual-sync.c \ - virtual-transaction.c - -noinst_HEADERS = \ - virtual-plugin.h \ - virtual-storage.h \ - virtual-transaction.h diff --git a/src/plugins/welcome/Makefile.am b/src/plugins/welcome/Makefile.am deleted file mode 100644 index 98968f5dc0..0000000000 --- a/src/plugins/welcome/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage - -NOPLUGIN_LDFLAGS = -lib99_welcome_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib99_welcome_plugin.la - -lib99_welcome_plugin_la_SOURCES = \ - welcome-plugin.c diff --git a/src/plugins/zlib/Makefile.am b/src/plugins/zlib/Makefile.am deleted file mode 100644 index 45c3d76c95..0000000000 --- a/src/plugins/zlib/Makefile.am +++ /dev/null @@ -1,24 +0,0 @@ -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-compression \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/dbox-common - -NOPLUGIN_LDFLAGS = -lib20_zlib_plugin_la_LDFLAGS = -module -avoid-version - -module_LTLIBRARIES = \ - lib20_zlib_plugin.la - -lib20_zlib_plugin_la_LIBADD = \ - ../../lib-compression/libcompression.la - -lib20_zlib_plugin_la_SOURCES = \ - zlib-plugin.c - -noinst_HEADERS = \ - zlib-plugin.h diff --git a/src/pop3-login/Makefile.am b/src/pop3-login/Makefile.am deleted file mode 100644 index 0cba57c0d7..0000000000 --- a/src/pop3-login/Makefile.am +++ /dev/null @@ -1,34 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = pop3-login - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-sasl \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/login-common \ - $(BINARY_CFLAGS) - -pop3_login_LDADD = \ - $(LIBDOVECOT_LOGIN) \ - $(LIBDOVECOT) \ - $(SSL_LIBS) \ - $(BINARY_LDFLAGS) - -pop3_login_DEPENDENCIES = \ - $(LIBDOVECOT_LOGIN) \ - $(LIBDOVECOT_DEPS) - -pop3_login_SOURCES = \ - client.c \ - client-authenticate.c \ - pop3-login-settings.c \ - pop3-proxy.c - -noinst_HEADERS = \ - client.h \ - client-authenticate.h \ - pop3-login-settings.h \ - pop3-proxy.h diff --git a/src/pop3/Makefile.am b/src/pop3/Makefile.am deleted file mode 100644 index fe49741821..0000000000 --- a/src/pop3/Makefile.am +++ /dev/null @@ -1,39 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = pop3 - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - $(BINARY_CFLAGS) - -pop3_LDFLAGS = -export-dynamic \ - $(BINARY_LDFLAGS) - -pop3_LDADD = \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) -pop3_DEPENDENCIES = \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -pop3_SOURCES = \ - main.c \ - pop3-client.c \ - pop3-commands.c \ - pop3-settings.c - -headers = \ - pop3-capability.h \ - pop3-client.h \ - pop3-commands.h \ - pop3-common.h \ - pop3-settings.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/replication/Makefile.am b/src/replication/Makefile.am deleted file mode 100644 index c9ddbd088b..0000000000 --- a/src/replication/Makefile.am +++ /dev/null @@ -1,4 +0,0 @@ -SUBDIRS = aggregator replicator - -noinst_HEADERS = \ - replication-common.h diff --git a/src/replication/aggregator/Makefile.am b/src/replication/aggregator/Makefile.am deleted file mode 100644 index a0b350131b..0000000000 --- a/src/replication/aggregator/Makefile.am +++ /dev/null @@ -1,29 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = aggregator - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/replication \ - -DPKG_STATEDIR=\""$(statedir)"\" \ - $(BINARY_CFLAGS) - -aggregator_LDFLAGS = -export-dynamic \ - $(BINARY_LDFLAGS) - -aggregator_LDADD = $(LIBDOVECOT) -aggregator_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -aggregator_SOURCES = \ - aggregator.c \ - aggregator-settings.c \ - notify-connection.c \ - replicator-connection.c - -noinst_HEADERS = \ - aggregator-settings.h \ - notify-connection.h \ - replicator-connection.h diff --git a/src/replication/replicator/Makefile.am b/src/replication/replicator/Makefile.am deleted file mode 100644 index a0ac563f9c..0000000000 --- a/src/replication/replicator/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = replicator - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/replication \ - -DPKG_STATEDIR=\""$(statedir)"\" \ - $(BINARY_CFLAGS) - -replicator_LDFLAGS = -export-dynamic \ - $(BINARY_LDFLAGS) - -replicator_LDADD = $(LIBDOVECOT) -replicator_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -replicator_SOURCES = \ - doveadm-connection.c \ - dsync-client.c \ - replicator.c \ - replicator-brain.c \ - replicator-queue.c \ - replicator-queue-auth.c \ - replicator-settings.c \ - notify-connection.c - -noinst_HEADERS = \ - doveadm-connection.h \ - dsync-client.h \ - replicator-brain.h \ - replicator-queue.h \ - replicator-settings.h \ - notify-connection.h diff --git a/src/stats/Makefile.am b/src/stats/Makefile.am deleted file mode 100644 index 59fda44552..0000000000 --- a/src/stats/Makefile.am +++ /dev/null @@ -1,101 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = stats - -noinst_LTLIBRARIES = libstats_local.la - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-http \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-test \ - $(BINARY_CFLAGS) - -stats_LDADD = \ - $(noinst_LTLIBRARIES) \ - $(LIBDOVECOT) \ - $(DOVECOT_SSL_LIBS) \ - $(BINARY_LDFLAGS) \ - -lm - -stats_DEPENDENCIES = \ - $(noinst_LTLIBRARIES) \ - $(DOVECOT_SSL_LIBS) \ - $(LIBDOVECOT_DEPS) - -stats_services = \ - stats-service-openmetrics.c - -stats_SOURCES = \ - main.c - -libstats_local_la_SOURCES = \ - client-reader.c \ - client-writer.c \ - client-http.c \ - event-exporter-fmt.c \ - event-exporter-fmt-json.c \ - event-exporter-fmt-none.c \ - event-exporter-fmt-tab-text.c \ - event-exporter-transport-drop.c \ - event-exporter-transport-http-post.c \ - event-exporter-transport-log.c \ - $(stats_services) \ - stats-service.c \ - stats-event-category.c \ - stats-metrics.c \ - stats-settings.c - -noinst_HEADERS = \ - stats-common.h \ - client-reader.h \ - client-writer.h \ - client-http.h\ - event-exporter.h \ - stats-service.h \ - stats-service-private.h \ - stats-event-category.h \ - stats-metrics.h \ - stats-settings.h \ - test-stats-common.h - -test_libs = \ - $(noinst_LTLIBRARIES) \ - $(DOVECOT_SSL_LIBS) \ - $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) \ - -lm - -test_deps = \ - $(noinst_LTLIBRARIES) \ - $(DOVECOT_SSL_LIBS) \ - $(LIBDOVECOT_DEPS) - -test_stats_metrics_SOURCES = test-stats-metrics.c test-stats-common.c -test_stats_metrics_LDADD = $(test_libs) -test_stats_metrics_DEPENDENCIES = $(test_deps) - -test_client_writer_SOURCES = test-client-writer.c test-stats-common.c -test_client_writer_LDADD = $(test_libs) -test_client_writer_DEPENDENCIES = $(test_deps) - -test_client_reader_SOURCES = test-client-reader.c test-stats-common.c -test_client_reader_LDADD = $(test_libs) -test_client_reader_DEPENDENCIES = $(test_deps) - -test_programs = test-stats-metrics test-client-writer test-client-reader -noinst_PROGRAMS = $(test_programs) - -check-local: - for bin in $(test_programs); do \ - if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ - done - -LIBDOVECOT_TEST_DEPS = \ - ../lib-ssl-iostream/libssl_iostream.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la -LIBDOVECOT_TEST = \ - $(LIBDOVECOT_TEST_DEPS) diff --git a/src/submission-login/Makefile.am b/src/submission-login/Makefile.am deleted file mode 100644 index 2385fafe1d..0000000000 --- a/src/submission-login/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = submission-login - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-sasl \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-smtp \ - -I$(top_srcdir)/src/login-common - -submission_login_LDADD = \ - $(LIBDOVECOT_LOGIN) \ - $(LIBDOVECOT) \ - $(SSL_LIBS) -submission_login_DEPENDENCIES = \ - $(LIBDOVECOT_LOGIN) \ - $(LIBDOVECOT_DEPS) - -submission_login_SOURCES = \ - client.c \ - client-authenticate.c \ - submission-login-settings.c \ - submission-proxy.c - -noinst_HEADERS = \ - client.h \ - client-authenticate.h \ - submission-login-settings.h \ - submission-proxy.h diff --git a/src/submission/Makefile.am b/src/submission/Makefile.am deleted file mode 100644 index c70e6c44b0..0000000000 --- a/src/submission/Makefile.am +++ /dev/null @@ -1,54 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = submission - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-ssl-iostream \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-imap-storage \ - -I$(top_srcdir)/src/lib-imap-urlauth \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/lib-storage/index \ - -I$(top_srcdir)/src/lib-storage/index/raw \ - -I$(top_srcdir)/src/lib-smtp - -urlauth_libs = \ - $(top_builddir)/src/lib-imap-urlauth/libimap-urlauth.la - -submission_LDFLAGS = -export-dynamic - -submission_LDADD = \ - $(urlauth_libs) \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) -submission_DEPENDENCIES = \ - $(urlauth_libs) \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) - -submission_SOURCES = \ - main.c \ - submission-backend.c \ - submission-backend-relay.c \ - submission-recipient.c \ - submission-client.c \ - submission-commands.c \ - submission-settings.c - -headers = \ - submission-common.h \ - submission-backend.h \ - submission-backend-relay.h \ - submission-commands.h \ - submission-recipient.h \ - submission-client.h \ - submission-settings.h - -pkginc_libdir=$(pkgincludedir) -pkginc_lib_HEADERS = $(headers) diff --git a/src/util/Makefile.am b/src/util/Makefile.am deleted file mode 100644 index 2c7621d891..0000000000 --- a/src/util/Makefile.am +++ /dev/null @@ -1,90 +0,0 @@ -pkglibexecdir = $(libexecdir)/dovecot - -pkglibexec_PROGRAMS = \ - rawlog \ - script \ - script-login \ - $(TCPWRAP_BIN) \ - gdbhelper \ - maildirlock - -noinst_PROGRAMS = \ - test-fs - -AM_CPPFLAGS = \ - -I$(top_srcdir)/src/lib \ - -I$(top_srcdir)/src/lib-auth \ - -I$(top_srcdir)/src/lib-dict \ - -I$(top_srcdir)/src/lib-fs \ - -I$(top_srcdir)/src/lib-settings \ - -I$(top_srcdir)/src/lib-master \ - -I$(top_srcdir)/src/lib-mail \ - -I$(top_srcdir)/src/lib-imap \ - -I$(top_srcdir)/src/lib-index \ - -I$(top_srcdir)/src/lib-storage \ - -I$(top_srcdir)/src/auth \ - -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \ - -DPKG_RUNDIR=\""$(rundir)"\" \ - $(BINARY_CFLAGS) - -test_fs_SOURCES = test-fs.c -test_fs_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) -test_fs_DEPENDENCIES = $(LIBDOVECOT_DEPS) - -rawlog_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -rawlog_DEPENDENCIES = $(LIBDOVECOT_DEPS) -rawlog_SOURCES = \ - rawlog.c - -script_login_LDADD = \ - $(LIBDOVECOT_STORAGE) \ - $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -script_login_DEPENDENCIES = \ - $(LIBDOVECOT_STORAGE_DEPS) \ - $(LIBDOVECOT_DEPS) -script_login_SOURCES = \ - script-login.c - -script_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) -script_DEPENDENCIES = $(LIBDOVECOT_DEPS) -script_SOURCES = \ - script.c \ - health-check-settings.c - -if TCPWRAPPERS -TCPWRAP_BIN = tcpwrap -tcpwrap_LDADD = $(LIBDOVECOT) $(LIBWRAP_LIBS) \ - $(BINARY_LDFLAGS) - -tcpwrap_DEPENDENCIES = $(LIBDOVECOT_DEPS) -tcpwrap_SOURCES = \ - tcpwrap.c \ - tcpwrap-settings.c -endif - -gdbhelper_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -gdbhelper_DEPENDENCIES = $(LIBDOVECOT_DEPS) -gdbhelper_SOURCES = \ - gdbhelper.c - -maildirlock_LDADD = $(LIBDOVECOT) \ - $(BINARY_LDFLAGS) - -maildirlock_DEPENDENCIES = $(LIBDOVECOT_DEPS) -maildirlock_SOURCES = \ - maildirlock.c - -pkglibexec_SCRIPTS = health-check.sh - -bin_SCRIPTS = dovecot-sysreport - -EXTRA_DIST = $(pkglibexec_SCRIPTS) \ - $(bin_SCRIPTS) \ No newline at end of file diff --git a/stamp.h.in b/stamp.h.in deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/update-version.sh b/update-version.sh deleted file mode 100644 index d7b149db1a..0000000000 --- a/update-version.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/bin/sh - -SRCDIR="${1:-`pwd`}" -BUILDDIR="${2:-`pwd`}" -VERSION_H="dovecot-version.h" -VERSION_HT="dovecot-version.h.tmp" -DOVECOT_BUILD_INFO=${DOVECOT_BUILD_INFO:-DOVECOT_VERSION_FULL} - -abspath() -{ #$1 the path - #$2 1 -> SRCDIR || 2 -> BUILDDIR - old=`pwd` - cd "${1}" - if [ ${2} -eq 1 ]; then - SRCDIR=`pwd` - else - BUILDDIR=`pwd` - fi - cd "$old" -} - -abspath "${SRCDIR}" 1 -abspath "${BUILDDIR}" 2 - -# when using a different BUILDDIR just copy from SRCDIR, if there is no .git -if [ "${BUILDDIR}" != "${SRCDIR}" ]; then - if [ ! -d "${SRCDIR}/.git" ] && [ -f "${SRCDIR}/${VERSION_H}" ]; then - cmp -s "${SRCDIR}/${VERSION_H}" "${BUILDDIR}/${VERSION_H}" - if [ $? -ne 0 ]; then - cp "${SRCDIR}/${VERSION_H}" "${BUILDDIR}/${VERSION_H}" - exit 0 - fi - fi -fi - -# Don't generate dovecot-version.h if the source tree has no .git dir but -# a dovecot-version.h. This may be the result of a release/nightly tarball. -[ ! -d "${SRCDIR}/.git" ] && [ -f "${BUILDDIR}/${VERSION_H}" ] && exit 0 - -# Lets generate the dovecot-version.h -[ -f "${BUILDDIR}/${VERSION_HT}" ] && rm -f "${BUILDDIR}/${VERSION_HT}" -if true; then - GITID=`git --git-dir ${SRCDIR}/.git rev-parse --short HEAD` - cat > "${BUILDDIR}/${VERSION_HT}" < "${BUILDDIR}/${VERSION_HT}" <