1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Added checks for ib libs and headers

(This used to be ctdb commit 0fecfdea111f2f5d25eadce04c5f35dffca29b26)
This commit is contained in:
Peter Somogyi 2006-12-15 16:58:49 +01:00
parent d323249d2c
commit 0e1b3f1f12

View File

@ -10,6 +10,19 @@ if eval "test x$enable_infiniband = xyes"; then
INFINIBAND_WRAPPER_OBJ="ib/ibwrapper.o"
INFINIBAND_LIBS="-lrdmacm -libverbs"
INFINIBAND_BINS="bin/ibwrapper_test"
AC_CHECK_HEADERS(infiniband/verbs.h, [], [
echo "ERROR: you need infiniband/verbs.h when ib enabled!"
exit -1])
AC_CHECK_HEADERS(rdma/rdma_cma.h, [], [
echo "ERROR: you need rdma/rdma_cma.h when ib enabled!"
exit -1])
AC_CHECK_LIB(ibverbs, ibv_create_qp, [], [
echo "ERROR: you need libibverbs when ib enabled!"
exit -1])
AC_CHECK_LIB(rdmacm, rdma_connect, [], [
echo "ERROR: you need librdmacm when ib enabled!"
exit -1])
fi
AC_SUBST(HAVE_INFINIBAND)