if conf.get('HAVE_PAM') == 1
version_script_arg = project_source_root / pam_systemd_home_sym
- pam_systemd = shared_library(
+ pam_systemd_home = shared_library(
'pam_systemd_home',
pam_systemd_home_c,
name_prefix : '',
install : true,
install_tag : 'pam',
install_dir : pamlibdir)
+
+ if want_tests != 'false'
+ test('dlopen-pam_systemd_home',
+ test_dlopen,
+ # path to dlopen must include a slash
+ args : pam_systemd_home.full_path(),
+ depends : pam_systemd_home)
+ endif
endif
endif