1dnl Macro for enabling LYNX-based documentation generation
2
3AC_DEFUN([ZP_LYNX_DOC], [
4  AC_ARG_ENABLE(lynx,
5     AS_HELP_STRING([--disable-lynx],
6        [Turn off lynx usage for documentation generation]),,
7     [enable_lynx=yes])
8
9  case "${enable_lynx}" in
10    yes)
11      AC_CHECK_PROG(have_lynx, lynx, yes, no)
12
13      if test x$have_lynx = xno ; then
14         AC_MSG_WARN([*** lynx not found, plain text README will not be built ***])
15      fi
16      ;;
17    no)
18      have_lynx=no ;;
19    *)
20      AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;;
21  esac
22
23  AM_CONDITIONAL([USE_LYNX], [test "x$have_lynx" = xyes])
24])
25