Signed-off-by: Arlin Davis <[email protected]>
---
 configure.in |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/configure.in b/configure.in
index c36304d..4110024 100644
--- a/configure.in
+++ b/configure.in
@@ -23,20 +23,16 @@ if test "$disable_libcheck" != "yes"
 then
 AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
     AC_MSG_ERROR([ibv_get_device_list() not found.  libdapl requires 
libibverbs.]))
-fi
 
-dnl Checks for header files.
-if test "$disable_libcheck" != "yes"
-then
 AC_CHECK_HEADER(infiniband/verbs.h, [],
     AC_MSG_ERROR([<infiniband/verbs.h> not found.  Is libibverbs installed?]))
-fi
 
-if test "$disable_libcheck" != "yes"
-then
 AC_CHECK_MEMBER(struct ibv_port_attr.link_layer, 
-    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "yes"),
-    [], [#include <infiniband/verbs.h>])
+    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "yes"), 
+    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "no"), 
+    [#include <infiniband/verbs.h>])
+else
+    AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "no")
 fi
 
 AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,
-- 
1.5.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to