Skip to content

Commit

Permalink
fixing configure.ac when reporting available features from libthreadar
Browse files Browse the repository at this point in the history
  • Loading branch information
Edrusb committed Aug 24, 2024
1 parent c9a0779 commit 86ff708
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/build/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2038,21 +2038,22 @@ 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;
]])
],
[
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],
Expand Down

0 comments on commit 86ff708

Please sign in to comment.