summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_access/Makefile.am2
-rw-r--r--modules/pam_cracklib/Makefile.am2
-rw-r--r--modules/pam_debug/Makefile.am2
-rw-r--r--modules/pam_deny/Makefile.am2
-rw-r--r--modules/pam_echo/Makefile.am2
-rw-r--r--modules/pam_env/Makefile.am2
-rw-r--r--modules/pam_exec/Makefile.am2
-rw-r--r--modules/pam_faildelay/Makefile.am2
-rw-r--r--modules/pam_filter/Makefile.am2
-rw-r--r--modules/pam_ftp/Makefile.am2
-rw-r--r--modules/pam_group/Makefile.am2
-rw-r--r--modules/pam_issue/Makefile.am2
-rw-r--r--modules/pam_keyinit/Makefile.am2
-rw-r--r--modules/pam_lastlog/Makefile.am2
-rw-r--r--modules/pam_limits/Makefile.am2
-rw-r--r--modules/pam_listfile/Makefile.am2
-rw-r--r--modules/pam_localuser/Makefile.am2
-rw-r--r--modules/pam_loginuid/Makefile.am2
-rw-r--r--modules/pam_mail/Makefile.am2
-rw-r--r--modules/pam_mkhomedir/Makefile.am2
-rw-r--r--modules/pam_motd/Makefile.am2
-rw-r--r--modules/pam_namespace/Makefile.am2
-rw-r--r--modules/pam_nologin/Makefile.am2
-rw-r--r--modules/pam_permit/Makefile.am2
-rw-r--r--modules/pam_pwhistory/Makefile.am2
-rw-r--r--modules/pam_rhosts/Makefile.am2
-rw-r--r--modules/pam_rootok/Makefile.am2
-rw-r--r--modules/pam_securetty/Makefile.am2
-rw-r--r--modules/pam_selinux/Makefile.am2
-rw-r--r--modules/pam_sepermit/Makefile.am2
-rw-r--r--modules/pam_shells/Makefile.am2
-rw-r--r--modules/pam_succeed_if/Makefile.am2
-rw-r--r--modules/pam_tally/Makefile.am2
-rw-r--r--modules/pam_tally2/Makefile.am2
-rw-r--r--modules/pam_time/Makefile.am2
-rw-r--r--modules/pam_timestamp/Makefile.am2
-rw-r--r--modules/pam_tty_audit/Makefile.am2
-rw-r--r--modules/pam_umask/Makefile.am2
-rw-r--r--modules/pam_unix/Makefile.am2
-rw-r--r--modules/pam_userdb/Makefile.am2
-rw-r--r--modules/pam_warn/Makefile.am2
-rw-r--r--modules/pam_wheel/Makefile.am2
-rw-r--r--modules/pam_xauth/Makefile.am2
43 files changed, 86 insertions, 0 deletions
diff --git a/modules/pam_access/Makefile.am b/modules/pam_access/Makefile.am
index 24f174a3..2b44cb6f 100644
--- a/modules/pam_access/Makefile.am
+++ b/modules/pam_access/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README access.conf $(MANS) $(XMLS) tst-pam_access
+if HAVE_DOC
man_MANS = access.conf.5 pam_access.8
+endif
XMLS = README.xml access.conf.5.xml pam_access.8.xml
diff --git a/modules/pam_cracklib/Makefile.am b/modules/pam_cracklib/Makefile.am
index 673fc30b..f6f7e821 100644
--- a/modules/pam_cracklib/Makefile.am
+++ b/modules/pam_cracklib/Makefile.am
@@ -9,8 +9,10 @@ EXTRA_DIST = README $(XMLS) pam_cracklib.8 tst-pam_cracklib
if HAVE_LIBCRACK
TESTS = tst-pam_cracklib
+if HAVE_DOC
man_MANS = pam_cracklib.8
endif
+endif
XMLS = README.xml pam_cracklib.8.xml
diff --git a/modules/pam_debug/Makefile.am b/modules/pam_debug/Makefile.am
index efd9168b..2342d1b4 100644
--- a/modules/pam_debug/Makefile.am
+++ b/modules/pam_debug/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_debug
+if HAVE_DOC
man_MANS = pam_debug.8
+endif
XMLS = README.xml pam_debug.8.xml
securelibdir = $(SECUREDIR)
diff --git a/modules/pam_deny/Makefile.am b/modules/pam_deny/Makefile.am
index 177fdfd6..32595f3b 100644
--- a/modules/pam_deny/Makefile.am
+++ b/modules/pam_deny/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_deny
+if HAVE_DOC
man_MANS = pam_deny.8
+endif
XMLS = README.xml pam_deny.8.xml
diff --git a/modules/pam_echo/Makefile.am b/modules/pam_echo/Makefile.am
index 228758d6..792a8ea2 100644
--- a/modules/pam_echo/Makefile.am
+++ b/modules/pam_echo/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_echo
+if HAVE_DOC
man_MANS = pam_echo.8
+endif
XMLS = README.xml pam_echo.8.xml
diff --git a/modules/pam_env/Makefile.am b/modules/pam_env/Makefile.am
index 169358d0..4e36e615 100644
--- a/modules/pam_env/Makefile.am
+++ b/modules/pam_env/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README pam_env.conf $(MANS) $(XMLS) tst-pam_env environment
+if HAVE_DOC
man_MANS = pam_env.conf.5 pam_env.8 environment.5
+endif
XMLS = README.xml pam_env.conf.5.xml pam_env.8.xml
diff --git a/modules/pam_exec/Makefile.am b/modules/pam_exec/Makefile.am
index d336f528..14eefd9f 100644
--- a/modules/pam_exec/Makefile.am
+++ b/modules/pam_exec/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_exec
+if HAVE_DOC
man_MANS = pam_exec.8
+endif
XMLS = README.xml pam_exec.8.xml
diff --git a/modules/pam_faildelay/Makefile.am b/modules/pam_faildelay/Makefile.am
index bc64b239..6da109f0 100644
--- a/modules/pam_faildelay/Makefile.am
+++ b/modules/pam_faildelay/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_faildelay
+if HAVE_DOC
man_MANS = pam_faildelay.8
+endif
XMLS = README.xml pam_faildelay.8.xml
TESTS = tst-pam_faildelay
diff --git a/modules/pam_filter/Makefile.am b/modules/pam_filter/Makefile.am
index 3268ad72..b233d1d8 100644
--- a/modules/pam_filter/Makefile.am
+++ b/modules/pam_filter/Makefile.am
@@ -9,7 +9,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_filter
+if HAVE_DOC
man_MANS = pam_filter.8
+endif
XMLS = README.xml pam_filter.8.xml
securelibdir = $(SECUREDIR)
diff --git a/modules/pam_ftp/Makefile.am b/modules/pam_ftp/Makefile.am
index b60cb49b..b39ac56e 100644
--- a/modules/pam_ftp/Makefile.am
+++ b/modules/pam_ftp/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_ftp
+if HAVE_DOC
man_MANS = pam_ftp.8
+endif
XMLS = README.xml pam_ftp.8.xml
securelibdir = $(SECUREDIR)
diff --git a/modules/pam_group/Makefile.am b/modules/pam_group/Makefile.am
index 6d9cef10..d226ce20 100644
--- a/modules/pam_group/Makefile.am
+++ b/modules/pam_group/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README group.conf $(MANS) $(XMLS) tst-pam_group
+if HAVE_DOC
man_MANS = group.conf.5 pam_group.8
+endif
XMLS = README.xml group.conf.5.xml pam_group.8.xml
securelibdir = $(SECUREDIR)
diff --git a/modules/pam_issue/Makefile.am b/modules/pam_issue/Makefile.am
index 7ad2b260..ea6ad098 100644
--- a/modules/pam_issue/Makefile.am
+++ b/modules/pam_issue/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_issue
+if HAVE_DOC
man_MANS = pam_issue.8
+endif
XMLS = README.xml pam_issue.8.xml
TESTS = tst-pam_issue
diff --git a/modules/pam_keyinit/Makefile.am b/modules/pam_keyinit/Makefile.am
index 219c3540..f7819e49 100644
--- a/modules/pam_keyinit/Makefile.am
+++ b/modules/pam_keyinit/Makefile.am
@@ -9,7 +9,9 @@ EXTRA_DIST = README $(XMLS) pam_keyinit.8 tst-pam_keyinit
XMLS = README.xml pam_keyinit.8.xml
if HAVE_KEY_MANAGEMENT
+if HAVE_DOC
man_MANS = pam_keyinit.8
+endif
TESTS = tst-pam_keyinit
endif
diff --git a/modules/pam_lastlog/Makefile.am b/modules/pam_lastlog/Makefile.am
index e71e15e8..4d69e596 100644
--- a/modules/pam_lastlog/Makefile.am
+++ b/modules/pam_lastlog/Makefile.am
@@ -10,7 +10,9 @@ secureconfdir = $(SCONFIGDIR)
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_lastlog
+if HAVE_DOC
man_MANS = pam_lastlog.8
+endif
XMLS = README.xml pam_lastlog.8.xml
TESTS = tst-pam_lastlog
diff --git a/modules/pam_limits/Makefile.am b/modules/pam_limits/Makefile.am
index 60db1f36..70f9775f 100644
--- a/modules/pam_limits/Makefile.am
+++ b/modules/pam_limits/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) limits.conf tst-pam_limits
+if HAVE_DOC
man_MANS = limits.conf.5 pam_limits.8
+endif
XMLS = README.xml limits.conf.5.xml pam_limits.8.xml
TESTS = tst-pam_limits
diff --git a/modules/pam_listfile/Makefile.am b/modules/pam_listfile/Makefile.am
index 85396a03..eeb70151 100644
--- a/modules/pam_listfile/Makefile.am
+++ b/modules/pam_listfile/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_listfile
+if HAVE_DOC
man_MANS = pam_listfile.8
+endif
XMLS = README.xml pam_listfile.8.xml
TESTS = tst-pam_listfile
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)
diff --git a/modules/pam_loginuid/Makefile.am b/modules/pam_loginuid/Makefile.am
index b37c9a2e..a95405b8 100644
--- a/modules/pam_loginuid/Makefile.am
+++ b/modules/pam_loginuid/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_loginuid
+if HAVE_DOC
man_MANS = pam_loginuid.8
+endif
XMLS = README.xml pam_loginuid.8.xml
diff --git a/modules/pam_mail/Makefile.am b/modules/pam_mail/Makefile.am
index f06093d8..beb02150 100644
--- a/modules/pam_mail/Makefile.am
+++ b/modules/pam_mail/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_mail
+if HAVE_DOC
man_MANS = pam_mail.8
+endif
XMLS = README.xml pam_mail.8.xml
TESTS = tst-pam_mail
diff --git a/modules/pam_mkhomedir/Makefile.am b/modules/pam_mkhomedir/Makefile.am
index e0be030b..784eaed7 100644
--- a/modules/pam_mkhomedir/Makefile.am
+++ b/modules/pam_mkhomedir/Makefile.am
@@ -8,7 +8,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_mkhomedir
+if HAVE_DOC
man_MANS = pam_mkhomedir.8 mkhomedir_helper.8
+endif
XMLS = README.xml pam_mkhomedir.8.xml mkhomedir_helper.8.xml
diff --git a/modules/pam_motd/Makefile.am b/modules/pam_motd/Makefile.am
index ed77a739..af94d6ad 100644
--- a/modules/pam_motd/Makefile.am
+++ b/modules/pam_motd/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_motd
+if HAVE_DOC
man_MANS = pam_motd.8
+endif
XMLS = README.xml pam_motd.8.xml
TESTS = tst-pam_motd
diff --git a/modules/pam_namespace/Makefile.am b/modules/pam_namespace/Makefile.am
index d69ca088..0a290160 100644
--- a/modules/pam_namespace/Makefile.am
+++ b/modules/pam_namespace/Makefile.am
@@ -6,8 +6,10 @@
CLEANFILES = *~
MAINTAINERCLEANFILES = $(MAN5) $(MAN8) README
+if HAVE_DOC
MAN5 = namespace.conf.5
MAN8 = pam_namespace.8
+endif
EXTRA_DIST = README namespace.conf namespace.init $(MAN5) $(MAN8) $(XMLS) tst-pam_namespace
diff --git a/modules/pam_nologin/Makefile.am b/modules/pam_nologin/Makefile.am
index 40005b4a..09c925ec 100644
--- a/modules/pam_nologin/Makefile.am
+++ b/modules/pam_nologin/Makefile.am
@@ -9,7 +9,9 @@ EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_nologin
TESTS = tst-pam_nologin
+if HAVE_DOC
man_MANS = pam_nologin.8
+endif
XMLS = README.xml pam_nologin.8.xml
securelibdir = $(SECUREDIR)
diff --git a/modules/pam_permit/Makefile.am b/modules/pam_permit/Makefile.am
index 2871283f..c30a9d80 100644
--- a/modules/pam_permit/Makefile.am
+++ b/modules/pam_permit/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_permit
+if HAVE_DOC
man_MANS = pam_permit.8
+endif
XMLS = README.xml pam_permit.8.xml
TESTS = tst-pam_permit
diff --git a/modules/pam_pwhistory/Makefile.am b/modules/pam_pwhistory/Makefile.am
index 1e0b6060..b5d508a6 100644
--- a/modules/pam_pwhistory/Makefile.am
+++ b/modules/pam_pwhistory/Makefile.am
@@ -9,7 +9,9 @@ EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_pwhistory
TESTS = tst-pam_pwhistory
+if HAVE_DOC
man_MANS = pam_pwhistory.8
+endif
XMLS = README.xml pam_pwhistory.8.xml
diff --git a/modules/pam_rhosts/Makefile.am b/modules/pam_rhosts/Makefile.am
index 6308fa80..db38d82f 100644
--- a/modules/pam_rhosts/Makefile.am
+++ b/modules/pam_rhosts/Makefile.am
@@ -9,7 +9,9 @@ EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_rhosts
TESTS = tst-pam_rhosts
+if HAVE_DOC
man_MANS = pam_rhosts.8
+endif
XMLS = README.xml pam_rhosts.8.xml
diff --git a/modules/pam_rootok/Makefile.am b/modules/pam_rootok/Makefile.am
index 1ceb17de..06e755c5 100644
--- a/modules/pam_rootok/Makefile.am
+++ b/modules/pam_rootok/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_rootok
+if HAVE_DOC
man_MANS = pam_rootok.8
+endif
XMLS = README.xml pam_rootok.8.xml
TESTS = tst-pam_rootok
diff --git a/modules/pam_securetty/Makefile.am b/modules/pam_securetty/Makefile.am
index 413cad32..204400fb 100644
--- a/modules/pam_securetty/Makefile.am
+++ b/modules/pam_securetty/Makefile.am
@@ -9,7 +9,9 @@ EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_securetty
TESTS = tst-pam_securetty
+if HAVE_DOC
man_MANS = pam_securetty.8
+endif
XMLS = README.xml pam_securetty.8.xml
securelibdir = $(SECUREDIR)
diff --git a/modules/pam_selinux/Makefile.am b/modules/pam_selinux/Makefile.am
index 054726b3..d037f483 100644
--- a/modules/pam_selinux/Makefile.am
+++ b/modules/pam_selinux/Makefile.am
@@ -10,8 +10,10 @@ EXTRA_DIST = README $(XMLS) pam_selinux.8 pam_selinux_check.8 \
if HAVE_LIBSELINUX
TESTS = tst-pam_selinux
+if HAVE_DOC
man_MANS = pam_selinux.8
endif
+endif
XMLS = README.xml pam_selinux.8.xml
diff --git a/modules/pam_sepermit/Makefile.am b/modules/pam_sepermit/Makefile.am
index 7155ed8f..3895e124 100644
--- a/modules/pam_sepermit/Makefile.am
+++ b/modules/pam_sepermit/Makefile.am
@@ -10,8 +10,10 @@ EXTRA_DIST = README $(XMLS) pam_sepermit.8 sepermit.conf sepermit.conf.5 tst-pam
if HAVE_LIBSELINUX
TESTS = tst-pam_sepermit
+if HAVE_DOC
man_MANS = pam_sepermit.8 sepermit.conf.5
endif
+endif
XMLS = README.xml pam_sepermit.8.xml sepermit.conf.5.xml
diff --git a/modules/pam_shells/Makefile.am b/modules/pam_shells/Makefile.am
index 5f1447be..a406eddd 100644
--- a/modules/pam_shells/Makefile.am
+++ b/modules/pam_shells/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_shells
+if HAVE_DOC
man_MANS = pam_shells.8
+endif
XMLS = README.xml pam_shells.8.xml
TESTS = tst-pam_shells
diff --git a/modules/pam_succeed_if/Makefile.am b/modules/pam_succeed_if/Makefile.am
index c8e58c09..5fef344f 100644
--- a/modules/pam_succeed_if/Makefile.am
+++ b/modules/pam_succeed_if/Makefile.am
@@ -9,7 +9,9 @@ EXTRA_DIST = README ${MANS} ${XMLS} tst-pam_succeed_if
TESTS = tst-pam_succeed_if
+if HAVE_DOC
man_MANS = pam_succeed_if.8
+endif
XMLS = README.xml pam_succeed_if.8.xml
diff --git a/modules/pam_tally/Makefile.am b/modules/pam_tally/Makefile.am
index 21135aeb..8a27f9fe 100644
--- a/modules/pam_tally/Makefile.am
+++ b/modules/pam_tally/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_tally
+if HAVE_DOC
man_MANS = pam_tally.8
+endif
XMLS = README.xml pam_tally.8.xml
TESTS = tst-pam_tally
diff --git a/modules/pam_tally2/Makefile.am b/modules/pam_tally2/Makefile.am
index 6fab0c44..c95b5352 100644
--- a/modules/pam_tally2/Makefile.am
+++ b/modules/pam_tally2/Makefile.am
@@ -8,7 +8,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_tally2
+if HAVE_DOC
man_MANS = pam_tally2.8
+endif
XMLS = README.xml pam_tally2.8.xml
TESTS = tst-pam_tally2
diff --git a/modules/pam_time/Makefile.am b/modules/pam_time/Makefile.am
index 6eab52ec..3d61078e 100644
--- a/modules/pam_time/Makefile.am
+++ b/modules/pam_time/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) time.conf tst-pam_time
+if HAVE_DOC
man_MANS = time.conf.5 pam_time.8
+endif
XMLS = README.xml time.conf.5.xml pam_time.8.xml
TESTS = tst-pam_time
diff --git a/modules/pam_timestamp/Makefile.am b/modules/pam_timestamp/Makefile.am
index 27fc4fcc..fbac074a 100644
--- a/modules/pam_timestamp/Makefile.am
+++ b/modules/pam_timestamp/Makefile.am
@@ -7,7 +7,9 @@ CLEANFILES = *~
MAINTAINERCLEANFILES = $(MANS) README
XMLS = README.xml pam_timestamp.8.xml pam_timestamp_check.8.xml
+if HAVE_DOC
man_MANS = pam_timestamp.8 pam_timestamp_check.8
+endif
dist_TESTS = tst-pam_timestamp
nodist_TESTS = hmacfile
TESTS = $(dist_TESTS) $(nodist_TESTS)
diff --git a/modules/pam_tty_audit/Makefile.am b/modules/pam_tty_audit/Makefile.am
index ef5ac803..bdec8478 100644
--- a/modules/pam_tty_audit/Makefile.am
+++ b/modules/pam_tty_audit/Makefile.am
@@ -9,8 +9,10 @@ EXTRA_DIST = README pam_tty_audit.8 $(XMLS) tst-pam_tty_audit
if HAVE_AUDIT_TTY_STATUS
TESTS = tst-pam_tty_audit
+if HAVE_DOC
man_MANS = pam_tty_audit.8
endif
+endif
XMLS = README.xml pam_tty_audit.8.xml
securelibdir = $(SECUREDIR)
diff --git a/modules/pam_umask/Makefile.am b/modules/pam_umask/Makefile.am
index d5e98e6d..b8244c80 100644
--- a/modules/pam_umask/Makefile.am
+++ b/modules/pam_umask/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_umask
+if HAVE_DOC
man_MANS = pam_umask.8
+endif
XMLS = README.xml pam_umask.8.xml
diff --git a/modules/pam_unix/Makefile.am b/modules/pam_unix/Makefile.am
index 3b0f528e..55aac31a 100644
--- a/modules/pam_unix/Makefile.am
+++ b/modules/pam_unix/Makefile.am
@@ -8,7 +8,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README md5.c md5_crypt.c lckpwdf.-c $(MANS) CHANGELOG \
tst-pam_unix $(XMLS)
+if HAVE_DOC
man_MANS = pam_unix.8 unix_chkpwd.8 unix_update.8
+endif
XMLS = README.xml pam_unix.8.xml unix_chkpwd.8.xml unix_update.8.xml
TESTS = tst-pam_unix
diff --git a/modules/pam_userdb/Makefile.am b/modules/pam_userdb/Makefile.am
index 32107e7c..d62fc54c 100644
--- a/modules/pam_userdb/Makefile.am
+++ b/modules/pam_userdb/Makefile.am
@@ -8,7 +8,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(XMLS) pam_userdb.8 create.pl tst-pam_userdb
if HAVE_LIBDB
+if HAVE_DOC
man_MANS = pam_userdb.8
+endif
TESTS = tst-pam_userdb
endif
diff --git a/modules/pam_warn/Makefile.am b/modules/pam_warn/Makefile.am
index aeb669b5..00c6d815 100644
--- a/modules/pam_warn/Makefile.am
+++ b/modules/pam_warn/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_warn
+if HAVE_DOC
man_MANS = pam_warn.8
+endif
XMLS = README.xml pam_warn.8.xml
TESTS = tst-pam_warn
diff --git a/modules/pam_wheel/Makefile.am b/modules/pam_wheel/Makefile.am
index 90d67116..ff08a573 100644
--- a/modules/pam_wheel/Makefile.am
+++ b/modules/pam_wheel/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README ${MANS} $(XMLS) tst-pam_wheel
+if HAVE_DOC
man_MANS = pam_wheel.8
+endif
XMLS = README.xml pam_wheel.8.xml
TESTS = tst-pam_wheel
diff --git a/modules/pam_xauth/Makefile.am b/modules/pam_xauth/Makefile.am
index 0691504e..22fe5869 100644
--- a/modules/pam_xauth/Makefile.am
+++ b/modules/pam_xauth/Makefile.am
@@ -7,7 +7,9 @@ MAINTAINERCLEANFILES = $(MANS) README
EXTRA_DIST = README ${MANS} $(XMLS) tst-pam_xauth
+if HAVE_DOC
man_MANS = pam_xauth.8
+endif
XMLS = README.xml pam_xauth.8.xml
TESTS = tst-pam_xauth