diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am index 0bfa405..359f73a 100644 --- a/alsactl/Makefile.am +++ b/alsactl/Makefile.am @@ -1,7 +1,10 @@ SUBDIRS = init sbin_PROGRAMS=alsactl -man_MANS=alsactl.1 alsactl_init.7 +man_MANS=alsactl.1 +if USE_XMLTO +man_MANS += alsactl_init.7 +endif EXTRA_DIST=alsactl.1 alsactl_init.xml alsactl_SOURCES=alsactl.c state.c utils.c init_parse.c diff --git a/configure.in b/configure.in index 78fc426..9ef6a74 100644 --- a/configure.in +++ b/configure.in @@ -52,6 +52,17 @@ AC_ARG_ENABLE(alsaconf, esac],[alsaconf=true]) AM_CONDITIONAL(ALSACONF, test x$alsaconf = xtrue) +xmlto="" +if test x"$alsaconf" = xtrue; then + AC_ARG_ENABLE(xmlto, + AS_HELP_STRING([--disable-xmlto], [Disable man page creation via xmlto]), + xmlto="$enableval", xmlto="yes") + if test "$xmlto" = "yes"; then + AC_CHECK_PROG([xmlto], [xmlto], [yes]) + fi +fi +AM_CONDITIONAL(USE_XMLTO, test x"$xmlto" = xyes) + dnl Checks for header files. AC_HEADER_STDC if test x$alsamixer = xtrue; then