Module: xenomai-forge
Branch: next
Commit: 3ab0f27e006d2f968d4ff5c2ee5d67258faeaa2d
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=3ab0f27e006d2f968d4ff5c2ee5d67258faeaa2d

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep  9 18:51:05 2014 +0200

configure: require shm_open() with --enable-pshared

---

 configure    |   10 ++++++++++
 configure.ac |    7 +++++++
 2 files changed, 17 insertions(+)

diff --git a/configure b/configure
index e1c1871..248ac6c 100755
--- a/configure
+++ b/configure
@@ -13784,6 +13784,16 @@ $as_echo "#define 
CONFIG_XENO_COPPERPLATE_CLOCK_RESTRICTED 1" >>confdefs.h
 fi
 
 
+if test x$use_pshared = xy;  then
+  ac_fn_c_check_func "$LINENO" "shm_open" "ac_cv_func_shm_open"
+if test "x$ac_cv_func_shm_open" = xyes; then :
+
+else
+  as_fn_error $? "shm_open() is missing, --disable-pshared is required" 
"$LINENO" 5
+fi
+
+fi
+
 
 
 cat >>confdefs.h <<_ACEOF
diff --git a/configure.ac b/configure.ac
index 023d270..e50d875 100644
--- a/configure.ac
+++ b/configure.ac
@@ -531,6 +531,13 @@ dnl won't vary for a given Xenomai installation.
 AC_CHECK_FUNC(pthread_condattr_setclock,,
     [AC_DEFINE(CONFIG_XENO_COPPERPLATE_CLOCK_RESTRICTED, 1,[config])])
 
+dnl Check that Copperplate can implement a shared heap if
+dnl --enable-pshared was given.
+if test x$use_pshared = xy;  then
+  AC_CHECK_FUNC(shm_open,,
+      [AC_MSG_ERROR([shm_open() is missing, --disable-pshared is required])])
+fi
+
 dnl
 dnl Produce the info needed to build xeno_config.h
 dnl


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to