summaryrefslogtreecommitdiffstats
path: root/src/external/pam.m4
diff options
context:
space:
mode:
Diffstat (limited to 'src/external/pam.m4')
-rw-r--r--src/external/pam.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/src/external/pam.m4 b/src/external/pam.m4
new file mode 100644
index 000000000..40c8fd0dc
--- /dev/null
+++ b/src/external/pam.m4
@@ -0,0 +1,6 @@
+AC_SUBST(PAM_LIBS)
+
+AC_CHECK_HEADERS([security/pam_appl.h security/pam_misc.h security/pam_modules.h],
+ [AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])],
+ [AC_MSG_ERROR([PAM development libraries not installed])]
+)