From 7df4a9fce8d3008befc0718a6ea9fafdaecf3c6b Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 16 Jun 2018 18:28:52 +0200 Subject: Fix semaphore test on OSX. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 456cb74..d635cf0 100644 --- a/configure.ac +++ b/configure.ac @@ -641,6 +641,12 @@ CPPFLAGS="$tmp_CPPFLAGS" CFLAGS="$tmp_CFLAGS" LDFLAGS="$tmp_LDFLAGS" LIBS="$tmp_LIBS" +# Add extra (platform specific) libs for semaphore support? +AS_CASE([$host_os], + [darwin*], [PTHREAD_LIBS="$PTHREAD_LIBS -framework CoreServices"], + [linux*|*bsd*], [], + [msys|mingw*|windows*|winnt|cygwin], [], + []) AC_SUBST(PTHREAD_CFLAGS) AC_SUBST(PTHREAD_LIBS) -- cgit v1.2.3