From patchwork Wed Dec 15 19:19:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland Dreier X-Patchwork-Id: 414151 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBFJJicg018549 for ; Wed, 15 Dec 2010 19:19:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755094Ab0LOTTc (ORCPT ); Wed, 15 Dec 2010 14:19:32 -0500 Received: from sj-iport-5.cisco.com ([171.68.10.87]:36330 "EHLO sj-iport-5.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754998Ab0LOTT0 (ORCPT ); Wed, 15 Dec 2010 14:19:26 -0500 Authentication-Results: sj-iport-5.cisco.com; dkim=neutral (message not signed) header.i=none X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAESjCE2rR7Hu/2dsb2JhbACkMHOoIptThUoEhGSGFw X-IronPort-AV: E=Sophos;i="4.59,350,1288569600"; d="scan'208";a="303045137" Received: from sj-core-5.cisco.com ([171.71.177.238]) by sj-iport-5.cisco.com with ESMTP; 15 Dec 2010 19:19:25 +0000 Received: from roland-alpha.cisco.com (roland-alpha.cisco.com [10.33.42.9]) by sj-core-5.cisco.com (8.13.8/8.14.3) with ESMTP id oBFJJPTJ005947; Wed, 15 Dec 2010 19:19:25 GMT Received: by roland-alpha.cisco.com (Postfix, from userid 33217) id 29F04E1466; Wed, 15 Dec 2010 11:19:21 -0800 (PST) From: Roland Dreier To: Sean Hefty , linux-rdma@vger.kernel.org Subject: Add check for libpthread during configure X-Message-Flag: Warning: May contain useful information Date: Wed, 15 Dec 2010 11:19:21 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) 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 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Dec 2010 19:19:45 +0000 (UTC) diff --git a/configure.in b/configure.in index d4ae89f..ea10985 100644 --- a/configure.in +++ b/configure.in @@ -45,6 +45,8 @@ AC_C_CONST AC_CHECK_SIZEOF(long) dnl Checks for libraries +AC_CHECK_LIB(pthread, pthread_mutex_init, [], + AC_MSG_ERROR([pthread_mutex_init() not found. librdmacm requires libpthread.])) if test "$disable_libcheck" != "yes"; then AC_CHECK_LIB(ibverbs, ibv_get_device_list, [], AC_MSG_ERROR([ibv_get_device_list() not found. librdmacm requires libibverbs.]))