diff options
author | Tomas Mraz <tm@t8m.info> | 2006-06-27 12:34:07 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2006-06-27 12:34:07 +0000 |
commit | abf8754ad5c98462b2134aa339271b52960569c0 (patch) | |
tree | 09db681c2ee192a738ec34c6b3bc9aba1e12ecd3 /configure.in | |
parent | c001cd28e81640b755bc9b6ec56b9005bf40e3c4 (diff) | |
download | pam-abf8754ad5c98462b2134aa339271b52960569c0.tar.gz pam-abf8754ad5c98462b2134aa339271b52960569c0.tar.bz2 pam-abf8754ad5c98462b2134aa339271b52960569c0.zip |
Relevant BUGIDs:
Purpose of commit: new feature
Commit summary:
---------------
* modules/pam_keyinit/pam_keyinit.c: New module.
* modules/pam_keyinit/pam_keyinit.8: New.
* modules/pam_keyinit/pam_keyinit.8.xml: New.
* modules/pam_keyinit/README: New.
* modules/pam_keyinit/README.xml: New.
* modules/pam_keyinit/Makefile.am: New.
* modules/pam_keyinit/tst_pam_keyinit: New.
* modules/Makefile.am: Added pam_keyinit.
* configure.in: Added test for the key mgmt syscall.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 09869e3c..315c89cc 100644 --- a/configure.in +++ b/configure.in @@ -451,6 +451,29 @@ AH_VERBATIM([_ZZENABLE_NLS], #define N_(msgid) msgid #endif /* ENABLE_NLS */]) +dnl +dnl Check for the availability of the kernel key management facility +dnl - The pam_keyinit module only requires the syscalls, not the error codes +dnl +have_key_syscalls=0 +AC_CHECK_DECL(__NR_keyctl, [have_key_syscalls=1],,[#include <sys/syscall.h>]) +have_key_errors=0 +AC_CHECK_DECL(ENOKEY, [have_key_errors=1]) + +HAVE_KEY_MANAGEMENT=0 +if test $have_key_syscalls$have_key_errors = 11 +then + HAVE_KEY_MANAGEMENT=1 +fi + +if test $HAVE_KEY_MANAGEMENT = 1; then + AC_DEFINE([HAVE_KEY_MANAGEMENT], 1, + [Defined if the kernel key management facility is available]) +fi +AC_SUBST([HAVE_KEY_MANAGEMENT], $HAVE_KEY_MANAGEMENT) + +AM_CONDITIONAL([HAVE_KEY_MANAGEMENT], [test ! -z "$have_key_syscalls"]) + dnl Files to be created from when we run configure AC_OUTPUT(Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \ libpam_misc/Makefile conf/Makefile conf/pam_conv1/Makefile \ @@ -461,7 +484,8 @@ AC_OUTPUT(Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile \ modules/pam_echo/Makefile modules/pam_env/Makefile \ modules/pam_filter/Makefile modules/pam_filter/upperLOWER/Makefile \ modules/pam_ftp/Makefile modules/pam_group/Makefile \ - modules/pam_issue/Makefile modules/pam_lastlog/Makefile \ + modules/pam_issue/Makefile \ + modules/pam_keyinit/Makefile modules/pam_lastlog/Makefile \ modules/pam_limits/Makefile modules/pam_listfile/Makefile \ modules/pam_localuser/Makefile modules/pam_mail/Makefile \ modules/pam_mkhomedir/Makefile modules/pam_motd/Makefile \ |