xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/at/at/configure-add-enable-pam.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Upstream-Status: Pending
2
3--- at-3.1.12/configure.ac	2011-06-23 14:51:03.653572945 +0800
4+++ at-3.1.12/configure.ac.new	2011-06-27 16:12:14.903572945 +0800
5@@ -81,10 +81,18 @@
6 AC_FUNC_VPRINTF
7 AC_FUNC_GETLOADAVG
8 AC_CHECK_FUNCS(getcwd mktime strftime setreuid setresuid sigaction waitpid)
9+
10+AC_ARG_WITH([pam],
11+  [AS_HELP_STRING([--without-pam], [without PAM support])])
12+
13+if test "x$with_pam" != xno; then
14 AC_CHECK_HEADERS(security/pam_appl.h, [
15   PAMLIB="-lpam"
16-  AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])
17-])
18+  AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])],
19+   [if test "x$with_pam" = xyes; then
20+   AC_MSG_ERROR([PAM selected but security/pam_misc.h not found])
21+   fi])
22+fi
23
24 dnl Checking for programs
25
26