projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3568420
)
Make the MAP_ANONYMOUS detection work on HP-UX 11.
author
Bruno Haible
<bruno@clisp.org>
Wed, 13 May 2009 00:37:05 +0000
(
02:37
+0200)
committer
Bruno Haible
<bruno@clisp.org>
Wed, 13 May 2009 00:37:05 +0000
(
02:37
+0200)
ChangeLog
patch
|
blob
|
history
m4/mmap-anon.m4
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index ffa4100a382ed9fdd2bb806861045f8b28447e0c..313291e4e37e3f8642a22f9776b1d71120418163 100644
(file)
--- 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.
2009-05-12 Bruno Haible <bruno@clisp.org>
* m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
diff --git
a/m4/mmap-anon.m4
b/m4/mmap-anon.m4
index 91cd95b232862850cad26daa3732ce8902ab4aab..fe624a2c0232a231db91517aa8c59ebbd5137f52 100644
(file)
--- 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,
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
@@
AC_DEFUN([gl_FUNC_MMAP_ANON],
dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS.
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
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
# 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>
AC_MSG_CHECKING([for MAP_ANONYMOUS])
AC_EGREP_CPP([I cant identify this map.], [
#include <sys/mman.h>