diff options
author | Jiri Denemark <jdenemar@redhat.com> | 2017-03-31 21:42:22 +0200 |
---|---|---|
committer | Jiri Denemark <jdenemar@redhat.com> | 2017-04-27 11:44:11 +0200 |
commit | 23377c539b72a7fc4e2749a068711fe1f626998d (patch) | |
tree | a3e97f58a199810896d9e7876df945de9bbf0e05 /m4 | |
parent | ac58c036065ff1d53bc05b796093287c27c71762 (diff) | |
download | libvirt-23377c539b72a7fc4e2749a068711fe1f626998d.tar.gz |
locking: Add support for sanlock_strerror
The recently added sanlock_strerror function can be used to translate
sanlock's numeric errors into human readable strings.
https://bugzilla.redhat.com/show_bug.cgi?id=1409511
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/virt-sanlock.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/virt-sanlock.m4 b/m4/virt-sanlock.m4 index e4476cae43..00de7980e8 100644 --- a/m4/virt-sanlock.m4 +++ b/m4/virt-sanlock.m4 @@ -61,6 +61,13 @@ AC_DEFUN([LIBVIRT_CHECK_SANLOCK],[ [whether sanlock supports sanlock_write_lockspace]) fi + AC_CHECK_LIB([sanlock_client], [sanlock_strerror], + [sanlock_strerror=yes], [sanlock_strerror=no]) + if test "x$sanlock_strerror" = "xyes" ; then + AC_DEFINE_UNQUOTED([HAVE_SANLOCK_STRERROR], 1, + [whether sanlock supports sanlock_strerror]) + fi + CPPFLAGS="$old_cppflags" LIBS="$old_libs" fi |