From 941bd1f21405fe3d934bbab2f6907f69f5dee372 Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Fri, 6 May 2016 18:53:07 -0700 Subject: [PATCH] LU-8116 build: Fix libmount configure message The configure messages for libmount checking were incorrectly nested resulting in messages like this: checking whether build with libmount... checking libmount/libmount.h usability... no checking libmount/libmount.h presence... no checking for libmount/libmount.h... no no This patch unwinds that mistake. Change-Id: Iec716d8152880902d3e6961cd1d3b821e37c349a Signed-off-by: Christopher J. Morrone Reviewed-on: http://review.whamcloud.com/20055 Tested-by: Jenkins Reviewed-by: Minh Diep Reviewed-by: Andreas Dilger Tested-by: Andreas Dilger Tested-by: Maloo --- config/lustre-build.m4 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/config/lustre-build.m4 b/config/lustre-build.m4 index 3709185..765c021 100644 --- a/config/lustre-build.m4 +++ b/config/lustre-build.m4 @@ -124,15 +124,20 @@ AC_SUBST(LIBCFS_SUBDIR) # We need it to manipulate utab file. # AC_DEFUN([LB_LIBMOUNT], [ -AC_MSG_CHECKING([whether build with libmount]) AC_CHECK_HEADER([libmount/libmount.h], [ AC_CHECK_LIB([mount], [mnt_update_set_fs], [ LDLIBMOUNT="-lmount" AC_SUBST(LDLIBMOUNT) AC_DEFINE(HAVE_LIBMOUNT, 1, [build with libmount]) - AC_MSG_RESULT(yes) - ],[AC_MSG_RESULT(no)]) -], [AC_MSG_RESULT(no)]) + with_libmount="yes" + ],[with_libmount="no"]) +], [with_libmount="no"]) +AC_MSG_CHECKING([whether to build with libmount]) +AS_IF([test "x$with_libmount" = xyes], [ + AC_MSG_RESULT([yes]) +], [ + AC_MSG_RESULT([no]) +]) ]) # LB_LIBMOUNT # -- 1.8.3.1