build: fix HAS_GI_DOCGEN never defined error
authorKent Gibson <warthog618@gmail.com>
Sat, 31 Aug 2024 07:52:12 +0000 (15:52 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 2 Sep 2024 09:40:24 +0000 (11:40 +0200)
commitc701785717629ecb609764092414d1f164022d2a
tree24720aa2c87ef9accb5863f6e1ffbce5c9cba003
parent47e14b2cefb5a6d4ae6d7bffd76fa7bd129cd23b
build: fix HAS_GI_DOCGEN never defined error

When building without --enable-bindings-glib configure reports this error:

  ...
  checking for help2man... true
  checking that generated files are newer than configure... done
  configure: error: conditional "HAS_GI_DOCGEN" was never defined.
  Usually this means the macro was only invoked conditionally.
  make: *** [Makefile:440: config.status] Error 1

Move the initialization of HAS_GI_DOCGEN outside the conditional
with_bindings_glib section so it is always initialized.

Fixes: e090088c21b7 ("bindings: add GLib bindings")
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240831075212.147812-1-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
configure.ac