From 225c970d589b855b98068e0adfe20f48e30090d2 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Wed, 18 Jul 2012 21:03:08 +0200 Subject: man: detect with autotools if pod2man is present When pod2man is not present build will skip the manual. Earlier the condition caused make error, and empty manual page. Signed-off-by: Sami Kerola RWMJ: - Generate virt-what.txt conditionally too (uses pod2text). --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 347304a..3ffc566 100644 --- a/configure.ac +++ b/configure.ac @@ -36,4 +36,11 @@ dnl Produce output files. AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([virt-what],[chmod +x virt-what]) AC_CONFIG_FILES([Makefile]) + +AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man], [false]) +if test "$POD2MAN" = "false"; then + AC_MSG_WARN([pod2man was not found. This is needed to build man pages.]) +fi +AM_CONDITIONAL([HAVE_POD2MAN], [test "$POD2MAN" != "false"]) + AC_OUTPUT -- cgit