summaryrefslogtreecommitdiffstats
path: root/debian/patches/63-add-utempter-switch.patch
blob: 800f0924645f147fe740c5b2e0271da07c86e6ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Add guarding commandline option around libutempter check
Author: Axel Beckert <abe@debian.org>
Forwarded: not-yet
Bug-Debian: https://bugs.debian.org/819781

--- a/configure.ac
+++ b/configure.ac
@@ -841,6 +841,8 @@
 ],
 [int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();], AC_DEFINE(GETUTENT), LIBS="$olibs")
 )
+AC_ARG_ENABLE(utempter, [  --enable-utempter       enable utempter support])
+if test "$enable_pam" = "yes"; then
 AC_CHECKING(ut_host)
 AC_TRY_COMPILE([
 #include <time.h>
@@ -857,6 +859,7 @@
   AC_DEFINE(HAVE_UTEMPTER)
   LIBS="$LIBS -lutempter"
 fi
+fi
 
 dnl
 dnl    ****  loadav  ****