From: Bartosz Golaszewski Date: Mon, 25 Mar 2019 08:57:09 +0000 (+0100) Subject: build: fix cross-compilation after adding manpages X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f26a1f89a09179d8b780ac996ba5ea816ff19334;p=qemu-gpiodev%2Flibgpiod.git build: fix cross-compilation after adding manpages Cross-compilation is currently broken because WITH_MANPAGES is defined conditionally. Move it out of the if/then. Fixes: 6cbc2e57555a ("doc: add automatically generated man pages for gpio-tools") Signed-off-by: Bartosz Golaszewski --- diff --git a/configure.ac b/configure.ac index 8a9b81d..0b87072 100644 --- a/configure.ac +++ b/configure.ac @@ -174,11 +174,11 @@ fi if test "x$cross_compiling" = xno then AC_CHECK_PROG([has_help2man], [help2man], [true], [false]) - AM_CONDITIONAL([WITH_MANPAGES], [test "x$has_help2man" = xtrue]) - if test "x$has_help2man" = xfalse - then - AC_MSG_NOTICE([help2man not found - man pages cannot be generated automatically]) - fi +fi +AM_CONDITIONAL([WITH_MANPAGES], [test "x$has_help2man" = xtrue]) +if test "x$has_help2man" = xfalse +then + AC_MSG_NOTICE([help2man not found - man pages cannot be generated automatically]) fi AC_CONFIG_FILES([libgpiod.pc