configure.ac: Fix pthread linking on FreeBSD.
authorKevin Lo <kevlo@FreeBSD.org>
Sat, 18 Apr 2015 17:48:06 +0000 (01:48 +0800)
committerBen Pfaff <blp@nicira.com>
Mon, 20 Apr 2015 17:58:43 +0000 (10:58 -0700)
commit513a32eea658ed86f3aaa3eda9f701d31d6fbcd6
tree3852a6634d672fb42bd8de540d663ea03b0e6775
parent96660ed1fc05ab5f76ef93d2c06f0746e1e93250
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 <kevlo@FreeBSD.org>
Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
configure.ac