dnl --------------------------------------------------------------------------- dnl dot: This program is needed for processing images. If not found, dnl documentation can still be built, but without figures. dnl --------------------------------------------------------------------------- AC_DEFUN([GP_CHECK_DOT], [ try_dot=true have_dot=false AC_ARG_WITH(dot, AS_HELP_STRING([--without-dot], [Do not use dot]), [ if test "x$withval" = "xno"; then try_dot=false fi]) if $try_dot; then AC_PATH_PROG(DOT,dot) if test -n "${DOT}"; then have_dot=true fi fi if $have_dot; then AC_SUBST(DOT) AC_MSG_CHECKING([whether ${DOT} works]) ${DOT} -Tps -o tesseract.ps 2> /dev/null <