From ffa877ee6ccaea0510d2f0b4369789fe9715e1ff Mon Sep 17 00:00:00 2001 From: bvarner Date: Wed, 28 Jun 2017 13:10:59 -0400 Subject: [PATCH] Use AC_SEARCH_LIBS for pthread location. --- BasiliskII/src/Unix/configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 52061777..653ee0df 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -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 ]) ])