[dovecot-cvs] dovecot: If crypt() is in libc, don't link -lcrypt even if it's ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 11 22:40:49 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/1034fcaffcce
changeset: 5692:1034fcaffcce
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 11 22:40:44 2007 +0300
description:
If crypt() is in libc, don't link -lcrypt even if it's found.

diffstat:

1 file changed, 6 insertions(+), 6 deletions(-)
configure.in |   12 ++++++------

diffs (22 lines):

diff -r a28ab423949a -r 1034fcaffcce configure.in
--- a/configure.in	Mon Jun 11 22:40:04 2007 +0300
+++ b/configure.in	Mon Jun 11 22:40:44 2007 +0300
@@ -1769,12 +1769,12 @@ if test $want_vpopmail = yes; then
 	fi
 fi
 
-AC_CHECK_LIB(crypt, crypt, [
-	AUTH_LIBS="-lcrypt $AUTH_LIBS"
-], [
-	AC_CHECK_FUNC(crypt,, [
-		AC_MSG_ERROR([crypt() wasn't found])
-	])
+AC_CHECK_FUNC(crypt,, [
+  AC_CHECK_LIB(crypt, crypt, [
+    AUTH_LIBS="-lcrypt $AUTH_LIBS"
+  ], [
+    AC_MSG_ERROR([crypt() wasn't found])
+  ])
 ])
 
 dnl * dynamic modules?


More information about the dovecot-cvs mailing list