diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-20 19:31:09 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-09-26 17:32:15 +0200 |
commit | a8a0014e0f25eefdf6712387c34e8d55614205ce (patch) | |
tree | 615ab4f1921017e3b0d1ffc273665e6d32ba9eb9 | |
parent | 1ef96f7fb770bc6d649e71e94abd1fad798a427f (diff) | |
download | sway-a8a0014e0f25eefdf6712387c34e8d55614205ce.tar.xz |
Make libpam optional
-rw-r--r-- | meson.build | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 253a4e96..82e4a96f 100644 --- a/meson.build +++ b/meson.build @@ -40,7 +40,7 @@ gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: false) pixman = dependency('pixman-1') libcap = dependency('libcap', required: false) libinput = dependency('libinput', version: '>=1.6.0') -libpam = cc.find_library('pam') +libpam = cc.find_library('pam', required: false) systemd = dependency('libsystemd', required: false) elogind = dependency('libelogind', required: false) math = cc.find_library('m') @@ -133,10 +133,13 @@ subdir('swaymsg') subdir('client') subdir('swaybg') subdir('swaybar') -subdir('swaylock') subdir('swayidle') subdir('swaynag') +if libpam.found() + subdir('swaylock') +endif + config = configuration_data() config.set('sysconfdir', join_paths(prefix, sysconfdir)) config.set('datadir', join_paths(prefix, datadir)) |