diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
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) |