From 24eb55c1887040925d315220aed71c103214d9eb Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Thu, 1 Mar 2012 17:13:58 -0800 Subject: [PATCH] Automatically detect if ibacm is installed If the ibacm header file is available, automatically have the librdmacm configured to use it. This removes the --with-ib_acm configure option. Signed-off-by: Sean Hefty --- configure.in | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/configure.in b/configure.in index 8d897416..238ee59c 100644 --- a/configure.in +++ b/configure.in @@ -23,15 +23,6 @@ if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then fi fi -AC_ARG_WITH([ib_acm], - AC_HELP_STRING([--with-ib_acm], - [Use IB ACM for route resolution - default NO])) - -if test "$with_ib_acm" != "" && test "$with_ib_acm" != "no"; then - AC_DEFINE([USE_IB_ACM], 1, - [Define to 1 to use IB ACM for endpoint resolution]) -fi - AC_ARG_ENABLE(libcheck, [ --disable-libcheck do not test for presence of ib libraries], [ if test "$enableval" = "no"; then disable_libcheck=yes @@ -67,13 +58,10 @@ if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then AC_CHECK_HEADER(valgrind/memcheck.h, [], AC_MSG_ERROR([valgrind requested but not found.])) fi - -if test "$with_ib_acm" != "" && test "$with_ib_acm" != "no"; then -AC_CHECK_HEADER(infiniband/acm.h, [], - AC_MSG_ERROR([IB ACM requested but not found.])) fi -fi +AC_CHECK_HEADER(infiniband/acm.h, + AC_DEFINE([USE_IB_ACM], 1, [setting IBACM support]), []) AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script, if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then -- 2.46.0