diff options
author | Ben Pfaff <blp@nicira.com> | 2011-08-24 10:45:32 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-08-24 12:42:52 -0700 |
commit | 0027492deeae5ed1c51458ae1970064be2089df9 (patch) | |
tree | bb192451c4a6fc5288b7681b064045d1aae52eb3 /m4 | |
parent | 5d943800c1681d572411f9883e45dfb9a9e33909 (diff) |
docs: Add Makefile rule to check syntax of manpages.
This should catch future nroff syntax errors immediately, instead of much
later.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/openvswitch.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index e9edc490..7aaf67a2 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -361,3 +361,15 @@ AC_DEFUN([OVS_CHECK_LINKER_SECTIONS], fi AM_CONDITIONAL( [USE_LINKER_SECTIONS], [test $ovs_cv_use_linker_sections = yes])]) + +dnl Checks for groff. +AC_DEFUN([OVS_CHECK_GROFF], + [AC_CACHE_CHECK( + [for groff], + [ovs_cv_groff], + [if (groff -v) >/dev/null 2>&1; then + ovs_cv_groff=yes + else + ovs_cv_groff=no + fi]) + AM_CONDITIONAL([HAVE_GROFF], [test "$ovs_cv_groff" = yes])]) |