]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Put -lcrypt to first in AUTH_LIBS to fix some linking problems with Solaris
authorTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 16:54:32 +0000 (19:54 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 28 Apr 2004 16:54:32 +0000 (19:54 +0300)
--HG--
branch : HEAD

configure.in

index 307a45da4e9ac5fb1ee0f95ebe4be71a1ff96df3..adf2b9d7b1822423018133d7d1013da5348e68e5 100644 (file)
@@ -666,7 +666,7 @@ AC_TRY_COMPILE([
 ])
 
 dnl * If mmap() plays nicely with write()
-AC_MSG_CHECKING([whether we need to use MS_INVALIDATE with mmaps])
+AC_MSG_CHECKING([whether shared mmaps get updated by write()s])
 AC_TRY_RUN([
   #include <stdio.h>
   #include <sys/types.h>
@@ -697,11 +697,11 @@ AC_TRY_RUN([
   
     return strcmp(mem, "3") == 0 ? 0 : 1;
   }
-], [
-  AC_MSG_RESULT(no)
 ], [
   AC_MSG_RESULT(yes)
-  AC_DEFINE(NEED_MS_INVALIDATE,, Define if your mmap() implementation requires use of MS_INVALIDATE to work with write())
+], [
+  AC_MSG_RESULT(no)
+  AC_DEFINE(MMAP_CONFLICTS_WRITE,, [Define if shared mmaps don't get updated by write()s])
 ])
 
 
@@ -1041,7 +1041,7 @@ fi
 
 if test $need_crypt = yes; then
        AC_CHECK_LIB(crypt, crypt, [
-               AUTH_LIBS="$AUTH_LIBS -lcrypt"
+               AUTH_LIBS="-lcrypt $AUTH_LIBS"
        ], [
                AC_CHECK_FUNC(crypt,, [
                        AC_ERROR([crypt() wasn't found])