Mercurial > dovecot > core-2.2
changeset 224:e8863d6088fe HEAD
mremap() check
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 15 Sep 2002 09:31:25 +0300 |
parents | ca6967899c05 |
children | c02b968d0378 |
files | configure.in |
diffstat | 1 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Sun Sep 15 09:30:29 2002 +0300 +++ b/configure.in Sun Sep 15 09:31:25 2002 +0300 @@ -13,7 +13,8 @@ AC_ARG_PROGRAM AM_PROG_LIBTOOL -AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h sys/sendfile.h) +AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h) +AC_CHECK_HEADERS(sys/sendfile.h linux/mman.h) # check posix headers AC_CHECK_HEADERS(sys/time.h) @@ -228,6 +229,20 @@ fi AC_MSG_RESULT($i_cv_field_tm_gmtoff) +dnl * linux compatible mremap() +AC_MSG_CHECKING([linux compatible mremap()]) +AC_TRY_RUN([ + #include <unistd.h> + #define __USE_GNU + #include <sys/mman.h> + int main() { mremap(0, 0, 0, MREMAP_MAYMOVE); } +], [ + AC_DEFINE(HAVE_LINUX_MREMAP) + AC_MSG_RESULT(yes) +], [ + AC_MSG_RESULT(no) +]) + dnl ** dnl ** SSL (gnutls) dnl **