mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-15 15:03:40 +08:00
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:
parent
acb37d2924
commit
a1c5742d23
@ -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
|
||||
|
@ -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])
|
||||
|
13
libstdc++-v3/configure
vendored
13
libstdc++-v3/configure
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user