summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 3cdb499c68..f947e9fde3 100644
--- a/meson.build
+++ b/meson.build
@@ -191,6 +191,10 @@ if get_option('pam') == true
if cc.has_header('security/pam_appl.h')
config_h.set('HAVE_PAM', '1')
dep_pam = cc.find_library('pam', required: true)
+ else
+ if openbsd == false and freebsd == false
+ error('PAM is not disabled and not found on non-free+open BSD platforms')
+ endif
endif
endif