mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
configure.ac: fail configure for missing libraries
When user enables lockd libraris, code needs to fail, when then are missing. Also when notify-dbus support if enabled, and libsystemd is missing, abort configuration.
This commit is contained in:
parent
ad66600e48
commit
255e8c8eaa
10
configure.ac
10
configure.ac
@ -913,7 +913,7 @@ AC_MSG_RESULT([$BUILD_LOCKDSANLOCK])
|
|||||||
|
|
||||||
dnl -- Look for sanlock libraries
|
dnl -- Look for sanlock libraries
|
||||||
AS_IF([test "$BUILD_LOCKDSANLOCK" = "yes"], [
|
AS_IF([test "$BUILD_LOCKDSANLOCK" = "yes"], [
|
||||||
PKG_CHECK_MODULES(LIBSANLOCKCLIENT, libsanlock_client >= 3.3.0, [BUILD_LVMLOCKD="yes"], $bailout)
|
PKG_CHECK_MODULES(LIBSANLOCKCLIENT, libsanlock_client >= 3.3.0, [BUILD_LVMLOCKD="yes"])
|
||||||
AC_DEFINE([LOCKDSANLOCK_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd sanlock option.])
|
AC_DEFINE([LOCKDSANLOCK_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd sanlock option.])
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -928,7 +928,7 @@ AC_MSG_RESULT([$BUILD_LOCKDDLM])
|
|||||||
|
|
||||||
dnl -- Look for dlm libraries
|
dnl -- Look for dlm libraries
|
||||||
AS_IF([test "$BUILD_LOCKDDLM" = "yes"], [
|
AS_IF([test "$BUILD_LOCKDDLM" = "yes"], [
|
||||||
PKG_CHECK_MODULES(LIBDLM, libdlm_lt, [BUILD_LVMLOCKD="yes"], $bailout)
|
PKG_CHECK_MODULES(LIBDLM, libdlm_lt, [BUILD_LVMLOCKD="yes"])
|
||||||
AC_DEFINE([LOCKDDLM_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd dlm option.])
|
AC_DEFINE([LOCKDDLM_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd dlm option.])
|
||||||
AS_CASE(["$LIBDLM_LIBS"],
|
AS_CASE(["$LIBDLM_LIBS"],
|
||||||
[*lpthread*], [
|
[*lpthread*], [
|
||||||
@ -948,7 +948,7 @@ AC_MSG_RESULT([$BUILD_LOCKDDLM_CONTROL])
|
|||||||
|
|
||||||
dnl -- Look for libdlmcontrol libraries
|
dnl -- Look for libdlmcontrol libraries
|
||||||
AS_IF([test "$BUILD_LOCKDDLM_CONTROL" = "yes"], [
|
AS_IF([test "$BUILD_LOCKDDLM_CONTROL" = "yes"], [
|
||||||
PKG_CHECK_MODULES(LIBDLMCONTROL, [libdlmcontrol >= 3.2], [BUILD_LVMLOCKD="yes"], $bailout)
|
PKG_CHECK_MODULES(LIBDLMCONTROL, [libdlmcontrol >= 3.2], [BUILD_LVMLOCKD="yes"])
|
||||||
AC_DEFINE([LOCKDDLM_CONTROL_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd dlm control option.])
|
AC_DEFINE([LOCKDDLM_CONTROL_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd dlm control option.])
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -964,7 +964,7 @@ AC_MSG_RESULT([$BUILD_LOCKDIDM])
|
|||||||
dnl -- Look for Seagate IDM libraries
|
dnl -- Look for Seagate IDM libraries
|
||||||
AS_IF([test "$BUILD_LOCKDIDM" = "yes"], [
|
AS_IF([test "$BUILD_LOCKDIDM" = "yes"], [
|
||||||
PKG_CHECK_EXISTS(blkid >= 2.24, [
|
PKG_CHECK_EXISTS(blkid >= 2.24, [
|
||||||
PKG_CHECK_MODULES(LIBSEAGATEILM, [libseagate_ilm >= 0.1.0], [BUILD_LVMLOCKD="yes"], $bailout)
|
PKG_CHECK_MODULES(LIBSEAGATEILM, [libseagate_ilm >= 0.1.0], [BUILD_LVMLOCKD="yes"])
|
||||||
AC_DEFINE([LOCKDIDM_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd IDM option.])
|
AC_DEFINE([LOCKDIDM_SUPPORT], 1, [Define to 1 to include code that uses lvmlockd IDM option.])
|
||||||
AS_IF([test -z "$LIBSEAGATEILM_LIBS"], [LIBSEAGATEILM_LIBS="-lseagate_ilm"])
|
AS_IF([test -z "$LIBSEAGATEILM_LIBS"], [LIBSEAGATEILM_LIBS="-lseagate_ilm"])
|
||||||
], $bailout)
|
], $bailout)
|
||||||
@ -1093,7 +1093,7 @@ AS_IF([test "$APP_MACHINEID_SUPPORT" = "yes"],
|
|||||||
|
|
||||||
dnl -- Look for libsystemd libraries if needed
|
dnl -- Look for libsystemd libraries if needed
|
||||||
AS_IF([test "$NOTIFYDBUS_SUPPORT" = "yes" || test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" || test "$APP_MACHINEID_SUPPORT" = "yes"], [
|
AS_IF([test "$NOTIFYDBUS_SUPPORT" = "yes" || test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" || test "$APP_MACHINEID_SUPPORT" = "yes"], [
|
||||||
PKG_CHECK_MODULES(LIBSYSTEMD, [libsystemd], [], $bailout)
|
PKG_CHECK_MODULES(LIBSYSTEMD, [libsystemd])
|
||||||
])
|
])
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user