When the librdmacm is configured, it sets the USE_IB_ACM option
if infininband/acm.h is found. We can remove this option with
very little overhead, which would allow a user to install
ACM after installing the librdmacm, and the librdmacm would be
able to make use of ACM.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fi
fi
-AC_CHECK_HEADER(infiniband/acm.h,
- AC_DEFINE([USE_IB_ACM], 1, [setting IBACM support]), [])
-
AC_CHECK_HEADER(infiniband/acm.h,
AC_CHECK_MEMBER(struct acm_msg.resolve_data, [],
AC_DEFINE(DEFINE_ACM_MSG, 1, [adding ACM message definition]),
#include <infiniband/ib.h>
#include <infiniband/sa.h>
-#ifdef USE_IB_ACM
#include <infiniband/acm.h>
#if DEFINE_ACM_MSG
if (af_ib_support && !(hints->ai_flags & RAI_ROUTEONLY) && (*rai)->ai_route_len)
ucma_resolve_af_ib(rai);
}
-
-#endif /* USE_IB_ACM */
#define RAI_ROUTEONLY 0x01000000
-#ifdef USE_IB_ACM
void ucma_ib_init();
void ucma_ib_cleanup();
void ucma_ib_resolve(struct rdma_addrinfo **rai, struct rdma_addrinfo *hints);
-#else
-#define ucma_ib_init()
-#define ucma_ib_cleanup()
-#define ucma_ib_resolve(x, y)
-#endif
/* Define path record definition if using older version of libibverbs */
#ifdef DEFINE_PATH_RECORD