102 |
|
]) |
103 |
|
]) |
104 |
|
AC_CHECK_FUNCS(pthread_cancel) |
105 |
+ |
AC_CHECK_FUNCS(pthread_mutexattr_setprotocol) |
106 |
+ |
AC_CHECK_FUNCS(pthread_mutexattr_settype) |
107 |
+ |
AC_CHECK_FUNCS(pthread_mutexattr_setpshared) |
108 |
|
if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then |
109 |
|
AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.]) |
110 |
|
fi |
198 |
|
|
199 |
|
dnl Checks for library functions. |
200 |
|
AC_CHECK_FUNCS(strdup cfmakeraw) |
201 |
< |
AC_CHECK_FUNCS(nanosleep clock_gettime timer_create) |
201 |
> |
AC_CHECK_FUNCS(nanosleep) |
202 |
|
AC_CHECK_FUNCS(sigaction signal) |
203 |
|
AC_CHECK_FUNCS(mmap mprotect munmap) |
204 |
|
AC_CHECK_FUNCS(vm_allocate vm_deallocate vm_protect) |
205 |
+ |
dnl We need clock_gettime() for better performance but it may drag |
206 |
+ |
dnl libpthread in, which we don't want for native ppc mode |
207 |
+ |
if [[ "x$EMULATED_PPC" = "xyes" ]]; then |
208 |
+ |
AC_SEARCH_LIBS(clock_gettime, [rt posix4]) |
209 |
+ |
AC_CHECK_FUNCS(clock_gettime) |
210 |
+ |
fi |
211 |
|
|
212 |
|
dnl Select system-dependant sources. |
213 |
|
if [[ "x$EMULATED_PPC" = "xno" ]]; then |