dnl Checks for OFED AC_DEFUN([LN_CONFIG_OFED_SPEC], [ AC_MSG_CHECKING([if OFED has ib_dma_map_single]) LB_LINUX_TRY_COMPILE([ #include #include #include #include ],[ ib_dma_map_single(NULL, NULL, 0, 0); return 0; ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_OFED_IB_DMA_MAP, 1, [ib_dma_map_single defined]) ],[ AC_MSG_RESULT(no) ]) AC_MSG_CHECKING([if ib_create_cq wants comp_vector]) LB_LINUX_TRY_COMPILE([ #include #include #include #include ],[ ib_create_cq(NULL, NULL, NULL, NULL, 0, 0); return 0; ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_OFED_IB_COMP_VECTOR, 1, [has completion vector]) ],[ AC_MSG_RESULT(no) ]) AC_MSG_CHECKING([if OFED has RDMA_CM_EVENT_ADDR_CHANGE]) LB_LINUX_TRY_COMPILE([ #include #include #include #include ],[ return (RDMA_CM_EVENT_ADDR_CHANGE == 0); ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_OFED_RDMA_CMEV_ADDRCHANGE, 1, [has completion vector]) ],[ AC_MSG_RESULT(no) ]) AC_MSG_CHECKING([if OFED has RDMA_CM_EVENT_TIMEWAIT_EXIT]) LB_LINUX_TRY_COMPILE([ #include #include #include #include ],[ return (RDMA_CM_EVENT_TIMEWAIT_EXIT == 0); ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_OFED_RDMA_CMEV_TIMEWAIT_EXIT, 1, [has completion vector]) ],[ AC_MSG_RESULT(no) ]) AC_MSG_CHECKING([if OFED has rdma_set_reuseaddr]) LB_LINUX_TRY_COMPILE([ #include #include #include #include ],[ rdma_set_reuseaddr(NULL, 1); return 0; ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_OFED_RDMA_SET_REUSEADDR, 1, [rdma_set_reuse defined]) ],[ AC_MSG_RESULT(no) ]) ])