Convert HAVE_LIBBLKID to WITH_BLKID

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2012-09-20 15:43:12 +01:00
parent f488ddf4d8
commit 7db9ac8260
4 changed files with 15 additions and 15 deletions

View File

@ -108,7 +108,7 @@ LIBPCAP_REQUIRED="1.0.0"
LIBNL_REQUIRED="1.1"
LIBSSH2_REQUIRED="1.0"
LIBSSH2_TRANSPORT_REQUIRED="1.3"
LIBBLKID_REQUIRED="2.17"
BLKID_REQUIRED="2.17"
FUSE_REQUIRED="2.8.6"
dnl Checks for C compiler.
@ -2315,15 +2315,15 @@ AC_ARG_WITH([libblkid],
if test "x$with_libblkid" = "xyes" || test "x$with_libblkid" = "xcheck"; then
PKG_CHECK_MODULES([BLKID],
[blkid >= $LIBBLKID_REQUIRED],
[blkid >= $BLKID_REQUIRED],
[with_libblkid="yes"],
[with_libblkid="no"])
fi
if test "x$with_libblkid" = "xyes"; then
AC_DEFINE([HAVE_LIBBLKID], [1], [libblkid is present])
AC_DEFINE([WITH_BLKID], [1], [libblkid is present])
fi
AM_CONDITIONAL([HAVE_LIBBLKID], [test "x$with_libblkid" = "xyes"])
AM_CONDITIONAL([WITH_BLKID], [test "x$with_libblkid" = "xyes"])
if test $with_freebsd = yes; then
default_qemu_user=root

View File

@ -967,7 +967,7 @@ libvirt_driver_lxc_impl_la_CFLAGS = \
$(FUSE_CFLAGS) \
-I$(top_srcdir)/src/conf $(AM_CFLAGS)
libvirt_driver_lxc_impl_la_LIBADD = $(CAPNG_LIBS) $(LIBNL_LIBS) $(FUSE_LIBS)
if HAVE_LIBBLKID
if WITH_BLKID
libvirt_driver_lxc_impl_la_CFLAGS += $(BLKID_CFLAGS)
libvirt_driver_lxc_impl_la_LIBADD += $(BLKID_LIBS)
endif
@ -1149,7 +1149,7 @@ endif
if WITH_SECDRIVER_APPARMOR
libvirt_driver_storage_impl_la_LIBADD += $(APPARMOR_LIBS)
endif
if HAVE_LIBBLKID
if WITH_BLKID
libvirt_driver_storage_impl_la_CFLAGS += $(BLKID_CFLAGS)
libvirt_driver_storage_impl_la_LIBADD += $(BLKID_LIBS)
endif
@ -1922,7 +1922,7 @@ libvirt_lxc_CFLAGS = \
$(AM_CFLAGS) \
$(LIBNL_CFLAGS) \
$(FUSE_CFLAGS)
if HAVE_LIBBLKID
if WITH_BLKID
libvirt_lxc_CFLAGS += $(BLKID_CFLAGS)
libvirt_lxc_LDADD += $(BLKID_LIBS)
endif

View File

@ -49,7 +49,7 @@
# include <cap-ng.h>
#endif
#if HAVE_LIBBLKID
#if WITH_BLKID
# include <blkid/blkid.h>
#endif
@ -826,7 +826,7 @@ cleanup:
}
#ifdef HAVE_LIBBLKID
#ifdef WITH_BLKID
static int
lxcContainerMountDetectFilesystem(const char *src, char **type)
{
@ -897,7 +897,7 @@ cleanup:
blkid_free_probe(blkid);
return ret;
}
#else /* ! HAVE_LIBBLKID */
#else /* ! WITH_BLKID */
static int
lxcContainerMountDetectFilesystem(const char *src ATTRIBUTE_UNUSED,
char **type)
@ -906,7 +906,7 @@ lxcContainerMountDetectFilesystem(const char *src ATTRIBUTE_UNUSED,
*type = NULL;
return 0;
}
#endif /* ! HAVE_LIBBLKID */
#endif /* ! WITH_BLKID */
/*
* This functions attempts to do automatic detection of filesystem

View File

@ -37,7 +37,7 @@
#include <libxml/tree.h>
#include <libxml/xpath.h>
#if HAVE_LIBBLKID
#if WITH_BLKID
# include <blkid/blkid.h>
#endif
@ -540,7 +540,7 @@ virStorageBackendFileSystemStart(virConnectPtr conn ATTRIBUTE_UNUSED,
}
#endif /* WITH_STORAGE_FS */
#if HAVE_LIBBLKID
#if WITH_BLKID
static virStoragePoolProbeResult
virStorageBackendFileSystemProbe(const char *device,
const char *format) {
@ -611,7 +611,7 @@ error:
return ret;
}
#else /* #if HAVE_LIBBLKID */
#else /* #if WITH_BLKID */
static virStoragePoolProbeResult
virStorageBackendFileSystemProbe(const char *device ATTRIBUTE_UNUSED,
@ -624,7 +624,7 @@ virStorageBackendFileSystemProbe(const char *device ATTRIBUTE_UNUSED,
return FILESYSTEM_PROBE_ERROR;
}
#endif /* #if HAVE_LIBBLKID */
#endif /* #if WITH_BLKID */
/* some platforms don't support mkfs */
#ifdef MKFS