build: Make pam module installation dir configurable

And avoid treating "libdir" as an absolute path, the documentation
clearly states that it is "relative to the prefix".

Based on patch by Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Bastien Nocera
2020-02-10 14:43:52 +01:00
parent 6d583cb5d8
commit b90b21f26b
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,8 @@
mapfile = files('pam_fprintd.ver')
pam_modules_dir = '/' + get_option('libdir') / 'security'
pam_modules_dir = get_option('pam_modules_dir')
if pam_modules_dir == ''
pam_modules_dir = '/' / get_option('libdir') / 'security'
endif
pam_fprintd = shared_module('pam_fprintd',
name_prefix: '',