build: Lower libmount dependency to 2.23

Since commit 96ebcee8c4, we don’t actually need libmount 2.28. Lower our
dependency to 2.23 so that we can continue to build against CentOS 7.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: Emmanuele Bassi <ebassi@gnome.org>

https://bugzilla.gnome.org/show_bug.cgi?id=793288
This commit is contained in:
Philip Withnall 2018-02-13 14:58:07 +00:00
parent 644ecec971
commit 35d5add4bb
2 changed files with 2 additions and 2 deletions

View File

@ -1798,7 +1798,7 @@ AC_ARG_ENABLE(libmount,
[build with libmount support [default for Linux]])],,
[enable_libmount=$enable_libmount_default])
AS_IF([ test "x$enable_libmount" = "xyes"],[
PKG_CHECK_MODULES([LIBMOUNT], [mount >= 2.28], [have_libmount=yes], [have_libmount=no])
PKG_CHECK_MODULES([LIBMOUNT], [mount >= 2.23], [have_libmount=yes], [have_libmount=no])
if test $have_libmount = no ; then
AC_MSG_ERROR([*** Could not find libmount])
fi

View File

@ -1521,7 +1521,7 @@ xgettext = find_program('xgettext', required : false)
# pkg-config file below
libmount_dep = []
if host_system == 'linux' and get_option('libmount')
libmount_dep = [dependency('mount', version : '>=2.28', required : true)]
libmount_dep = [dependency('mount', version : '>=2.23', required : true)]
endif
if host_system == 'windows'