1 Only check security/pam_appl.h which is provided by package libpam when pam is
4 Upstream-Status: Pending
6 Signed-off-by: Kai Kang <kai.kang@windriver.com>
8 diff --git a/configure.ac b/configure.ac
9 index b35e672..e78a751 100644
12 @@ -195,6 +195,19 @@ fi
14 # See if we have libpam.a. Investigate PAM versus Linux-PAM.
15 if test "$with_pam" = yes ; then
16 + AC_CHECK_HEADERS([security/pam_appl.h], [], [], [
17 +#include <sys/types.h>
18 +#ifdef HAVE_NETINET_IN_SYSTM_H
19 +# include <netinet/in_systm.h>
21 +#include <netinet/in.h>
22 +#ifdef HAVE_NETINET_IP_H
23 +# include <netinet/ip.h>
25 +#ifdef HAVE_SYS_PARAM_H
26 +# include <sys/param.h>
29 AC_CHECK_LIB(dl, dlopen, LIBDL=-ldl)
30 AC_CHECK_LIB(pam, pam_authenticate, LIBPAM=-lpam)
31 if test "$ac_cv_lib_pam_pam_authenticate" = yes ; then
32 @@ -587,7 +600,7 @@ AC_HEADER_DIRENT
33 AC_CHECK_HEADERS([arpa/nameser.h errno.h fcntl.h features.h \
34 glob.h memory.h netinet/ether.h netinet/in_systm.h \
35 netinet/ip.h netinet/ip_icmp.h netinet/ip_var.h \
36 - security/pam_appl.h shadow.h \
38 stdarg.h stdlib.h string.h stropts.h sys/tty.h \
39 sys/utsname.h sys/ptyvar.h sys/msgbuf.h sys/filio.h \
40 sys/ioctl_compat.h sys/cdefs.h sys/stream.h sys/mkdev.h \