>From 6fe03f8c62a063866504ef1c746ac01305b53890 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Mon, 1 Jan 2018 15:44:24 +0000 Subject: [PATCH] Use Homebrew installed makeinfo if it exists (bug#29931) * configure.ac: Add check for Homebrew texinfo install on darwin. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index ec1418b99e..e695e0d791 100644 --- a/configure.ac +++ b/configure.ac @@ -1267,6 +1267,13 @@ AC_DEFUN AC_SUBST([PAXCTL_dumped]) AC_SUBST([PAXCTL_notdumped]) +# Makeinfo on macOS is ancient, check whether there is a more recent +# version installed by Homebrew. +if test "${opsys}" = darwin && test -z ${MAKEINFO} && \ + test -d "/usr/local/opt/texinfo/bin"; then + MAKEINFO=/usr/local/opt/texinfo/bin/makeinfo +fi + ## Require makeinfo >= 4.13 (last of the 4.x series) to build the manuals. if test "${MAKEINFO:=makeinfo}" != "no"; then case `($MAKEINFO --version) 2>/dev/null` in -- 2.14.3