From 86ff708d11083ec82e0aa577453409ac52ba29f2 Mon Sep 17 00:00:00 2001 From: Denis Corbin Date: Sat, 24 Aug 2024 20:09:15 +0200 Subject: [PATCH] fixing configure.ac when reporting available features from libthreadar --- src/build/configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/build/configure.ac b/src/build/configure.ac index 69466bc0..994593db 100644 --- a/src/build/configure.ac +++ b/src/build/configure.ac @@ -2038,7 +2038,7 @@ AS_IF( [[ unsigned int maj, med, min; libthreadar::get_version(maj, med, min); - if(libthreadar::barrier::used_implementation() != "") + if(libthreadar::barrier::used_implementation() == "pthread_barrier_t") return 0; else return 1; @@ -2046,13 +2046,14 @@ AS_IF( ], [ local_threadar_barrier_mac=yes - AC_DEFINE(LIBTHREADAR_BARRIER_MAC, 1, [if libthreadar has different possible implementation]) + AC_DEFINE(LIBTHREADAR_BARRIER_MAC, 1, [libthreadar can emulate barrier feature on MacOS]) ], [ local_threadar_barrier_mac=no ] ) ] + [ local_threadar_barrier_mac=no ] ) AC_ARG_ENABLE([libargon2-linking],