2 dnl "$Id: cups-pam.m4 6649 2007-07-11 21:46:42Z mike $"
4 dnl PAM stuff for the Common UNIX Printing System (CUPS).
6 dnl Copyright 2007 by Apple Inc.
7 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
9 dnl These coded instructions, statements, and computer programs are the
10 dnl property of Apple Inc. and are protected by Federal copyright
11 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 dnl which should have been included with this file. If this file is
13 dnl file is missing or damaged, see the license at "http://www.cups.org/".
16 AC_ARG_ENABLE(pam, [ --enable-pam turn on PAM support, default=yes])
18 dnl Don't use PAM with AIX...
19 if test $uname = AIX; then
26 PAMMOD="pam_unknown.so"
28 if test x$enable_pam != xno; then
31 AC_CHECK_LIB(dl,dlopen)
32 AC_CHECK_LIB(pam,pam_start)
33 AC_CHECK_HEADER(security/pam_appl.h)
34 if test x$ac_cv_header_security_pam_appl_h != xyes; then
35 AC_CHECK_HEADER(pam/pam_appl.h,
36 AC_DEFINE(HAVE_PAM_PAM_APPL_H))
39 if test x$ac_cv_lib_pam_pam_start != xno; then
40 # Set the necessary libraries for PAM...
41 if test x$ac_cv_lib_dl_dlopen != xno; then
47 # Find the PAM configuration directory, if any...
48 for dir in /private/etc/pam.d /etc/pam.d; do
68 # All others; this test might need to be updated
69 # as Linux distributors move things around...
70 for mod in pam_unix2.so pam_unix.so pam_pwdb.so; do
71 if test -f /lib/security/$mod; then
88 dnl End of "$Id: cups-pam.m4 6649 2007-07-11 21:46:42Z mike $".