dovecot-2.2: Renamed configure.in to configure.ac.

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 29 18:02:06 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/769be5b43fa6
changeset: 15338:769be5b43fa6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 29 18:01:54 2012 +0200
description:
Renamed configure.in to configure.ac.
Apparently automakes in future won't support configure.in anymore.

diffstat:

 TODO         |     2 +
 configure.ac |  2874 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.in |  2874 ----------------------------------------------------------
 3 files changed, 2876 insertions(+), 2874 deletions(-)

diffs (truncated from 5768 to 300 lines):

diff -r 1b46c1bf9d1e -r 769be5b43fa6 TODO
--- a/TODO	Mon Oct 29 17:55:35 2012 +0200
+++ b/TODO	Mon Oct 29 18:01:54 2012 +0200
@@ -10,6 +10,8 @@
    imap-urlauth-client.c (AFTER destroying the worker)
      - special response in the control connection to make the imap-urlauth
        master wait before starting a new worker
+ - finish dsync rewrite
+ - imaptest: add condstore, qresync tests
 
  - settings parsing is horribly bloaty
  - doveadm: if running via doveadm-server and it fails, say something about
diff -r 1b46c1bf9d1e -r 769be5b43fa6 configure.ac
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configure.ac	Mon Oct 29 18:01:54 2012 +0200
@@ -0,0 +1,2874 @@
+AC_PREREQ([2.59])
+AC_INIT([Dovecot],[2.2.UNSTABLE],[dovecot at dovecot.org])
+AC_DEFINE_UNQUOTED([DOVECOT_ABI_VERSION], "2.2.ABIv0($PACKAGE_VERSION)", [Dovecot ABI version])
+AC_CONFIG_SRCDIR([src])
+
+AM_INIT_AUTOMAKE([foreign])
+
+AM_MAINTAINER_MODE
+PKG_PROG_PKG_CONFIG
+
+ACLOCAL_AMFLAGS='-I $(top_srcdir)'
+AC_SUBST(ACLOCAL_AMFLAGS)
+
+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
+])
+
+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(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, dnotify, 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=yes|plugin Build with GSSAPI authentication support]),
+  TEST_WITH(gssapi, $withval, plugin),
+  want_gssapi=no)
+
+AC_ARG_WITH(sia,
+AS_HELP_STRING([--with-sia], [Build with Tru64 SIA support]),
+  TEST_WITH(sia, $withval),
+  want_sia=no)
+
+AC_ARG_WITH(ldap,
+AS_HELP_STRING([--with-ldap=yes|plugin], [Build with LDAP support]),
+  TEST_WITH(ldap, $withval, plugin),
+  want_ldap=no)
+
+AC_ARG_WITH(vpopmail,
+AS_HELP_STRING([--with-vpopmail], [Build with vpopmail support (auto)]),
+	if test x$withval = xno; then
+		want_vpopmail=no
+	else
+		if test x$withval = xyes || test x$withval = xauto; then
+			vpopmail_home="`echo ~vpopmail`"
+			want_vpopmail=$withval
+		else
+			vpopmail_home="$withval"
+			want_vpopmail=yes
+		fi
+	fi, [
+		want_vpopmail=no
+	])
+
+# 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
+
+dnl The --with-sql is useful only if Dovecot is being built with all the SQL
+dnl drivers as modules. If any SQL driver is built-in, this option is ignored.
+AC_ARG_WITH(sql,
+AS_HELP_STRING([--with-sql=yes|plugin], [Build with generic SQL support]),
+  TEST_WITH(sql, $withval, plugin),
+  want_sql=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(lucene,
+AS_HELP_STRING([--with-lucene], [Build with CLucene full text search support]),
+  TEST_WITH(lucene, $withval),
+  want_lucene=no)
+AM_CONDITIONAL(BUILD_LUCENE, test "$want_lucene" = "yes")
+
+AC_ARG_WITH(stemmer,
+AS_HELP_STRING([--with-stemmer], [Build with libstemmer support (for CLucene)]),
+  TEST_WITH(stemmer, $withval),
+  want_stemmer=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(zlib,
+AS_HELP_STRING([--with-zlib], [Build with zlib compression support]),
+  TEST_WITH(zlib, $withval),
+  want_zlib=auto)
+
+AC_ARG_WITH(bzlib,
+AS_HELP_STRING([--with-bzlib], [Build with bzlib compression support]),
+  TEST_WITH(bzlib, $withval),
+  want_bzlib=auto)
+
+AC_ARG_WITH(libcap,
+AS_HELP_STRING([--with-libcap], [Build with libcap support (Dropping capabilities).]),
+  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([systemdsystemunitdir],
+AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files (auto=detect)]), [
+	if test "$withval" = "auto"; then
+		systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
+	elif test "$withval" != "no"; then
+		systemdsystemunitdir=$withval
+	fi
+], [])
+if test "$systemdsystemunitdir" != ""; then
+        AC_SUBST(systemdsystemunitdir)
+        AC_DEFINE(HAVE_SYSTEMD,, Define if you want to use systemd socket activation)
+fi
+AM_CONDITIONAL(HAVE_SYSTEMD, test "$systemdsystemunitdir" != "")
+
+AC_ARG_WITH(gc,
+AS_HELP_STRING([--with-gc], [Use Boehm garbage collector]),
+  TEST_WITH(gc, $withval),
+  want_gc=no)
+
+AC_ARG_WITH(storages,
+AS_HELP_STRING([--with-storages], [Build with specified mail storage formats (mdbox sdbox maildir mbox cydir)]), [
+	if test "$withval" = "yes" || test "$withval" = "no"; then
+		AC_MSG_ERROR([--with-storages needs storage list as parameter])
+	fi
+	mail_storages="shared `echo "$withval"|sed 's/,/ /g'`" ],
+	mail_storages="shared mdbox sdbox maildir mbox cydir")
+AC_SUBST(mail_storages)
+mail_storages="$mail_storages imapc_stub pop3c_stub raw"
+# drop duplicates
+duplicates=`(for i in $mail_storages; do echo $i; done)|sort|uniq -d|xargs echo`
+if test "$duplicates" != ""; then
+  AC_ERROR([Duplicate --with-storages: $duplicates])
+fi
+
+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_PROG_CXX # lucene plugin needs this
+AC_HEADER_STDC
+AC_C_INLINE
+AC_PROG_LIBTOOL


More information about the dovecot-cvs mailing list