ruby-changes:50293
From: mame <ko1@a...>
Date: Thu, 15 Feb 2018 10:59:21 +0900 (JST)
Subject: [ruby-changes:50293] mame:r62408 (trunk): configure.ac: Use `pthread_create` to determine if pthread is available
mame 2018-02-15 10:59:15 +0900 (Thu, 15 Feb 2018) New Revision: 62408 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62408 Log: configure.ac: Use `pthread_create` to determine if pthread is available Instead of `pthread_kill`. This is because emscripten supports `pthread_create` but not `pthread_kill`. Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 62407) +++ configure.ac (revision 62408) @@ -2256,7 +2256,7 @@ AS_IF([test "${universal_binary-no}" = y https://github.com/ruby/ruby/blob/trunk/configure.ac#L2256 AS_IF([test x"$enable_pthread" = xyes], [ for pthread_lib in thr pthread pthreads c c_r root; do - AC_CHECK_LIB($pthread_lib, pthread_kill, + AC_CHECK_LIB($pthread_lib, pthread_create, rb_with_pthread=yes, rb_with_pthread=no) AS_IF([test "$rb_with_pthread" = "yes"], [ break; fi done -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/