From 070a8208afce5e582bb00a6f4280302ccd601403 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Thu, 17 Apr 2014 19:03:24 +0400 Subject: [PATCH] configure: check for blkid/blkid.h header The check for the presence of blkid/blkid.h was missing. Signed-off-by: Ilya Dryomov --- configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 75536bd248e..bf2f1cf8d1e 100644 --- a/configure.ac +++ b/configure.ac @@ -134,8 +134,13 @@ ACX_PTHREAD AC_CHECK_LIB([uuid], [uuid_parse], [true], AC_MSG_FAILURE([libuuid not found])) +# rbd {map,unmap,showmapped} dependencies, Linux only if test x"$linux" = x"yes"; then - AC_CHECK_LIB([blkid], [blkid_devno_to_wholedisk], [true], AC_MSG_FAILURE([libblkid not found])) + # libblkid + AC_CHECK_HEADER([blkid/blkid.h], [], + AC_MSG_ERROR([blkid/blkid.h not found (libblkid-dev, libblkid-devel)])) + AC_CHECK_LIB([blkid], [blkid_devno_to_wholedisk], [], + AC_MSG_FAILURE([libblkid not found])) fi #