Oh yeah, use a list.

This commit is contained in:
bvarner 2017-06-28 13:20:15 -04:00
parent 94a385352e
commit a1bea9b897

View File

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