summaryrefslogtreecommitdiff
path: root/ctdb/ib
diff options
context:
space:
mode:
authorPeter Somogyi <psomogyi@gamax.hu>2006-12-15 16:58:49 +0100
committerPeter Somogyi <psomogyi@gamax.hu>2006-12-15 16:58:49 +0100
commit0e1b3f1f12169e462134c5e8608016bcc46d355b (patch)
tree9241a44a96a65761ac4b1f5fd0da135f21220b76 /ctdb/ib
parentd323249d2cd620c9c30f341a152f3445d7d8920d (diff)
downloadsamba-0e1b3f1f12169e462134c5e8608016bcc46d355b.tar.gz
Added checks for ib libs and headers
(This used to be ctdb commit 0fecfdea111f2f5d25eadce04c5f35dffca29b26)
Diffstat (limited to 'ctdb/ib')
-rw-r--r--ctdb/ib/config.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/ctdb/ib/config.m4 b/ctdb/ib/config.m4
index f023f76f564..e84b7448a76 100644
--- a/ctdb/ib/config.m4
+++ b/ctdb/ib/config.m4
@@ -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)