@@ -574,11 +574,12 @@ CPPFLAGS="$CPPFLAGS -pthread" ], [ CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_THREAD_SAFE" ]) - LIBS="$LIBS -lpthread" + AC_CHECK_LIB(pthread, pthread_create, LIBS="$LIBS -lpthread") + AC_TRY_LINK([ #include ], [ pthread_create(NULL, NULL, NULL, NULL); ], [], [