1 dnl ---------------------------------------------------------------------------
2 dnl dot: This program is needed for processing images. If not found,
3 dnl documentation can still be built, but without figures.
4 dnl ---------------------------------------------------------------------------
5 AC_DEFUN([GP_CHECK_DOT],
10 AC_ARG_WITH(dot, AS_HELP_STRING([--without-dot], [Do not use dot]), [
11 if test "x$withval" = "xno"; then
16 if test -n "${DOT}"; then
22 AC_MSG_CHECKING([whether ${DOT} works])
23 ${DOT} -Tps -o tesseract.ps 2> /dev/null <<EOF
37 {abc;abd;acd;bcd;} -- abcd;
40 if test $? != 0 || test ! -f tesseract.ps; then
42 AC_MSG_RESULT([no (see http://www.graphviz.org/ ...)])
47 AM_CONDITIONAL(ENABLE_GRAPHS, $have_dot)