build: Disable manual page generation if a2x is not available

This commit is contained in:
Marcel Holtmann 2017-03-07 22:06:50 +01:00
parent 43efaf0163
commit 39483e638d
2 changed files with 3 additions and 0 deletions

View File

@ -215,7 +215,9 @@ TESTS = $(unit_tests)
manual_pages = doc/iwmon.1
if BUILD_DOCS
dist_man_MANS = $(manual_pages)
endif
EXTRA_DIST = $(manual_pages:.1=.txt)

View File

@ -73,6 +73,7 @@ AC_DEFINE_UNQUOTED(CONFIGDIR, "/etc/iwd", [Configuration directory])
AC_CHECK_HEADERS(linux/types.h linux/if_alg.h)
AC_PATH_PROG(A2X, [a2x], [], $PATH:/sbin:/usr/sbin)
AM_CONDITIONAL(BUILD_DOCS, test "$A2X" != "")
AC_CONFIG_FILES(Makefile)