blob: 2343c03cb485eac2d56d33b2857547b10db301e3 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From cc66e842e037fba9f06761f942abe5c4856492b8 Mon Sep 17 00:00:00 2001
Andrew Geisslerd1e89492021-02-12 15:35:20 -06002From: Kai Kang <kai.kang@windriver.com>
3Date: Wed, 6 Mar 2019 09:36:11 -0500
4Subject: [PATCH] inetutils: Import version 1.9.4
5
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006Only check security/pam_appl.h which is provided by package libpam when pam is
7enabled.
8
9Upstream-Status: Pending
10
11Signed-off-by: Kai Kang <kai.kang@windriver.com>
Andrew Geisslerd1e89492021-02-12 15:35:20 -060012
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013---
Andrew Geisslerd1e89492021-02-12 15:35:20 -060014 configure.ac | 15 ++++++++++++++-
15 1 file changed, 14 insertions(+), 1 deletion(-)
16
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017diff --git a/configure.ac b/configure.ac
Andrew Geisslereff27472021-10-29 15:35:00 -050018index 5e16c3a..18510a8 100644
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019--- a/configure.ac
20+++ b/configure.ac
Andrew Geisslereff27472021-10-29 15:35:00 -050021@@ -182,6 +182,19 @@ AC_SUBST(LIBUTIL)
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022
23 # See if we have libpam.a. Investigate PAM versus Linux-PAM.
24 if test "$with_pam" = yes ; then
25+ AC_CHECK_HEADERS([security/pam_appl.h], [], [], [
26+#include <sys/types.h>
27+#ifdef HAVE_NETINET_IN_SYSTM_H
28+# include <netinet/in_systm.h>
29+#endif
30+#include <netinet/in.h>
31+#ifdef HAVE_NETINET_IP_H
32+# include <netinet/ip.h>
33+#endif
34+#ifdef HAVE_SYS_PARAM_H
35+# include <sys/param.h>
36+#endif
37+])
38 AC_CHECK_LIB(dl, dlopen, LIBDL=-ldl)
39 AC_CHECK_LIB(pam, pam_authenticate, LIBPAM=-lpam)
40 if test "$ac_cv_lib_pam_pam_authenticate" = yes ; then
Andrew Geisslereff27472021-10-29 15:35:00 -050041@@ -617,7 +630,7 @@ AC_HEADER_DIRENT
42 AC_CHECK_HEADERS([arpa/nameser.h arpa/tftp.h fcntl.h features.h \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050043 glob.h memory.h netinet/ether.h netinet/in_systm.h \
44 netinet/ip.h netinet/ip_icmp.h netinet/ip_var.h \
45- security/pam_appl.h shadow.h \
46+ shadow.h \
Andrew Geisslereff27472021-10-29 15:35:00 -050047 stropts.h sys/tty.h \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050048 sys/utsname.h sys/ptyvar.h sys/msgbuf.h sys/filio.h \
49 sys/ioctl_compat.h sys/cdefs.h sys/stream.h sys/mkdev.h \