From 4dd9b97b762cc73816cb867d49c9d0d0b91d642c Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sat, 25 Jan 2020 11:11:18 +0100
Subject: configure.ac: add --enable-doc option

Allow the user to disable documentation through --disable-doc (enabled
by default), this is especially useful when cross-compiling for embedded
targets

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 modules/pam_localuser/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'modules/pam_localuser')

diff --git a/modules/pam_localuser/Makefile.am b/modules/pam_localuser/Makefile.am
index 10bb3b7a..c31c7532 100644
--- a/modules/pam_localuser/Makefile.am
+++ b/modules/pam_localuser/Makefile.am
@@ -9,7 +9,9 @@ EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_localuser
 
 TESTS = tst-pam_localuser
 
+if HAVE_DOC
 man_MANS = pam_localuser.8
+endif
 XMLS = README.xml pam_localuser.8.xml
 
 securelibdir = $(SECUREDIR)
-- 
cgit v1.2.3