This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Tidy [GLIBCXX_CHECK_GTHREADS]
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 04 Sep 2008 21:00:03 +0200
- Subject: [v3] Tidy [GLIBCXX_CHECK_GTHREADS]
Hi,
committed to mainline.
Paolo.
////////////////////
2008-09-04 Paolo Carlini <paolo.carlini@oracle.com>
* acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): Tidy checks in case of
POSIX threads.
* configure: Regenerate.
Index: acinclude.m4
===================================================================
*** acinclude.m4 (revision 139992)
--- acinclude.m4 (working copy)
*************** AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [
*** 2843,2852 ****
AC_TRY_COMPILE([#include "gthr.h"],
[
! #if (!defined(__GTHREADS_CXX0X) || !defined(_POSIX_TIMEOUTS) \
! || _POSIX_TIMEOUTS <= 0)
! #error
! #endif
], [ac_has_gthreads=yes], [ac_has_gthreads=no])
AC_MSG_RESULT([$ac_has_gthreads])
--- 2843,2857 ----
AC_TRY_COMPILE([#include "gthr.h"],
[
! #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])