* This allows all internal links (including anchors) in the
documentation to be verified.
PDNS_CHECK_PANDOC
PDNS_CHECK_MKDOCS
+PDNS_CHECK_LINKCHECKER
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
exit 1
endif
+if HAVE_LINKCHECKER
+check-links: html
+ linkchecker --anchors \
+ --ignore-url=.eot$ \
+ --ignore-url=\.svg \
+ --ignore-url=mailto \
+ --ignore-url=.ttf$ \
+ --ignore-url=woff$ \
+ html/index.html
+endif
+
clean:
rm -rf html *.8 *.1
--- /dev/null
+AC_DEFUN([PDNS_CHECK_LINKCHECKER], [
+ AC_CHECK_PROG([LINKCHECKER], [linkchecker], [linkchecker], [no])
+
+ AS_IF([test "x$LINKCHECKER" = "xno"], [
+ AC_MSG_WARN([linkchecker is missing, unable to verify links in the documentation.])
+ ])
+ AM_CONDITIONAL([HAVE_LINKCHECKER], [test "x$LINKCHECKER" != "xno"])
+])
+