7 |
dnl |
dnl |
8 |
dnl Check for NPTL glibc bug which caused crashs on Gentoo systems, see |
dnl Check for NPTL glibc bug which caused crashs on Gentoo systems, see |
9 |
dnl Gentoo bug report #194076 for details. This test is ignored on cross- |
dnl Gentoo bug report #194076 for details. This test is ignored on cross- |
10 |
dnl compilations. |
dnl compilations. On Windows systems this test always succeeds. |
11 |
dnl |
dnl |
12 |
dnl Note: this test requires LIBS, CFLAGS and CC already been set, i.e. by |
dnl Note: this test requires LIBS, CFLAGS and CC already been set, i.e. by |
13 |
dnl using ACX_PTHREAD before calling this macro. |
dnl using ACX_PTHREAD before calling this macro. |
23 |
|
|
24 |
AC_TRY_RUN([ |
AC_TRY_RUN([ |
25 |
|
|
|
#include <stdio.h> |
|
26 |
#include <stdlib.h> |
#include <stdlib.h> |
27 |
|
|
28 |
|
#if WIN32 |
29 |
|
|
30 |
|
int main() { |
31 |
|
exit(0); |
32 |
|
} |
33 |
|
|
34 |
|
#else /* POSIX system */ |
35 |
|
|
36 |
|
#include <stdio.h> |
37 |
#include <pthread.h> |
#include <pthread.h> |
38 |
#include <unistd.h> |
#include <unistd.h> |
39 |
|
|
97 |
|
|
98 |
exit(0); |
exit(0); |
99 |
} |
} |
100 |
|
#endif /* WIN32 */ |
101 |
|
|
102 |
],[ |
],[ |
103 |
AC_MSG_RESULT(no) |
AC_MSG_RESULT(no) |