From a02043dc676e779ceddda2ac48627f6eaa35f9bc Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Fri, 24 Sep 2021 10:43:00 +0100 Subject: [PATCH] disable-sem-check # DP: Assume working semaphores, don't rely on running kernel for the check. # DP: Assume working semaphores, don't rely on running kernel for the check. Gbp-Pq: Name disable-sem-check.diff --- configure.ac | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 02c113c..1b2c0e4 100644 --- a/configure.ac +++ b/configure.ac @@ -4640,8 +4640,13 @@ int main(void) { AC_MSG_RESULT($ac_cv_posix_semaphores_enabled) if test $ac_cv_posix_semaphores_enabled = no then - AC_DEFINE(POSIX_SEMAPHORES_NOT_ENABLED, 1, - [Define if POSIX semaphores aren't enabled on your system]) + case $ac_sys_system in + Linux*) # assume yes, see https://launchpad.net/bugs/630511 + ;; + *) + AC_DEFINE(POSIX_SEMAPHORES_NOT_ENABLED, 1, + [Define if POSIX semaphores aren't enabled on your system]) + esac fi # Multiprocessing check for broken sem_getvalue @@ -4676,8 +4681,13 @@ int main(void){ AC_MSG_RESULT($ac_cv_broken_sem_getvalue) if test $ac_cv_broken_sem_getvalue = yes then - AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, - [define to 1 if your sem_getvalue is broken.]) + case $ac_sys_system in + Linux*) # assume yes, see https://launchpad.net/bugs/630511 + ;; + *) + AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, + [define to 1 if your sem_getvalue is broken.]) + esac fi AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER], [], [], [[#include ]]) -- 2.30.2