From 513a32eea658ed86f3aaa3eda9f701d31d6fbcd6 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Sun, 19 Apr 2015 01:48:06 +0800 Subject: [PATCH] configure.ac: Fix pthread linking on FreeBSD. The configure script checks for the existence of pthread_sigmask. However, on FreeBSD, libc contains no-op stubs for many of the pthread_* functions. As a result, the AC_SEARCH_LIBS macro returns "none required". As an alternative to checking pthread_sigmask, a solution is to check pthread_create. Signed-off-by: Kevin Lo Acked-by: YAMAMOTO Takashi Signed-off-by: Ben Pfaff --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9615cb76e92..068674ee74d 100644 --- a/configure.ac +++ b/configure.ac @@ -81,7 +81,7 @@ AC_SUBST([LT_AGE]) AC_SEARCH_LIBS([pow], [m]) AC_SEARCH_LIBS([clock_gettime], [rt]) AC_SEARCH_LIBS([timer_create], [rt]) -AC_SEARCH_LIBS([pthread_sigmask], [pthread]) +AC_SEARCH_LIBS([pthread_create], [pthread]) AC_FUNC_STRERROR_R OVS_CHECK_ESX