dovecot-1.2: configure: Show also list of disabled passdbs/userd...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jun 28 01:01:24 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/9214dd33a2a5
changeset: 9164:9214dd33a2a5
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jun 27 18:01:18 2009 -0400
description:
configure: Show also list of disabled passdbs/userdbs/sql drivers.

diffstat:

1 file changed, 123 insertions(+), 41 deletions(-)
configure.in |  164 +++++++++++++++++++++++++++++++++++++++++++---------------

diffs (truncated from 321 to 300 lines):

diff -r 3270d0867546 -r 9214dd33a2a5 configure.in
--- a/configure.in	Sat Jun 27 17:51:24 2009 -0400
+++ b/configure.in	Sat Jun 27 18:01:18 2009 -0400
@@ -256,6 +256,7 @@ elif test "$sql_drivers" = "no"; then
   # --without-sql-drivers given
   sql_drivers=
 fi
+not_sql_drivers=
 
 AC_ARG_WITH(moduledir,
 [  --with-moduledir=DIR    Base directory for dynamically loadable modules],
@@ -1617,15 +1618,21 @@ dnl **
 
 userdb=""
 passdb=""
+not_userdb=""
+not_passdb=""
 
 if test $want_static_userdb != no; then
         AC_DEFINE(USERDB_STATIC,, Build with static userdb support)
 	userdb="$userdb static"
+else
+	not_userdb="$not_userdb static"
 fi
 
 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
 
 if test $want_passwd != no; then
@@ -1633,6 +1640,9 @@ if test $want_passwd != no; then
         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
@@ -1640,13 +1650,17 @@ if test $want_passwd_file != no; then
         AC_DEFINE(PASSDB_PASSWD_FILE,, Build with passwd-file support)
 	userdb="$userdb passwd-file"
 	passdb="$passdb passwd-file"
-fi
-
+else
+	not_passdb="$not_passdb passwd-file"
+	not_userdb="$not_userdb passwd-file"
+fi
+
+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)
-      passdb="$passdb shadow"
+      have_shadow=yes
     ], [
       if test $want_shadow = yes; then
         AC_ERROR([Can't build with shadow support: shadow.h not found])
@@ -1658,6 +1672,11 @@ if test $want_shadow != no; then
     fi
   ])
 fi
+if test $have_shadow = no; then
+  not_passdb="$not_passdb shadow"
+else
+  passdb="$passdb shadow"
+fi
 
 if test $want_pam != no; then
 	AC_CHECK_LIB(pam, pam_start, [
@@ -1673,19 +1692,6 @@ if test $want_pam != no; then
 				  Define if you have pam/pam_appl.h)
 			have_pam=yes
 		])
