X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.ac;h=ce28633812d909fdcc0a2e27223a938d6a5f6b73;hp=6b61b1b25e800a593b93c820b046e2e3a12ff79e;hb=03b190522330093db55e2268392ae9f291f6aa0e;hpb=f1b04a20dcf6baedbd0f06a38d8748586d48dbb7 diff --git a/configure.ac b/configure.ac index 6b61b1b25e..ce28633812 100644 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,14 @@ AC_CONFIG_SRCDIR([src/openocd.c]) m4_include([config_subdir.m4])dnl +# check for makeinfo before calling AM_INIT_AUTOMAKE +AC_CHECK_PROG([MAKEINFO], [makeinfo], [makeinfo]) +if test "x$MAKEINFO" = "x"; then + MAKEINFO='echo makeinfo missing; true' + AC_MSG_WARN([Info documentation will not be built.]) +fi +AC_SUBST([MAKEINFO]) + AM_INIT_AUTOMAKE([-Wall -Wno-portability dist-bzip2 dist-zip subdir-objects]) AC_CONFIG_HEADERS([config.h])