Skip to content

Commit 9e9e016

Browse files
committed
Fix tests in configure.ac
We accidentally had a single AS_IF where multiple ones were required. Fixes: ff052d0 ("Don't try to build manpages without docbook2man") Signed-off-by: Wouter Verhelst <[email protected]>
1 parent 80cd7db commit 9e9e016

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

configure.ac

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,21 +324,26 @@ else
324324
AC_DEFINE(HAVE_NETLINK, 0, [Define to 1 if we have netlink support])
325325
fi
326326

327+
AC_MSG_CHECKING([whether man pages are requested])
327328
AC_ARG_ENABLE([manpages],
328329
AS_HELP_STRING([--disable-manpages], [Do not install man pages]),
329330
[],
330331
[: m4_divert_text([DEFAULTS], [enable_manpages=check])]
331332
)
333+
AC_MSG_RESULT([$enable_manpages])
332334

333335
AS_IF([test "x$enable_manpages" != "xno"], [
334336
AC_CHECK_PROG([DB2M], docbook2man, [docbook2man])
335-
],
336-
[test "x$enable_manpages" = "xyes" -a "x$DB2M" = "x"], [
337+
])
338+
AS_IF([test "x$enable_manpages" = "xyes" -a "x$DB2M" = "x"], [
337339
AC_MSG_ERROR([docbook2man not found, but is required to build manpages])
338-
]
339-
[test "x$DB2M" != "x"], [enable_manpages=yes])
340+
],
341+
[test "x$DB2M" != "x"], [enable_manpages=yes],
342+
[AC_MSG_ERROR([don't know what to do here])])
343+
AC_MSG_CHECKING([whether to build manpages])
344+
AC_MSG_RESULT([$enable_manpages])
340345

341-
AM_CONDITIONAL(MANPAGES, test "x$enable_manpages" = "xyes"])
346+
AM_CONDITIONAL(MANPAGES, test "x$enable_manpages" = "xyes")
342347
AS_IF([test "x$enable_manpages" != "xno"], [
343348
AC_SUBST([MAN_CONFIG_FILES],["\
344349
man/nbd-client.8.sgml \

0 commit comments

Comments
 (0)