summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2009-05-25 09:48:58 +0200
committerJan Safranek <jsafrane@redhat.com>2009-05-25 09:48:58 +0200
commit052073bbb6b90eba8822e8105ed4250fa1e2d72b (patch)
tree79e689cf1bda29906672cfe48c37c16e85306c7a
parent62e5d793d3d34479fec591dee62854381dc51291 (diff)
downloadlibcg-devel/automake-updates.zip
libcg-devel/automake-updates.tar.gz
libcg-devel/automake-updates.tar.xz
Check for PAM headers and librariesdevel/automake-updates
When PAM module is enabled, configure script should check if necessary headers and libraries are available. Signed-off-by: Jan Safranek <jsafrane@redhat.com>
-rw-r--r--configure.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index b1bd2b5..d6b28d3 100644
--- a/configure.in
+++ b/configure.in
@@ -113,6 +113,20 @@ AC_FUNC_REALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([getmntent hasmntopt memset mkdir rmdir strdup])
+if test x$with_pam = xtrue; then
+ AC_CHECK_LIB(
+ [pam],
+ [pam_syslog],
+ [],
+ [AC_MSG_ERROR([Cannot compile PAM module without libpam!])])
+
+ AC_CHECK_HEADERS(
+ [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
+ [],
+ [AC_MSG_ERROR([Cannot compile PAM module without necessary
+ header files!])])
+fi
+
AC_CONFIG_FILES([Makefile
tests/Makefile
src/Makefile