-
-		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])
-		fi
 	], [
 	  if test $want_pam = yes; then
 	    AC_ERROR([Can't build with PAM support: libpam not found])
@@ -1693,22 +1699,45 @@ if test $want_pam != no; then
 	])
 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
+
 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"
-fi
-
+else
+	not_passdb="$not_passdb checkpassword"
+	not_userdb="$not_userdb checkpassword"
+fi
+
+have_bsdauth=no
 if test $want_bsdauth != no; then
 	AC_CHECK_FUNC(auth_userokay, [
 		AC_DEFINE(PASSDB_BSDAUTH,, Build with BSD authentication support)
-		passdb="$passdb bsdauth"
+		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
 
 have_gssapi=no
@@ -1822,11 +1851,12 @@ fi
 fi
 AM_CONDITIONAL(GSSAPI_PLUGIN, test "$have_gssapi_plugin" = "yes")
 
+have_sia=no
 if test $want_sia != no; then
 	AC_CHECK_FUNC(sia_validate_user, [
 		AC_DEFINE(PASSDB_SIA,, Build with Tru64 SIA support)
-		passdb="$passdb sia"
 		AUTH_LIBS="$AUTH_LIBS -depth_ring_search"
+		have_sia=yes
 	], [
 	  if test $want_sia = yes; then
 	    AC_ERROR([Can't build with SIA support: sia_validate_user() not found])
@@ -1834,6 +1864,13 @@ if test $want_sia != no; then
 	])
 fi
 
+if test $have_sia = no; then
+  not_passdb="$not_passdb sia"
+else
+  passdb="$passdb sia"
+fi
+
+have_ldap=no
 if test $want_ldap != no; then
 	AC_CHECK_LIB(ldap, ldap_init, [
 		AC_CHECK_HEADER(ldap.h, [
@@ -1852,13 +1889,7 @@ if test $want_ldap != no; then
 
         		AC_DEFINE(USERDB_LDAP,, Build with LDAP support)
 		        AC_DEFINE(PASSDB_LDAP,, Build with LDAP support)
-			userdb="$userdb ldap"
-			passdb="$passdb ldap"
-			if test $want_ldap = plugin; then
-				have_ldap_plugin=yes
-				userdb="$userdb (plugin)"
-				passdb="$passdb (plugin)"
-			fi
+			have_ldap=yes
 		], [
 		  if test $want_ldap != auto; then
 		    AC_ERROR([Can't build with LDAP support: ldap.h not found])
@@ -1871,6 +1902,19 @@ if test $want_ldap != no; then
 	])
 fi
 AM_CONDITIONAL(LDAP_PLUGIN, test "$have_ldap_plugin" = "yes")
+
+if test $have_ldap = no; then
+  not_passdb="$not_passdb ldap"
+  not_userdb="$not_userdb ldap"
+else
+  userdb="$userdb ldap"
+  passdb="$passdb ldap"
+  if test $want_ldap = plugin; then
+    have_ldap_plugin=yes
+    userdb="$userdb (plugin)"
+    passdb="$passdb (plugin)"
+  fi
+fi
 
 dict_drivers=client
 
@@ -2066,8 +2110,12 @@ if test "$found_sql_drivers" != "" || te
 	AUTH_LIBS="$AUTH_LIBS $SQL_LIBS"
 	passdb="$passdb sql"
 	userdb="$userdb sql"
-fi
-
+else
+	not_passdb="$not_passdb sql"
+	not_userdb="$not_userdb sql"
+fi
+
+have_vpopmail=no
 if test $want_vpopmail != no; then
 	vpop_etc="$vpopmail_home/etc"
 	AC_MSG_CHECKING([for vpopmail configuration at $vpop_etc/lib_deps])
@@ -2081,15 +2129,22 @@ if test $want_vpopmail != no; then
 		AUTH_LIBS="$AUTH_LIBS `cat $vpop_etc/lib_deps`"
 		AC_DEFINE(USERDB_VPOPMAIL,, Build with vpopmail support)
 		AC_DEFINE(PASSDB_VPOPMAIL,, Build with vpopmail support)
-		userdb="$userdb vpopmail"
-		passdb="$passdb vpopmail"
 		AC_MSG_RESULT(found)
+		have_vpopmail=yes
 	else
 		AC_MSG_RESULT(not found)
 		if test $want_vpopmail = yes; then
 		  AC_ERROR([Can't build with vpopmail support: $vpop_etc/lib_deps not found])
 		fi
 	fi
+fi
+
+if test $have_vpopmail = no; then
+  not_passdb="$not_passdb vpopmail"
+  not_userdb="$not_userdb vpopmail"
+else
+  userdb="$userdb vpopmail"
+  passdb="$passdb vpopmail"
 fi
 
 AC_CHECK_FUNC(crypt,, [
@@ -2127,7 +2182,6 @@ if test $want_nss != no; then
       enum nss_status status = NSS_STATUS_TRYAGAIN;
     ], [
       AC_DEFINE(USERDB_NSS,, Build with NSS module support)
-      userdb="$userdb nss"
       have_nss=yes
     ], [
       if test $want_nss = yes; then
@@ -2135,6 +2189,12 @@ if test $want_nss != no; then
       fi
     ])
   fi
+fi
+
+if test $have_nss = no; then
+  not_userdb="$not_userdb nss"
+else
+  userdb="$userdb nss"
 fi
 
 AC_SUBST(AUTH_CFLAGS)
@@ -2244,6 +2304,15 @@ for driver in $sql_drivers; do
     build_sqlite=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
 
 AC_SUBST(sql_drivers)
 AM_CONDITIONAL(BUILD_PGSQL, test "$build_pgsql" = "yes")
@@ -2414,13 +2483,26 @@ if test "$want_sql" = "plugin"; then
   sql_drivers="$sql_drivers (plugins)"
 fi
 
+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'`
+
 echo
-echo "Install prefix ...................... : $prefix"
-echo "File offsets ........................ : ${offt_bits}bit"
-echo "I/O loop method ..................... : $ioloop"
-echo "File change notification method ..... : $have_notify"
-echo "Building with SSL support ........... : $have_ssl"
-echo "Building with GSSAPI support ........ : $have_gssapi"


More information about the dovecot-cvs mailing list