From: Timo Sirainen Date: Wed, 28 Apr 2004 16:54:32 +0000 (+0300) Subject: Put -lcrypt to first in AUTH_LIBS to fix some linking problems with Solaris X-Git-Tag: 1.1.alpha1~4182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c6ddd50dc9f3f6c4d2efba2fddc61cc4065fcbd;p=thirdparty%2Fdovecot%2Fcore.git Put -lcrypt to first in AUTH_LIBS to fix some linking problems with Solaris --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 307a45da4e..adf2b9d7b1 100644 --- a/configure.in +++ b/configure.in @@ -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 #include @@ -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])