root/cherokee/branches/0.5/pam.samba.m4

Revision 1, 0.6 kB (checked in by alo, 4 years ago)

--

Line 
1 #################################################
2 # check for a PAM clear-text auth, accounts, password and session support
3 with_pam_for_crypt=no
4 AC_MSG_CHECKING(whether to use PAM)
5 AC_ARG_WITH(pam,
6 [  --with-pam              Include PAM support (default=yes)],
7 [ case "$withval" in
8   no)
9     AC_MSG_RESULT(no)
10     ;;
11   *)
12     AC_MSG_RESULT(yes)
13     AC_DEFINE(WITH_PAM,1,[Whether to include PAM support])
14     AUTHLIBS="$AUTHLIBS -lpam"
15     with_pam_for_crypt=yes
16     ;;
17   esac ],
18   AC_MSG_RESULT(no)
19 )
20
21 # we can't build a pam module if we don't have pam.
22 AC_CHECK_LIB(pam, pam_get_data, [AC_DEFINE(HAVE_LIBPAM,1,[Whether libpam is available])])
Note: See TracBrowser for help on using the browser.