2 dnl "$Id: cups-pam.m4 4913 2006-01-11 01:42:04Z mike $"
4 dnl PAM stuff for the Common UNIX Printing System (CUPS).
6 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 dnl These coded instructions, statements, and computer programs are the
9 dnl property of Easy Software Products and are protected by Federal
10 dnl copyright law. Distribution and use rights are outlined in the file
11 dnl "LICENSE.txt" which should have been included with this file. If this
12 dnl file is missing or damaged please contact Easy Software Products
15 dnl Attn: CUPS Licensing Information
16 dnl Easy Software Products
17 dnl 44141 Airport View Drive, Suite 204
18 dnl Hollywood, Maryland 20636 USA
20 dnl Voice: (301) 373-9600
21 dnl EMail: cups-info@cups.org
22 dnl WWW: http://www.cups.org
25 AC_ARG_ENABLE(pam, [ --enable-pam turn on PAM support, default=yes])
27 dnl Don't use PAM with AIX...
28 if test $uname = AIX; then
35 PAMMOD="pam_unknown.so"
37 if test x$enable_pam != xno; then
40 AC_CHECK_LIB(dl,dlopen)
41 AC_CHECK_LIB(pam,pam_start)
42 AC_CHECK_HEADER(security/pam_appl.h)
43 if test x$ac_cv_header_security_pam_appl_h != xyes; then
44 AC_CHECK_HEADER(pam/pam_appl.h,
45 AC_DEFINE(HAVE_PAM_PAM_APPL_H))
48 if test x$ac_cv_lib_pam_pam_start != xno; then
49 # Set the necessary libraries for PAM...
50 if test x$ac_cv_lib_dl_dlopen != xno; then
56 # Find the PAM configuration directory, if any...
57 for dir in /private/etc/pam.d /etc/pam.d; do
77 # All others; this test might need to be updated
78 # as Linux distributors move things around...
79 for mod in pam_unix2.so pam_unix.so pam_pwdb.so; do
80 if test -f /lib/security/$mod; then
97 dnl End of "$Id: cups-pam.m4 4913 2006-01-11 01:42:04Z mike $".