pam_oath configure fails with OpenPAM
When trying to build oath-toolkit 2.6.7 on Mac OS, the configure script fails with an error message. The script checks for security/pam_modutil.h and aborts if not present. This header seems to be specific to Linux PAM, so this will fail on systems that use OpenPAM, such as Mac OS.
The configure check was added in 2.6.7 in order to use the
pam_modutil_getpwnam function in pam_oath.c. To support OpenPAM, I propose adding a fallback implementation of
pam_modutil_getpwnam when security/pam_modutil.h is not available. If this seems reasonable to the maintainers, I can submit a PR with the proposed changes.