else
# internal library
AC_DEFINE(HAVE_BLKID_H, 1, [Define to 1 if you have the <blkid.h> header file.])
- AC_DEFINE(HAVE_BLKID_EVALUATE_TAG, 1, [Define to 1 if you have the blkid_evaluate_tag().])
- AC_DEFINE(HAVE_BLKID_PROBE_ENABLE_PARTITIONS, 1, [Define to 1 if you have the blkid_probe_enable_partitions().])
+ AC_DEFINE(HAVE_LIBBLKID_INTERNAL, 1, [Define to 1 if you have the in-tree libblkid.])
fi
if test "x$have_blkid" = xyes; then
# endif
#endif
-#ifdef HAVE_BLKID_PROBE_ENABLE_PARTITIONS
+#ifdef HAVE_LIBBLKID_INTERNAL
# include <blkid.h>
#endif
whole = 1;
zap = 0;
} else {
-#ifdef HAVE_BLKID_PROBE_ENABLE_PARTITIONS
+#ifdef HAVE_LIBBLKID_INTERNAL
blkid_probe pr = blkid_new_probe();
if (!pr)
die(_("unable to alloc new libblkid probe"));
static blkid_cache blcache;
-#ifdef HAVE_BLKID_EVALUATE_TAG
+#ifdef HAVE_LIBBLKID_INTERNAL
/* ask kernel developers why we need such ugly open() method... */
static int
open_device(const char *devname)
return blkid_known_fstype(fstype);
}
-#ifdef HAVE_BLKID_EVALUATE_TAG
+#ifdef HAVE_LIBBLKID_INTERNAL
/*
* libblkid from util-linux-ng
* -- recommended
return blkid_evaluate_tag("LABEL", label, &blcache);
}
-#else /* !HAVE_BLKID_EVALUATE_TAG */
+#else /* !HAVE_LIBBLKID_INTERNAL */
/*
* Classic libblkid (from e2fsprogs) without blkid_evaluate_tag()
return blkid_get_tag_value(blcache, "UUID", devname);
}
-#endif /* !HAVE_BLKID_EVALUATE_TAG */
+#endif /* !HAVE_LIBBLKID_INTERNAL */