Condense to guilty until proven innocent.

This commit is contained in:
bvarner 2017-06-28 15:54:00 -04:00
parent 9735385a47
commit 023d0d57c7

View File

@ -291,16 +291,9 @@ AS_IF([test "x$have_libvhd" = "xyes" ], [
dnl We want pthreads. Try libpthread first, then npth, then libc_r (FreeBSD), then PTL.
AC_SEARCH_LIBS([pthread_create], [pthread])
AC_SEARCH_LIBS([pthread_create], [npth])
AC_SEARCH_LIBS([pthread_create], [c_r])
AC_SEARCH_LIBS([pthread_create], [PTL])
HAVE_PTHREADS=yes
AC_SEARCH_LIBS([pthread_create], [pthread], , [
HAVE_PTHREADS=no
HAVE_PTHREADS=no
AC_SEARCH_LIBS([pthread_create], [pthread npth c_r PTL], [
HAVE_PTHREADS=yes
])
if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])