build: Fix disabling --enable-man if xsltproc is not available

If --enable-man=maybe (the default), and xsltproc is not available, the
configuration code would check for it, correctly set enable_man=no, then
incorrectly overwrite that with enable_man=yes, which would result in
later trying to execute $(XSLTPROC) when it’s empty.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #720
Approved by: cgwalters
This commit is contained in:
Philip Withnall 2017-03-06 12:19:28 +00:00 committed by Atomic Bot
parent a787e0c072
commit f667a82fc1
1 changed files with 2 additions and 1 deletions

View File

@ -184,8 +184,9 @@ AS_IF([test "$enable_man" != no], [
AC_MSG_ERROR([xsltproc is required for --enable-man]) AC_MSG_ERROR([xsltproc is required for --enable-man])
]) ])
enable_man=no enable_man=no
],[
enable_man=yes
]) ])
enable_man=yes
]) ])
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)