1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

configure.ac: better blkid test

Previous commit e67ebc5c40 used incorrect check
for blkid version.
Fix it by always checking for at least version 2.24,
as we can't use older version anyway.
Added BLKID_SUBLKS_FSINFO is present in newer version.
This commit is contained in:
Zdenek Kabelac 2023-02-10 19:19:31 +01:00
parent 7d419b374a
commit 2a72f8a49c

View File

@ -1113,12 +1113,11 @@ AC_ARG_ENABLE(blkid_wiping,
# so lvresize can check detected flag here # so lvresize can check detected flag here
# #
DEFAULT_USE_BLKID_WIPING=0 DEFAULT_USE_BLKID_WIPING=0
AS_IF([test "$BLKID_WIPING" != "no"], [blkdir_version=">= 2.24"], [blkid_version=""])
PKG_CHECK_MODULES([BLKID], [blkid $blkid_version ], [ PKG_CHECK_MODULES([BLKID], [blkid >= 2.24], [
HAVE_BLKID=1 HAVE_BLKID=1
AC_CACHE_CHECK([for blkdid.h supports SUBLKS_FSINFO.], AC_CACHE_CHECK([for blkdid.h defines BLKID_SUBLKS_FSINFO.],
[ac_cv_have_blkid_sublks_fsinfo], [ac_cv_have_blkid_sublks_fsinfo],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <blkid/blkid.h> [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <blkid/blkid.h>
#ifndef BLKID_SUBLKS_FSINFO #ifndef BLKID_SUBLKS_FSINFO