summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-01 18:00:45 +0000
committerng0 <ng0@n0.is>2019-04-01 18:00:45 +0000
commit1d17d1aa2e32586ac07f637ad320b05a56cc1e3c (patch)
treee030be42a89ae6f1b0c7b1651ebbf0778cbe1763 /configure.ac
parent9662ba32e6b383fc7033f5aceb070ee49ec39d09 (diff)
parent8e50f39a2c1ba03011bd1e5c51d0721f220e2e7a (diff)
Merge branch 'dev/ng0/5673_5616'
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index c23845b97..270011a1c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -376,6 +376,21 @@ else
AC_DEFINE([DOCUMENTATION_ONLY],[0],[Not building only the documentation])
fi
+# should the build process be including the manpages? (default: yes)
+AC_MSG_CHECKING(whether to include man pages)
+AC_ARG_ENABLE([include-manpages],
+ [AS_HELP_STRING([--disable-include-manpages], [Do not include the man pages in build and installation])],
+ [include_manpages=${enableval}],
+ [include_manpages=yes])
+AC_MSG_RESULT($include_manpages)
+if test "x$include_manpages" = "xyes"
+then
+ AM_CONDITIONAL([INCLUDE_MANPAGES],true)
+ AC_DEFINE([INCLUDE_MANPAGES],[1],[Including the man pages in the build and installation])
+else
+ AM_CONDITIONAL([INCLUDE_MANPAGES],false)
+ AC_DEFINE([INCLUDE_MANPAGES],[0],[Not including the man pages in the build and installation])
+fi
# Adam shostack suggests the following for Windows:
# -D_FORTIFY_SOURCE=2 -fstack-protector-all
@@ -1327,6 +1342,7 @@ DATAROOTDIR=$datarootdir
AC_SUBST(DATAROOTDIR)
# test for sudo
+# TODO: do we need to change anything for "doas" on openbsd?
AC_MSG_CHECKING(for sudo)
AC_ARG_WITH(sudo,
[ --with-sudo=PATH path to sudo binary (or just yes)],