#! /bin/sh
-# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.614 2006/01/06 04:41:42 kurt Exp .
+# From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.615 2006/01/06 04:50:53 kurt Exp .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
{ (exit 1); exit 1; }; }
fi
- ol_replace_sched_yield=no
+ ol_replace_broken_yield=no
case "$target" in
*-*-linux*)
- ol_replace_sched_yield=yes
+ ol_replace_broken_yield=yes
;;
esac
- if test $ol_replace_sched_yield = yes ; then
+ if test $ol_replace_broken_yield = yes ; then
cat >>confdefs.h <<\_ACEOF
-#define REPLACE_SCHED_YIELD 1
+#define REPLACE_BROKEN_YIELD 1
_ACEOF
fi
AC_MSG_ERROR([pthread_create is not usable, check environment settings])
fi
- ol_replace_sched_yield=no
+ ol_replace_broken_yield=no
case "$target" in
*-*-linux*)
- ol_replace_sched_yield=yes
+ ol_replace_broken_yield=yes
;;
esac
- if test $ol_replace_sched_yield = yes ; then
- AC_DEFINE([REPLACE_SCHED_YIELD],1,
- [define to replace sched_yield(2)])
+ if test $ol_replace_broken_yield = yes ; then
+ AC_DEFINE([REPLACE_BROKEN_YIELD],1,
+ [define if sched_yield yields the entire process])
fi
dnl Check if select causes an yield
/* Define to the version of this package. */
#undef PACKAGE_VERSION
-/* define to replace sched_yield(2) */
-#undef REPLACE_SCHED_YIELD
+/* define if sched_yield yields the entire process */
+#undef REPLACE_BROKEN_YIELD
/* Define as the return type of signal handlers (`int' or `void'). */
#undef RETSIGTYPE
#include <ac/errno.h>
-#ifdef REPLACE_SCHED_YIELD
+#ifdef REPLACE_BROKEN_YIELD
#ifndef HAVE_NANOSLEEP
#include <ac/socket.h>
#endif
int
ldap_pvt_thread_yield( void )
{
-#ifdef REPLACE_SCHED_YIELD
+#ifdef REPLACE_BROKEN_YIELD
#ifdef HAVE_NANOSLEEP
struct timespec t = { 0, 0 };
nanosleep(&t, NULL);