diff --git a/configure b/configure index 108a67f..b984f5f 100755 --- a/configure +++ b/configure @@ -11557,6 +11557,12 @@ fi fi fi + +case "${host_os}" in +darwin*) + have_mmap=no ;; +esac + if test "$have_mmap" = "no"; then VIEW_FILE=read.lo ALLOC_FILE=alloc.lo diff --git a/configure.ac b/configure.ac index e85fe98..b9056cc 100644 --- a/configure.ac +++ b/configure.ac @@ -295,6 +295,12 @@ else AC_CHECK_FUNC(mmap, [have_mmap=yes], [have_mmap=no]) fi fi + +case "${host_os}" in +darwin*) + have_mmap=no ;; +esac + if test "$have_mmap" = "no"; then VIEW_FILE=read.lo ALLOC_FILE=alloc.lo