configure: support --with-docs=no

Since we promise --with-foo=no is equivalent to --without-foo
This commit is contained in:
David Bremner 2015-07-30 08:08:31 +02:00
parent a63b5db873
commit a57b3d4303

6
configure vendored
View file

@ -187,6 +187,12 @@ for option; do
BASHCOMPLETIONDIR="${option#*=}"
elif [ "${option%%=*}" = '--zshcompletiondir' ] ; then
ZSHCOMLETIONDIR="${option#*=}"
elif [ "${option%%=*}" = '--with-docs' ]; then
if [ "${option#*=}" = 'no' ]; then
WITH_DOCS=0
else
WITH_DOCS=1
fi
elif [ "${option}" = '--without-docs' ] ; then
WITH_DOCS=0
elif [ "${option%%=*}" = '--with-emacs' ]; then