diff options
author | Egor Ignatov <egori@altlinux.org> | 2021-08-06 10:41:01 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-07-06 12:59:41 +0200 |
commit | 1d8aae432724a98af82fcca7c02f80793a7e0731 (patch) | |
tree | 5a4558dc0a34823aeb51100dcc30a5ba1b3ccf67 /meson.build | |
parent | shared: add password quality check abstraction layer to support both pwqualit... (diff) | |
download | systemd-1d8aae432724a98af82fcca7c02f80793a7e0731.tar.xz systemd-1d8aae432724a98af82fcca7c02f80793a7e0731.zip |
shared: add libpasswdqc support
Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Resolves: #15055
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/meson.build b/meson.build index fa2f7e3544..3b29807e93 100644 --- a/meson.build +++ b/meson.build @@ -1189,8 +1189,13 @@ else endif conf.set10('HAVE_LIBFDISK', have) +want_passwdqc = get_option('passwdqc') want_pwquality = get_option('pwquality') -if want_pwquality != 'false' and not skip_deps +if want_passwdqc == 'true' and want_pwquality == 'true' + error('passwdqc and pwquality cannot be requested simultaneously') +endif + +if want_pwquality != 'false' and want_passwdqc != 'true' and not skip_deps libpwquality = dependency('pwquality', version : '>= 1.4.1', required : want_pwquality == 'true') @@ -1201,6 +1206,16 @@ else endif conf.set10('HAVE_PWQUALITY', have) +if not have and want_passwdqc != 'false' and not skip_deps + libpasswdqc = dependency('passwdqc', + required : want_passwdqc == 'true') + have = libpasswdqc.found() +else + have = false + libpasswdqc = [] +endif +conf.set10('HAVE_PASSWDQC', have) + want_seccomp = get_option('seccomp') if want_seccomp != 'false' and not skip_deps libseccomp = dependency('libseccomp', @@ -4940,6 +4955,7 @@ foreach tuple : [ ['microhttpd'], ['openssl'], ['p11kit'], + ['passwdqc'], ['pcre2'], ['pwquality'], ['qrencode'], |