@@ -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,