From patchwork Wed Jun 16 17:21:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 106531 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5GHLOpb025448 for ; Wed, 16 Jun 2010 17:21:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759296Ab0FPRVb (ORCPT ); Wed, 16 Jun 2010 13:21:31 -0400 Received: from mga09.intel.com ([134.134.136.24]:41082 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759293Ab0FPRVb convert rfc822-to-8bit (ORCPT ); Wed, 16 Jun 2010 13:21:31 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 16 Jun 2010 10:21:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,427,1272870000"; d="scan'208";a="630958146" Received: from orsmsx603.amr.corp.intel.com ([10.22.226.49]) by orsmga001.jf.intel.com with ESMTP; 16 Jun 2010 10:21:30 -0700 Received: from orsmsx002.amr.corp.intel.com (10.22.226.105) by orsmsx603.amr.corp.intel.com (10.22.226.49) with Microsoft SMTP Server (TLS) id 8.2.176.0; Wed, 16 Jun 2010 10:21:30 -0700 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx002.amr.corp.intel.com ([10.22.226.105]) with mapi; Wed, 16 Jun 2010 10:21:30 -0700 From: "Davis, Arlin R" To: "linux-rdma@vger.kernel.org" , ofw_list Date: Wed, 16 Jun 2010 10:21:29 -0700 Subject: [PATCH 3/5] dapl-2.0 - configure: need a false conditional for verbs attr.link_layer member check Thread-Topic: [PATCH 3/5] dapl-2.0 - configure: need a false conditional for verbs attr.link_layer member check Thread-Index: AcsNeFvjla27Iw4hQGSR4e1CQz6sFA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 16 Jun 2010 17:21:34 +0000 (UTC) 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([ 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 ]) + AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "yes"), + AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "no"), + [#include ]) +else + AM_CONDITIONAL(DEFINE_ATTR_LINK_LAYER, test "yes" = "no") fi AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,