diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f230bb64..23a53d98f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,7 +87,7 @@ OPTION(ENABLE_LUA "Enable Lua scripting language" ON) OPTION(ENABLE_TCL "Enable Tcl scripting language" ON) OPTION(ENABLE_GUILE "Enable Scheme (guile) scripting language" ON) OPTION(ENABLE_XFER "Enable Xfer plugin" ON) -OPTION(ENABLE_DOC "Enable Documentation" ON) +OPTION(ENABLE_DOC "Enable Documentation" OFF) IF(NOT DEFINED WEECHAT_HOME OR "${WEECHAT_HOME}" STREQUAL "") SET(WEECHAT_HOME "~/.weechat") diff --git a/configure.ac b/configure.ac index ba07e908d..02bfea668 100644 --- a/configure.ac +++ b/configure.ac @@ -150,7 +150,7 @@ AC_ARG_WITH(lua-inc, [ --with-lua-inc=DIR, lua include files are in AC_ARG_WITH(lua-lib, [ --with-lua-lib=DIR, lua library files are in DIR (default=autodetect)],lua_lib=$withval,lua_lib='') AC_ARG_WITH(lua-suffix, [ --with-lua-suffix=ARG lua is suffixed with ARG (default=autodetect)],lua_suffix=$withval,lua_suffix='') AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tcl configuration (tclConfig.sh)],tclconfig=$withval,tclconfig='') -AC_ARG_ENABLE(doc, [ --disable-doc turn off documentation (default=built)],enable_doc=$enableval,enable_doc=yes) +AC_ARG_ENABLE(doc, [ --enable-doc turn on build of documentation (default=not built)],enable_doc=$enableval,enable_doc=no) AC_ARG_WITH(debug, [ --with-debug debugging: 0=no debug, 1=debug compilation (default=1)],debug=$withval,debug=1) AC_ARG_VAR(WEECHAT_HOME, [WeeChat home directory for config, logs, scripts.. (default is "~/.weechat")]) diff --git a/debian/rules b/debian/rules index 4e29100be..c68153ae3 100755 --- a/debian/rules +++ b/debian/rules @@ -14,6 +14,7 @@ $(BUILDDIR)/Makefile: mkdir -p $(BUILDDIR) cd $(BUILDDIR) && \ cmake .. \ + -DENABLE_DOC=ON \ -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \ -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="$(CFLAGS) -D_FORTIFY_SOURCE=2" \ diff --git a/doc/de/weechat_user.de.txt b/doc/de/weechat_user.de.txt index 15207c19f..bf6f7800d 100644 --- a/doc/de/weechat_user.de.txt +++ b/doc/de/weechat_user.de.txt @@ -174,9 +174,10 @@ List of commonly used options: | ENABLE_DEMO | `ON`, `OFF` | OFF | Compile Demo plugin. -| ENABLE_DOC | `ON`, `OFF` | ON | - Compile documentation (it takes a long time, you can turn off to speed up - the compilation). +| ENABLE_DOC | `ON`, `OFF` | OFF | + Compile documentation (it takes a long time, recommended only if you build + a binary package embedding documentation or if you can't browse documentation + online). | ENABLE_ENCHANT | `ON`, `OFF` | OFF | Compile <> with Enchant. diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt index 2a2bff47a..9b7e681fe 100644 --- a/doc/en/weechat_user.en.txt +++ b/doc/en/weechat_user.en.txt @@ -170,9 +170,10 @@ List of commonly used options: | ENABLE_DEMO | `ON`, `OFF` | OFF | Compile Demo plugin. -| ENABLE_DOC | `ON`, `OFF` | ON | - Compile documentation (it takes a long time, you can turn off to speed up - the compilation). +| ENABLE_DOC | `ON`, `OFF` | OFF | + Compile documentation (it takes a long time, recommended only if you build + a binary package embedding documentation or if you can't browse documentation + online). | ENABLE_ENCHANT | `ON`, `OFF` | OFF | Compile <> with Enchant. diff --git a/doc/fr/weechat_user.fr.txt b/doc/fr/weechat_user.fr.txt index d7cabe434..91e397d16 100644 --- a/doc/fr/weechat_user.fr.txt +++ b/doc/fr/weechat_user.fr.txt @@ -172,9 +172,10 @@ Liste des options couramment utilisées : | ENABLE_DEMO | `ON`, `OFF` | OFF | Compiler l'extension Demo. -| ENABLE_DOC | `ON`, `OFF` | ON | - Compiler la documentation (cela prend beaucoup de temps, vous pouvez - désactiver pour accélérer la compilation). +| ENABLE_DOC | `ON`, `OFF` | OFF | + Compiler la documentation (cela prend beaucoup de temps, recommandé + seulement si vous construisez un paquet binaire intégrant la documentation ou + si vous ne pouvez pas consulter la documentation en ligne). | ENABLE_ENCHANT | `ON`, `OFF` | OFF | Compiler <> avec Enchant. diff --git a/doc/it/weechat_user.it.txt b/doc/it/weechat_user.it.txt index 449a7bc72..77839c233 100644 --- a/doc/it/weechat_user.it.txt +++ b/doc/it/weechat_user.it.txt @@ -181,9 +181,10 @@ List of commonly used options: | ENABLE_DEMO | `ON`, `OFF` | OFF | Compile Demo plugin. -| ENABLE_DOC | `ON`, `OFF` | ON | - Compile documentation (it takes a long time, you can turn off to speed up - the compilation). +| ENABLE_DOC | `ON`, `OFF` | OFF | + Compile documentation (it takes a long time, recommended only if you build + a binary package embedding documentation or if you can't browse documentation + online). | ENABLE_ENCHANT | `ON`, `OFF` | OFF | Compile <> with Enchant. diff --git a/doc/ja/weechat_user.ja.txt b/doc/ja/weechat_user.ja.txt index 03800be58..2ddd3cc3f 100644 --- a/doc/ja/weechat_user.ja.txt +++ b/doc/ja/weechat_user.ja.txt @@ -166,9 +166,10 @@ List of commonly used options: | ENABLE_DEMO | `ON`, `OFF` | OFF | Compile Demo plugin. -| ENABLE_DOC | `ON`, `OFF` | ON | - Compile documentation (it takes a long time, you can turn off to speed up - the compilation). +| ENABLE_DOC | `ON`, `OFF` | OFF | + Compile documentation (it takes a long time, recommended only if you build + a binary package embedding documentation or if you can't browse documentation + online). | ENABLE_ENCHANT | `ON`, `OFF` | OFF | Compile <> with Enchant. diff --git a/weechat.spec b/weechat.spec index db470c205..5963fa26d 100644 --- a/weechat.spec +++ b/weechat.spec @@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT %setup %build -./configure --prefix=/usr --mandir=/usr/share/man --with-debug=0 +./configure --prefix=/usr --mandir=/usr/share/man --enable-doc --with-debug=0 make %install