meson: Only require libmount on Linux

It's not available on other platforms, so don't require the user to
explicitly disable it there.
This commit is contained in:
Nirbheek Chauhan 2017-03-21 16:49:55 +05:30 committed by Matthias Clasen
parent eb07a2c87d
commit fb1f52e32f

View File

@ -1283,7 +1283,7 @@ libintl = cc.find_library('intl', required : false)
# pkg-config file below
libmount_dep = []
libmount_opt = get_option('enable-libmount')
if libmount_opt != 'no'
if host_system == 'linux' and libmount_opt != 'no'
libmount_dep = [dependency('mount', version : '>=2.28', required : false)]
if not libmount_dep[0].found()
libmount_dep = [cc.find_library('mount')]