From 8e6640f0fe9eebde5a6cc9f1c0a20a289b8ad9c8 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 3 Jan 2013 09:32:32 +0100 Subject: nss-myhostname: move to subdirectory In order to merge into the systemd repos. --- src/nss-myhostname/m4/zp_lynx_doc.m4 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/nss-myhostname/m4/zp_lynx_doc.m4 (limited to 'src/nss-myhostname/m4/zp_lynx_doc.m4') diff --git a/src/nss-myhostname/m4/zp_lynx_doc.m4 b/src/nss-myhostname/m4/zp_lynx_doc.m4 new file mode 100644 index 0000000000..955a6ca0af --- /dev/null +++ b/src/nss-myhostname/m4/zp_lynx_doc.m4 @@ -0,0 +1,24 @@ +dnl Macro for enabling LYNX-based documentation generation + +AC_DEFUN([ZP_LYNX_DOC], [ + AC_ARG_ENABLE(lynx, + AS_HELP_STRING([--disable-lynx], + [Turn off lynx usage for documentation generation]),, + [enable_lynx=yes]) + + case "${enable_lynx}" in + yes) + AC_CHECK_PROG(have_lynx, lynx, yes, no) + + if test x$have_lynx = xno ; then + AC_MSG_WARN([*** lynx not found, plain text README will not be built ***]) + fi + ;; + no) + have_lynx=no ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;; + esac + + AM_CONDITIONAL([USE_LYNX], [test "x$have_lynx" = xyes]) +]) -- cgit v1.2.3-54-g00ecf