• E
    build: rely on gnulib's pthread module · 9017b9bc
    Eric Blake 提交于
    Gnulib can guarantee that pthread.h exists, but for now, it is a dummy
    header with no support for most pthread_* functions.  Modify our
    use of pthread to use function checks, rather than header checks,
    to determine how much pthread support is present.
    
    * bootstrap.conf (gnulib_modules): Add pthread.
    * configure.ac: Drop all pthread.h checks.  Optimize function
    checks.  Add check for pthread functions.
    * src/Makefile.am (libvirt_lxc_LDADD): Ensure proper link.
    * src/remote/remote_driver.c (remoteIOEventLoop): Depend on
    pthread_sigmask, now that gnulib guarantees pthread.h.
    * src/util/util.c (virFork): Likewise.
    * src/util/threads.c (threads-pthread.c): Depend on
    pthread_mutexattr_init, as a witness of full pthread support.
    * src/util/threads.h (threads-pthread.h): Likewise.
    9017b9bc
threads.h 2.2 KB