1 --- cyrus-sasl-2.1.23/configure.in~ 2011-08-03 14:03:05.002703513 +0200
2 +++ cyrus-sasl-2.1.23/configure.in 2011-08-03 14:03:13.561703511 +0200
5 if test "$with_pam" != no; then
6 AC_CHECK_HEADERS(security/pam_appl.h pam/pam_appl.h)
7 - cmu_save_LIBS="$LIBS"
8 - AC_CHECK_FUNC(pam_start, :,
11 -#include <sys/types.h>
12 -#ifdef HAVE_PAM_PAM_APPL_H
13 -#include <pam/pam_appl.h>
15 -#ifdef HAVE_SECURITY_PAM_H
16 -#include <security/pam_appl.h>
18 -const char *service="foo";
19 -const char *user="bar";
21 -struct pam_conv *conv;
23 -baz = pam_start(service, user, conv, &pamh);
27 - LIBS="$cmu_save_LIBS $LIBPAM"
28 + AC_CHECK_LIB(pam, pam_start, LIBS="$LIBS -lpam")
31 AC_ARG_WITH(saslauthd, [ --with-saslauthd=DIR enable use of the saslauth daemon using state dir DIR ],