mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-01 07:04:10 +01:00
configure: add --without-docs switch
Previously documentation was build automatically if sphinx/doxygen executable were found. The switch is used to unconditionally disable sphinx/doxygen detection and therefor, building of documentation (including man pages).
This commit is contained in:
parent
82d8d0b062
commit
edb485e0b9
1 changed files with 22 additions and 14 deletions
36
configure
vendored
36
configure
vendored
|
@ -65,6 +65,7 @@ PYTHON=${PYTHON:-}
|
||||||
# options.
|
# options.
|
||||||
PREFIX=/usr/local
|
PREFIX=/usr/local
|
||||||
LIBDIR=
|
LIBDIR=
|
||||||
|
WITH_DOCS=1
|
||||||
WITH_EMACS=1
|
WITH_EMACS=1
|
||||||
WITH_BASH=1
|
WITH_BASH=1
|
||||||
WITH_ZSH=1
|
WITH_ZSH=1
|
||||||
|
@ -143,6 +144,7 @@ Some specific library versions can be specified (auto-detected otherwise):
|
||||||
Some features can be disabled (--with-feature=no is equivalent to
|
Some features can be disabled (--with-feature=no is equivalent to
|
||||||
--without-feature) :
|
--without-feature) :
|
||||||
|
|
||||||
|
--without-docs Do not install documentation and man pages
|
||||||
--without-emacs Do not install lisp file
|
--without-emacs Do not install lisp file
|
||||||
--without-bash-completion Do not install bash completions files
|
--without-bash-completion Do not install bash completions files
|
||||||
--without-zsh-completion Do not install zsh completions files
|
--without-zsh-completion Do not install zsh completions files
|
||||||
|
@ -185,6 +187,8 @@ for option; do
|
||||||
BASHCOMPLETIONDIR="${option#*=}"
|
BASHCOMPLETIONDIR="${option#*=}"
|
||||||
elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then
|
elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then
|
||||||
ZSHCOMLETIONDIR="${option#*=}"
|
ZSHCOMLETIONDIR="${option#*=}"
|
||||||
|
elif [ "${option}" = '--without-docs' ] ; then
|
||||||
|
WITH_DOCS=0
|
||||||
elif [ "${option%%=*}" = '--with-emacs' ]; then
|
elif [ "${option%%=*}" = '--with-emacs' ]; then
|
||||||
if [ "${option#*=}" = 'no' ]; then
|
if [ "${option#*=}" = 'no' ]; then
|
||||||
WITH_EMACS=0
|
WITH_EMACS=0
|
||||||
|
@ -466,13 +470,15 @@ else
|
||||||
have_emacs=0
|
have_emacs=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Checking if doxygen is available... "
|
have_doxygen=0
|
||||||
if command -v doxygen > /dev/null; then
|
if [ $WITH_DOCS = "1" ] ; then
|
||||||
printf "Yes.\n"
|
printf "Checking if doxygen is available... "
|
||||||
have_doxygen=1
|
if command -v doxygen > /dev/null; then
|
||||||
else
|
printf "Yes.\n"
|
||||||
printf "No (so will not install api docs)\n"
|
have_doxygen=1
|
||||||
have_doxygen=0
|
else
|
||||||
|
printf "No (so will not install api docs)\n"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Checking for ruby development files... "
|
printf "Checking for ruby development files... "
|
||||||
|
@ -484,13 +490,15 @@ else
|
||||||
have_ruby_dev=0
|
have_ruby_dev=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Checking if sphinx is available and supports nroff output... "
|
have_sphinx=0
|
||||||
if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then
|
if [ $WITH_DOCS = "1" ] ; then
|
||||||
printf "Yes.\n"
|
printf "Checking if sphinx is available and supports nroff output... "
|
||||||
have_sphinx=1
|
if command -v sphinx-build > /dev/null && ${python} -m sphinx.writers.manpage > /dev/null 2>&1 ; then
|
||||||
else
|
printf "Yes.\n"
|
||||||
printf "No (so will not install man pages).\n"
|
have_sphinx=1
|
||||||
have_sphinx=0
|
else
|
||||||
|
printf "No (so will not install man pages).\n"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
libdir_in_ldconfig=0
|
libdir_in_ldconfig=0
|
||||||
|
|
Loading…
Reference in a new issue