From 9d4f11f726b39efc80aed3e57ef3d74d2a99b76e Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sat, 6 Nov 2021 19:37:37 -0500 Subject: [PATCH] build: pam fix Set the HAVE_PAM option if the dependency is found *and* pam is requested. X-Gentoo-Bug: 821211 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=821211 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index d074946e..5210861e 100644 --- a/meson.build +++ b/meson.build @@ -46,7 +46,7 @@ pam_dep = dependency('pam', required: false) if not pam_dep.found() pam_dep = cc.find_library('pam', required: false) endif -if pam_dep.found() +if pam_dep.found() and get_option('pam') cc_pam_flags = '-DHAVE_PAM' else cc_pam_flags = []