aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-09-28 19:25:31 +0000
committerWerner Koch <[email protected]>1998-09-28 19:25:31 +0000
commit41fa8a3345aecf9b85c1eebb33f9b961a558db1c (patch)
tree4f5745dc77207f40dabd7f9a176b7255e8994223 /acinclude.m4
parent. (diff)
downloadgnupg-41fa8a3345aecf9b85c1eebb33f9b961a558db1c.tar.gz
gnupg-41fa8a3345aecf9b85c1eebb33f9b961a558db1c.zip
*** empty log message ***
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index b6c1f656f..f540edc63 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -116,6 +116,7 @@ define(WK_CHECK_CACHE,
######################################################################
# Check for SysV IPC (from GIMP)
+# And see whether we have a SHM_LOCK (FreeBSD does not have it).
######################################################################
dnl WK_CHECK_IPC
dnl
@@ -150,6 +151,15 @@ define(WK_CHECK_IPC,
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no),
AC_MSG_RESULT(assuming no))
+ AC_MSG_CHECKING(whether SHM_LOCK is available)
+ AC_TRY_COMPILE([#include <sys/types.h>
+ #include <sys/ipc.h>
+ #include <sys/shm.h>],[
+ int foo( int shm_id ) { shmctl(shm_id, SHM_LOCK, 0); }
+ ],
+ AC_DEFINE(IPC_HAVE_SHM_LOCK)
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no))
fi
])
@@ -165,6 +175,7 @@ define(WK_CHECK_MLOCK,
if test "$ac_cv_func_mlock" = "yes"; then
AC_MSG_CHECKING(whether mlock is broken)
AC_TRY_RUN([
+ #include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/mman.h>