From patchwork Wed Apr 15 16:20:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6221861 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BAADFBF4A6 for ; Wed, 15 Apr 2015 16:20:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 035992025A for ; Wed, 15 Apr 2015 16:20:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C0F3720166 for ; Wed, 15 Apr 2015 16:20:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756279AbbDOQUz (ORCPT ); Wed, 15 Apr 2015 12:20:55 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:34837 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754295AbbDOQUy (ORCPT ); Wed, 15 Apr 2015 12:20:54 -0400 Received: by pdbqd1 with SMTP id qd1so57723610pdb.2 for ; Wed, 15 Apr 2015 09:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=JWrc+0qhuMWl0IsNxytZ3ajgBqTe2CcTlCBu7gkyX3I=; b=hwHKLQqSNzvqptK57iuqR3kXxBgyMnWmoSNO+Ar+tFsvnkxC5Q2IBIEE3quYYnJCpK bCiXsoDYbHMmSFBV/9cQBcEMqx6bvlwj0qjBVWCWr3qit1g3KVtk82uvbj3FDOqN7uQ1 HNUmqVaT7/DwRqYf+J7i2XdgDamVkpZDSy/12dat3L7gao+AamONgfGT6NC+JH67Lm03 Or3niqmp1Fuw/ajUMDRNuSlAPb3DuAfjaK9/lbxu8aLzIgYHIgc6B78xM3D6G4AoJROQ vAWGPOx/YIYyaPe9QzrNtx0jd/FE8xSHFXkXrymspEDwDWPh6OdicOHfPCpnUJ+ogqGF uHXw== X-Received: by 10.68.191.101 with SMTP id gx5mr1691980pbc.148.1429114853952; Wed, 15 Apr 2015 09:20:53 -0700 (PDT) Received: from [192.168.99.8] ([104.143.41.79]) by mx.google.com with ESMTPSA id v7sm4564283pde.81.2015.04.15.09.20.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 09:20:52 -0700 (PDT) Message-ID: <552E8FDF.8020104@gmail.com> Date: Thu, 16 Apr 2015 00:20:47 +0800 From: Kinglong Mee User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Steve Dickson CC: "linux-nfs@vger.kernel.org" , Eino Juhani Oltedal , kinglongmee@gmail.com Subject: [PATCH 2/3] configure.ac: fix configure fail with --disable-mount Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Configure fail as, # ./configure --disable-mount ... ... checking for suitable libblkid version... yes checking for mnt_context_do_mount in -lmount... no configure: error: libmount needed It is caused by $enable_libmount is "" (not "yes" and "no") with --disable-mount. Signed-off-by: Kinglong Mee --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 21be2bd..d4301a2 100644 --- a/configure.ac +++ b/configure.ac @@ -346,7 +346,7 @@ AC_SUBST(LIBBSD) AC_SUBST(LIBBLKID) AC_SUBST(LIBDL) -if test "$enable_libmount" != no; then +if test "$enable_libmount" == yes; then AC_CHECK_LIB(mount, mnt_context_do_mount, [LIBMOUNT="-lmount"], AC_MSG_ERROR([libmount needed])) AC_CHECK_HEADER(libmount/libmount.h, , AC_MSG_ERROR([Cannot find libmount header file libmount/libmount.h])) fi