diff --git a/ChangeLog b/ChangeLog index 565fb8f66..aced31286 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-06-03 Sebastian Wilhelmi + + * configure.in: Test for pthread_setschedparam. If not existant, + disable priorities. (#104718) + Mon Jun 2 14:18:21 2003 Owen Taylor Patch from Jeffrey Stedfast (#104825) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 565fb8f66..aced31286 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2003-06-03 Sebastian Wilhelmi + + * configure.in: Test for pthread_setschedparam. If not existant, + disable priorities. (#104718) + Mon Jun 2 14:18:21 2003 Owen Taylor Patch from Jeffrey Stedfast (#104825) diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 565fb8f66..aced31286 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2003-06-03 Sebastian Wilhelmi + + * configure.in: Test for pthread_setschedparam. If not existant, + disable priorities. (#104718) + Mon Jun 2 14:18:21 2003 Owen Taylor Patch from Jeffrey Stedfast (#104825) diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 565fb8f66..aced31286 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2003-06-03 Sebastian Wilhelmi + + * configure.in: Test for pthread_setschedparam. If not existant, + disable priorities. (#104718) + Mon Jun 2 14:18:21 2003 Owen Taylor Patch from Jeffrey Stedfast (#104825) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 565fb8f66..aced31286 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2003-06-03 Sebastian Wilhelmi + + * configure.in: Test for pthread_setschedparam. If not existant, + disable priorities. (#104718) + Mon Jun 2 14:18:21 2003 Owen Taylor Patch from Jeffrey Stedfast (#104825) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 565fb8f66..aced31286 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2003-06-03 Sebastian Wilhelmi + + * configure.in: Test for pthread_setschedparam. If not existant, + disable priorities. (#104718) + Mon Jun 2 14:18:21 2003 Owen Taylor Patch from Jeffrey Stedfast (#104825) diff --git a/configure.in b/configure.in index cae2c4ec1..fb3577e9c 100644 --- a/configure.in +++ b/configure.in @@ -1690,8 +1690,14 @@ int main () { posix_priority_max=-1 else AC_MSG_RESULT($posix_priority_min/$posix_priority_max) + AC_MSG_CHECKING(for pthread_setschedparam) + AC_TRY_LINK([#include ], + [pthread_t t; pthread_setschedparam(&t, 0, NULL)], + [AC_MSG_RESULT(yes) AC_DEFINE_UNQUOTED(POSIX_MIN_PRIORITY,$posix_priority_min,[Minimum POSIX RT priority]) - AC_DEFINE_UNQUOTED(POSIX_MAX_PRIORITY,$posix_priority_max,[Maximum POSIX RT priority]) + AC_DEFINE_UNQUOTED(POSIX_MAX_PRIORITY,$posix_priority_max,[Maximum POSIX RT priority])], + [AC_MSG_RESULT(no) + AC_MSG_WARN($POSIX_NO_PRIORITIES)]) fi posix_yield_func=none AC_MSG_CHECKING(for posix yield function)