Mercurial > hg > octave-kai > gnulib-hg
changeset 11566:1c79166ed6a4
Make the MAP_ANONYMOUS detection work on HP-UX 11.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 13 May 2009 02:37:05 +0200 |
parents | 1ffd251f5b05 |
children | 18a6ae3e0516 |
files | ChangeLog m4/mmap-anon.m4 |
diffstat | 2 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-12 Bruno Haible <bruno@clisp.org> + + Make the MAP_ANONYMOUS detection work on HP-UX 11. + * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but + not whether its fully works. + 2009-05-12 Bruno Haible <bruno@clisp.org> * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
--- a/m4/mmap-anon.m4 +++ b/m4/mmap-anon.m4 @@ -1,4 +1,4 @@ -# mmap-anon.m4 serial 6 +# mmap-anon.m4 serial 7 dnl Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -22,12 +22,14 @@ dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) - # Check for mmap() - AC_FUNC_MMAP + # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it + # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is + # irrelevant for anonymous mappings. + AC_CHECK_FUNC([mmap], [gl_have_mmap=yes], [gl_have_mmap=no]) # Try to allow MAP_ANONYMOUS. gl_have_mmap_anonymous=no - if test $ac_cv_func_mmap_fixed_mapped = yes; then + if test $gl_have_mmap = yes; then AC_MSG_CHECKING([for MAP_ANONYMOUS]) AC_EGREP_CPP([I cant identify this map.], [ #include <sys/mman.h>