diff options
Diffstat (limited to 'm4/man-arg-automatic-update.m4')
-rw-r--r-- | m4/man-arg-automatic-update.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/man-arg-automatic-update.m4 b/m4/man-arg-automatic-update.m4 new file mode 100644 index 0000000..2519bd7 --- /dev/null +++ b/m4/man-arg-automatic-update.m4 @@ -0,0 +1,14 @@ +# man-arg-automatic-update.m4 serial 1 +dnl MAN_ARG_AUTOMATIC_UPDATE +dnl Add a --disable-automatic-update option. + +AC_DEFUN([MAN_ARG_AUTOMATIC_UPDATE], +[ +AC_ARG_ENABLE([automatic-update], +[AS_HELP_STRING([--disable-automatic-update], [don't allow man to update databases on the fly])], + [if test "$enableval" = "yes" + then + AC_DEFINE([MAN_DB_UPDATES], [1], [Allow man to update databases on the fly.]) + fi], + [AC_DEFINE([MAN_DB_UPDATES], [1], [Allow man to update databases on the fly.])]) +]) |