From 807dc5383d005045cbd9b19896ca5f5cd264f6ac Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 7 May 2008 11:51:55 +0000 Subject: [PATCH] Check for a function that is only available in recent versions of the IBCM library. Fixes trac:1280. This commit was SVN r18397. The following Trac tickets were found above: Ticket 1280 --> https://svn.open-mpi.org/trac/ompi/ticket/1280 --- config/ompi_check_openib.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/ompi_check_openib.m4 b/config/ompi_check_openib.m4 index 4b39853eef..b2ab99ed08 100644 --- a/config/ompi_check_openib.m4 +++ b/config/ompi_check_openib.m4 @@ -138,9 +138,11 @@ AC_DEFUN([OMPI_CHECK_OPENIB],[ # Do we have IB CM? (note that OFED IB CM depends on RDMA # CM, so no need to add it into the other-libraries - # argument to AC_CHECK_ LIB). + # argument to AC_CHECK_ LIB). Note that we only want IBCM + # starting with OFED 1.2 or so, so check for + # ib_cm_open_device (introduced in libibcm 1.0/OFED 1.2). AC_CHECK_HEADERS([infiniband/cm.h], - [AC_CHECK_LIB([ibcm], [ib_cm_create_id], + [AC_CHECK_LIB([ibcm], [ib_cm_open_device], [$1_have_ibcm=1 $1_LIBS="-libcm $$1_LIBS"])]) ])