summaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2008-09-04 18:57:42 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2008-09-04 18:57:42 +0000
commita1c5742d23d814196858c58173630dd8ee90f48f (patch)
tree3aac41be77f40178a5f8f3e853bd9f63c27a4c33 /libstdc++-v3/configure
parentacb37d2924de4cd0195f41225e50ae9c46553cca (diff)
downloadgcc-a1c5742d23d814196858c58173630dd8ee90f48f.tar.gz
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
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-xlibstdc++-v3/configure13
1 files changed, 9 insertions, 4 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index b1470c7cf78..a6223e7a40d 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -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;