check for set affinity in pthread - seems to bemissing from debian

testing/etch (but is in ubuntu). weird as its a gnu extension in libc and
been in for a few years.


SVN revision: 27133
This commit is contained in:
Carsten Haitzler 2006-11-16 06:31:52 +00:00
parent f80a02f999
commit 0d42fa44c1
1 changed files with 7 additions and 1 deletions

View File

@ -989,10 +989,16 @@ AM_CONDITIONAL(BUILD_LOADER_SVG, test x$have_svg = xyes)
pthread_cflags=""
pthread_libs=""
build_pthreads="no"
# sched_getaffinity pthread_attr_setaffinity_np
AC_CHECK_HEADER(pthread.h,
[
AC_CHECK_HEADER(sched.h,
[ build_pthreads="yes" ],
[
AC_CHECK_LIB(pthread, pthread_attr_setaffinity_np,
[ build_pthreads="yes" ],
[ build_pthreads="no" ]
)
],
[ build_pthreads="no" ]
)
],