summaryrefslogtreecommitdiff
path: root/m4/manual_format.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/manual_format.m4')
-rw-r--r--m4/manual_format.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/manual_format.m4 b/m4/manual_format.m4
new file mode 100644
index 0000000..898bd95
--- /dev/null
+++ b/m4/manual_format.m4
@@ -0,0 +1,15 @@
+#
+# Find format of installed man pages.
+#
+AC_DEFUN([AC_MANUAL_FORMAT],
+ [ have_zipped_manpages=false
+ have_bzip2ed_manpages=false
+ eval export `grep PCP_MAN_DIR /etc/pcp.conf`
+ if test -f "$PCP_MAN_DIR/man1/pcp.1.gz"; then
+ have_zipped_manpages=true
+ elif test -f "$PCP_MAN_DIR/man1/pcp.1.bz2"; then
+ have_bzip2ed_manpages=true
+ fi
+ AC_SUBST(have_zipped_manpages)
+ AC_SUBST(have_bzip2ed_manpages)
+ ])