Use AC_SEARCH_LIBS for pthread location.

This commit is contained in:
bvarner 2017-06-28 13:10:59 -04:00
parent f2acf91add
commit ffa877ee6c

View File

@ -292,9 +292,9 @@ AS_IF([test "x$have_libvhd" = "xyes" ], [
dnl We want pthreads. Try libpthread first, then libc_r (FreeBSD), then PTL.
HAVE_PTHREADS=yes
AC_CHECK_LIB(pthread, pthread_create, , [
AC_CHECK_LIB(c_r, pthread_create, , [
AC_CHECK_LIB(PTL, pthread_create, , [
AC_SEARCH_LIBS(pthread_create, pthread, , [
AC_SEARCH_LIBS(pthread_create, c_r, , [
AC_SEARCH_LIBS(pthread_create, PTL, , [
HAVE_PTHREADS=no
])
])