Commit d62d0ed0 authored by Milan Broz's avatar Milan Broz

Add configure option to disable build of cryptsetup tool.

You can use --disable-cryptsetup to not build cryptsetup binary.
parent a4b9ce13
......@@ -273,7 +273,7 @@ saved_LIBS=$LIBS
AC_ARG_ENABLE([static-cryptsetup],
AS_HELP_STRING([--enable-static-cryptsetup],
[enable build of static cryptsetup binary]))
[enable build of static version of tools]))
if test x$enable_static_cryptsetup = xyes; then
if test x$enable_static = xno; then
AC_MSG_WARN([Requested static cryptsetup build, enabling static library.])
......@@ -282,6 +282,11 @@ if test x$enable_static_cryptsetup = xyes; then
fi
AM_CONDITIONAL(STATIC_TOOLS, test x$enable_static_cryptsetup = xyes)
AC_ARG_ENABLE(cryptsetup,
AS_HELP_STRING([--disable-cryptsetup],
[disable cryptsetup support]),[], [enable_cryptsetup=yes])
AM_CONDITIONAL(CRYPTSETUP, test x$enable_cryptsetup = xyes)
AC_ARG_ENABLE(veritysetup,
AS_HELP_STRING([--disable-veritysetup],
[disable veritysetup support]),[], [enable_veritysetup=yes])
......
# cryptsetup
if CRYPTSETUP
cryptsetup_SOURCES = \
lib/utils_crypt.c \
lib/utils_loop.c \
......@@ -26,6 +28,7 @@ cryptsetup_static_LDADD = \
@PWQUALITY_STATIC_LIBS@ \
@DEVMAPPER_STATIC_LIBS@
endif
endif
# veritysetup
if VERITYSETUP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment