This package will compile and run on Darwin (MacOS), if there is an implementation of Linux-PAM there; but the building of shared libraries is not supported. Make sure you use the --disable-shared option to configure.