Index: configure
--- configure.orig
+++ configure
@@ -4578,7 +4578,7 @@ AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__a
 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
 
-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+MAKEINFO=${MAKEINFO-"${am_missing_run}gmakeinfo"}
 
 # For better backward compatibility.  To be removed once Automake 1.9.x
 # dies out for good.  For more background, see:
@@ -22533,7 +22533,7 @@ fi
 # 20120705 Test for makeinfo; if not present, do not build doc/Makefile
 # This prevents failed builds on many server distributions that by default not to install makeinfo, e.g., RHEL and CentOS
 # Extract the first word of "makeinfo", so it can be a program name with args.
-set dummy makeinfo; ac_word=$2
+set dummy gmakeinfo; ac_word=$2
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 printf %s "checking for $ac_word... " >&6; }
 if test ${ac_cv_prog_HAVE_MAKEINFO+y}
@@ -22579,7 +22579,7 @@ fi
 DOC_FOLDER=""
 if test "x${enable_doc}" = 'xyes' && test "x${HAVE_MAKEINFO}" = 'xyes' ; then
     # Ensure makeinfo is recent enough, i.e., version 4.12 or later
-    MAKEINFO_VERSION="`makeinfo --version | grep texinfo | cut -d ' ' -f 4`"
+    MAKEINFO_VERSION="`gmakeinfo --version | grep texinfo | cut -d ' ' -f 4`"
     echo "MAKEINFO_VERSION=${MAKEINFO_VERSION}"
 
 printf "%s\n" "#define MAKEINFO_VERSION ${MAKEINFO_VERSION}" >>confdefs.h
