--- gnutrition/configure.ac 2026/05/08 03:23:57 1.1 +++ gnutrition/configure.ac 2026/05/17 20:09:43 1.2 @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later # -# $Id: configure.ac,v 1.1 2026/05/08 03:23:57 asm Exp $ +# $Id: configure.ac,v 1.2 2026/05/17 20:09:43 asm Exp $ # # configure.ac for GNUtrition # @@ -38,9 +38,13 @@ PKG_CHECK_MODULES([GTK], [gtk+-3.0], [ha # Optional: GIO 2 for D-Bus support in the GUI binary. PKG_CHECK_MODULES([GIO], [gio-2.0], [have_gio=yes], [have_gio=no]) - AM_CONDITIONAL([BUILD_GTK], [test "x$have_gtk" = xyes -a "x$have_gio" = xyes]) +# Optional: TexInfo tools. +AC_CHECK_PROGS([TEXI2HTML], [texi2html], [have_texi2html=yes], [have_texi2html=no]) +AC_CHECK_PROGS([TEXI2PDF], [texi2pdf], [have_texi2pdf=yes], [have_texi2pdf=no]) +AM_CONDITIONAL([HAVE_TEXINFO], [test "x$have_texi2html" != "no" && test "x$texi2pdf" != "no"]) + AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) AC_OUTPUT