On Fri, Dec 16, 2016 at 10:11:54 +0100, Pavel Hrdina wrote:
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
configure.ac | 32 +++-----------------------
m4/virt-storage-sheepdog.m4 | 56 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+), 29 deletions(-)
create mode 100644 m4/virt-storage-sheepdog.m4
...
diff --git a/m4/virt-storage-sheepdog.m4
b/m4/virt-storage-sheepdog.m4
new file mode 100644
index 0000000000..a9f4c834dd
--- /dev/null
+++ b/m4/virt-storage-sheepdog.m4
@@ -0,0 +1,56 @@
...
+AC_DEFUN([LIBVIRT_STORAGE_CHECK_SHEEPDOG], [
+ if test "$with_storage_sheepdog" = "yes" ||
+ test "$with_storage_sheepdog" = "check"; then
+ AC_PATH_PROGS([SHEEPDOGCLI], [collie dog], [], [$LIBVIRT_SBIN_PATH])
+
+ if test "$with_storage_sheepdog" = "yes"; then
+ if test -z "$SHEEPDOGCLI"; then
+ AC_MSG_ERROR([We need sheepdog client for Sheepdog storage driver])
+ fi
+ else
+ if test -z "$SHEEPDOGCLI"; then
+ with_storage_sheepdog=no
+ fi
+
+ if test "$with_storage_sheepdog" = "check"; then
This is always true; not your fault, though.
ACK
Jirka