Browse Source

Removed configure check for sched_yield

In the past we used sched_yield for some initialization code, but we are
no longer using it. This change removes the configure script check for
sched_yield so that we can still build even if sched_yield does not seem
to be available. This fixes #5435.
Adam Cozzette 6 years ago
parent
commit
61f5dca471
1 changed files with 0 additions and 9 deletions
  1. 0 9
      configure.ac

+ 0 - 9
configure.ac

@@ -205,15 +205,6 @@ AM_CONDITIONAL([HAVE_PTHREAD], [test "x$ax_pthread_ok" = "xyes"])
 # We still keep this for improving pbconfig.h for unsupported platforms.
 # We still keep this for improving pbconfig.h for unsupported platforms.
 AC_CXX_STL_HASH
 AC_CXX_STL_HASH
 
 
-case "$target_os" in
-  mingw* | cygwin* | win* | aix* | *android* )
-    ;;
-  *)
-    # Need to link against rt on Solaris
-    AC_SEARCH_LIBS([sched_yield], [rt], [], [AC_MSG_FAILURE([sched_yield was not found on your system])])
-    ;;
-esac
-
 # Enable ObjC support for conformance directory on OS X.
 # Enable ObjC support for conformance directory on OS X.
 OBJC_CONFORMANCE_TEST=0
 OBJC_CONFORMANCE_TEST=0
 case "$target_os" in
 case "$target_os" in