From 3a76ece5ad644b21ad2307051b8f5b47cdf0e3f6 Mon Sep 17 00:00:00 2001 From: Jian Yu Date: Tue, 6 Feb 2018 12:37:23 -0800 Subject: [PATCH] LU-10611 autoconf: check zlib library and zlib.h header file After landing commit f1daa8fc6575e5b9e4a2f1f2ae4ceaefb889a694, zlib library and zlib.h header file are required to compile lfs.c. This patch adds the check in configure script. Change-Id: Id3a8acfc780fb4fcdec0bb99b79b550c5c9e957a Test-Parameters: trivial testlist=sanity-flr Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/31186 Tested-by: Jenkins Reviewed-by: Jinshan Xiong Tested-by: Maloo Reviewed-by: Bobi Jam Reviewed-by: Quentin Bouget Reviewed-by: Oleg Drokin --- lustre/autoconf/lustre-core.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 6ac4fd4..0fe194b 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -3119,6 +3119,15 @@ AC_CHECK_HEADERS([blkid/blkid.h]) # lustre/utils/llverfs.c AC_CHECK_HEADERS([ext2fs/ext2fs.h]) +# lustre/utils/lfs.c +AC_CHECK_LIB([z], [crc32], [ + AC_CHECK_HEADER([zlib.h], [], [ + AC_MSG_ERROR([zlib.h not found.])]) + ], [ + AC_MSG_ERROR([ +zlib library not found. Please install zlib development package.]) +]) + SELINUX="" AC_CHECK_LIB([selinux], [is_selinux_enabled], [AC_CHECK_HEADERS([selinux/selinux.h], -- 1.8.3.1