From: Jakub Narebski Date: Fri, 04 Aug 2006 15:55:56 GMT Subject: [PATCH 1/4] autoconf: Check for working mmap Message-ID: <11547069592652-git-send-email-jnareb@gmail.com> In-Reply-To: <7v7j1on71n.fsf@assigned-by-dhcp.cox.net> Use AC_FUNC_MMAP check to check if the `mmap' function exists and works correctly. (It only checks private fixed mapping of already-mapped memory.) Attention: uses implementation detail of AC_FUNC_MMAP! Signed-off-by: Jakub Narebski --- configure.ac | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index 0a54b44..178220f 100644 --- a/configure.ac +++ b/configure.ac @@ -208,6 +208,10 @@ AC_CHECK_FUNC(setenv,[], [GIT_CONF_APPEND_LINE(NO_SETENV=YesPlease)]) # # Define NO_MMAP if you want to avoid mmap. +AC_FUNC_MMAP +if test $ac_cv_func_mmap_fixed_mapped != yes; then + GIT_CONF_APPEND_LINE(NO_MMAP=YesPlease) +fi # # Define NO_IPV6 if you lack IPv6 support and getaddrinfo(). # -- 1.4.1.1