summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch')
-rw-r--r--meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch b/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
new file mode 100644
index 0000000000..1f73cdd07e
--- /dev/null
+++ b/meta/recipes-extended/at/at-3.1.12/configure-add-enable-pam.patch
@@ -0,0 +1,23 @@
1--- at-3.1.12/configure.ac 2011-06-23 14:51:03.653572945 +0800
2+++ at-3.1.12/configure.ac.new 2011-06-27 16:12:14.903572945 +0800
3@@ -81,10 +81,18 @@
4 AC_FUNC_VPRINTF
5 AC_FUNC_GETLOADAVG
6 AC_CHECK_FUNCS(getcwd mktime strftime setreuid setresuid sigaction waitpid)
7+
8+AC_ARG_WITH([pam],
9+ [AS_HELP_STRING([--without-pam], [without PAM support])])
10+
11+if test "x$with_pam" != xno; then
12 AC_CHECK_HEADERS(security/pam_appl.h, [
13 PAMLIB="-lpam"
14- AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])
15-])
16+ AC_DEFINE(HAVE_PAM, 1, [Define to 1 for PAM support])],
17+ [if test "x$with_pam" = xyes; then
18+ AC_MSG_ERROR([PAM selected but security/pam_misc.h not found])
19+ fi])
20+fi
21
22 dnl Checking for programs
23