]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Automatically detect if ibacm is installed
authorSean Hefty <sean.hefty@intel.com>
Fri, 2 Mar 2012 01:13:58 +0000 (17:13 -0800)
committerSean Hefty <sean.hefty@intel.com>
Fri, 2 Mar 2012 17:18:44 +0000 (09:18 -0800)
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 <sean.hefty@intel.com>
configure.in

index 8d8974161af4012927d1600ecbe03b850d0207a3..238ee59c6cf13441d90ce7f26987dbc11735ce86 100644 (file)
@@ -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 <valgrind/memcheck.h> 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 <infiniband/acm.h> 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