xfs: force file creation to the data device for certain layout tests
[xfstests-dev.git] / m4 / package_pthread.m4
1 AC_DEFUN([AC_PACKAGE_NEED_PTHREAD_H],
2   [ AC_CHECK_HEADERS(pthread.h)
3     if test $ac_cv_header_pthread_h = no; then
4         AC_CHECK_HEADERS(pthread.h,, [
5         echo
6         echo 'FATAL ERROR: could not find a valid pthread header.'
7         exit 1])
8     fi
9   ])
10
11 AC_DEFUN([AC_PACKAGE_NEED_PTHREADMUTEXINIT],
12   [ AC_CHECK_LIB(pthread, pthread_mutex_init,, [
13         echo
14         echo 'FATAL ERROR: could not find a valid pthread library.'
15         exit 1
16     ])
17     libpthread=-lpthread
18     AC_SUBST(libpthread)
19   ])