aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2021-11-06 19:37:37 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-11-06 19:37:37 -0500
commit9d4f11f726b39efc80aed3e57ef3d74d2a99b76e (patch)
treec02a973fbe04671261e42df4ebd70d95dbf3c9c7
parent39086875591b6d638a27a96d7d156c8103734c04 (diff)
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
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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 = []