acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of POSIX threads.

2008-09-04  Paolo Carlini  <paolo.carlini@oracle.com>

 	* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
	POSIX threads.
	* configure: Regenerate.

From-SVN: r139994
This commit is contained in:
Paolo Carlini 2008-09-04 18:57:42 +00:00 committed by Paolo Carlini
parent acb37d2924
commit a1c5742d23
3 changed files with 24 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2008-09-04 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
POSIX threads.
* configure: Regenerate.
2008-09-04 Chris Fairles <chris.fairles@gmail.com>
* include/std/mutex (once_flag): Construct __gthread_once_t in a

View File

@ -2843,10 +2843,15 @@ AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [
AC_TRY_COMPILE([#include "gthr.h"],
[
#if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \
|| _POSIX_TIMEOUTS <= 0)
#error
#endif
#ifndef __GTHREADS_CXX0X
#error
#endif
// In case of POSIX threads check _POSIX_TIMEOUTS too.
#if (defined(_PTHREADS) \
&& (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
#error
#endif
], [ac_has_gthreads=yes], [ac_has_gthreads=no])
AC_MSG_RESULT([$ac_has_gthreads])

View File

@ -21610,10 +21610,15 @@ int
main ()
{
#if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \
|| _POSIX_TIMEOUTS <= 0)
#error
#endif
#ifndef __GTHREADS_CXX0X
#error
#endif
// In case of POSIX threads check _POSIX_TIMEOUTS too.
#if (defined(_PTHREADS) \
&& (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
#error
#endif
;
return 0;