# gp-manual-fig2dev.m4 - look for fig2dev tool and check it -*- Autoconf -*- # serial 13 dnl | Increment the above serial number every time you edit this file. dnl | When it finds multiple m4 files with the same name, dnl | aclocal will use the one with the highest serial. dnl dnl --------------------------------------------------------------------------- dnl fig2dev: This program is needed for processing images. If not found, dnl documentation can still be built, but without figures. dnl --------------------------------------------------------------------------- AC_DEFUN([GP_CHECK_FIG2DEV], [ try_fig2dev=true have_fig2dev=false AC_ARG_WITH(fig2dev, [ --without-fig2dev Don't use fig2dev],[ if test "x$withval" = "xno"; then try_fig2dev=false fi]) if $try_fig2dev; then AC_PATH_PROG(FIG2DEV,fig2dev) if test -n "${FIG2DEV}"; then have_fig2dev=true fi fi if $have_fig2dev; then AC_SUBST(FIG2DEV) ${FIG2DEV} -L ps > /dev/null <