build: make makeinfo optional

This means the user does not have to install texinfo to build OpenOCD.

Change-Id: Id9f42da798d3c2b79e95214c9e2559cf32802251
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2325
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
__archive__
Spencer Oliver 2014-09-30 11:22:40 +01:00
parent 1ea25b85bb
commit c7de02d619
1 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,14 @@ AC_CONFIG_SRCDIR([src/openocd.c])
m4_include([config_subdir.m4])dnl 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]) AM_INIT_AUTOMAKE([-Wall -Wno-portability dist-bzip2 dist-zip subdir-objects])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])