@@ -24,6 +24,8 @@ then
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libcxgb3 requires libibverbs.]))
fi
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libcxgb3 requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADERS(sysfs/libsysfs.h)
@@ -24,6 +24,8 @@ then
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libcxgb4 requires libibverbs.]))
fi
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libcxgb4 requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADERS(sysfs/libsysfs.h)
@@ -81,6 +81,8 @@ AC_PROG_CC
dnl Checks for libraries
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libhfi1verbs requires libibverbs.]))
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libhfi1verbs requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADER(infiniband/driver.h, [],
@@ -23,6 +23,8 @@ then
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libi40iw requires libibverbs.]))
fi
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libi40iw requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADERS(sysfs/libsysfs.h)
@@ -81,6 +81,8 @@ AC_CHECK_SIZEOF(long)
dnl Checks for library functions
AC_CHECK_FUNCS(ibv_read_sysfs_file ibv_dontfork_range ibv_dofork_range \
ibv_register_driver)
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libipathverbs requires libpthread.]))
dnl Now check if for libibverbs 1.0 vs 1.1
dummy=if$$
@@ -29,6 +29,8 @@ AC_LANG([C])
dnl Checks for libraries
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libmlx4 requires libibverbs.]))
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libmlx4 requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADER(infiniband/driver.h, [],
@@ -51,6 +51,9 @@ AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_CHECK_LIB(ibverbs, ibv_register_driver_ext,
AC_DEFINE(HAVE_IBV_EXT, 1, [adding verbs extension support]))
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libmlx5 requires libpthread.]))
+
dnl Checks for header files.
AC_CHECK_HEADER(infiniband/driver.h, [],
AC_MSG_ERROR([<infiniband/driver.h> not found. libmlx5 requires libibverbs.]))
@@ -30,6 +30,8 @@ AC_PROG_CC
dnl Checks for libraries
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libmthca requires libibverbs.]))
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libmthca requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADER(infiniband/driver.h, [],
@@ -23,6 +23,8 @@ then
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libnes requires libibverbs.]))
fi
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libnes requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADERS(sysfs/libsysfs.h)
@@ -24,6 +24,8 @@ then
AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
AC_MSG_ERROR([ibv_get_device_list() not found. libocrdma requires libibverbs.]))
fi
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. libocrdma requires libpthread.]))
dnl Checks for header files.
AC_CHECK_HEADERS(sysfs/libsysfs.h)
@@ -36,6 +36,8 @@ if test x$enable_repackage = x || test x$enable_repackage = xno; then
AC_MSG_ERROR([<infiniband/driver.h> not found. librxe requires libibverbs.]))
AC_CHECK_FUNCS(ibv_read_sysfs_file ibv_dontfork_range ibv_dofork_range \
ibv_register_driver)
+ AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+ AC_MSG_ERROR([pthread_mutex_init() not found. librxe requires libpthread.]))
dummy=if$$
cat <<IBV_VERSION > $dummy.c