Skip to content

Commit

Permalink
CM/CONFIGURE: fail if no ibcm found and --with-cm set
Browse files Browse the repository at this point in the history
(cherry picked from commit 1bb31d4)
  • Loading branch information
Andrey Maslennikov committed May 27, 2019
1 parent dc4f560 commit 2567455
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/uct/ib/cm/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,25 @@
#
# CM (IB connection manager) Support
#
cm_happy="no"

AC_ARG_WITH([cm],
[AC_HELP_STRING([--with-cm], [Compile with IB Connection Manager support])],
[],
[with_cm=yes])
[with_cm=guess])

AS_IF([test "x$with_cm" != xno],
[save_LIBS="$LIBS"
AC_CHECK_LIB([ibcm], [ib_cm_send_req],
[AC_SUBST(IBCM_LIBS, [-libcm])
uct_ib_modules+=":cm"],
[with_cm=no])
uct_ib_modules+=":cm"
cm_happy="yes"],
[AS_IF([test "x$with_cm" = xyes],
[AC_MSG_ERROR([CM requested but lib ibcm not found])],
[AC_MSG_WARN([CM support not found, skipping])]
)
])
LIBS="$save_LIBS"])

AM_CONDITIONAL([HAVE_TL_CM], [test "x$with_cm" != xno])
AM_CONDITIONAL([HAVE_TL_CM], [test "x$cm_happy" != xno])
AC_CONFIG_FILES([src/uct/ib/cm/Makefile])

0 comments on commit 2567455

Please sign in to comment.