summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-01-06 13:10:56 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-01-08 14:19:41 +0100
commit754ab339469cdf8b55b82f4c896c4e15876551db (patch)
tree28a8a77c07a5e36e7af93ae0fe68a7a6416df239
parent18360feb324d8d4f63706662b5c0e919bc93c357 (diff)
downloadweechat-754ab339469cdf8b55b82f4c896c4e15876551db.zip
core: remove build with autotools
CMake is now the only way to build WeeChat.
-rw-r--r--.github/workflows/ci.yml17
-rw-r--r--Makefile.am80
-rwxr-xr-xautogen.sh69
-rw-r--r--configure.ac1601
-rwxr-xr-xdebian-devel/rules5
-rwxr-xr-xdebian-stable/rules5
-rw-r--r--doc/Makefile.am28
-rw-r--r--doc/cs/Makefile.am81
-rw-r--r--doc/de/Makefile.am111
-rw-r--r--doc/de/weechat_faq.de.adoc22
-rw-r--r--doc/de/weechat_user.de.adoc65
-rw-r--r--doc/en/Makefile.am129
-rw-r--r--doc/en/weechat_dev.en.adoc5
-rw-r--r--doc/en/weechat_faq.en.adoc13
-rw-r--r--doc/en/weechat_user.en.adoc57
-rw-r--r--doc/es/Makefile.am77
-rw-r--r--doc/es/weechat_faq.es.adoc15
-rw-r--r--doc/fr/Makefile.am129
-rw-r--r--doc/fr/weechat_dev.fr.adoc5
-rw-r--r--doc/fr/weechat_faq.fr.adoc18
-rw-r--r--doc/fr/weechat_user.fr.adoc60
-rw-r--r--doc/it/Makefile.am116
-rw-r--r--doc/it/weechat_faq.it.adoc21
-rw-r--r--doc/it/weechat_user.it.adoc64
-rw-r--r--doc/ja/Makefile.am128
-rw-r--r--doc/ja/weechat_dev.ja.adoc5
-rw-r--r--doc/ja/weechat_faq.ja.adoc15
-rw-r--r--doc/ja/weechat_user.ja.adoc61
-rw-r--r--doc/pl/Makefile.am111
-rw-r--r--doc/pl/weechat_faq.pl.adoc15
-rw-r--r--doc/pl/weechat_user.pl.adoc63
-rw-r--r--doc/ru/Makefile.am81
-rw-r--r--doc/sr/Makefile.am129
-rw-r--r--doc/sr/weechat_dev.sr.adoc5
-rw-r--r--doc/sr/weechat_faq.sr.adoc10
-rw-r--r--doc/sr/weechat_user.sr.adoc61
-rw-r--r--icons/Makefile.am39
-rw-r--r--src/Makefile.am22
-rw-r--r--src/core/Makefile.am125
-rw-r--r--src/gui/Makefile.am70
-rw-r--r--src/gui/curses/Makefile.am30
-rw-r--r--src/gui/curses/headless/Makefile.am57
-rw-r--r--src/gui/curses/normal/Makefile.am64
-rw-r--r--src/plugins/Makefile.am167
-rw-r--r--src/plugins/alias/Makefile.am39
-rw-r--r--src/plugins/buflist/Makefile.am42
-rw-r--r--src/plugins/charset/Makefile.am30
-rw-r--r--src/plugins/exec/Makefile.am40
-rw-r--r--src/plugins/fifo/Makefile.am37
-rw-r--r--src/plugins/fset/Makefile.am48
-rw-r--r--src/plugins/guile/Makefile.am33
-rw-r--r--src/plugins/irc/Makefile.am86
-rw-r--r--src/plugins/javascript/Makefile.am35
-rw-r--r--src/plugins/logger/Makefile.am43
-rw-r--r--src/plugins/lua/Makefile.am34
-rw-r--r--src/plugins/perl/Makefile.am33
-rw-r--r--src/plugins/php/Makefile.am35
-rw-r--r--src/plugins/python/Makefile.am33
-rw-r--r--src/plugins/relay/Makefile.am66
-rw-r--r--src/plugins/ruby/Makefile.am33
-rw-r--r--src/plugins/script/Makefile.am48
-rw-r--r--src/plugins/spell/Makefile.am44
-rw-r--r--src/plugins/tcl/Makefile.am34
-rw-r--r--src/plugins/trigger/Makefile.am42
-rw-r--r--src/plugins/typing/Makefile.am37
-rw-r--r--src/plugins/xfer/Makefile.am52
-rw-r--r--tests/Makefile.am130
-rw-r--r--tests/tests.cpp14
-rwxr-xr-xtools/build_test.sh55
69 files changed, 183 insertions, 4991 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 251aa8fe3..083d5a1df 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,7 +5,7 @@ on:
- pull_request
env:
- WEECHAT_DEPENDENCIES: devscripts equivs python3-pip autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-3.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php-dev libphp-embed libargon2-dev libsodium-dev flake8 pylint python3-bandit asciidoctor ruby-pygments.rb shellcheck
+ WEECHAT_DEPENDENCIES: devscripts equivs python3-pip cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-3.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php-dev libphp-embed libargon2-dev libsodium-dev flake8 pylint python3-bandit asciidoctor ruby-pygments.rb shellcheck
jobs:
@@ -16,13 +16,11 @@ jobs:
os:
- ubuntu-22.04
config:
- - { name: "cmake_gcc", cc: "gcc", cxx: "g++", tool: "cmake", args: "" }
- - { name: "cmake_gcc_ninja", cc: "gcc", cxx: "g++", tool: "cmake", args: "-G Ninja" }
- - { name: "cmake_gcc_no_nls", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_NLS=OFF" }
- - { name: "cmake_gcc_coverage", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_CODE_COVERAGE=ON" }
- - { name: "cmake_clang", cc: "clang", cxx: "clang++", tool: "cmake", args: "" }
- - { name: "autotools_gcc", cc: "gcc", cxx: "g++", tool: "autotools", args: "" }
- - { name: "autotools_clang", cc: "clang", cxx: "clang++", tool: "autotools", args: "" }
+ - { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" }
+ - { name: "gcc_ninja", cc: "gcc", cxx: "g++", buildargs: "-G Ninja" }
+ - { name: "gcc_no_nls", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_NLS=OFF" }
+ - { name: "gcc_coverage", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_CODE_COVERAGE=ON" }
+ - { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" }
name: "Tests: ${{ matrix.config.name }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
@@ -53,8 +51,7 @@ jobs:
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
- BUILDTOOL: ${{ matrix.config.tool }}
- BUILDARGS: ${{ matrix.config.args }}
+ BUILDARGS: ${{ matrix.config.buildargs }}
run: ./tools/build_test.sh
- name: Run WeeChat
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index b0a5b32b1..000000000
--- a/Makefile.am
+++ /dev/null
@@ -1,80 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
-# Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-# This target will update file config-git.h with output of command "git describe"
-# (if needed, and only for a devel/rc version).
-BUILT_SOURCES = build-config-git.h
-build-config-git.h:
- -$(abs_top_srcdir)/tools/set_git_version.sh "$(abs_top_srcdir)" "$(VERSION)" config-git.h
-
-if TESTS
-tests_dir = tests
-endif
-
-SUBDIRS = icons po doc intl src $(tests_dir)
-
-EXTRA_DIST = AUTHORS.adoc \
- ChangeLog.adoc \
- Contributing.adoc \
- README.adoc \
- ReleaseNotes.adoc \
- CMakeLists.txt \
- config.rpath \
- config.h.cmake \
- cmake/CMakeParseArguments.cmake \
- cmake/FindAsciidoctor.cmake \
- cmake/FindAspell.cmake \
- cmake/FindCppUTest.cmake \
- cmake/FindENCHANT.cmake \
- cmake/FindGCRYPT.cmake \
- cmake/FindGettext.cmake \
- cmake/FindGnuTLS.cmake \
- cmake/FindGuile.cmake \
- cmake/FindIconv.cmake \
- cmake/FindLua.cmake \
- cmake/FindNcurses.cmake \
- cmake/FindPerl.cmake \
- cmake/FindPkgConfig.cmake \
- cmake/FindPython.cmake \
- cmake/FindRuby.cmake \
- cmake/FindV8.cmake \
- cmake/FindZLIB.cmake \
- cmake/cmake_uninstall.cmake.in \
- po/CMakeLists.txt \
- po/srcfiles.cmake \
- tools/build_test.sh \
- tools/set_git_version.sh \
- tools/makedist.sh \
- version.sh \
- weechat.desktop \
- weechat.pc.in \
- weechat.cygport.in
-
-ACLOCAL_AMFLAGS = -I m4
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = weechat.pc
-
-desktopdir = $(datadir)/applications
-desktop_DATA = weechat.desktop
-
-clean-local:
- $(RM) config-git.h
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 1561c30ff..000000000
--- a/autogen.sh
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
-# Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-###
-### common stuff
-###
-
-DIR=$(cd "$(dirname "$0")" || exit 1; pwd)
-cd "$DIR" || exit 1
-
-AUTOGEN_LOG=autogen.log
-
-err ()
-{
- echo "-------"
- echo "Error :"
- echo "---8<-----------------------------------"
- cat "$AUTOGEN_LOG"
- echo "----------------------------------->8---"
- exit 1
-}
-
-run ()
-{
- printf "Running \"%s\"... " "$*"
- if "$@" >"$AUTOGEN_LOG" 2>&1 ; then
- echo "OK"
- else
- echo "FAILED"
- err
- fi
-}
-
-# remove autotools stuff
-run rm -f config.h.in
-run rm -f aclocal.m4 configure config.log config.status
-run rm -rf "autom4te*.cache"
-
-# remove libtool stuff
-run rm -f libtool
-
-# remove gettext stuff
-run rm -f ABOUT-NLS
-run rm -rf intl
-
-# execute autoreconf cmds
-run autoreconf -vi
-
-# ending
-rm -f "$AUTOGEN_LOG"
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index e144641c4..000000000
--- a/configure.ac
+++ /dev/null
@@ -1,1601 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2005 Benoit Papillault <benoit.papillault@free.fr>
-# Copyright (C) 2005-2006 Julien Louis <ptitlouis@sysif.net>
-# Copyright (C) 2005-2009 Emmanuel Bouthenot <kolter@openics.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-# -*- Autoconf -*-
-# Process this file with autoconf to produce a configure script.
-
-AC_PREREQ(2.56)
-AC_INIT(WeeChat, m4_esyscmd([./version.sh devel-full | tr -d '\n']), flashcode@flashtux.org)
-AC_CONFIG_SRCDIR([configure.ac])
-AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE([foreign])
-LICENSE="GPL3"
-
-# Checks for programs
-AC_PROG_CC
-AC_PROG_CXX
-AC_PROG_MAKE_SET
-AC_GNU_SOURCE
-AC_PROG_LN_S
-AM_PROG_LIBTOOL
-PKG_PROG_PKG_CONFIG
-
-# Files to generate
-AC_CONFIG_FILES([weechat.pc])
-AC_CONFIG_FILES([weechat-${VERSION}-1.cygport:weechat.cygport.in])
-
-# Add some flags for some OS
-case "$host_os" in
-freebsd* | openbsd*)
- CFLAGS="$CFLAGS -I/usr/local/include"
- CXXFLAGS="$CXXFLAGS -I/usr/local/include"
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
- ;;
-netbsd*)
- CFLAGS="$CFLAGS -I/usr/pkg/include"
- CXXFLAGS="$CXXFLAGS -I/usr/pkg/include"
- LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
- ;;
-solaris*)
- LDFLAGS="$LDFLAGS -lsocket -lxnet"
- ;;
-darwin*)
- LDFLAGS="$LDFLAGS -lresolv"
- ;;
-esac
-
-# Gettext
-ALL_LINGUAS="cs de es fr hu it ja pl pt pt_BR ru sr tr"
-AM_GNU_GETTEXT
-AM_GNU_GETTEXT_VERSION([0.18])
-
-# Checks for libraries
-AC_CHECK_LIB(ncurses, initscr, LIBNCURSES_FOUND=1, LIBNCURSES_FOUND=0)
-AC_CHECK_LIB(ncursesw, initscr, LIBNCURSESW_FOUND=1, LIBNCURSESW_FOUND=0)
-
-# Checks for header files
-AC_HEADER_STDC
-AC_CHECK_HEADERS([libintl.h sys/resource.h])
-
-# Checks for typedefs, structures, and compiler characteristics
-AC_HEADER_TIME
-AC_STRUCT_TM
-
-AC_MSG_CHECKING([for socklen_t])
-AC_CACHE_VAL(ac_cv_type_socklen_t,
-[AC_LINK_IFELSE([AC_LANG_PROGRAM(
-[[ #include <sys/types.h>
-#include <sys/socket.h> ]],
-[[ socklen_t t; ]])],
-[ ac_cv_type_socklen_t=yes ],
-[ ac_cv_type_socklen_t=no ],
-)])
-if test $ac_cv_type_socklen_t = no; then
-AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.)
-fi
-AC_MSG_RESULT($ac_cv_type_socklen_t)
-
-# Checks for library functions.
-AC_FUNC_SELECT_ARGTYPES
-AC_TYPE_SIGNAL
-AC_CHECK_FUNCS([mallinfo])
-AC_CHECK_FUNCS([mallinfo2])
-
-# Variables in config.h
-
-AH_VERBATIM([PREFIX], [#undef PREFIX])
-AH_VERBATIM([WEECHAT_LIBDIR], [#undef WEECHAT_LIBDIR])
-AH_VERBATIM([WEECHAT_SHAREDIR], [#undef WEECHAT_SHAREDIR])
-AH_VERBATIM([HAVE_FLOCK], [#undef HAVE_FLOCK])
-AH_VERBATIM([HAVE_EAT_NEWLINE_GLITCH], [#undef HAVE_EAT_NEWLINE_GLITCH])
-AH_VERBATIM([HAVE_ASPELL_VERSION_STRING], [#undef HAVE_ASPELL_VERSION_STRING])
-AH_VERBATIM([HAVE_ENCHANT_GET_VERSION], [#undef HAVE_ENCHANT_GET_VERSION])
-AH_VERBATIM([HAVE_GUILE_GMP_MEMORY_FUNCTIONS], [#undef HAVE_GUILE_GMP_MEMORY_FUNCTIONS])
-AH_VERBATIM([PLUGIN_ALIAS], [#undef PLUGIN_ALIAS])
-AH_VERBATIM([PLUGIN_BUFLIST], [#undef PLUGIN_BUFLIST])
-AH_VERBATIM([PLUGIN_CHARSET], [#undef PLUGIN_CHARSET])
-AH_VERBATIM([PLUGIN_EXEC], [#undef PLUGIN_EXEC])
-AH_VERBATIM([PLUGIN_FIFO], [#undef PLUGIN_FIFO])
-AH_VERBATIM([PLUGIN_FSET], [#undef PLUGIN_FSET])
-AH_VERBATIM([PLUGIN_IRC], [#undef PLUGIN_IRC])
-AH_VERBATIM([PLUGIN_LOGGER], [#undef PLUGIN_LOGGER])
-AH_VERBATIM([PLUGIN_RELAY], [#undef PLUGIN_RELAY])
-AH_VERBATIM([PLUGIN_SCRIPT], [#undef PLUGIN_SCRIPT])
-AH_VERBATIM([PLUGIN_PERL], [#undef PLUGIN_PERL])
-AH_VERBATIM([PLUGIN_PYTHON], [#undef PLUGIN_PYTHON])
-AH_VERBATIM([PLUGIN_RUBY], [#undef PLUGIN_RUBY])
-AH_VERBATIM([PLUGIN_LUA], [#undef PLUGIN_LUA])
-AH_VERBATIM([PLUGIN_PHP], [#undef PLUGIN_PHP])
-AH_VERBATIM([PLUGIN_TCL], [#undef PLUGIN_TCL])
-AH_VERBATIM([PLUGIN_GUILE], [#undef PLUGIN_GUILE])
-AH_VERBATIM([PLUGIN_JAVASCRIPT], [#undef PLUGIN_JAVASCRIPT])
-AH_VERBATIM([PLUGIN_SPELL], [#undef PLUGIN_SPELL])
-AH_VERBATIM([PLUGIN_TRIGGER], [#undef PLUGIN_TRIGGER])
-AH_VERBATIM([PLUGIN_TYPING], [#undef PLUGIN_TYPING])
-AH_VERBATIM([PLUGIN_XFER], [#undef PLUGIN_XFER])
-AH_VERBATIM([TESTS], [#undef TESTS])
-AH_VERBATIM([MAN], [#undef MAN])
-AH_VERBATIM([DOC], [#undef DOC])
-AH_VERBATIM([WEECHAT_HOME], [#define WEECHAT_HOME ""])
-
-# Arguments for ./configure
-
-AC_ARG_ENABLE(ncurses, [ --disable-ncurses turn off ncurses interface (default=compiled if found)],enable_ncurses=$enableval,enable_ncurses=yes)
-AC_ARG_ENABLE(headless, [ --disable-headless turn off headless binary (default=compiled), this is required for tests],enable_headless=$enableval,enable_headless=yes)
-AC_ARG_ENABLE(largefile, [ --disable-largefile turn off Large File Support (default=on)],enable_largefile=$enableval,enable_largefile=yes)
-AC_ARG_ENABLE(alias, [ --disable-alias turn off Alias plugin (default=compiled)],enable_alias=$enableval,enable_alias=yes)
-AC_ARG_ENABLE(buflist, [ --disable-buflist turn off Buflist plugin (default=compiled)],enable_buflist=$enableval,enable_buflist=yes)
-AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled)],enable_charset=$enableval,enable_charset=yes)
-AC_ARG_ENABLE(exec, [ --disable-exec turn off Exec plugin (default=compiled)],enable_exec=$enableval,enable_exec=yes)
-AC_ARG_ENABLE(fifo, [ --disable-fifo turn off Fifo plugin (default=compiled)],enable_fifo=$enableval,enable_fifo=yes)
-AC_ARG_ENABLE(fset, [ --disable-fset turn off Fast Set plugin (default=compiled)],enable_fset=$enableval,enable_fset=yes)
-AC_ARG_ENABLE(irc, [ --disable-irc turn off IRC plugin (default=compiled)],enable_irc=$enableval,enable_irc=yes)
-AC_ARG_ENABLE(logger, [ --disable-logger turn off Logger plugin (default=compiled)],enable_logger=$enableval,enable_logger=yes)
-AC_ARG_ENABLE(relay, [ --disable-relay turn off Relay plugin (default=compiled)],enable_relay=$enableval,enable_relay=yes)
-AC_ARG_ENABLE(script, [ --disable-script turn off Script plugin (default=compiled)],enable_script=$enableval,enable_script=yes)
-AC_ARG_ENABLE(scripts, [ --disable-scripts turn off script plugins (perl, python, ...) (default=compiled if found)],enable_scripts=$enableval,enable_scripts=yes)
-AC_ARG_ENABLE(perl, [ --disable-perl turn off Perl script plugin (default=compiled if found)],enable_perl=$enableval,enable_perl=yes)
-AC_ARG_ENABLE(python, [ --disable-python turn off Python script plugin (default=compiled if found)],enable_python=$enableval,enable_python=yes)
-AC_ARG_ENABLE(ruby, [ --disable-ruby turn off Ruby script plugin (default=compiled if found)],enable_ruby=$enableval,enable_ruby=yes)
-AC_ARG_ENABLE(lua, [ --disable-lua turn off Lua script plugin (default=compiled if found)],enable_lua=$enableval,enable_lua=yes)
-AC_ARG_ENABLE(tcl, [ --disable-tcl turn off Tcl script plugin (default=compiled if found)],enable_tcl=$enableval,enable_tcl=yes)
-AC_ARG_ENABLE(guile, [ --disable-guile turn off Guile (scheme) script plugin (default=compiled if found)],enable_guile=$enableval,enable_guile=yes)
-AC_ARG_ENABLE(javascript, [ --enable-javascript turn on JavaScript script plugin (default=off)],enable_javascript=$enableval,enable_javascript=no)
-AC_ARG_ENABLE(php, [ --disable-php turn off PHP script plugin (default=compiled if found)],enable_php=$enableval,enable_php=yes)
-AC_ARG_ENABLE(spell, [ --disable-spell turn off Spell checker plugin (default=compiled)],enable_spell=$enableval,enable_spell=yes)
-AC_ARG_ENABLE(enchant, [ --enable-enchant turn on Enchant lib for Spell checker plugin (default=off)],enable_enchant=$enableval,enable_enchant=no)
-AC_ARG_ENABLE(trigger, [ --disable-trigger turn off Trigger plugin (default=compiled)],enable_trigger=$enableval,enable_trigger=yes)
-AC_ARG_ENABLE(typing, [ --disable-typing turn off Typing plugin (default=compiled)],enable_trigger=$enableval,enable_typing=yes)
-AC_ARG_ENABLE(xfer, [ --disable-xfer turn off Xfer (file transfer) plugin (default=compiled)],enable_xfer=$enableval,enable_xfer=yes)
-AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tcl configuration (tclConfig.sh)],tclconfig=$withval,tclconfig='')
-AC_ARG_WITH(debug, [ --with-debug debugging: 0=no debug, 1=debug compilation (default=0)],debug=$withval,debug=0)
-AC_ARG_ENABLE(tests, [ --enable-tests turn on build of tests (default=not built)],enable_tests=$enableval,enable_tests=no)
-AC_ARG_ENABLE(man, [ --enable-man turn on build of man page (default=not built)],enable_man=$enableval,enable_man=no)
-AC_ARG_ENABLE(doc, [ --enable-doc turn on build of documentation (default=not built)],enable_doc=$enableval,enable_doc=no)
-
-AC_ARG_VAR(WEECHAT_HOME, [Force a single WeeChat home directory for config, logs, scripts, etc.])
-
-AC_DEFINE_UNQUOTED(WEECHAT_HOME, "$WEECHAT_HOME")
-
-not_asked=""
-not_found=""
-
-if test "x$enable_headless" != "xyes" && test "x$enable_tests" = "xyes"; then
- AC_MSG_ERROR([*** Headless mode is required for tests.])
-fi
-
-# ------------------------------------------------------------------------------
-# pkg-config
-# ------------------------------------------------------------------------------
-
-PKGCONFIG=""
-AC_CHECK_PROGS(PKGCONFIG, pkg-config)
-if test "x$PKGCONFIG" = "x"; then
- AC_MSG_ERROR([
-*** "pkg-config" couldn't be found on your system.
-*** Try to install it with your software package manager.])
-fi
-
-# ------------------------------------------------------------------------------
-# dynamic loader
-# ------------------------------------------------------------------------------
-
-PLUGINS_LFLAGS=
-
-AC_CHECK_FUNCS(dlopen, LIBDL_FOUND=yes, LIBDL_FOUND=no)
-if test "$LIBDL_FOUND" != "yes"; then
- AC_CHECK_LIB(dl, dlopen, [LIBDL_FOUND=yes; PLUGINS_LFLAGS=-ldl], LIBDL_FOUND=no)
-fi
-if test "$LIBDL_FOUND" != "yes"; then
- AC_MSG_ERROR([
-*** "dl" library (dynamic library loader) couldn't be found on your system.
-*** Try to install it with your software package manager.])
-fi
-AC_SUBST(PLUGINS_LFLAGS)
-
-# ------------------------------------------------------------------------------
-# gui
-# ------------------------------------------------------------------------------
-
-if test "x$enable_ncurses" = "xyes" ; then
- if test "$LIBNCURSESW_FOUND" = "0" ; then
- if test "$LIBNCURSES_FOUND" = "0" ; then
- AC_MSG_WARN([
-*** ncurses library not found!
-*** WeeChat will be built without ncurses support.])
- enable_ncurses="no"
- not_found="$not_found ncurses"
- else
- AC_MSG_WARN([
-*** ncursesw library not found! Falling back to "ncurses"
-*** Be careful, UTF-8 display may not work properly if your locale is UTF-8.])
- NCURSES_LFLAGS="-lncurses"
- fi
- else
- NCURSES_LFLAGS="-lncursesw"
- fi
- AC_CHECK_HEADERS([ncurses.h ncursesw/curses.h])
- AC_SUBST(NCURSES_LFLAGS)
-else
- not_asked="$not_asked ncurses"
-fi
-
-# ------------------------------------------------------------------------------
-# headless
-# ------------------------------------------------------------------------------
-
-if test "x$enable_headless" != "xyes" ; then
- not_asked="$not_asked headless"
-fi
-
-# ------------------------------------------------------------------------------
-# iconv
-# ------------------------------------------------------------------------------
-
-ICONV_LFLAGS=""
-
-iconv_found="no"
-AC_CHECK_HEADER(iconv.h,ac_found_iconv_header="yes",ac_found_iconv_header="no")
-if test "x$ac_found_iconv_header" = "xyes" ; then
- AC_CHECK_LIB(iconv,iconv_open,ac_found_iconv_lib="yes",ac_found_iconv_lib="no")
- if test "x$ac_found_iconv_lib" = "xno" ; then
- AC_CHECK_LIB(iconv,libiconv_open,ac_found_iconv_lib="yes",ac_found_iconv_lib="no")
- fi
- if test "x$ac_found_iconv_lib" = "xyes" ; then
- ICONV_LFLAGS="-liconv"
- LIBS="$LIBS $ICONV_LFLAGS"
- fi
- AC_MSG_CHECKING(for iconv usability in programs)
- AC_TRY_RUN([
- #include <iconv.h>
- int main(int argc, char **argv) {
- iconv_t conv = iconv_open("ISO8859-1", "UTF-8");
- if (conv != (iconv_t) -1) {
- return 0;
- }
- return 1;
- }],iconv_found="yes", iconv_found="no", iconv_found="assume-yes")
- if test "x$iconv_found" = "xno" ; then
- AC_MSG_RESULT(no)
- else
- AC_MSG_RESULT(yes)
- fi
-fi
-
-if test "x$iconv_found" = "xno" ; then
- AC_MSG_ERROR([
-*** Iconv headers and/or libraries couldn't be found on your system.
-*** Try to install them with your software package manager.
-*** WeeChat can't be built without Iconv support.])
-fi
-
-# ------------------------------------------------------------------------------
-# plugins
-# ------------------------------------------------------------------------------
-
-if test "x$enable_scripts" = "xno" ; then
- enable_perl="no"
- enable_python="no"
- enable_ruby="no"
- enable_lua="no"
- enable_tcl="no"
- enable_guile="no"
- enable_javascript="no"
- enable_php="no"
-fi
-
-# ---------------------------------- alias -------------------------------------
-
-if test "x$enable_alias" = "xyes" ; then
- ALIAS_CFLAGS=""
- ALIAS_LFLAGS=""
- AC_SUBST(ALIAS_CFLAGS)
- AC_SUBST(ALIAS_LFLAGS)
- AC_DEFINE(PLUGIN_ALIAS)
-else
- not_asked="$not_asked alias"
-fi
-
-# --------------------------------- buflist ------------------------------------
-
-if test "x$enable_buflist" = "xyes" ; then
- AC_DEFINE(PLUGIN_BUFLIST)
-else
- not_asked="$not_asked buflist"
-fi
-
-# --------------------------------- charset ------------------------------------
-
-if test "x$enable_charset" = "xyes" ; then
- CHARSET_CFLAGS=""
- CHARSET_LFLAGS="$ICONV_LFLAGS"
- AC_SUBST(CHARSET_CFLAGS)
- AC_SUBST(CHARSET_LFLAGS)
- AC_DEFINE(PLUGIN_CHARSET)
-else
- not_asked="$not_asked charset"
-fi
-
-# ---------------------------------- exec --------------------------------------
-
-if test "x$enable_exec" = "xyes" ; then
- EXEC_CFLAGS=""
- EXEC_LFLAGS=""
- AC_SUBST(EXEC_CFLAGS)
- AC_SUBST(EXEC_LFLAGS)
- AC_DEFINE(PLUGIN_EXEC)
-else
- not_asked="$not_asked exec"
-fi
-
-# ---------------------------------- fifo --------------------------------------
-
-if test "x$enable_fifo" = "xyes" ; then
- FIFO_CFLAGS=""
- FIFO_LFLAGS=""
- AC_SUBST(FIFO_CFLAGS)
- AC_SUBST(FIFO_LFLAGS)
- AC_DEFINE(PLUGIN_FIFO)
-else
- not_asked="$not_asked fifo"
-fi
-
-# --------------------------------- fset ---------------------------------------
-
-if test "x$enable_fset" = "xyes" ; then
- AC_DEFINE(PLUGIN_FSET)
-else
- not_asked="$not_asked fset"
-fi
-
-# ----------------------------------- irc --------------------------------------
-
-if test "x$enable_irc" = "xyes" ; then
- AC_DEFINE(PLUGIN_IRC)
-else
- not_asked="$not_asked irc"
-fi
-
-# --------------------------------- logger -------------------------------------
-
-if test "x$enable_logger" = "xyes" ; then
- LOGGER_CFLAGS=""
- LOGGER_LFLAGS=""
- AC_SUBST(LOGGER_CFLAGS)
- AC_SUBST(LOGGER_LFLAGS)
- AC_DEFINE(PLUGIN_LOGGER)
-else
- not_asked="$not_asked logger"
-fi
-
-# --------------------------------- relay --------------------------------------
-
-if test "x$enable_relay" = "xyes" ; then
- RELAY_CFLAGS=""
- RELAY_LFLAGS=""
- AC_SUBST(RELAY_CFLAGS)
- AC_SUBST(RELAY_LFLAGS)
- AC_DEFINE(PLUGIN_RELAY)
-else
- not_asked="$not_asked relay"
-fi
-
-# --------------------------------- script -------------------------------------
-
-if test "x$enable_script" = "xyes" ; then
- AC_DEFINE(PLUGIN_SCRIPT)
-else
- not_asked="$not_asked script"
-fi
-
-# ---------------------------------- perl --------------------------------------
-
-PERL_VERSION=
-
-if test "x$enable_perl" = "xyes" ; then
- AC_PATH_PROGS(PERL, perl perl5)
- if test -z $PERL ; then
- AC_MSG_WARN([
-*** Perl must be installed on your system but perl interpreter couldn't be found in path.
-*** Please check that perl is in path, or install it with your software package manager.
-*** WeeChat will be built without Perl support.])
- enable_perl="no"
- not_found="$not_found perl"
- else
- PERL_VERSION=`perl -V:version | sed "s/version='\(.*\)';/\1/"`
- AC_MSG_CHECKING(for Perl headers files)
-
- PERL_HEADER_TEST=`PT=perltest.c ; echo "#include <EXTERN.h>" > $PT; echo "#include <perl.h>" >> $PT; echo "#include <XSUB.h>" >> $PT ; echo "int main() { return 0; }" >> $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ccopts -e ldopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
-
- if test "x$PERL_HEADER_TEST" = "x0" ; then
- PERL_CFLAGS=`$PERL -MExtUtils::Embed -e ccopts`
- AC_MSG_RESULT(found)
- AC_MSG_CHECKING(for Perl library)
- PERL_LIB_TEST=`PT=perltest.c ; echo "int main() { return 0; }" > $PT ; $CC -Wall $PT -o $PT.out $($PERL -MExtUtils::Embed -e ldopts) 1>/dev/null 2>&1; echo $?; rm -f $PT $PT.out 1>/dev/null 2>&1`
- if test "x$PERL_LIB_TEST" = "x0" ; then
- PERL_LFLAGS=`$PERL -MExtUtils::Embed -e ldopts`
- AC_MSG_RESULT(found)
- else
- AC_MSG_WARN([
-*** Perl library couldn't be found on your system.
-*** Try to install it with your software package manager.
-*** WeeChat will be built without Perl support.])
- enable_perl="no"
- not_found="$not_found perl"
- fi
- else
- AC_MSG_WARN([
-*** Perl headers couldn't be found on your system.
-*** Try to install it with your software package manager.
-*** WeeChat will be built without Perl support.])
- enable_perl="no"
- not_found="$not_found perl"
- fi
- fi
-else
- not_asked="$not_asked perl"
-fi
-
-if test "x$enable_perl" = "xyes" ; then
- AC_SUBST(PERL_CFLAGS)
- AC_SUBST(PERL_LFLAGS)
- AC_DEFINE(PLUGIN_PERL)
-fi
-
-# --------------------------------- python -------------------------------------
-
-PYTHON_VERSION=
-
-if test "x$enable_python" = "xyes" ; then
- PKG_CHECK_MODULES(PYTHON, [python3-embed], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3-embed`], [PYTHON_FOUND=no])
- if test "x$PYTHON_FOUND" != "xyes"; then
- PKG_CHECK_MODULES(PYTHON, [python3], [PYTHON_FOUND=yes; PYTHON_VERSION=`$PKGCONFIG --modversion python3`], [PYTHON_FOUND=no])
- fi
- if test "x$PYTHON_FOUND" != "xyes" ; then
- AC_MSG_WARN([
-*** Python must be installed on your system but python interpreter couldn't be found in path.
-*** Please check that python is in path, or install it with your software package manager.
-*** WeeChat will be built without Python support.])
- enable_python="no"
- not_found="$not_found python"
- fi
-else
- not_asked="$not_asked python"
-fi
-
-if test "x$enable_python" = "xyes" ; then
- AC_SUBST(PYTHON_CFLAGS)
- AC_SUBST(PYTHON_LIBS)
- AC_SUBST(PYTHON_VERSION)
- AC_DEFINE(PLUGIN_PYTHON)
-fi
-
-# ---------------------------------- ruby --------------------------------------
-
-RUBY_VERSION=
-
-if test "x$enable_ruby" = "xyes" ; then
- RUBY_CFLAGS=""
- RUBY_LFLAGS=""
- for v in "3.2" "3.1" "3.0" "2.7" "2.6" "2.5" "2.4" "2.3" "2.2" "2.1" "2.0" "1.9" "1.8" ; do
- pkgconfig_ruby_found=`$PKGCONFIG --exists ruby-$v 2>/dev/null`
- if test "x$?" = "x0" ; then
- RUBY_VERSION=`$PKGCONFIG --modversion ruby-$v`
- RUBY_CFLAGS=`$PKGCONFIG --cflags ruby-$v`
- RUBY_LFLAGS=`$PKGCONFIG --libs ruby-$v`
- break
- fi
- done
-
- # detect old Ruby versions
- if test "x$RUBY_CFLAGS" = "x" -o "x$RUBY_LFLAGS" = "x" ; then
- AC_PATH_PROGS(RUBY, ruby1.9.3 ruby1.9.2 ruby1.9.1 ruby1.9 ruby)
- if test -z $RUBY ; then
- AC_MSG_WARN([
-*** Ruby must be installed on your system but ruby interpreter couldn't be found in path.
-*** Please check that ruby is in path, or install it with your software package manager.
-*** WeeChat will be built without Ruby support.])
- enable_ruby="no"
- not_found="$not_found ruby"
- else
- RUBY_VERSION=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG[['MAJOR']] + '.' + RbConfig::CONFIG[['MINOR']] + '.' + RbConfig::CONFIG[['TEENY']]"`
- RUBY_INCLUDE=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG[['rubyhdrdir']] || RbConfig::CONFIG[['archdir']]"`
- RUBY_ARCH=`$RUBY -rrbconfig -e 'print RbConfig::CONFIG[["arch"]]'`
- AC_MSG_CHECKING(for Ruby header files)
- if test -d "$RUBY_INCLUDE/"; then
- RUBY_CFLAGS="-I$RUBY_INCLUDE/ -I$RUBY_INCLUDE/$RUBY_ARCH"
- else
- AC_MSG_WARN([
-*** Ruby header files couldn't be found on your system.
-*** Try to install them with your software package manager.
-*** WeeChat will be built without Ruby support.])
- enable_ruby="no"
- not_found="$not_found ruby"
- fi
- AC_MSG_RESULT(found)
- RUBY_LFLAGS=`$RUBY -rrbconfig -e "puts RbConfig::CONFIG[['LIBRUBYARG_SHARED']]"`
- fi
- fi
-else
- not_asked="$not_asked ruby"
-fi
-
-if test "x$enable_ruby" = "xyes" ; then
- AC_SUBST(RUBY_CFLAGS)
- AC_SUBST(RUBY_LFLAGS)
- AC_DEFINE(PLUGIN_RUBY)
-fi
-
-# ---------------------------------- lua --------------------------------------
-
-LUA_VERSION=
-
-if test "x$enable_lua" = "xyes" ; then
- ac_save_CXXFLAGS="$CXXFLAGS"
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LDFLAGS="$LDFLAGS"
-
- LUA_CFLAGS=""
- LUA_LFLAGS=""
-
- if test -n "$lua_inc"; then
- CFLAGS="$CFLAGS -I$lua_inc"
- CXXFLAGS="$CXXFLAGS -I$lua_inc"
- fi
- if test -n "$lua_lib"; then
- LDFLAGS="$LDFLAGS -L$lua_lib"
- fi
-
- if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
- AC_MSG_CHECKING(for Lua headers and libraries with pkg-config)
- echo
- for l in "54" "5.4" "53" "5.3" "52" "5.2" "51" "5.1" "50" "5.0" "$lua_suffix" "" ; do
- pkgconfig_lua_found=`$PKGCONFIG --exists lua$l 2>/dev/null`
- if test "x$?" = "x0" ; then
- LUA_VERSION=`$PKGCONFIG --modversion lua$l`
- LUA_CFLAGS="$LUA_CFLAGS "`$PKGCONFIG --cflags lua$l`
- LUA_LFLAGS="$LUA_LFLAGS "`$PKGCONFIG --libs lua$l`
-
- pkgconfig_lualib_found=`$PKGCONFIG --exists lualib$l 2>/dev/null`
- if test "x$?" = "x0"; then
- LUA_CFLAGS="$LUA_CFLAGS "`$PKGCONFIG --cflags lualib$l`
- LUA_LFLAGS="$LUA_LFLAGS "`$PKGCONFIG --libs lualib$l`
- fi
- break
- fi
- done
- fi
-
- if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
- LUACONFIG=""
- AC_CHECK_PROGS(LUACONFIG, lua-config54 lua-config5.4 lua-config53 lua-config5.3 lua-config52 lua-config5.2 lua-config51 lua-config5.1 lua-config50 lua-config5.0 lua-config)
- if test "x$LUACONFIG" != "x" ; then
- AC_MSG_CHECKING(for Lua headers and libraries with lua-config)
- echo
- LUA_CFLAGS=`$LUACONFIG --include`
- LUA_LFLAGS=`$LUACONFIG --libs`
- LUA_VERSION="5.0.x"
- fi
- fi
-
- if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
- AC_MSG_CHECKING(for Lua headers and libraries)
- echo
- AC_CHECK_HEADER(lua.h,ac_found_lua_header="yes",ac_found_lua_header="no")
- AC_CHECK_HEADER(lualib.h,ac_found_liblua_header="yes",ac_found_liblua_header="no")
- if test "x$ac_found_lua_header" = "xyes" -a "x$ac_found_liblua_header" = "xyes"; then
- LUA_CFLAGS="$CFLAGS"
- fi
- for l in "54" "5.4" "53" "5.3" "52" "5.2" "51" "5.1" "50" "5.0" "$lua_suffix" "" ; do
- AC_CHECK_LIB(lua$l,lua_call,ac_found_lua_lib="yes",ac_found_lua_lib="no")
- if test "x$ac_found_lua_lib" = "xyes" ; then
- LUA_VERSION=">=5.1.0"
-
- LUA_LFLAGS="$LDFLAGS -llua$l -lm"
-
- ac2_save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -llua$l -lm"
-
- if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
- LDFLAGS="$LDFLAGS -ldl"
- fi
-
- AC_CHECK_LIB(lualib$l,luaL_openlib,ac_found_liblua_lib="yes",ac_found_liblua_lib="no")
- if test "x$ac_found_liblua_lib" = "xyes" ; then
- LUA_VERSION="5.0.x"
-
- LUA_LFLAGS="$LUA_LFLAGS -llualib$l"
-
- if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
- LUA_LFLAGS="$LUA_LFLAGS -ldl"
- fi
- fi
-
- LDFLAGS="$ac2_save_LDFLAGS"
- break
- fi
- done
- fi
-
- AC_MSG_CHECKING(for Lua compiling and linking)
- LUA_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT; echo "#include <lualib.h>" >> $LT; echo "int main() { luaopen_base((lua_State *)lua_open()); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $LUA_CFLAGS $LUA_LFLAGS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1`
- if test "x$LUA_TEST" != "x0" ; then
- LUA52_TEST=`LT=luatest.c ; echo "#include <lua.h>" > $LT; echo "#include <lualib.h>" >> $LT; echo "int main() { luaopen_base((lua_State *)luaL_newstate()); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $LUA_CFLAGS $LUA_LFLAGS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1`
- if test "x$LUA52_TEST" != "x0" ; then
- AC_MSG_RESULT(no)
- AC_MSG_WARN([
-*** Lua (>=5.0) headers and/or libraries couldn't be found on your system.
-*** Try to install liblua, liblualib and liblua-dev with your software package manager.
-*** WeeChat will be built without Lua support.])
- enable_lua="no"
- not_found="$not_found lua"
- else
- AC_MSG_RESULT(yes)
- fi
- else
- AC_MSG_RESULT(yes)
- fi
-
- CFLAGS="$ac_save_CFLAGS"
- CXXFLAGS="$ac_save_CXXFLAGS"
- LDFLAGS="$ac_save_LDFLAGS"
-else
- not_asked="$not_asked lua"
-fi
-
-if test "x$enable_lua" = "xyes" ; then
- AC_SUBST(LUA_CFLAGS)
- AC_SUBST(LUA_LFLAGS)
- AC_DEFINE(PLUGIN_LUA)
-fi
-
-# --------------------------------- tcl -------------------------------------
-
-TCL_VERSION=
-
-if test "x$enable_tcl" = "xyes" ; then
- enable_plugins="yes"
-
- AC_MSG_CHECKING(for tclConfig.sh)
- tcl_found="no"
- tcl_dirs="/usr/lib/tcl8.6 /usr/lib64/tcl8.6 /usr/lib/tcl8.5 /usr/lib64/tcl8.5 /lib /lib64 /usr/lib /usr/lib64 /usr/tcl/lib /usr/tcl/lib64 /usr/local/tcl-8.6/lib /usr/local/tcl-8.6/lib64 /usr/local/tcl-8.5/lib /usr/local/tcl-8.5/lib64 /usr/local/lib /usr/local/lib64 /usr/local/tcl/lib /usr/local/tcl/lib64 /opt/lib /opt/lib64"
- if test "x$tclconfig" != "x" ; then
- tcl_dirs="${tclconfig} ${tcl_dirs}"
- fi
- for tcl_dir in $tcl_dirs ; do
- if test -f ${tcl_dir}/tclConfig.sh ; then
- . ${tcl_dir}/tclConfig.sh
- TCL_CFLAGS="-I${TCL_PREFIX}/include $TCL_INCLUDE_SPEC"
- TCL_LFLAGS="$TCL_LIB_SPEC $TCL_LIBS"
- tcl_found="yes"
- AC_MSG_RESULT(${tcl_dir}/tclConfig.sh)
- break
- fi
- done
- if test "x$tcl_found" = "xno" ; then
- AC_MSG_WARN([
-*** Script tclConfig.sh couldn't be found on your system.
-*** WeeChat will be built without Tcl support.])
- enable_tcl="no"
- not_found="$not_found tcl"
- fi
-else
- not_asked="$not_asked tcl"
-fi
-
-if test "x$enable_tcl" = "xyes" ; then
- AC_SUBST(TCL_CFLAGS)
- AC_SUBST(TCL_LFLAGS)
- AC_DEFINE(PLUGIN_TCL)
-fi
-
-# --------------------------------- guile -------------------------------------
-
-GUILE_VERSION=
-
-if test "x$enable_guile" = "xyes" ; then
- enable_plugins="yes"
-
- guile_found="no"
- AC_MSG_CHECKING(for Guile headers and libraries)
- echo
- for v in "3.0" "2.2" "2.0" ; do
- pkgconfig_guile_found=`$PKGCONFIG --exists guile-$v 2>/dev/null`
- if test "x$?" = "x0" ; then
- GUILE_VERSION=`$PKGCONFIG --modversion guile-$v`
- GUILE_CFLAGS=`$PKGCONFIG --cflags guile-$v`
- GUILE_LFLAGS=`$PKGCONFIG --libs guile-$v`
- guile_found="yes"
- break
- fi
- done
-
- if test "x$guile_found" = "xyes" ; then
- # check if variable "scm_install_gmp_memory_functions" exists
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LDFLAGS="$LDFLAGS"
- CFLAGS="$CFLAGS $GUILE_CFLAGS"
- LDFLAGS="$LDFLAGS $GUILE_LFLAGS"
- AC_CACHE_CHECK([for variable scm_install_gmp_memory_functions], ac_cv_have_guile_gmp_memory_functions, [
- AC_LINK_IFELSE([AC_LANG_PROGRAM(
- [[ #include <libguile.h>]],
- [[ scm_install_gmp_memory_functions = 0; ]])],
- [ ac_have_guile_gmp_memory_functions="yes" ],
- [ ac_have_guile_gmp_memory_functions="no" ])])
- CFLAGS="$ac_save_CFLAGS"
- LDFLAGS="$ac_save_LDFLAGS"
- if test "x$ac_have_guile_gmp_memory_functions" = "xyes"; then
- AC_DEFINE(HAVE_GUILE_GMP_MEMORY_FUNCTIONS)
- fi
- else
- AC_MSG_WARN([
-*** Guile >= 2.0 couldn't be found on your system.
-*** WeeChat will be built without Guile (scheme) support.])
- enable_guile="no"
- not_found="$not_found guile"
- fi
-else
- not_asked="$not_asked guile"
-fi
-
-if test "x$enable_guile" = "xyes" ; then
- AC_SUBST(GUILE_CFLAGS)
- AC_SUBST(GUILE_LFLAGS)
- AC_DEFINE(PLUGIN_GUILE)
-fi
-
-# ------------------------------ javascript -----------------------------------
-
-AC_LANG_PUSH([C++])
-
-if test "x$enable_javascript" = "xyes" ; then
- enable_plugins="yes"
-
- v8_found="no"
- AC_CHECK_HEADER(v8.h,ac_found_v8_header="yes",ac_found_v8_header="no")
- if test "x$ac_found_v8_header" = "xyes" ; then
- #AC_CHECK_LIB(v8,v8,ac_found_v8_lib="yes",ac_found_v8_lib="no")
- ac_save_LIBS="$LIBS"
- LIBS="$LIBS -lv8 -lpthread"
- AC_MSG_CHECKING(for v8 usability in programs)
- AC_TRY_RUN([
- #include <v8.h>
- using namespace v8;
- int main(int argc, char **argv) {
- const char *version = V8::GetVersion();
- return 0;
- }],ac_found_v8_lib="yes", ac_found_v8_lib="no", ac_found_v8_lib="assume-yes")
- LIBS="$ac_save_LIBS"
- if test "x$ac_found_v8_lib" = "xyes" ; then
- AC_MSG_RESULT(yes)
- v8_found="yes"
- V8_CFLAGS=""
- V8_LFLAGS="-lv8 -lpthread"
- else
- AC_MSG_RESULT(no)
- AC_MSG_WARN([
-*** V8 library couldn't be found on your system.
-*** WeeChat will be built without JavaScript support.])
- enable_javascript="no"
- not_found="$not_found javascript/v8"
- fi
- else
- AC_MSG_WARN([
-*** V8 header files couldn't be found on your system.
-*** WeeChat will be built without JavaScript support.])
- enable_javascript="no"
- not_found="$not_found javascript/v8"
- fi
-else
- not_asked="$not_asked javascript"
-fi
-
-if test "x$enable_javascript" = "xyes" ; then
- AC_SUBST(V8_CFLAGS)
- AC_SUBST(V8_LFLAGS)
- AC_DEFINE(PLUGIN_JAVASCRIPT)
-fi
-
-AC_LANG_POP
-
-# ---------------------------------- php --------------------------------------
-
-PHP_VERSION=
-
-if test "x$enable_php" = "xyes" ; then
- ac_save_CXXFLAGS="$CXXFLAGS"
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LDFLAGS="$LDFLAGS"
-
- PHP_CFLAGS=""
- PHP_LFLAGS=""
- PHP_VERSIONS="8.2 82 8.1 81 8.0 80 8 7.4 74 7.3 73 7.2 72 7.1 71 7.0 70 7 $php_suffix"
-
- if test -n "$php_inc"; then
- CFLAGS="$CFLAGS -I$php_inc"
- CXXFLAGS="$CXXFLAGS -I$php_inc"
- fi
- if test -n "$php_lib"; then
- LDFLAGS="$LDFLAGS -L$php_lib"
- fi
-
- if test "x$PHP_CFLAGS" = "x" -o "x$PHP_LFLAGS" = "x" ; then
- AC_MSG_CHECKING(for PHP headers and libraries with pkg-config)
- echo
- for l in $PHP_VERSIONS "" ; do
- pkgconfig_php_found=`$PKGCONFIG --exists php$l 2>/dev/null`
- if test "x$?" = "x0" ; then
- pkgconfig_php_found=`$PKGCONFIG --atleast-version=7 php$l 2>/dev/null`
- if test "x$?" = "x0" ; then
- PHP_VERSION=`$PKGCONFIG --modversion php$l`
- PHP_CFLAGS="$PHP_CFLAGS "`$PKGCONFIG --cflags php$l`
- PHP_LFLAGS="$PHP_LFLAGS "`$PKGCONFIG --libs php$l`
- break
- fi
- fi
- done
- fi
-
- if test "x$PHP_CFLAGS" = "x" -o "x$PHP_LFLAGS" = "x" ; then
- PHPCONFIG=""
- AC_MSG_CHECKING(for PHP headers and libraries with php-config)
- echo
- for l in $PHP_VERSIONS "" ; do
- AC_CHECK_PROG(PHPCONFIG, "php-config$l", "php-config$l")
- if test "x$PHPCONFIG" != "x" ; then
- php_config_version=`$PHPCONFIG --version`
- if echo "x$php_config_version" | grep -e "^x7" -e "^x8" 1>/dev/null 2>&1 ; then
- PHP_VERSION=$php_config_version
- PHP_CFLAGS=`$PHPCONFIG --includes`
- PHP_LFLAGS="-L$($PHPCONFIG --prefix)/lib/ $($PHPCONFIG --libs) -lphp$l"
- break
- fi
- fi
- done
- fi
-
- if test "x$PHP_CFLAGS" = "x" -o "x$PHP_LFLAGS" = "x" ; then
- AC_MSG_CHECKING(for PHP headers and libraries)
- echo
- AC_CHECK_HEADER(php.h,ac_found_php_header="yes",ac_found_php_header="no")
- if test "x$ac_found_php_header" = "xyes" ; then
- PHP_CFLAGS="$CFLAGS"
- fi
- for l in $PHP_VERSIONS "" ; do
- for PHP_LIB_SUFFIX in "$l" "$(echo $l | cut -c1)" "" ; do
- AC_CHECK_LIB(php$PHP_LIB_SUFFIX,php_execute_script,ac_found_php_lib="yes",ac_found_php_lib="no")
- if test "x$ac_found_php_lib" = "xyes" ; then
- PHP_VERSION=">=7.0.0"
-
- PHP_LFLAGS="$LDFLAGS -lphp$PHP_LIB_SUFFIX -lm"
-
- ac2_save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS -lphp$PHP_LIB_SUFFIX -lm"
-
- if echo "$host_os" | grep "^linux" 1>/dev/null 2>&1 ; then
- LDFLAGS="$LDFLAGS -ldl"
- fi
-
- LDFLAGS="$ac2_save_LDFLAGS"
- break 2
- fi
- done
- done
- fi
-
- AC_MSG_CHECKING(for PHP compiling and linking)
- PHP_TEST=`LT=phptest.c ; echo "#include <sapi/embed/php_embed.h>" > $LT; echo "int main() { php_embed_init(0, NULL); php_embed_shutdown(); return 0; }" >> $LT ; $CC -Wall $LT -o $LT.out $PHP_CFLAGS $PHP_LFLAGS $CFLAGS $LDFLAGS 1>/dev/null 2>&1 ; echo $?; rm -f $LT $LT.out 1>/dev/null 2>&1`
- if test "x$PHP_TEST" != "x0" ; then
- AC_MSG_RESULT(no)
- AC_MSG_WARN([
-*** PHP (>=7.0) headers and/or libraries couldn't be found on your system.
-*** Try to install libphp-embed with your software package manager.
-*** WeeChat will be built without PHP support.])
- enable_php="no"
- not_found="$not_found php"
- else
- AC_MSG_RESULT(yes)
- fi
-
- CFLAGS="$ac_save_CFLAGS"
- CXXFLAGS="$ac_save_CXXFLAGS"
- LDFLAGS="$ac_save_LDFLAGS"
-else
- not_asked="$not_asked php"
-fi
-
-if test "x$enable_php" = "xyes" ; then
- AC_SUBST(PHP_CFLAGS)
- AC_SUBST(PHP_LFLAGS)
- AC_DEFINE(PLUGIN_PHP)
-fi
-
-# ----------------------------------- spell ------------------------------------
-
-if test "x$enable_spell" = "xyes" ; then
- ac_found_enchant_lib="no"
- if test "x$enable_enchant" = "xyes" ; then
- PKG_CHECK_MODULES(ENCHANT, [enchant], ac_found_enchant_lib="yes", ac_found_enchant_lib="no")
- fi
- if test "x$ac_found_enchant_lib" = "xyes" ; then
- CFLAGS="$CFLAGS -DUSE_ENCHANT"
- SPELL_LIB_USED="enchant"
-
- # check if function enchant_get_version() exists
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LDFLAGS="$LDFLAGS"
- CFLAGS="$CFLAGS $ENCHANT_CFLAGS"
- LDFLAGS="$LDFLAGS $ENCHANT_LIBS"
- AC_CACHE_CHECK([for enchant_get_version() support], ac_cv_have_enchant_get_version, [
- AC_LINK_IFELSE([AC_LANG_PROGRAM(
- [[ #include <enchant.h>]],
- [[ const char *version = enchant_get_version(); ]])],
- [ ac_have_enchant_get_version="yes" ],
- [ ac_have_enchant_get_version="no" ])])
- CFLAGS="$ac_save_CFLAGS"
- LDFLAGS="$ac_save_LDFLAGS"
- if test "x$ac_have_enchant_get_version" = "xyes"; then
- AC_DEFINE(HAVE_ENCHANT_GET_VERSION)
- fi
- else
- ASPELL_CFLAGS=""
- ASPELL_LFLAGS=""
-
- AC_CHECK_HEADER(aspell.h,ac_found_aspell_header="yes",ac_found_aspell_header="no")
- AC_CHECK_LIB(aspell,new_aspell_speller,ac_found_aspell_lib="yes",ac_found_aspell_lib="no")
-
- AC_MSG_CHECKING(for aspell headers and libraries)
- if test "x$ac_found_aspell_header" = "xno" -o "x$ac_found_aspell_lib" = "xno" ; then
- AC_MSG_RESULT(no)
- AC_MSG_WARN([
-*** Aspell headers and/or libraries couldn't be found on your system.
-*** Try to install them with your software package manager.
-*** WeeChat will be built without Aspell support.])
- enable_spell="no"
- not_found="$not_found spell"
- else
- AC_MSG_RESULT(yes)
- ASPELL_LFLAGS="$ASPELL_LFLAGS -laspell"
- SPELL_LIB_USED="aspell"
-
- # check if function aspell_version_string() exists
- ac_save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $ASPELL_LFLAGS"
- AC_CACHE_CHECK([for aspell_version_string() support], ac_cv_have_aspell_version_string, [
- AC_LINK_IFELSE([AC_LANG_PROGRAM(
- [[ #include <aspell.h>]],
- [[ const char *version = aspell_version_string(); ]])],
- [ ac_have_aspell_version_string="yes" ],
- [ ac_have_aspell_version_string="no" ])])
- LDFLAGS="$ac_save_LDFLAGS"
- if test "x$ac_have_aspell_version_string" = "xyes"; then
- AC_DEFINE(HAVE_ASPELL_VERSION_STRING)
- fi
- fi
- fi
-else
- not_asked="$not_asked spell"
-fi
-
-if test "x$enable_spell" = "xyes" ; then
- AC_SUBST(ASPELL_CFLAGS)
- AC_SUBST(ASPELL_LFLAGS)
- AC_DEFINE(PLUGIN_SPELL)
-fi
-
-# --------------------------------- trigger ------------------------------------
-
-if test "x$enable_trigger" = "xyes" ; then
- TRIGGER_CFLAGS=""
- TRIGGER_LFLAGS=""
- AC_SUBST(TRIGGER_CFLAGS)
- AC_SUBST(TRIGGER_LFLAGS)
- AC_DEFINE(PLUGIN_TRIGGER)
-else
- not_asked="$not_asked trigger"
-fi
-
-# ---------------------------------- typing ------------------------------------
-
-if test "x$enable_typing" = "xyes" ; then
- TYPING_CFLAGS=""
- TYPING_LFLAGS=""
- AC_SUBST(TYPING_CFLAGS)
- AC_SUBST(TYPING_LFLAGS)
- AC_DEFINE(PLUGIN_TYPING)
-else
- not_asked="$not_asked typing"
-fi
-
-# ---------------------------------- xfer --------------------------------------
-
-if test "x$enable_xfer" = "xyes" ; then
- XFER_CFLAGS=""
- XFER_LFLAGS=""
- AC_SUBST(XFER_CFLAGS)
- AC_SUBST(XFER_LFLAGS)
- AC_DEFINE(PLUGIN_XFER)
-else
- not_asked="$not_asked xfer"
-fi
-
-# ------------------------------------------------------------------------------
-# gcrypt
-# ------------------------------------------------------------------------------
-
-AC_CHECK_HEADER(gcrypt.h,ac_found_gcrypt_header="yes",ac_found_gcrypt_header="no")
-AC_CHECK_LIB(gcrypt,gcry_check_version,ac_found_gcrypt_lib="yes",ac_found_gcrypt_lib="no")
-
-AC_MSG_CHECKING(for gcrypt headers and libraries)
-if test "x$ac_found_gcrypt_header" = "xno" -o "x$ac_found_gcrypt_lib" = "xno" ; then
- AC_MSG_RESULT(no)
- AC_MSG_ERROR([
-*** libgcrypt was not found. You may want to get it from https://www.gnupg.org/ftp/gcrypt/libgcrypt/
-*** or try to install it with your software package manager.])
-else
- AC_MSG_RESULT(yes)
- GCRYPT_CFLAGS=`libgcrypt-config --cflags`
- GCRYPT_LFLAGS=`libgcrypt-config --libs`
- AC_SUBST(GCRYPT_CFLAGS)
- AC_SUBST(GCRYPT_LFLAGS)
-fi
-
-# ------------------------------------------------------------------------------
-# gnutls
-# ------------------------------------------------------------------------------
-
-AC_CHECK_HEADER(gnutls/gnutls.h,ac_found_gnutls_header="yes",ac_found_gnutls_header="no")
-AC_CHECK_LIB(gnutls,gnutls_global_init,ac_found_gnutls_lib="yes",ac_found_gnutls_lib="no")
-
-AC_MSG_CHECKING(for gnutls headers and libraries)
-if test "x$ac_found_gnutls_header" = "xno" -o "x$ac_found_gnutls_lib" = "xno" ; then
- AC_MSG_RESULT(no)
- AC_MSG_ERROR([
-*** libgnutls was not found. You may want to get it from https://www.gnupg.org/ftp/gcrypt/gnutls/
-*** or try to install it with your software package manager.])
-else
- AC_MSG_RESULT(yes)
- GNUTLS_CFLAGS=`pkg-config gnutls --cflags`
- GNUTLS_LFLAGS=`pkg-config gnutls --libs`
- AC_SUBST(GNUTLS_CFLAGS)
- AC_SUBST(GNUTLS_LFLAGS)
-fi
-
-# ------------------------------------------------------------------------------
-# flock
-# ------------------------------------------------------------------------------
-
-enable_flock="no"
-AC_CACHE_CHECK([for flock() support], ac_cv_have_flock, [
-AC_LINK_IFELSE([AC_LANG_PROGRAM(
-[[ #include <sys/file.h>]],
-[[ flock(0, LOCK_SH); ]])],
-[ ac_cv_have_flock="yes" ],
-[ ac_cv_have_flock="no" ])])
-
-if test "x$ac_cv_have_flock" = "xyes"; then
- enable_flock="yes"
- AC_DEFINE(HAVE_FLOCK)
-else
- not_found="$not_found flock"
-fi
-
-# ------------------------------------------------------------------------------
-# large file support
-# ------------------------------------------------------------------------------
-
-if test "x$enable_largefile" = "xyes" ; then
- CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES"
- CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES"
-else
- not_asked="$not_asked largefile"
-fi
-
-# ------------------------------------------------------------------------------
-# backtrace
-# ------------------------------------------------------------------------------
-
-enable_backtrace="no"
-if test "x$debug" != "x0" ; then
- AC_CACHE_CHECK([for execinfo.h and backtrace], ac_cv_have_backtrace, [
- AC_LINK_IFELSE([AC_LANG_PROGRAM(
- [[ #include <execinfo.h> ]],
- [[ void *trace[128]; int n = backtrace(trace, 128); ]])],
- [ ac_cv_have_backtrace="yes" ],
- [ ac_cv_have_backtrace="no" ])])
- if test "x$ac_cv_have_backtrace" = "xyes"; then
- enable_backtrace="yes"
- AC_DEFINE(HAVE_BACKTRACE,1,[glibc backtrace function])
- else
- not_found="$not_found backtrace"
- fi
-fi
-
-# ------------------------------------------------------------------------------
-# eat_newline_glitch
-# ------------------------------------------------------------------------------
-
-enable_eatnewlineglitch="no"
-AC_CACHE_CHECK([for eat_newline_glitch support], ac_cv_have_eatnewlineglitch, [
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-[[ #include <term.h> ]],
-[[ eat_newline_glitch = 0; ]])],
-[ ac_cv_have_eatnewlineglitch="yes" ],
-[ ac_cv_have_eatnewlineglitch="no" ])])
-
-if test "x$ac_cv_have_eatnewlineglitch" = "xyes"; then
- enable_eatnewlineglitch="yes"
- AC_DEFINE(HAVE_EAT_NEWLINE_GLITCH)
-else
- not_found="$not_found eat_newline_glitch"
-fi
-
-# ------------------------------------------------------------------------------
-# zlib
-# ------------------------------------------------------------------------------
-
-AC_CHECK_HEADER(zlib.h,ac_found_zlib_header="yes",ac_found_zlib_header="no")
-AC_CHECK_LIB(z,compress2,ac_found_zlib_lib="yes",ac_found_zlib_lib="no")
-
-AC_MSG_CHECKING(for zlib headers and libraries)
-if test "x$ac_found_zlib_header" = "xno" -o "x$ac_found_zlib_lib" = "xno" ; then
- AC_MSG_RESULT(no)
- AC_MSG_ERROR([
-*** zlib was not found. You may want to get it from https://zlib.net/
-*** or try to install it with your software package manager.])
-else
- AC_MSG_RESULT(yes)
- ZLIB_CFLAGS=`pkg-config zlib --cflags`
- ZLIB_LFLAGS=`pkg-config zlib --libs`
- AC_SUBST(ZLIB_CFLAGS)
- AC_SUBST(ZLIB_LFLAGS)
-fi
-
-# ------------------------------------------------------------------------------
-# zstd
-# ------------------------------------------------------------------------------
-
-AC_CHECK_HEADER(zstd.h,ac_found_zstd_header="yes",ac_found_zstd_header="no")
-AC_CHECK_LIB(zstd,ZSTD_compress,ac_found_zstd_lib="yes",ac_found_zstd_lib="no")
-
-AC_MSG_CHECKING(for zstd headers and libraries)
-if test "x$ac_found_zstd_header" = "xno" -o "x$ac_found_zstd_lib" = "xno" ; then
- AC_MSG_RESULT(no)
- AC_MSG_ERROR([
-*** zstd was not found. You may want to get it from https://github.com/facebook/zstd
-*** or try to install it with your software package manager.])
-else
- AC_MSG_RESULT(yes)
- ZSTD_CFLAGS=`pkg-config libzstd --cflags`
- ZSTD_LFLAGS=`pkg-config libzstd --libs`
- AC_SUBST(ZSTD_CFLAGS)
- AC_SUBST(ZSTD_LFLAGS)
-fi
-
-# ------------------------------------------------------------------------------
-# curl
-# ------------------------------------------------------------------------------
-
-AC_PATH_PROG(CURL_CONFIG, curl-config)
-if test "x$CURL_CONFIG" = "x" ; then
- AC_MSG_ERROR([
-*** "curl-config" couldn't be found on your system.
-*** Try to install libcurl-dev with your software package manager.])
-fi
-CURL_CFLAGS=`$CURL_CONFIG --cflags`
-CURL_LFLAGS=`$CURL_CONFIG --libs`
-AC_SUBST(CURL_CFLAGS)
-AC_SUBST(CURL_LFLAGS)
-
-# ------------------------------------------------------------------------------
-# tests
-# ------------------------------------------------------------------------------
-
-if test "x$enable_tests" = "xyes" ; then
- cpputest_found="no"
- AC_MSG_CHECKING(for CppUTest headers and libraries)
- echo
- pkgconfig_cpputest_found=`$PKGCONFIG --exists cpputest 2>/dev/null`
- if test "x$?" = "x0" ; then
- CPPUTEST_VERSION=`$PKGCONFIG --modversion cpputest`
- CPPUTEST_CFLAGS=`$PKGCONFIG --cflags cpputest`
- CPPUTEST_LFLAGS=`$PKGCONFIG --libs cpputest`
- else
- AC_MSG_WARN([
-*** CppUTest couldn't be found on your system.
-*** WeeChat will be built without tests.])
- enable_tests="no"
- not_found="$not_found tests"
- fi
-else
- not_asked="$not_asked tests"
-fi
-
-if test "x$enable_tests" = "xyes" ; then
- AC_SUBST(CPPUTEST_CFLAGS)
- AC_SUBST(CPPUTEST_LFLAGS)
- AC_DEFINE(TESTS)
-fi
-
-# ------------------------------------------------------------------------------
-# man page / documentation
-# ------------------------------------------------------------------------------
-
-msg_man=""
-msg_doc=""
-
-if test "x$enable_man" = "xno"; then
- not_asked="$not_asked man"
-fi
-if test "x$enable_doc" = "xno"; then
- not_asked="$not_asked doc"
-fi
-
-if test "x$enable_man" = "xyes" -o "x$enable_doc" = "xyes"; then
- AC_CHECK_PROGS(ASCIIDOCTOR, [asciidoctor])
- if test -n "$ASCIIDOCTOR"; then
- AC_MSG_CHECKING([for asciidoctor version])
- asciidoctor_version=`$ASCIIDOCTOR --version 2>/dev/null | head -n 1 | cut -d" " -f2`
- case "${asciidoctor_version}" in
- Asciidoctor' '0.*|Asciidoctor' '1.5.[0-3]*)
- AC_MSG_RESULT([${asciidoctor_version} (too old)])
- not_found="$not_found asciidoctor"
- enable_man="no"
- enable_doc="no"
- ;;
- *)
- AC_MSG_RESULT([${asciidoctor_version}])
- if test "x$enable_man" = "xyes"; then
- msg_man="asciidoctor(${asciidoctor_version}) $msg_man"
- AC_DEFINE(MAN)
- fi
- if test "x$enable_doc" = "xyes"; then
- msg_doc="asciidoctor(${asciidoctor_version}) $msg_doc"
- AC_DEFINE(DOC)
- fi
- ;;
- esac
- else
- not_found="$not_found asciidoctor"
- enable_man="no"
- enable_doc="no"
- fi
- ASCIIDOCTOR_ARGS="-a experimental -a reproducible -a 'prewrap!' -a 'webfonts!' -a icons=font -a sectanchors -a source-highlighter=pygments -a pygments-style=native"
- AC_SUBST(ASCIIDOCTOR)
- AC_SUBST(ASCIIDOCTOR_ARGS)
-fi
-
-# ------------------------------------------------------------------------------
-# general vars
-# ------------------------------------------------------------------------------
-
-if test "x$prefix" = "xNONE" ; then
- prefix="$ac_default_prefix"
-fi
-
-if test "x$exec_prefix" = "xNONE" ; then
- exec_prefix="$prefix"
-fi
-
-AC_DEFINE_UNQUOTED(PREFIX, "${prefix}")
-
-WEECHAT_LIBDIR=`eval eval echo ${libdir}/weechat`
-AC_DEFINE_UNQUOTED(WEECHAT_LIBDIR, "$WEECHAT_LIBDIR")
-
-WEECHAT_SHAREDIR=`eval eval echo ${datadir}/weechat`
-AC_DEFINE_UNQUOTED(WEECHAT_SHAREDIR, "$WEECHAT_SHAREDIR")
-
-weechat_libdir=${libdir}/weechat
-AC_SUBST(weechat_libdir)
-
-COMMON_CFLAGS="-fsigned-char -Wall -Wextra -Werror-implicit-function-declaration"
-COMMON_CXXFLAGS="-fsigned-char -Wall -Wextra"
-
-AC_MSG_CHECKING([whether we have GNU assembler])
-GAS=`as --version < /dev/null 2>/dev/null | grep GNU`
-if test "$GAS"; then
- COMMON_CFLAGS="${COMMON_CFLAGS} -pipe"
- COMMON_CXXFLAGS="${COMMON_CXXFLAGS} -pipe"
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-
-CFLAGS=`echo $CFLAGS | sed 's/ -g / /g'`
-CFLAGS=`echo $CFLAGS | sed 's/^-g //g'`
-CFLAGS=`echo $CFLAGS | sed 's/ -g$//g'`
-CFLAGS=`echo $CFLAGS | sed 's/^-g$//g'`
-
-CXXFLAGS=`echo $CXXFLAGS | sed 's/ -g / /g'`
-CXXFLAGS=`echo $CXXFLAGS | sed 's/^-g //g'`
-CXXFLAGS=`echo $CXXFLAGS | sed 's/ -g$//g'`
-CXXFLAGS=`echo $CXXFLAGS | sed 's/^-g$//g'`
-
-if test "x$debug" = "x0" ; then
- CFLAGS="$COMMON_CFLAGS $CFLAGS"
- CXXFLAGS="$COMMON_CXXFLAGS $CXXFLAGS"
-else
- CFLAGS="$COMMON_CFLAGS $CFLAGS -g -O0"
- CXXFLAGS="$COMMON_CXXFLAGS $CXXFLAGS -g -O0"
-fi
-
-LIBS="$LIBS $INTLLIBS"
-
-case "$host_os" in
-freebsd*)
- if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then
- CFLAGS="$CFLAGS -pthread"
- fi
- CFLAGS="$CFLAGS $CXXFLAGS"
- ;;
-openbsd*)
- if test "x$enable_python" = "xyes" ; then
- CFLAGS="$CFLAGS -pthread"
- fi
- ;;
-netbsd*)
- if test "x$enable_perl" = "xyes" -o "x$enable_python" = "xyes" ; then
- CFLAGS="$CFLAGS -pthread"
- fi
- CFLAGS="$CFLAGS $CXXFLAGS"
- ;;
-gnu*)
- LDFLAGS="$LDFLAGS -lpthread"
- ;;
-haiku*)
- LDFLAGS="$LDFLAGS -lnetwork"
- ;;
-*)
- ;;
-esac
-
-CFLAGS="$CFLAGS -DWEECHAT_VERSION=\\\"$VERSION\\\" -DWEECHAT_LICENSE=\\\"$LICENSE\\\""
-CXXFLAGS="$CXXFLAGS -DWEECHAT_VERSION=\\\"$VERSION\\\" -DWEECHAT_LICENSE=\\\"$LICENSE\\\""
-
-# ------------------------------------------------------------------------------
-# output Makefiles
-# ------------------------------------------------------------------------------
-
-AM_CONDITIONAL(HAVE_FLOCK, test "$enable_flock" = "yes")
-AM_CONDITIONAL(HAVE_EAT_NEWLINE_GLITCH, test "$enable_eatnewlineglitch" = "yes")
-AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes")
-AM_CONDITIONAL(HEADLESS, test "$enable_headless" = "yes")
-AM_CONDITIONAL(PLUGIN_ALIAS, test "$enable_alias" = "yes")
-AM_CONDITIONAL(PLUGIN_BUFLIST, test "$enable_buflist" = "yes")
-AM_CONDITIONAL(PLUGIN_CHARSET, test "$enable_charset" = "yes")
-AM_CONDITIONAL(PLUGIN_EXEC, test "$enable_exec" = "yes")
-AM_CONDITIONAL(PLUGIN_FIFO, test "$enable_fifo" = "yes")
-AM_CONDITIONAL(PLUGIN_FSET, test "$enable_fset" = "yes")
-AM_CONDITIONAL(PLUGIN_IRC, test "$enable_irc" = "yes")
-AM_CONDITIONAL(PLUGIN_LOGGER, test "$enable_logger" = "yes")
-AM_CONDITIONAL(PLUGIN_RELAY, test "$enable_relay" = "yes")
-AM_CONDITIONAL(PLUGIN_SCRIPT, test "$enable_script" = "yes")
-AM_CONDITIONAL(PLUGIN_PERL, test "$enable_perl" = "yes")
-AM_CONDITIONAL(PLUGIN_PYTHON, test "$enable_python" = "yes")
-AM_CONDITIONAL(PLUGIN_RUBY, test "$enable_ruby" = "yes")
-AM_CONDITIONAL(PLUGIN_LUA, test "$enable_lua" = "yes")
-AM_CONDITIONAL(PLUGIN_TCL, test "$enable_tcl" = "yes")
-AM_CONDITIONAL(PLUGIN_GUILE, test "$enable_guile" = "yes")
-AM_CONDITIONAL(PLUGIN_JAVASCRIPT, test "$enable_javascript" = "yes")
-AM_CONDITIONAL(PLUGIN_PHP, test "$enable_php" = "yes")
-AM_CONDITIONAL(PLUGIN_SPELL, test "$enable_spell" = "yes")
-AM_CONDITIONAL(PLUGIN_TRIGGER, test "$enable_trigger" = "yes")
-AM_CONDITIONAL(PLUGIN_TYPING, test "$enable_typing" = "yes")
-AM_CONDITIONAL(PLUGIN_XFER, test "$enable_xfer" = "yes")
-AM_CONDITIONAL(TESTS, test "$enable_tests" = "yes")
-AM_CONDITIONAL(MAN, test "$enable_man" = "yes")
-AM_CONDITIONAL(DOC, test "$enable_doc" = "yes")
-
-AC_OUTPUT([Makefile
- icons/Makefile
- doc/Makefile
- doc/cs/Makefile
- doc/de/Makefile
- doc/en/Makefile
- doc/es/Makefile
- doc/fr/Makefile
- doc/it/Makefile
- doc/ja/Makefile
- doc/pl/Makefile
- doc/ru/Makefile
- doc/sr/Makefile
- src/Makefile
- src/core/Makefile
- src/plugins/Makefile
- src/plugins/alias/Makefile
- src/plugins/buflist/Makefile
- src/plugins/charset/Makefile
- src/plugins/exec/Makefile
- src/plugins/fifo/Makefile
- src/plugins/fset/Makefile
- src/plugins/irc/Makefile
- src/plugins/logger/Makefile
- src/plugins/relay/Makefile
- src/plugins/script/Makefile
- src/plugins/perl/Makefile
- src/plugins/python/Makefile
- src/plugins/ruby/Makefile
- src/plugins/lua/Makefile
- src/plugins/tcl/Makefile
- src/plugins/guile/Makefile
- src/plugins/javascript/Makefile
- src/plugins/php/Makefile
- src/plugins/spell/Makefile
- src/plugins/trigger/Makefile
- src/plugins/typing/Makefile
- src/plugins/xfer/Makefile
- src/gui/Makefile
- src/gui/curses/Makefile
- src/gui/curses/normal/Makefile
- src/gui/curses/headless/Makefile
- tests/Makefile
- intl/Makefile
- po/Makefile.in])
-
-# ------------------------------------------------------------------------------
-# end message
-# ------------------------------------------------------------------------------
-
-listgui=""
-if test "x$enable_ncurses" = "xyes" ; then
- listgui="$listgui ncurses"
-fi
-if test "x$enable_headless" = "xyes" ; then
- listgui="$listgui headless"
-fi
-
-if test "x$listgui" = "x" ; then
- AC_MSG_ERROR([
-*** No interface specified...
-*** Please enable at least ncurses or headless.])
-fi
-
-listplugins=""
-if test "x$enable_alias" = "xyes"; then
- listplugins="$listplugins alias"
-fi
-if test "x$enable_buflist" = "xyes"; then
- listplugins="$listplugins buflist"
-fi
-if test "x$enable_charset" = "xyes"; then
- listplugins="$listplugins charset"
-fi
-if test "x$enable_exec" = "xyes"; then
- listplugins="$listplugins exec"
-fi
-if test "x$enable_fifo" = "xyes"; then
- listplugins="$listplugins fifo"
-fi
-if test "x$enable_fset" = "xyes"; then
- listplugins="$listplugins fset"
-fi
-if test "x$enable_irc" = "xyes" ; then
- listplugins="$listplugins irc"
-fi
-if test "x$enable_logger" = "xyes"; then
- listplugins="$listplugins logger"
-fi
-if test "x$enable_relay" = "xyes"; then
- listplugins="$listplugins relay"
-fi
-if test "x$enable_script" = "xyes"; then
- listplugins="$listplugins script"
-fi
-if test "x$enable_perl" = "xyes"; then
- listplugins="$listplugins perl($PERL_VERSION)"
-fi
-if test "x$enable_python" = "xyes"; then
- listplugins="$listplugins python($PYTHON_VERSION)"
-fi
-if test "x$enable_ruby" = "xyes"; then
- listplugins="$listplugins ruby($RUBY_VERSION)"
-fi
-if test "x$enable_lua" = "xyes"; then
- listplugins="$listplugins lua($LUA_VERSION)"
-fi
-if test "x$enable_tcl" = "xyes"; then
- listplugins="$listplugins tcl($TCL_VERSION)"
-fi
-if test "x$enable_guile" = "xyes"; then
- listplugins="$listplugins guile($GUILE_VERSION)"
-fi
-if test "x$enable_javascript" = "xyes"; then
- listplugins="$listplugins javascript/v8"
-fi
-if test "x$enable_php" = "xyes"; then
- listplugins="$listplugins php($PHP_VERSION)"
-fi
-if test "x$enable_spell" = "xyes"; then
- listplugins="$listplugins spell($SPELL_LIB_USED)"
-fi
-if test "x$enable_trigger" = "xyes"; then
- listplugins="$listplugins trigger"
-fi
-if test "x$enable_typing" = "xyes"; then
- listplugins="$listplugins typing"
-fi
-if test "x$enable_xfer" = "xyes"; then
- listplugins="$listplugins xfer"
-fi
-
-listoptional=""
-if test "x$enable_flock" = "xyes"; then
- listoptional="$listoptional flock"
-fi
-if test "x$enable_largefile" = "xyes"; then
- listoptional="$listoptional largefile"
-fi
-if test "x$enable_backtrace" = "xyes"; then
- listoptional="$listoptional backtrace"
-fi
-
-msg_debug="no"
-if test "x$debug" != "x0"; then
- msg_debug="yes"
-fi
-
-msg_tests="no"
-if test "x$enable_tests" = "xyes"; then
- msg_tests="yes"
-fi
-
-if test "x$msg_man" = "x"; then
- msg_man="no"
-else
- msg_man="yes: $msg_man"
-fi
-if test "x$msg_doc" = "x"; then
- msg_doc="no"
-else
- msg_doc="yes: $msg_doc"
-fi
-
-echo ""
-echo "Enabled features:"
-echo " Interfaces............. :$listgui"
-echo " Plugins................ :$listplugins"
-echo " Optional features...... :$listoptional"
-echo " Compile with debug..... : $msg_debug"
-echo " Compile tests.......... : $msg_tests"
-echo " Man page............... : $msg_man"
-echo " Documentation.......... : $msg_doc"
-
-if test "x$not_asked" != "x" || test "x$not_found" != "x"; then
- echo ""
- echo "Disabled features:"
- if test "x$not_asked" != "x"; then
- echo " - not asked:$not_asked"
- fi
- if test "x$not_found" != "x"; then
- echo " - not found:$not_found"
- fi
-fi
-
-echo ""
-if test "x$WEECHAT_HOME" != "x" ; then
- echo "WeeChat home directory is forced by default to: ${WEECHAT_HOME}"
- echo ""
-fi
-eval echo "WeeChat will be installed in $bindir"
-echo ""
-echo "configure complete, now type 'make' to build WeeChat $VERSION"
-echo ""
diff --git a/debian-devel/rules b/debian-devel/rules
index 16a5f9516..51def733e 100755
--- a/debian-devel/rules
+++ b/debian-devel/rules
@@ -18,11 +18,6 @@ $(BUILDDIR)/Makefile:
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-override_dh_auto_configure:
- # the package also has autotools buildsys and
- # debhelper try to use it but that's not needed
- echo
-
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
diff --git a/debian-stable/rules b/debian-stable/rules
index 16a5f9516..51def733e 100755
--- a/debian-stable/rules
+++ b/debian-stable/rules
@@ -18,11 +18,6 @@ $(BUILDDIR)/Makefile:
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-override_dh_auto_configure:
- # the package also has autotools buildsys and
- # debhelper try to use it but that's not needed
- echo
-
override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index ead933a18..000000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-SUBDIRS = . cs de en es fr it ja pl ru sr
-
-EXTRA_DIST = docgen.py \
- docinfo.html \
- CMakeLists.txt
-
-uninstall-hook:
- -rmdir $(DESTDIR)$(datadir)/doc/$(PACKAGE)
diff --git a/doc/cs/Makefile.am b/doc/cs/Makefile.am
deleted file mode 100644
index 22c59334e..000000000
--- a/doc/cs/Makefile.am
+++ /dev/null
@@ -1,81 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.cs.adoc \
- weechat-headless.1.cs.adoc \
- weechat_quickstart.cs.adoc \
- includes/cmdline_options.cs.adoc \
- includes/man.cs.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_quickstart.cs.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.cs.adoc includes/cmdline_options.cs.adoc includes/man.cs.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/cs/weechat.1.cs.adoc
-weechat-headless.1: weechat-headless.1.cs.adoc includes/cmdline_options.cs.adoc includes/man.cs.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/cs/weechat-headless.1.cs.adoc
-
-# quickstart
-weechat_quickstart.cs.html: weechat_quickstart.cs.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.cs.html $(abs_top_srcdir)/doc/cs/weechat_quickstart.cs.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/cs/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/cs/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/cs/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/cs/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/cs/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.cs.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/de/Makefile.am b/doc/de/Makefile.am
deleted file mode 100644
index 3f4dceb3e..000000000
--- a/doc/de/Makefile.am
+++ /dev/null
@@ -1,111 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.de.adoc \
- weechat-headless.1.de.adoc \
- weechat_user.de.adoc \
- weechat_scripting.de.adoc \
- weechat_faq.de.adoc \
- weechat_quickstart.de.adoc \
- includes/autogen_api_completions.de.adoc \
- includes/autogen_api_hdata.de.adoc \
- includes/autogen_api_infolists.de.adoc \
- includes/autogen_api_infos.de.adoc \
- includes/autogen_api_infos_hashtable.de.adoc \
- includes/autogen_api_plugins_priority.de.adoc \
- includes/autogen_api_url_options.de.adoc \
- includes/autogen_user_commands.de.adoc \
- includes/autogen_user_default_aliases.de.adoc \
- includes/autogen_user_irc_colors.de.adoc \
- includes/autogen_user_options.de.adoc \
- includes/cmdline_options.de.adoc \
- includes/man.de.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_user.de.html \
- weechat_scripting.de.html \
- weechat_faq.de.html \
- weechat_quickstart.de.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.de.adoc includes/cmdline_options.de.adoc includes/man.de.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/de/weechat.1.de.adoc
-weechat-headless.1: weechat-headless.1.de.adoc includes/cmdline_options.de.adoc includes/man.de.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/de/weechat-headless.1.de.adoc
-
-# user's guide
-weechat_user.de.html: weechat_user.de.adoc includes/cmdline_options.de.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.de.html $(abs_top_srcdir)/doc/de/weechat_user.de.adoc
-
-# scripting guide
-weechat_scripting.de.html: weechat_scripting.de.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.de.html $(abs_top_srcdir)/doc/de/weechat_scripting.de.adoc
-
-# FAQ
-weechat_faq.de.html: weechat_faq.de.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.de.html $(abs_top_srcdir)/doc/de/weechat_faq.de.adoc
-
-# quickstart
-weechat_quickstart.de.html: weechat_quickstart.de.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.de.html $(abs_top_srcdir)/doc/de/weechat_quickstart.de.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/de/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/de/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/de/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/de/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/de/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.de.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/de/weechat_faq.de.adoc b/doc/de/weechat_faq.de.adoc
index b7c8fdc65..5502449b6 100644
--- a/doc/de/weechat_faq.de.adoc
+++ b/doc/de/weechat_faq.de.adoc
@@ -50,19 +50,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== Ich kann WeeChat nach Cloning des git Repository nicht kompilieren - weshalb?
-Es wird empfohlen link:weechat_user.de.html#compile_with_cmake[CMake ^↗^,window=_blank] zum
-kompilieren von WeeChat zu nutzen.
-
-Falls Du WeeChat mit Hilfe der
-link:weechat_user.de.html#compile_with_autotools[autotools ^↗^,window=_blank] kompilieren solltest
-(dich also nicht für CMake entscheidest), stelle sicher, dass Du die neueste
-Version von autoconf und automake besitzt.
-
-Die zweite Möglichkeit besteht darin, das "Entwickler-Paket" zu installieren, denn dies
-besitzt weniger Abhängigkeiten. Das Paket wird quasi täglich aus dem git Repository erstellt.
-Beachte, dass dieses Paket nicht immer exakt mit dem git Repository übereinstimmen muss
-und daher auch weniger brauchbar sein kann. Im Gegensatz zu der Möglichkeit, dass man selbst
-das Repository klont und daraus Updates installiert.
+// TRANSLATION MISSING
+WeeChat must be compiled with CMake.
+
+// TRANSLATION MISSING
+Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
+and ensure all required dependencies are installed.
+
+// TRANSLATION MISSING
+If you still have issues, please report them to the developers.
[[compile_macos]]
=== Wie installiere ich WeeChat auf macOS?
diff --git a/doc/de/weechat_user.de.adoc b/doc/de/weechat_user.de.adoc
index 955c07988..128626348 100644
--- a/doc/de/weechat_user.de.adoc
+++ b/doc/de/weechat_user.de.adoc
@@ -100,7 +100,8 @@ Repositorium.
[[source_package]]
=== Quellpakete
-WeeChat kann mittels CMake oder autotools kompiliert werden (CMake sollte dabei die bevorzugte Methode sein).
+// TRANSLATION MISSING
+WeeChat must be built with CMake.
[NOTE]
Unter macOS kann https://brew.sh/[Homebrew ^↗^,window=_blank] verwendet werden:
@@ -109,18 +110,21 @@ Unter macOS kann https://brew.sh/[Homebrew ^↗^,window=_blank] verwendet werde
[[dependencies]]
==== Abhängigkeiten
-Die folgende Tabelle zeigt die Liste der Pakete, die zum Kompilieren von
-WeeChat *erforderlich* sind:
+// TRANSLATION MISSING
+The following table shows the list of packages that are *required* to build
+WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paket ^(1)^ | Version | Funktionen
+// TRANSLATION MISSING
| C compiler (gcc / clang) |
-| zum Erstellen der Binärdatei.
+| Compile C sources.
+// TRANSLATION MISSING
| cmake | ≥ 3.0
-| zum kompilieren (autotools ist möglich. CMake wird aber empfohlen).
+| Build.
| pkg-config |
| entdeckt installierte Bibliotheken.
@@ -198,8 +202,9 @@ installieren:
# apt-get build-dep weechat
----
-[[compile_with_cmake]]
-==== Kompilieren mit CMake
+// TRANSLATION MISSING
+[[build]]
+==== Build
* Installation in das Systemverzeichnis (benötigt _root_ Privilegien):
@@ -351,59 +356,21 @@ oder mittels der Curses-Oberfläche:
$ ccmake ..
----
-[[compile_with_autotools]]
-==== Kompilieren mit autotools
-
-[WARNING]
-Ausschließlich das Kompilieren mittels CMake wird offiziell unterstützt. Autotools
-sollte nur verwendet werden, falls man keine Möglichkeit hat CMake zu nutzen. +
-Für die Erstellung mittels autotools werden zusätzliche Pakete benötigt und es ist
-zeitintensiver als CMake.
-
-* Installation in das Systemverzeichnis (benötigt _root_ Privilegien):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure
-$ make
-$ sudo make install
-----
-
-* Installation in ein benutzerdefiniertes Verzeichnis (zum Beispiel ins Heimatverzeichnis):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure --prefix=/Pfad/zum/Verzeichnis
-$ make
-$ make install
-----
-
-Die Optionen können auch für das _configure_ Skript verwendet und mittels
-folgendem Befehl angezeigt werden:
-
-----
-$ ./configure --help
-----
-
-[[run_tests]]
-==== Tests ausführen
+[[tests]]
+==== Tests
Folgende Pakete werden *benötigt* um Tests zu kompilieren:
* libcpputest-dev
* C++ compiler
-Tests muss aktiviert werden wenn WeeChat kompiliert wird (mittels CMake):
+Tests muss aktiviert werden wenn WeeChat kompiliert wird:
----
$ cmake .. -DENABLE_TESTS=ON
----
-Nach der Kompilierung wird die Testumgebung im build-Verzeichnis (bei CMake) ausgeführt:
+Nach der Kompilierung wird die Testumgebung im build-Verzeichnis ausgeführt:
----
$ ctest -V
diff --git a/doc/en/Makefile.am b/doc/en/Makefile.am
deleted file mode 100644
index 539f61518..000000000
--- a/doc/en/Makefile.am
+++ /dev/null
@@ -1,129 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.en.adoc \
- weechat-headless.1.en.adoc \
- weechat_user.en.adoc \
- weechat_plugin_api.en.adoc \
- weechat_scripting.en.adoc \
- weechat_faq.en.adoc \
- weechat_quickstart.en.adoc \
- weechat_relay_protocol.en.adoc \
- weechat_dev.en.adoc \
- includes/autogen_api_completions.en.adoc \
- includes/autogen_api_hdata.en.adoc \
- includes/autogen_api_infolists.en.adoc \
- includes/autogen_api_infos.en.adoc \
- includes/autogen_api_infos_hashtable.en.adoc \
- includes/autogen_api_plugins_priority.en.adoc \
- includes/autogen_api_url_options.en.adoc \
- includes/autogen_user_commands.en.adoc \
- includes/autogen_user_default_aliases.en.adoc \
- includes/autogen_user_irc_colors.en.adoc \
- includes/autogen_user_options.en.adoc \
- includes/cmdline_options.en.adoc \
- includes/man.en.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_user.en.html \
- weechat_plugin_api.en.html \
- weechat_scripting.en.html \
- weechat_faq.en.html \
- weechat_quickstart.en.html \
- weechat_relay_protocol.en.html \
- weechat_dev.en.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.en.adoc includes/cmdline_options.en.adoc includes/man.en.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/en/weechat.1.en.adoc
-weechat-headless.1: weechat-headless.1.en.adoc includes/cmdline_options.en.adoc includes/man.en.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/en/weechat-headless.1.en.adoc
-
-# user's guide
-weechat_user.en.html: weechat_user.en.adoc includes/cmdline_options.en.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.en.html $(abs_top_srcdir)/doc/en/weechat_user.en.adoc
-
-# plugin API reference
-weechat_plugin_api.en.html: weechat_plugin_api.en.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.en.html $(abs_top_srcdir)/doc/en/weechat_plugin_api.en.adoc
-
-# scripting guide
-weechat_scripting.en.html: weechat_scripting.en.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.en.html $(abs_top_srcdir)/doc/en/weechat_scripting.en.adoc
-
-# FAQ
-weechat_faq.en.html: weechat_faq.en.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.en.html $(abs_top_srcdir)/doc/en/weechat_faq.en.adoc
-
-# quickstart
-weechat_quickstart.en.html: weechat_quickstart.en.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.en.html $(abs_top_srcdir)/doc/en/weechat_quickstart.en.adoc
-
-# relay protocol
-weechat_relay_protocol.en.html: weechat_relay_protocol.en.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.en.html $(abs_top_srcdir)/doc/en/weechat_relay_protocol.en.adoc
-
-# developer's guide
-weechat_dev.en.html: weechat_dev.en.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.en.html $(abs_top_srcdir)/doc/en/weechat_dev.en.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.en.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/en/weechat_dev.en.adoc b/doc/en/weechat_dev.en.adoc
index e644c0067..18c167355 100644
--- a/doc/en/weechat_dev.en.adoc
+++ b/doc/en/weechat_dev.en.adoc
@@ -1160,11 +1160,8 @@ Where _component_ is one of following:
| WeeChat core
| build
-| autogen.sh +
- CMakeLists.txt +
+| CMakeLists.txt +
cmake/* +
- configure.ac +
- Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec
diff --git a/doc/en/weechat_faq.en.adoc b/doc/en/weechat_faq.en.adoc
index fdcdf6328..c57558db6 100644
--- a/doc/en/weechat_faq.en.adoc
+++ b/doc/en/weechat_faq.en.adoc
@@ -44,17 +44,12 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== I can't compile WeeChat after cloning git repository, why?
-The recommended way to compile WeeChat is with
-link:weechat_user.en.html#compile_with_cmake[CMake ^↗^,window=_blank].
+WeeChat must be compiled with CMake.
-If you're compiling with
-link:weechat_user.en.html#compile_with_autotools[autotools ^↗^,window=_blank]
-(and not CMake), check that you have latest version of autoconf and automake.
+Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
+and ensure all required dependencies are installed.
-The other way is to install the "devel package", which needs less dependencies.
-This package is built almost every day using git repository. Note that this
-package may not correspond exactly to git base and that it's less convenient
-than git cloning for installing updates.
+If you still have issues, please report them to the developers.
[[compile_macos]]
=== How can I install WeeChat on macOS?
diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc
index 5c0858e59..c28397775 100644
--- a/doc/en/weechat_user.en.adoc
+++ b/doc/en/weechat_user.en.adoc
@@ -94,7 +94,7 @@ repository.
[[source_package]]
=== Source package
-WeeChat can be compiled with CMake or autotools (CMake is recommended way).
+WeeChat must be built with CMake.
[NOTE]
On macOS, you can use https://brew.sh/[Homebrew ^↗^,window=_blank]:
@@ -103,7 +103,7 @@ On macOS, you can use https://brew.sh/[Homebrew ^↗^,window=_blank]:
[[dependencies]]
==== Dependencies
-The following table shows the list of packages that are *required* to compile
+The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
@@ -111,10 +111,10 @@ WeeChat:
| Package ^(1)^ | Version | Features
| C compiler (gcc / clang) |
-| Build.
+| Compile C sources.
| cmake | ≥ 3.0
-| Build (autotools still possible, but CMake is recommended).
+| Build.
| pkg-config |
| Detect installed libraries.
@@ -190,8 +190,8 @@ all dependencies with the command:
# apt-get build-dep weechat
----
-[[compile_with_cmake]]
-==== Compile with CMake
+[[build]]
+==== Build
* Installation in system directories (requires _root_ privileges):
@@ -343,58 +343,21 @@ Or with Curses interface:
$ ccmake ..
----
-[[compile_with_autotools]]
-==== Compile with autotools
-
-[WARNING]
-Only CMake is officially supported to build WeeChat. You should use autotools
-only if you are not able to use CMake. +
-Build with autotools requires more dependencies and is slower than with CMake.
-
-* Installation in system directories (requires _root_ privileges):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure
-$ make
-$ sudo make install
-----
-
-* Installation in custom directory (for example your home):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure --prefix=/path/to/directory
-$ make
-$ make install
-----
-
-Options can be used for _configure_ script, they can be displayed with this
-command:
-
-----
-$ ./configure --help
-----
-
-[[run_tests]]
-==== Run tests
+[[tests]]
+==== Tests
Following packages are *required* to compile tests:
* libcpputest-dev
* C++ compiler
-Tests must be enabled when compiling WeeChat (with CMake):
+Tests must be enabled when compiling WeeChat:
----
$ cmake .. -DENABLE_TESTS=ON
----
-They can be launched after compilation from the build directory (with CMake):
+They can be launched after compilation from the build directory:
----
$ ctest -V
diff --git a/doc/es/Makefile.am b/doc/es/Makefile.am
deleted file mode 100644
index 10133deba..000000000
--- a/doc/es/Makefile.am
+++ /dev/null
@@ -1,77 +0,0 @@
-#
-# Copyright (C) 2012-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat_faq.es.adoc \
- weechat_quickstart.es.adoc
-
-if MAN
- man_targets =
- man_install =
- man_uninstall =
-endif
-if DOC
- doc_targets = weechat_faq.es.html \
- weechat_quickstart.es.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# FAQ
-weechat_faq.es.html: weechat_faq.es.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.es.html $(abs_top_srcdir)/doc/es/weechat_faq.es.adoc
-
-# quickstart
-weechat_quickstart.es.html: weechat_quickstart.es.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.es.html $(abs_top_srcdir)/doc/es/weechat_quickstart.es.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/es/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/es/man1/
- (cd '$(DESTDIR)$(mandir)/es/man1/' && $(RM) weechat-headless.1 && $(LN_S) weechat.1 weechat-headless.1)
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/es/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/es/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/es/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.es.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat_*.html
diff --git a/doc/es/weechat_faq.es.adoc b/doc/es/weechat_faq.es.adoc
index c48c23eb9..6db5c09f7 100644
--- a/doc/es/weechat_faq.es.adoc
+++ b/doc/es/weechat_faq.es.adoc
@@ -50,16 +50,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== No puedo compilar WeeChat después de haber clonado el repositorio git, ¿por qué?
-La manera recomendada para compilar WeeChat es con
-link:weechat_user.en.html#compile_with_cmake[CMake ^↗^,window=_blank].
+// TRANSLATION MISSING
+WeeChat must be compiled with CMake.
-Si lo está compilando con link:weechat_user.en.html#compile_with_autotools[autotools ^↗^,window=_blank]
-(y no con CMake), compruebe que tiene la versión más reciente de autoconf y automake.
+// TRANSLATION MISSING
+Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
+and ensure all required dependencies are installed.
-Otra forma es instalar "devel package", que necesita menos dependencias.
-Este paquete está compilado casi cada día utilizando el repositorio git. Tenga en cuenta que este
-paquete puede no corresponder exactamente con la base de git y es menos conveniente
-que la opción de clonar el repositorio de git a la hora de instalar actualizaciones.
+// TRANSLATION MISSING
+If you still have issues, please report them to the developers.
[[compile_macos]]
=== ¿Cómo puedo instalar WeeChat en macOS?
diff --git a/doc/fr/Makefile.am b/doc/fr/Makefile.am
deleted file mode 100644
index 76ae8da48..000000000
--- a/doc/fr/Makefile.am
+++ /dev/null
@@ -1,129 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.fr.adoc \
- weechat-headless.1.fr.adoc \
- weechat_user.fr.adoc \
- weechat_plugin_api.fr.adoc \
- weechat_scripting.fr.adoc \
- weechat_faq.fr.adoc \
- weechat_quickstart.fr.adoc \
- weechat_relay_protocol.fr.adoc \
- weechat_dev.fr.adoc \
- includes/autogen_api_completions.fr.adoc \
- includes/autogen_api_hdata.fr.adoc \
- includes/autogen_api_infolists.fr.adoc \
- includes/autogen_api_infos.fr.adoc \
- includes/autogen_api_infos_hashtable.fr.adoc \
- includes/autogen_api_plugins_priority.fr.adoc \
- includes/autogen_api_url_options.fr.adoc \
- includes/autogen_user_commands.fr.adoc \
- includes/autogen_user_default_aliases.fr.adoc \
- includes/autogen_user_irc_colors.fr.adoc \
- includes/autogen_user_options.fr.adoc \
- includes/cmdline_options.fr.adoc \
- includes/man.fr.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_user.fr.html \
- weechat_plugin_api.fr.html \
- weechat_scripting.fr.html \
- weechat_faq.fr.html \
- weechat_quickstart.fr.html \
- weechat_relay_protocol.fr.html \
- weechat_dev.fr.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.fr.adoc includes/cmdline_options.fr.adoc includes/man.fr.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/fr/weechat.1.fr.adoc
-weechat-headless.1: weechat-headless.1.fr.adoc includes/cmdline_options.fr.adoc includes/man.fr.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/fr/weechat-headless.1.fr.adoc
-
-# user's guide
-weechat_user.fr.html: weechat_user.fr.adoc includes/cmdline_options.fr.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.fr.html $(abs_top_srcdir)/doc/fr/weechat_user.fr.adoc
-
-# plugin API reference
-weechat_plugin_api.fr.html: weechat_plugin_api.fr.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.fr.html $(abs_top_srcdir)/doc/fr/weechat_plugin_api.fr.adoc
-
-# scripting guide
-weechat_scripting.fr.html: weechat_scripting.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.fr.html $(abs_top_srcdir)/doc/fr/weechat_scripting.fr.adoc
-
-# FAQ
-weechat_faq.fr.html: weechat_faq.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.fr.html $(abs_top_srcdir)/doc/fr/weechat_faq.fr.adoc
-
-# quickstart
-weechat_quickstart.fr.html: weechat_quickstart.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.fr.html $(abs_top_srcdir)/doc/fr/weechat_quickstart.fr.adoc
-
-# relay protocol
-weechat_relay_protocol.fr.html: weechat_relay_protocol.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.fr.html $(abs_top_srcdir)/doc/fr/weechat_relay_protocol.fr.adoc
-
-# developer's guide
-weechat_dev.fr.html: weechat_dev.fr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.fr.html $(abs_top_srcdir)/doc/fr/weechat_dev.fr.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/fr/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/fr/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/fr/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/fr/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.fr.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/fr/weechat_dev.fr.adoc b/doc/fr/weechat_dev.fr.adoc
index d0cf873c7..d3f1d2a1c 100644
--- a/doc/fr/weechat_dev.fr.adoc
+++ b/doc/fr/weechat_dev.fr.adoc
@@ -1180,11 +1180,8 @@ Où _composant_ est :
| cœur de WeeChat
| build
-| autogen.sh +
- CMakeLists.txt +
+| CMakeLists.txt +
cmake/* +
- configure.ac +
- Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec
diff --git a/doc/fr/weechat_faq.fr.adoc b/doc/fr/weechat_faq.fr.adoc
index c0c434b39..ca0486c7d 100644
--- a/doc/fr/weechat_faq.fr.adoc
+++ b/doc/fr/weechat_faq.fr.adoc
@@ -46,18 +46,12 @@ https://weechat.org/about/interfaces/[page avec les interfaces distantes ^↗^,
[[compile_git]]
=== Je ne peux pas compiler WeeChat après avoir cloné la base git, pourquoi ?
-La méthode recommandée pour compiler WeeChat est d'utiliser
-link:weechat_user.fr.html#compile_with_cmake[CMake ^↗^,window=_blank].
-
-Si vous compilez avec les link:weechat_user.fr.html#compile_with_autotools[autotools ^↗^,window=_blank]
-(et non CMake), vérifiez que vous avez bien la dernière version d'autoconf et
-automake.
-
-Une autre façon de faire est de compiler le "paquet devel", qui nécessite moins
-de dépendances. Ce paquet est construit quasiment tous les jours à partir de la
-base git. Notez que ce paquet peut ne pas correspondre exactement à la base
-git et qu'il est moins pratique que de cloner la base git pour installer des
-mises à jour.
+WeeChat doit être compilé avec CMake.
+
+Merci de suivre les link:weechat_user.en.html#source_package[instructions de construction ^↗^,window=_blank]
+et vous assurer que toutes les dépendances obligatoires sont installées.
+
+Si vous avez toujours des problèmes, merci de les remonter aux développeurs.
[[compile_macos]]
=== Comment puis-je installer WeeChat sous macOS ?
diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc
index 5222655b3..1c5aa2496 100644
--- a/doc/fr/weechat_user.fr.adoc
+++ b/doc/fr/weechat_user.fr.adoc
@@ -95,8 +95,7 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[source_package]]
=== Paquet source
-WeeChat peut être compilé avec CMake ou les autotools (CMake est la méthode
-recommandée).
+WeeChat doit être construit avec CMake.
[NOTE]
Sous macOS, vous pouvez utiliser https://brew.sh/[Homebrew ^↗^,window=_blank] :
@@ -105,17 +104,17 @@ Sous macOS, vous pouvez utiliser https://brew.sh/[Homebrew ^↗^,window=_blank]
[[dependencies]]
==== Dépendances
-Le tableau suivant liste les paquets *requis* pour compiler WeeChat :
+Le tableau suivant liste les paquets *requis* pour construire WeeChat :
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Paquet ^(1)^ | Version | Fonctionnalités
| compilateur C (gcc / clang) |
-| Construction.
+| Compilation des sources en C.
| cmake | ≥ 3.0
-| Construction (autotools toujours possible, mais CMake est recommandé).
+| Construction.
| pkg-config |
| Détection des bibliothèques installées.
@@ -191,8 +190,8 @@ pouvez installer toutes les dépendances avec la commande :
# apt-get build-dep weechat
----
-[[compile_with_cmake]]
-==== Compilation avec CMake
+[[build]]
+==== Construction
* Installation dans les répertoires systèmes (nécessite les droits _root_) :
@@ -345,60 +344,21 @@ Ou avec l'interface Curses :
$ ccmake ..
----
-[[compile_with_autotools]]
-==== Compilation avec autotools
-
-[WARNING]
-Seul CMake est officiellement supporté pour construire WeeChat. Vous ne devriez
-utiliser les autotools que si vous n'avez pas la possibilité d'utiliser CMake. +
-La compilation avec les autotools requiert plus de dépendances et est plus lente
-qu'avec CMake.
-
-* Installation dans les répertoires systèmes (nécessite les droits _root_) :
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure
-$ make
-$ sudo make install
-----
-
-* Installation dans un répertoire spécifique (par exemple dans votre "home") :
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure --prefix=/chemin/vers/répertoire
-$ make
-$ make install
-----
-
-Des options peuvent être utilisées pour le script _configure_, elles peuvent
-être affichées avec cette commande :
-
-----
-$ ./configure --help
-----
-
-[[run_tests]]
-==== Lancement des tests
+[[tests]]
+==== Tests
Les paquets suivants sont nécessaires pour compiler les tests :
* libcpputest-dev
* C++ compiler
-Les tests doivent être activés pour compiler WeeChat (avec CMake) :
+Les tests doivent être activés pour compiler WeeChat :
----
$ cmake .. -DENABLE_TESTS=ON
----
-Ils peuvent être lancés après compilation depuis le répertoire de construction
-(avec CMake) :
+Ils peuvent être lancés après compilation depuis le répertoire de construction :
----
$ ctest -V
diff --git a/doc/it/Makefile.am b/doc/it/Makefile.am
deleted file mode 100644
index 8aa34eb05..000000000
--- a/doc/it/Makefile.am
+++ /dev/null
@@ -1,116 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.it.adoc \
- weechat-headless.1.it.adoc \
- weechat_user.it.adoc \
- weechat_plugin_api.it.adoc \
- weechat_scripting.it.adoc \
- weechat_faq.it.adoc \
- weechat_quickstart.it.adoc \
- includes/autogen_api_completions.it.adoc \
- includes/autogen_api_hdata.it.adoc \
- includes/autogen_api_infolists.it.adoc \
- includes/autogen_api_infos_hashtable.it.adoc \
- includes/autogen_api_infos.it.adoc \
- includes/autogen_api_plugins_priority.it.adoc \
- includes/autogen_api_url_options.it.adoc \
- includes/autogen_user_commands.it.adoc \
- includes/autogen_user_default_aliases.it.adoc \
- includes/autogen_user_irc_colors.it.adoc \
- includes/autogen_user_options.it.adoc \
- includes/cmdline_options.it.adoc \
- includes/man.it.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_user.it.html \
- weechat_plugin_api.it.html \
- weechat_scripting.it.html \
- weechat_faq.it.html \
- weechat_quickstart.it.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.it.adoc includes/cmdline_options.it.adoc includes/man.it.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/it/weechat.1.it.adoc
-weechat-headless.1: weechat-headless.1.it.adoc includes/cmdline_options.it.adoc includes/man.it.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/it/weechat-headless.1.it.adoc
-
-# user's guide
-weechat_user.it.html: weechat_user.it.adoc includes/cmdline_options.it.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.it.html $(abs_top_srcdir)/doc/it/weechat_user.it.adoc
-
-# plugin API reference
-weechat_plugin_api.it.html: weechat_plugin_api.it.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.it.html $(abs_top_srcdir)/doc/it/weechat_plugin_api.it.adoc
-
-# scripting guide
-weechat_scripting.it.html: weechat_scripting.it.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.it.html $(abs_top_srcdir)/doc/it/weechat_scripting.it.adoc
-
-# FAQ
-weechat_faq.it.html: weechat_faq.it.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.it.html $(abs_top_srcdir)/doc/it/weechat_faq.it.adoc
-
-# quickstart
-weechat_quickstart.it.html: weechat_quickstart.it.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.it.html $(abs_top_srcdir)/doc/it/weechat_quickstart.it.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/it/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/it/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/it/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/it/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/it/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.it.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/it/weechat_faq.it.adoc b/doc/it/weechat_faq.it.adoc
index 54d8f67be..c6691f9a9 100644
--- a/doc/it/weechat_faq.it.adoc
+++ b/doc/it/weechat_faq.it.adoc
@@ -53,18 +53,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== Non è possibile compilare WeeChat dopo aver clonato il repository git, perché?
-Il metodo raccomandato per compilare WeeChat è utilizzando
-link:weechat_user.it.html#compile_with_cmake[CMake ^↗^,window=_blank].
-
-Se si sta compilando con link:weechat_user.it.html#compile_with_autotools[autotools ^↗^,window=_blank]
-(e non CMake), verificare che siano installate le ultime versioni di autoconf e
-automake.
-
-L'altro metodo è installare il "pacchetto di sviluppo", che richiede meno
-dipendenze. Questo pacchetto viene generato quasi tutti i giorni utilizzando
-il repository git. È bene notare che potrebbe non corrispondere
-esattamente alla base git ed è meno conveniente rispetto al clone di git
-per l'installazione degli aggiornamenti.
+// TRANSLATION MISSING
+WeeChat must be compiled with CMake.
+
+// TRANSLATION MISSING
+Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
+and ensure all required dependencies are installed.
+
+// TRANSLATION MISSING
+If you still have issues, please report them to the developers.
// TRANSLATION MISSING
[[compile_macos]]
diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc
index 4ef373fcc..fa2e6db9a 100644
--- a/doc/it/weechat_user.it.adoc
+++ b/doc/it/weechat_user.it.adoc
@@ -114,8 +114,8 @@ repository.
[[source_package]]
=== Sorgenti
-WeeChat può essere compilato con CMake oppure autotools
-(tuttavia si raccomanda CMake).
+// TRANSLATION MISSING
+WeeChat must be built with CMake.
// TRANSLATION MISSING
[NOTE]
@@ -126,7 +126,7 @@ On macOS, you can use https://brew.sh/[Homebrew ^↗^,window=_blank]:
==== Dipendenze
// TRANSLATION MISSING
-The following table shows the list of packages that are *required* to compile
+The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
@@ -136,10 +136,11 @@ WeeChat:
// TRANSLATION MISSING
| C compiler (gcc / clang) |
-| Build.
+| Compile C sources.
+// TRANSLATION MISSING
| cmake | ≥ 3.0
-| Compilazione (ancora possibile con autotools, ma si raccomanda CMake).
+| Build.
// TRANSLATION MISSING
| pkg-config |
@@ -233,8 +234,9 @@ all dependencies with the command:
# apt-get build-dep weechat
----
-[[compile_with_cmake]]
-==== Compilazione con CMake
+// TRANSLATION MISSING
+[[build]]
+==== Build
* Installazione nelle directory di sistema (richiede privilegi di _root_):
@@ -391,62 +393,22 @@ Or with Curses interface:
$ ccmake ..
----
-[[compile_with_autotools]]
-==== Compilazione con autotools
-
-// TRANSLATION MISSING
-[WARNING]
-Only CMake is officially supported to build WeeChat. You should use autotools
-only if you are not able to use CMake. +
-Build with autotools requires more dependencies and is slower than with CMake.
-
-* Installazione nelle directory di sistema (richiede privilegi di _root_):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure
-$ make
-$ sudo make install
-----
-
-// TRANSLATION MISSING
-* Installazione in una directory personalizzata (for example your home):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure --prefix=/path/to/directory
-$ make
-$ make install
-----
-
-// TRANSLATION MISSING
-Options can be used for _configure_ script, they can be displayed with this
-command:
-
-----
-$ ./configure --help
-----
-
// TRANSLATION MISSING
-[[run_tests]]
-==== Run tests
+[[tests]]
+==== Tests
Following packages are *required* to compile tests:
* libcpputest-dev
* C++ compiler
-Tests must be enabled when compiling WeeChat (with CMake):
+Tests must be enabled when compiling WeeChat:
----
$ cmake .. -DENABLE_TESTS=ON
----
-They can be launched after compilation from the build directory (with CMake):
+They can be launched after compilation from the build directory:
----
$ ctest -V
diff --git a/doc/ja/Makefile.am b/doc/ja/Makefile.am
deleted file mode 100644
index 474512970..000000000
--- a/doc/ja/Makefile.am
+++ /dev/null
@@ -1,128 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.ja.adoc \
- weechat-headless.1.ja.adoc \
- weechat_user.ja.adoc \
- weechat_plugin_api.ja.adoc \
- weechat_scripting.ja.adoc \
- weechat_faq.ja.adoc \
- weechat_quickstart.ja.adoc \
- weechat_relay_protocol.ja.adoc \
- weechat_dev.ja.adoc \
- includes/autogen_api_completions.ja.adoc \
- includes/autogen_api_hdata.ja.adoc \
- includes/autogen_api_infolists.ja.adoc \
- includes/autogen_api_infos_hashtable.ja.adoc \
- includes/autogen_api_infos.ja.adoc \
- includes/autogen_api_plugins_priority.ja.adoc \
- includes/autogen_api_url_options.ja.adoc \
- includes/autogen_user_commands.ja.adoc \
- includes/autogen_user_default_aliases.ja.adoc \
- includes/autogen_user_irc_colors.ja.adoc \
- includes/autogen_user_options.ja.adoc \
- includes/cmdline_options.ja.adoc \
- includes/man.ja.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_user.ja.html \
- weechat_plugin_api.ja.html \
- weechat_scripting.ja.html \
- weechat_faq.ja.html \
- weechat_quickstart.ja.html \
- weechat_relay_protocol.ja.html \
- weechat_dev.ja.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.ja.adoc includes/cmdline_options.ja.adoc includes/man.ja.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/ja/weechat.1.ja.adoc
-weechat-headless.1: weechat-headless.1.ja.adoc includes/cmdline_options.ja.adoc includes/man.ja.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/ja/weechat-headless.1.ja.adoc
-
-# user's guide
-weechat_user.ja.html: weechat_user.ja.adoc includes/cmdline_options.ja.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.ja.html $(abs_top_srcdir)/doc/ja/weechat_user.ja.adoc
-
-# plugin API reference
-weechat_plugin_api.ja.html: weechat_plugin_api.ja.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.ja.html $(abs_top_srcdir)/doc/ja/weechat_plugin_api.ja.adoc
-
-# scripting guide
-weechat_scripting.ja.html: weechat_scripting.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.ja.html $(abs_top_srcdir)/doc/ja/weechat_scripting.ja.adoc
-
-# FAQ
-weechat_faq.ja.html: weechat_faq.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.ja.html $(abs_top_srcdir)/doc/ja/weechat_faq.ja.adoc
-
-# quickstart
-weechat_quickstart.ja.html: weechat_quickstart.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.ja.html $(abs_top_srcdir)/doc/ja/weechat_quickstart.ja.adoc
-
-# relay protocol
-weechat_relay_protocol.ja.html: weechat_relay_protocol.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.ja.html $(abs_top_srcdir)/doc/ja/weechat_relay_protocol.ja.adoc
-
-# developer's guide
-weechat_dev.ja.html: weechat_dev.ja.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.ja.html $(abs_top_srcdir)/doc/ja/weechat_dev.ja.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/ja/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/ja/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/ja/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/ja/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/ja/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.ja.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/ja/weechat_dev.ja.adoc b/doc/ja/weechat_dev.ja.adoc
index cab9f952d..529c0785e 100644
--- a/doc/ja/weechat_dev.ja.adoc
+++ b/doc/ja/weechat_dev.ja.adoc
@@ -1235,11 +1235,8 @@ _component_ には以下から 1 つ選んで記入してください:
WeeChat core
| build
-| autogen.sh +
- CMakeLists.txt +
+| CMakeLists.txt +
cmake/* +
- configure.ac +
- Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec |
diff --git a/doc/ja/weechat_faq.ja.adoc b/doc/ja/weechat_faq.ja.adoc
index 7ef0f81b6..3be475435 100644
--- a/doc/ja/weechat_faq.ja.adoc
+++ b/doc/ja/weechat_faq.ja.adoc
@@ -51,16 +51,15 @@ https://weechat.org/about/interfaces/[remote interfaces page ^↗^,window=_blan
[[compile_git]]
=== git リポジトリをクローンした後に WeeChat をコンパイルできません。
-WeeChat をコンパイルするには link:weechat_user.ja.html#compile_with_cmake[CMake ^↗^,window=_blank]
-を使うことが推奨されています。
+// TRANSLATION MISSING
+WeeChat must be compiled with CMake.
-link:weechat_user.ja.html#compile_with_autotools[autotools ^↗^,window=_blank] を使って (CMake を使わずに)
-コンパイルする場合、最新の autoconf と automake を使ってください。
+// TRANSLATION MISSING
+Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
+and ensure all required dependencies are installed.
-他には「開発パッケージ」をインストール方法があります。この場合、インストールするのに必要なパッケージの数が減ります。このパッケージは
-git リポジトリからほぼ毎日ビルドされます。このパッケージは厳密には
-git ベースではなく、アップデートをインストールする場合には
-git をクローンする方法よりも不便であることに注意してください。
+// TRANSLATION MISSING
+If you still have issues, please report them to the developers.
[[compile_macos]]
=== どうすれば macOS に WeeChat をインストールできますか?
diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc
index d432ecd53..3cae6e19d 100644
--- a/doc/ja/weechat_user.ja.adoc
+++ b/doc/ja/weechat_user.ja.adoc
@@ -105,7 +105,8 @@ repository.
[[source_package]]
=== ソースパッケージ
-WeeChat は CMake または autotools を使ってコンパイルできます (CMake を使うことが推奨されています)。
+// TRANSLATION MISSING
+WeeChat must be built with CMake.
[NOTE]
macOS では https://brew.sh/[Homebrew ^↗^,window=_blank] を使ってください:
@@ -115,7 +116,7 @@ macOS では https://brew.sh/[Homebrew ^↗^,window=_blank] を使ってくだ
==== 依存関係
// TRANSLATION MISSING
-The following table shows the list of packages that are *required* to compile
+The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
@@ -123,11 +124,12 @@ WeeChat:
// TRANSLATION MISSING
| パッケージ ^(1)^ | バージョン | Features
+// TRANSLATION MISSING
| C コンパイラ (gcc / clang) |
-| ビルド
+| Compile C sources.
| cmake | ≥ 3.0
-| ビルド (autotools でも可能ですが、CMake を推奨します)
+| ビルド
| pkg-config |
| インストール済みライブラリを検出
@@ -211,8 +213,9 @@ Debian および Ubuntu
# apt-get build-dep weechat
----
-[[compile_with_cmake]]
-==== CMake によるコンパイル
+// TRANSLATION MISSING
+[[build]]
+==== Build
* システムディレクトリにインストールする場合 (_root_ 特権が必要です):
@@ -365,58 +368,22 @@ Curses インターフェースを使う場合は以下のコマンドを使っ
$ ccmake ..
----
-[[compile_with_autotools]]
-==== autotools によるコンパイル
-
-[WARNING]
-CMake 以外を用いた WeeChat のビルドは公式にサポートされません。CMake
-を利用できない場合のみ autotools を使ってください。 +
-autotools を用いてビルドする場合、CMake よりも多くの依存パッケージとより長い時間が必要です。
-
-* システムディレクトリにインストールする場合 (_root_ 特権が必要です):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure
-$ make
-$ sudo make install
-----
-
-* 任意のディレクトリ (例えば自分のホームディレクトリ) にインストールする場合:
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure --prefix=/path/to/directory
-$ make
-$ make install
-----
-
-_configure_
-スクリプトに対してオプションを指定することができます、オプションを表示するには以下のコマンドを使ってください:
-
-----
-$ ./configure --help
-----
-
-[[run_tests]]
-==== テストの実行
+// TRANSLATION MISSING
+[[tests]]
+==== Tests
テストをコンパイルするには以下のパッケージが *必須* です:
* libcpputest-dev
* C++ compiler
-テストは WeeChat のコンパイル時に有効化しなければいけません (CMake を使う場合):
+テストは WeeChat のコンパイル時に有効化しなければいけません:
----
$ cmake .. -DENABLE_TESTS=ON
----
-コンパイル終了後、build ディレクトリでテストを起動してください (CMake を使う場合):
+コンパイル終了後、build ディレクトリでテストを起動してください:
----
$ ctest -V
diff --git a/doc/pl/Makefile.am b/doc/pl/Makefile.am
deleted file mode 100644
index 8cf2ec2a2..000000000
--- a/doc/pl/Makefile.am
+++ /dev/null
@@ -1,111 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.pl.adoc \
- weechat-headless.1.pl.adoc \
- weechat_user.pl.adoc \
- weechat_scripting.pl.adoc \
- weechat_faq.pl.adoc \
- weechat_quickstart.pl.adoc \
- includes/autogen_api_completions.pl.adoc \
- includes/autogen_api_hdata.pl.adoc \
- includes/autogen_api_infolists.pl.adoc \
- includes/autogen_api_infos_hashtable.pl.adoc \
- includes/autogen_api_infos.pl.adoc \
- includes/autogen_api_plugins_priority.pl.adoc \
- includes/autogen_api_url_options.pl.adoc \
- includes/autogen_user_commands.pl.adoc \
- includes/autogen_user_default_aliases.pl.adoc \
- includes/autogen_user_irc_colors.pl.adoc \
- includes/autogen_user_options.pl.adoc \
- includes/cmdline_options.pl.adoc \
- includes/man.pl.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_user.pl.html \
- weechat_scripting.pl.html \
- weechat_faq.pl.html \
- weechat_quickstart.pl.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.pl.adoc includes/cmdline_options.pl.adoc includes/man.pl.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/pl/weechat.1.pl.adoc
-weechat-headless.1: weechat-headless.1.pl.adoc includes/cmdline_options.pl.adoc includes/man.pl.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/pl/weechat-headless.1.pl.adoc
-
-# user's guide
-weechat_user.pl.html: weechat_user.pl.adoc includes/cmdline_options.pl.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.pl.html $(abs_top_srcdir)/doc/pl/weechat_user.pl.adoc
-
-# scripting guide
-weechat_scripting.pl.html: weechat_scripting.pl.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.pl.html $(abs_top_srcdir)/doc/pl/weechat_scripting.pl.adoc
-
-# FAQ
-weechat_faq.pl.html: weechat_faq.pl.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.pl.html $(abs_top_srcdir)/doc/pl/weechat_faq.pl.adoc
-
-# quickstart
-weechat_quickstart.pl.html: weechat_quickstart.pl.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.pl.html $(abs_top_srcdir)/doc/pl/weechat_quickstart.pl.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/pl/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/pl/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/pl/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/pl/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/pl/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.pl.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/pl/weechat_faq.pl.adoc b/doc/pl/weechat_faq.pl.adoc
index 04f2de78d..17b55ece0 100644
--- a/doc/pl/weechat_faq.pl.adoc
+++ b/doc/pl/weechat_faq.pl.adoc
@@ -48,16 +48,15 @@ https://weechat.org/about/interfaces/[zdalnym interfejsom ^↗^,window=_blank].
[[compile_git]]
=== Nie mogę skompilować WeeChat po sklonowaniu repozytorium git, dlaczego?
-Zalecaną metodą kompilacji WeeChat jest użycie
-link:weechat_user.pl.html#compile_with_cmake[CMake ^↗^,window=_blank].
+// TRANSLATION MISSING
+WeeChat must be compiled with CMake.
-Jeśli kompilujesz używając link:weechat_user.pl.html#compile_with_autotools[autotools ^↗^,window=_blank]
-(nie CMake), upewnij się, że posiadasz najnowszą wersję autoconf i automake.
+// TRANSLATION MISSING
+Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
+and ensure all required dependencies are installed.
-Innym sposobem jest zainstalowanie "paczki deweloperskiej", która wymaga mniej
-zależności. Ten pakiet jest budowany prawie codziennie z użyciem repozytorium
-git. Ten pakiet może odpowiadać dokładnie wersji z gita i jest mniej wygodny
-przy aktualizowaniu jak klonowanie z gita.
+// TRANSLATION MISSING
+If you still have issues, please report them to the developers.
[[compile_macos]]
=== Jak zainstalować WeeChat na macOS?
diff --git a/doc/pl/weechat_user.pl.adoc b/doc/pl/weechat_user.pl.adoc
index cabd1a5fe..16ca35734 100644
--- a/doc/pl/weechat_user.pl.adoc
+++ b/doc/pl/weechat_user.pl.adoc
@@ -99,7 +99,8 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[source_package]]
=== Pakiety źródłowe
-WeeChat może być kompilowany za pomocą CMake lub autotools (CMake jest zalecany).
+// TRANSLATION MISSING
+WeeChat must be built with CMake.
[NOTE]
Na macOS możesz użyć https://brew.sh/[Homebrew ^↗^,window=_blank]:
@@ -108,18 +109,20 @@ Na macOS możesz użyć https://brew.sh/[Homebrew ^↗^,window=_blank]:
[[dependencies]]
==== Zależności
-Poniższa tabela zawiera listę *wymaganych* zależności do skompilowania
+// TRANSLATION MISSING
+The following table shows the list of packages that are *required* to build
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| Pakiet ^(1)^ | Wersja | Funkcje
+// TRANSLATION MISSING
| kompilator C (gcc / clang) |
-| Kompilacja.
+| Compile C sources.
| cmake | ≥ 3.0
-| Kompilacja (możliwe jest użycie autotools, jednak CMake jest zalecany).
+| Kompilacja.
| pkg-config |
| Wykrywa zainstalowane biblioteki.
@@ -195,8 +198,9 @@ za pomocą jednej komendy:
# apt-get build-dep weechat
----
-[[compile_with_cmake]]
-==== Kompilacja z użyciem CMake
+// TRANSLATION MISSING
+[[build]]
+==== Build
* Instalacja w katalogach systemowych (wymaga uprawnień użytkownika _root_):
@@ -348,59 +352,22 @@ Lub z interfejsem Curses:
$ ccmake ..
----
-[[compile_with_autotools]]
-==== Kompilacja z użyciem autotools
-
-[WARNING]
-Oficjalne wsparcie do budowania WeeChat posiada tylko CMake. Powinieneś używać
-autotools tylko jeśli nie możesz użyć CMake. +
-Budowanie z użyciem autotools wymaga więcej zależności i jest wolniejsze niż
-z CMake.
-
-* Instalacja w katalogach systemowych (wymaga uprawnień użytkownika _root_):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure
-$ make
-$ sudo make install
-----
-
-* Instalacja w wybranym katalogu (na przykład w katalogu domowym):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure --prefix=/ścieżka/do/katalogu
-$ make
-$ make install
-----
-
-Opcje mogą zostać przekazane to skryptu _configure_, można je wyświetlić
-za pomocą tej komendy:
-
-----
-$ ./configure --help
-----
-
-[[run_tests]]
-==== Uruchamianie testów
+// TRANSLATION MISSING
+[[tests]]
+==== Tests
Następujące pakiety są *wymagane* do kompilacji testów:
* libcpputest-dev
* kompilator C++
-Testy muszą być włączone podczas kompilacji WeeChat (z użyciem CMake):
+Testy muszą być włączone podczas kompilacji WeeChat:
----
$ cmake .. -DENABLE_TESTS=ON
----
-Można je uruchomić po skompilowaniu z katalogu kompilacji (z użyciem CMake):
+Można je uruchomić po skompilowaniu z katalogu kompilacji:
----
$ ctest -V
diff --git a/doc/ru/Makefile.am b/doc/ru/Makefile.am
deleted file mode 100644
index 76da3c961..000000000
--- a/doc/ru/Makefile.am
+++ /dev/null
@@ -1,81 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.ru.adoc \
- weechat-headless.1.ru.adoc \
- weechat_quickstart.ru.adoc \
- includes/cmdline_options.ru.adoc \
- includes/man.ru.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_quickstart.ru.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.ru.adoc includes/cmdline_options.ru.adoc includes/man.ru.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/ru/weechat.1.ru.adoc
-weechat-headless.1: weechat-headless.1.ru.adoc includes/cmdline_options.ru.adoc includes/man.ru.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/ru/weechat-headless.1.ru.adoc
-
-# quickstart
-weechat_quickstart.ru.html: weechat_quickstart.ru.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.ru.html $(abs_top_srcdir)/doc/ru/weechat_quickstart.ru.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/ru/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/ru/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/ru/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/ru/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/ru/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.ru.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/sr/Makefile.am b/doc/sr/Makefile.am
deleted file mode 100644
index 73a978368..000000000
--- a/doc/sr/Makefile.am
+++ /dev/null
@@ -1,129 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-docdir = $(datadir)/doc/$(PACKAGE)
-
-EXTRA_DIST = CMakeLists.txt \
- docinfo.html \
- weechat.1.sr.adoc \
- weechat-headless.1.sr.adoc \
- weechat_user.sr.adoc \
- weechat_plugin_api.sr.adoc \
- weechat_scripting.sr.adoc \
- weechat_faq.sr.adoc \
- weechat_quickstart.sr.adoc \
- weechat_relay_protocol.sr.adoc \
- weechat_dev.sr.adoc \
- includes/autogen_api_completions.sr.adoc \
- includes/autogen_api_hdata.sr.adoc \
- includes/autogen_api_infolists.sr.adoc \
- includes/autogen_api_infos.sr.adoc \
- includes/autogen_api_infos_hashtable.sr.adoc \
- includes/autogen_api_plugins_priority.sr.adoc \
- includes/autogen_api_url_options.sr.adoc \
- includes/autogen_user_commands.sr.adoc \
- includes/autogen_user_default_aliases.sr.adoc \
- includes/autogen_user_irc_colors.sr.adoc \
- includes/autogen_user_options.sr.adoc \
- includes/cmdline_options.sr.adoc \
- includes/man.sr.adoc
-
-if MAN
- man_targets = weechat.1 \
- weechat-headless.1
- man_install = install-man
- man_uninstall = uninstall-man
-endif
-if DOC
- doc_targets = weechat_user.sr.html \
- weechat_plugin_api.sr.html \
- weechat_scripting.sr.html \
- weechat_faq.sr.html \
- weechat_quickstart.sr.html \
- weechat_relay_protocol.sr.html \
- weechat_dev.sr.html
- doc_install = install-doc
- doc_uninstall = uninstall-doc
-endif
-all-local: $(man_targets) $(doc_targets)
-
-# man pages
-weechat.1: weechat.1.sr.adoc includes/cmdline_options.sr.adoc includes/man.sr.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/sr/weechat.1.sr.adoc
-weechat-headless.1: weechat-headless.1.sr.adoc includes/cmdline_options.sr.adoc includes/man.sr.adoc
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/sr/weechat-headless.1.sr.adoc
-
-# user's guide
-weechat_user.sr.html: weechat_user.sr.adoc includes/cmdline_options.sr.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.sr.html $(abs_top_srcdir)/doc/sr/weechat_user.sr.adoc
-
-# plugin API reference
-weechat_plugin_api.sr.html: weechat_plugin_api.sr.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.sr.html $(abs_top_srcdir)/doc/sr/weechat_plugin_api.sr.adoc
-
-# scripting guide
-weechat_scripting.sr.html: weechat_scripting.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.sr.html $(abs_top_srcdir)/doc/sr/weechat_scripting.sr.adoc
-
-# FAQ
-weechat_faq.sr.html: weechat_faq.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.sr.html $(abs_top_srcdir)/doc/sr/weechat_faq.sr.adoc
-
-# quickstart
-weechat_quickstart.sr.html: weechat_quickstart.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.sr.html $(abs_top_srcdir)/doc/sr/weechat_quickstart.sr.adoc
-
-# relay protocol
-weechat_relay_protocol.sr.html: weechat_relay_protocol.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.sr.html $(abs_top_srcdir)/doc/sr/weechat_relay_protocol.sr.adoc
-
-# developer's guide
-weechat_dev.sr.html: weechat_dev.sr.adoc $(abs_top_srcdir)/doc/docinfo.html
- $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.sr.html $(abs_top_srcdir)/doc/sr/weechat_dev.sr.adoc
-
-# install man/docs
-
-install-data-hook: $(man_install) $(doc_install)
-
-install-man:
- $(mkinstalldirs) $(DESTDIR)$(mandir)/sr/man1/
- $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/sr/man1/
-
-install-doc:
- $(mkinstalldirs) $(DESTDIR)$(docdir)/
- $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/
-
-# uninstall man/docs
-
-uninstall-hook: $(man_uninstall) $(doc_uninstall)
-
-uninstall-man:
- $(RM) $(DESTDIR)$(mandir)/sr/man1/weechat.1
- $(RM) $(DESTDIR)$(mandir)/sr/man1/weechat-headless.1
- -rmdir $(DESTDIR)$(mandir)/sr/man1
-
-uninstall-doc:
- $(RM) $(DESTDIR)$(docdir)/*.sr.html
- -rmdir $(DESTDIR)$(docdir)
-
-# clean
-
-clean-local:
- -$(RM) weechat.1 weechat-headless.1 weechat_*.html
diff --git a/doc/sr/weechat_dev.sr.adoc b/doc/sr/weechat_dev.sr.adoc
index af3bdf2f5..c8387cd97 100644
--- a/doc/sr/weechat_dev.sr.adoc
+++ b/doc/sr/weechat_dev.sr.adoc
@@ -1133,11 +1133,8 @@ server->hook_timer_sasl = weechat_hook_timer (timeout * 1000,
| WeeChat језгро
| build
-| autogen.sh +
- CMakeLists.txt +
+| CMakeLists.txt +
cmake/* +
- configure.ac +
- Makefile.am +
tools/* +
weechat.cygport.in +
weechat.spec
diff --git a/doc/sr/weechat_faq.sr.adoc b/doc/sr/weechat_faq.sr.adoc
index d7798ab37..92500f7df 100644
--- a/doc/sr/weechat_faq.sr.adoc
+++ b/doc/sr/weechat_faq.sr.adoc
@@ -47,11 +47,15 @@ https://weechat.org/about/interfaces/[страницу са удаљеним Г
[[compile_git]]
=== Након клонирања git репозиторијума не могу да компајлирам програм WeeChat, зашто?
-Препоручени начин да за компајлирање програма WeeChat је помоћу link:weechat_user.sr.html#compile_with_cmake[CMake ^↗^,window=_blank].
+// TRANSLATION MISSING
+WeeChat must be compiled with CMake.
-Ако компајлирате са link:weechat_user.sr.html#compile_with_autotools[autotools ^↗^,window=_blank] (а не са CMake), проверите да ли поседујете најновију верзију пакета autoconf и automake.
+// TRANSLATION MISSING
+Please follow link:weechat_user.en.html#source_package[build instructions ^↗^,window=_blank]
+and ensure all required dependencies are installed.
-Други начин је да се инсталира „devel package”, што тражи мање зависности. Овај пакет се се изграђује скоро свакодневно користећи git репозиторијум. Приметите да овај пакет можда није потпуно исти као git база, као и да је инсталирање ажурирања компликованије него просто git клонирање.
+// TRANSLATION MISSING
+If you still have issues, please report them to the developers.
[[compile_macos]]
=== Како да инсталирам програм WeeChat на macOS систем?
diff --git a/doc/sr/weechat_user.sr.adoc b/doc/sr/weechat_user.sr.adoc
index fc65aba12..067e84cf8 100644
--- a/doc/sr/weechat_user.sr.adoc
+++ b/doc/sr/weechat_user.sr.adoc
@@ -94,7 +94,8 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[source_package]]
=== Пакет са изворним кодом
-Програм WeeChat може да се компајлира са CMake или са autotools (CMake је препоручени начин).
+// TRANSLATION MISSING
+WeeChat must be built with CMake.
[NOTE]
На macOS можете да употребите https://brew.sh/[Homebrew ^↗^,window=_blank]: `brew install --build-from-source weechat`.
@@ -102,17 +103,20 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
[[dependencies]]
==== Зависности
-Следећа табела приказује листу пакета који су *неопходни* за успешно компајлирање програма WeeChat:
+// TRANSLATION MISSING
+The following table shows the list of packages that are *required* to build
+WeeChat:
[width="100%", cols="5,^3,.^15", options="header"]
|===
| Пакет ^(1)^ | Верзија | Могућности
+// TRANSLATION MISSING
| C компајлер (gcc / clang) |
-| Изградњу.
+| Compile C sources.
| cmake | ≥ 3.0
-| Изградњу (може да се користи и autotools, али се препоручује CMake).
+| Изградњу.
| pkg-config |
| Детекција инсталираних библиотека.
@@ -182,8 +186,9 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl
# apt-get build-dep weechat
----
-[[compile_with_cmake]]
-==== Компајлирање са CMake
+// TRANSLATION MISSING
+[[build]]
+==== Build
* Инсталација у системске директоријуме (неопходне су _root_ привилегије):
@@ -335,56 +340,22 @@ $ cmake -LA
$ ccmake ..
----
-[[compile_with_autotools]]
-==== Компајлирање са autotools
-
-[WARNING]
-За изградњу програма WeeChat званично се подржава само CMake. Требало би користите autotools само ако ни сте у могућности да користите CMake. +
-Изградња са autotools захтева више зависности и спорија је у односу на изградњу са CMake.
-
-* Инсталација у системске директоријуме (неопходне су _root_ привилегије):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure
-$ make
-$ sudo make install
-----
-
-* Инсталација у директоријум по жељи (на пример, у ваш почетни):
-
-----
-$ ./autogen.sh
-$ mkdir build
-$ cd build
-$ ../configure --prefix=/путања/до/директоријума
-$ make
-$ make install
-----
-
-За скрипту _configure_ могу да се користе опције које се приказују следећом командом:
-
-----
-$ ./configure --help
-----
-
-[[run_tests]]
-==== Покретање тестова
+// TRANSLATION MISSING
+[[tests]]
+==== Tests
За компајлирање тестова су *неопходни* следећи пакети:
* libcpputest-dev
* C++ компајлер
-Када се компајлира програм WeeChat (са CMake), тестови морају да се укључе:
+Када се компајлира програм WeeChat, тестови морају да се укључе:
----
$ cmake .. -DENABLE_TESTS=ON
----
-Након компајлирања могу да се покрену из директоријума у који је изграђен програм (са CMake):
+Након компајлирања могу да се покрену из директоријума у који је изграђен програм:
----
$ ctest -V
diff --git a/icons/Makefile.am b/icons/Makefile.am
deleted file mode 100644
index 3a19791ff..000000000
--- a/icons/Makefile.am
+++ /dev/null
@@ -1,39 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-EXTRA_DIST = 16x16/weechat.png \
- 32x32/weechat.png \
- 64x64/weechat.png \
- 128x128/weechat.png \
- 256x256/weechat.png \
- 512x512/weechat.png
-
-icon16dir = $(datadir)/icons/hicolor/16x16/apps
-icon32dir = $(datadir)/icons/hicolor/32x32/apps
-icon64dir = $(datadir)/icons/hicolor/64x64/apps
-icon128dir = $(datadir)/icons/hicolor/128x128/apps
-icon256dir = $(datadir)/icons/hicolor/256x256/apps
-icon512dir = $(datadir)/icons/hicolor/512x512/apps
-
-icon16_DATA = 16x16/weechat.png
-icon32_DATA = 32x32/weechat.png
-icon64_DATA = 64x64/weechat.png
-icon128_DATA = 128x128/weechat.png
-icon256_DATA = 256x256/weechat.png
-icon512_DATA = 512x512/weechat.png
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index 53a7b3d1f..000000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-SUBDIRS = core plugins gui
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/core/Makefile.am b/src/core/Makefile.am
deleted file mode 100644
index f918fc515..000000000
--- a/src/core/Makefile.am
+++ /dev/null
@@ -1,125 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS) $(CURL_CFLAGS) $(ZLIB_CFLAGS) $(ZSTD_CFLAGS)
-
-noinst_LIBRARIES = lib_weechat_core.a
-
-lib_weechat_core_a_SOURCES = weechat.c \
- weechat.h \
- wee-arraylist.c \
- wee-arraylist.h \
- wee-backtrace.c \
- wee-backtrace.h \
- wee-calc.c \
- wee-calc.h \
- wee-command.c \
- wee-command.h \
- wee-completion.c \
- wee-completion.h \
- wee-config.c \
- wee-config.h \
- wee-config-file.c \
- wee-config-file.h \
- wee-crypto.c \
- wee-crypto.h \
- wee-debug.c \
- wee-debug.h \
- wee-dir.c \
- wee-dir.h \
- wee-eval.c \
- wee-eval.h \
- wee-hashtable.c \
- wee-hashtable.h \
- wee-hdata.c \
- wee-hdata.h \
- wee-hook.c \
- wee-hook.h \
- wee-infolist.c \
- wee-infolist.h \
- wee-input.c \
- wee-input.h \
- wee-list.c \
- wee-list.h \
- wee-log.c \
- wee-log.h \
- wee-network.c \
- wee-network.h \
- wee-proxy.c \
- wee-proxy.h \
- wee-secure.c \
- wee-secure.h \
- wee-secure-buffer.c \
- wee-secure-buffer.h \
- wee-secure-config.c \
- wee-secure-config.h \
- wee-signal.c \
- wee-signal.h \
- wee-string.c \
- wee-string.h \
- wee-upgrade.c \
- wee-upgrade.h \
- wee-upgrade-file.c \
- wee-upgrade-file.h \
- wee-url.c \
- wee-url.h \
- wee-utf8.c \
- wee-utf8.h \
- wee-util.c \
- wee-util.h \
- wee-version.c \
- wee-version.h \
- hook/wee-hook-command-run.c \
- hook/wee-hook-command-run.h \
- hook/wee-hook-command.c \
- hook/wee-hook-command.h \
- hook/wee-hook-completion.c \
- hook/wee-hook-completion.h \
- hook/wee-hook-config.c \
- hook/wee-hook-config.h \
- hook/wee-hook-connect.c \
- hook/wee-hook-connect.h \
- hook/wee-hook-fd.c \
- hook/wee-hook-fd.h \
- hook/wee-hook-focus.c \
- hook/wee-hook-focus.h \
- hook/wee-hook-hdata.c \
- hook/wee-hook-hdata.h \
- hook/wee-hook-hsignal.c \
- hook/wee-hook-hsignal.h \
- hook/wee-hook-info-hashtable.c \
- hook/wee-hook-info-hashtable.h \
- hook/wee-hook-info.c \
- hook/wee-hook-info.h \
- hook/wee-hook-infolist.c \
- hook/wee-hook-infolist.h \
- hook/wee-hook-line.c \
- hook/wee-hook-line.h \
- hook/wee-hook-modifier.c \
- hook/wee-hook-modifier.h \
- hook/wee-hook-print.c \
- hook/wee-hook-print.h \
- hook/wee-hook-process.c \
- hook/wee-hook-process.h \
- hook/wee-hook-signal.c \
- hook/wee-hook-signal.h \
- hook/wee-hook-timer.c \
- hook/wee-hook-timer.h
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/gui/Makefile.am b/src/gui/Makefile.am
deleted file mode 100644
index b1870ec0d..000000000
--- a/src/gui/Makefile.am
+++ /dev/null
@@ -1,70 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"
-
-noinst_LIBRARIES = lib_weechat_gui_common.a
-
-lib_weechat_gui_common_a_SOURCES = gui-bar.c \
- gui-bar.h \
- gui-bar-item.c \
- gui-bar-item.h \
- gui-bar-item-custom.c \
- gui-bar-item-custom.h \
- gui-bar-window.c \
- gui-bar-window.h \
- gui-buffer.c \
- gui-buffer.h \
- gui-chat.c \
- gui-chat.h \
- gui-color.c \
- gui-color.h \
- gui-cursor.c \
- gui-cursor.h \
- gui-completion.c \
- gui-completion.h \
- gui-filter.c \
- gui-filter.h \
- gui-focus.c \
- gui-focus.h \
- gui-history.c \
- gui-history.h \
- gui-hotlist.c \
- gui-hotlist.h \
- gui-input.c \
- gui-input.h \
- gui-key.c \
- gui-key.h \
- gui-layout.c \
- gui-layout.h \
- gui-line.c \
- gui-line.h \
- gui-main.h \
- gui-mouse.c \
- gui-mouse.h \
- gui-nick.c \
- gui-nick.h \
- gui-nicklist.c \
- gui-nicklist.h \
- gui-window.c \
- gui-window.h
-
-SUBDIRS = . curses
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/gui/curses/Makefile.am b/src/gui/curses/Makefile.am
deleted file mode 100644
index aaf60e3df..000000000
--- a/src/gui/curses/Makefile.am
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-if GUI_NCURSES
-normal_dir=normal
-endif
-
-if HEADLESS
-headless_dir=headless
-endif
-
-SUBDIRS = . $(normal_dir) $(headless_dir)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/gui/curses/headless/Makefile.am b/src/gui/curses/headless/Makefile.am
deleted file mode 100644
index c114a8261..000000000
--- a/src/gui/curses/headless/Makefile.am
+++ /dev/null
@@ -1,57 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" -DWEECHAT_HEADLESS
-
-noinst_LIBRARIES = lib_weechat_ncurses_fake.a lib_weechat_gui_headless.a
-
-lib_weechat_ncurses_fake_a_SOURCES = ncurses-fake.c \
- ncurses-fake.h
-
-lib_weechat_gui_headless_a_SOURCES = ../gui-curses-bar-window.c \
- ../gui-curses-chat.c \
- ../gui-curses-color.c \
- ../gui-curses-key.c \
- ../gui-curses-main.c \
- ../gui-curses-mouse.c \
- ../gui-curses-term.c \
- ../gui-curses-window.c \
- ../gui-curses.h
-
-bin_PROGRAMS = weechat-headless
-
-# Due to circular references, we must link two times with libweechat_core.a
-# (and with two different path/names to be kept by linker)
-weechat_headless_LDADD = ./../../../core/lib_weechat_core.a \
- ../../../plugins/lib_weechat_plugins.a \
- ../../lib_weechat_gui_common.a \
- lib_weechat_gui_headless.a \
- lib_weechat_ncurses_fake.a \
- ../../../core/lib_weechat_core.a \
- $(PLUGINS_LFLAGS) \
- $(GCRYPT_LFLAGS) \
- $(GNUTLS_LFLAGS) \
- $(CURL_LFLAGS) \
- $(ZLIB_LFLAGS) \
- $(ZSTD_LFLAGS) \
- -lm
-
-weechat_headless_SOURCES = main.c
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/gui/curses/normal/Makefile.am b/src/gui/curses/normal/Makefile.am
deleted file mode 100644
index 1bb1c14df..000000000
--- a/src/gui/curses/normal/Makefile.am
+++ /dev/null
@@ -1,64 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(NCURSES_CFLAGS)
-
-noinst_LIBRARIES = lib_weechat_gui_curses.a
-
-lib_weechat_gui_curses_a_SOURCES = ../gui-curses-bar-window.c \
- ../gui-curses-chat.c \
- ../gui-curses-color.c \
- ../gui-curses-key.c \
- ../gui-curses-main.c \
- ../gui-curses-mouse.c \
- ../gui-curses-term.c \
- ../gui-curses-window.c \
- ../gui-curses.h
-
-bin_PROGRAMS = weechat
-
-# Due to circular references, we must link two times with libweechat_core.a
-# (and with two different path/names to be kept by linker)
-weechat_LDADD = ./../../../core/lib_weechat_core.a \
- ../../../plugins/lib_weechat_plugins.a \
- ../../lib_weechat_gui_common.a \
- lib_weechat_gui_curses.a \
- ../../../core/lib_weechat_core.a \
- $(PLUGINS_LFLAGS) \
- $(NCURSES_LFLAGS) \
- $(GCRYPT_LFLAGS) \
- $(GNUTLS_LFLAGS) \
- $(CURL_LFLAGS) \
- $(ZLIB_LFLAGS) \
- $(ZSTD_LFLAGS) \
- -lm
-
-weechat_SOURCES = main.c
-
-EXTRA_DIST = CMakeLists.txt
-
-# Create a symbolic link weechat-curses -> weechat
-# This link is created for compatibility with old versions on /upgrade.
-# It may be removed in future.
-install-exec-hook:
- (cd '$(DESTDIR)$(bindir)' && $(RM) weechat-curses$(EXEEXT) && $(LN_S) weechat weechat-curses$(EXEEXT))
-
-# Remove symbolic link on uninstall
-uninstall-hook:
- (cd '$(DESTDIR)$(bindir)' && $(RM) weechat-curses$(EXEEXT))
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
deleted file mode 100644
index e9647ed8d..000000000
--- a/src/plugins/Makefile.am
+++ /dev/null
@@ -1,167 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-# Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\"
-
-noinst_LIBRARIES = lib_weechat_plugins.a
-
-lib_weechat_plugins_a_SOURCES = weechat-plugin.h \
- plugin.c \
- plugin.h \
- plugin-api.c \
- plugin-api.h \
- plugin-api-info.c \
- plugin-api-info.h \
- plugin-config.c \
- plugin-config.h
-
-noinst_LTLIBRARIES = lib_weechat_plugins_scripts.la
-
-lib_weechat_plugins_scripts_la_SOURCES = plugin-script.c \
- plugin-script.h \
- plugin-script-api.c \
- plugin-script-api.h \
- plugin-script-config.c \
- plugin-script-config.h
-
-if PLUGIN_ALIAS
-alias_dir = alias
-endif
-
-if PLUGIN_BUFLIST
-buflist_dir = buflist
-endif
-
-if PLUGIN_CHARSET
-charset_dir = charset
-endif
-
-if PLUGIN_EXEC
-exec_dir = exec
-endif
-
-if PLUGIN_FIFO
-fifo_dir = fifo
-endif
-
-if PLUGIN_FSET
-fset_dir = fset
-endif
-
-if PLUGIN_IRC
-irc_dir = irc
-endif
-
-if PLUGIN_LOGGER
-logger_dir = logger
-endif
-
-if PLUGIN_RELAY
-relay_dir = relay
-endif
-
-if PLUGIN_SCRIPT
-script_dir = script
-endif
-
-if PLUGIN_PERL
-perl_dir = perl
-endif
-
-if PLUGIN_PYTHON
-python_dir = python
-endif
-
-if PLUGIN_RUBY
-ruby_dir = ruby
-endif
-
-if PLUGIN_LUA
-lua_dir = lua
-endif
-
-if PLUGIN_TCL
-tcl_dir = tcl
-endif
-
-if PLUGIN_GUILE
-guile_dir = guile
-endif
-
-if PLUGIN_JAVASCRIPT
-javascript_dir = javascript
-endif
-
-if PLUGIN_PHP
-php_dir = php
-endif
-
-if PLUGIN_SPELL
-spell_dir = spell
-endif
-
-if PLUGIN_TRIGGER
-trigger_dir = trigger
-endif
-
-if PLUGIN_TYPING
-typing_dir = typing
-endif
-
-if PLUGIN_XFER
-xfer_dir = xfer
-endif
-
-SUBDIRS = . \
- $(alias_dir) \
- $(buflist_dir) \
- $(charset_dir) \
- $(exec_dir) \
- $(fifo_dir) \
- $(fset_dir) \
- $(irc_dir) \
- $(logger_dir) \
- $(relay_dir) \
- $(script_dir) \
- $(perl_dir) \
- $(python_dir) \
- $(ruby_dir) \
- $(lua_dir) \
- $(tcl_dir) \
- $(guile_dir) \
- $(javascript_dir) \
- $(php_dir) \
- $(spell_dir) \
- $(trigger_dir) \
- $(typing_dir) \
- $(xfer_dir)
-
-EXTRA_DIST = CMakeLists.txt
-
-# install plugin header
-
-install-data-hook:
- $(INSTALL) -d $(DESTDIR)/$(includedir)/$(PACKAGE)
- $(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(DESTDIR)/$(includedir)/$(PACKAGE)
-
-# uninstall plugin header
-
-uninstall-hook:
- $(RM) $(DESTDIR)/$(includedir)/$(PACKAGE)/weechat-plugin.h
diff --git a/src/plugins/alias/Makefile.am b/src/plugins/alias/Makefile.am
deleted file mode 100644
index eb02f2053..000000000
--- a/src/plugins/alias/Makefile.am
+++ /dev/null
@@ -1,39 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ALIAS_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = alias.la
-
-alias_la_SOURCES = alias.c \
- alias.h \
- alias-command.c \
- alias-command.h \
- alias-completion.c \
- alias-completion.h \
- alias-config.c \
- alias-config.h \
- alias-info.c \
- alias-info.h
-alias_la_LDFLAGS = -module -no-undefined
-alias_la_LIBADD = $(ALIAS_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/buflist/Makefile.am b/src/plugins/buflist/Makefile.am
deleted file mode 100644
index d9a91c22f..000000000
--- a/src/plugins/buflist/Makefile.am
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(BUFLIST_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = buflist.la
-
-buflist_la_SOURCES = buflist.c \
- buflist.h \
- buflist-bar-item.c \
- buflist-bar-item.h \
- buflist-command.c \
- buflist-command.h \
- buflist-config.c \
- buflist-config.h \
- buflist-info.c \
- buflist-info.h \
- buflist-mouse.c \
- buflist-mouse.h
-
-buflist_la_LDFLAGS = -module -no-undefined
-buflist_la_LIBADD = $(BUFLIST_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/charset/Makefile.am b/src/plugins/charset/Makefile.am
deleted file mode 100644
index 2369d1a13..000000000
--- a/src/plugins/charset/Makefile.am
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(CHARSET_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = charset.la
-
-charset_la_SOURCES = charset.c
-charset_la_LDFLAGS = -module -no-undefined
-charset_la_LIBADD = $(CHARSET_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/exec/Makefile.am b/src/plugins/exec/Makefile.am
deleted file mode 100644
index 4ab357895..000000000
--- a/src/plugins/exec/Makefile.am
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# Copyright (C) 2014-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(EXEC_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = exec.la
-
-exec_la_SOURCES = exec.c \
- exec.h \
- exec-buffer.c \
- exec-buffer.h \
- exec-command.c \
- exec-command.h \
- exec-completion.c \
- exec-completion.h \
- exec-config.c \
- exec-config.h
-
-exec_la_LDFLAGS = -module -no-undefined
-exec_la_LIBADD = $(EXEC_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/fifo/Makefile.am b/src/plugins/fifo/Makefile.am
deleted file mode 100644
index e3bb70f49..000000000
--- a/src/plugins/fifo/Makefile.am
+++ /dev/null
@@ -1,37 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(FIFO_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = fifo.la
-
-fifo_la_SOURCES = fifo.c \
- fifo.h \
- fifo-command.c \
- fifo-command.h \
- fifo-config.c \
- fifo-config.h \
- fifo-info.c \
- fifo-info.h
-fifo_la_LDFLAGS = -module -no-undefined
-fifo_la_LIBADD = $(FIFO_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/fset/Makefile.am b/src/plugins/fset/Makefile.am
deleted file mode 100644
index 4986a3aeb..000000000
--- a/src/plugins/fset/Makefile.am
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(FSET_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = fset.la
-
-fset_la_SOURCES = fset.c \
- fset.h \
- fset-bar-item.c \
- fset-bar-item.h \
- fset-buffer.c \
- fset-buffer.h \
- fset-command.c \
- fset-command.h \
- fset-completion.c \
- fset-completion.h \
- fset-config.c \
- fset-config.h \
- fset-info.c \
- fset-info.h \
- fset-mouse.c \
- fset-mouse.h \
- fset-option.c \
- fset-option.h
-
-fset_la_LDFLAGS = -module -no-undefined
-fset_la_LIBADD = $(FSET_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/guile/Makefile.am b/src/plugins/guile/Makefile.am
deleted file mode 100644
index d91956a3d..000000000
--- a/src/plugins/guile/Makefile.am
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Copyright (C) 2011-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GUILE_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = guile.la
-
-guile_la_SOURCES = weechat-guile.c \
- weechat-guile.h \
- weechat-guile-api.c \
- weechat-guile-api.h
-guile_la_LDFLAGS = -module -no-undefined
-guile_la_LIBADD = ../lib_weechat_plugins_scripts.la $(GUILE_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/irc/Makefile.am b/src/plugins/irc/Makefile.am
deleted file mode 100644
index 51ca369d7..000000000
--- a/src/plugins/irc/Makefile.am
+++ /dev/null
@@ -1,86 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = irc.la
-
-irc_la_SOURCES = irc.c \
- irc.h \
- irc-bar-item.c \
- irc-bar-item.h \
- irc-buffer.c \
- irc-buffer.h \
- irc-channel.c \
- irc-channel.h \
- irc-color.c \
- irc-color.h \
- irc-command.c \
- irc-command.h \
- irc-completion.c \
- irc-completion.h \
- irc-config.c \
- irc-config.h \
- irc-ctcp.c \
- irc-ctcp.h \
- irc-debug.c \
- irc-debug.h \
- irc-ignore.c \
- irc-ignore.h \
- irc-info.c \
- irc-info.h \
- irc-input.c \
- irc-input.h \
- irc-join.c \
- irc-join.h \
- irc-message.c \
- irc-message.h \
- irc-mode.c \
- irc-mode.h \
- irc-modelist.c \
- irc-modelist.h \
- irc-msgbuffer.c \
- irc-msgbuffer.h \
- irc-nick.c \
- irc-nick.h \
- irc-notify.c \
- irc-notify.h \
- irc-protocol.c \
- irc-protocol.h \
- irc-raw.c \
- irc-raw.h \
- irc-redirect.c \
- irc-redirect.h \
- irc-sasl.c \
- irc-sasl.h \
- irc-server.c \
- irc-server.h \
- irc-tag.c \
- irc-tag.h \
- irc-typing.c \
- irc-typing.h \
- irc-upgrade.c \
- irc-upgrade.h
-
-irc_la_LDFLAGS = -module -no-undefined
-irc_la_LIBADD = $(IRC_LFLAGS) $(GCRYPT_LFLAGS) $(GNUTLS_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/javascript/Makefile.am b/src/plugins/javascript/Makefile.am
deleted file mode 100644
index 9dd16f0e5..000000000
--- a/src/plugins/javascript/Makefile.am
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# Copyright (C) 2015-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(V8_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = javascript.la
-
-javascript_la_SOURCES = weechat-js.cpp \
- weechat-js.h \
- weechat-js-v8.cpp \
- weechat-js-v8.h \
- weechat-js-api.cpp \
- weechat-js-api.h
-javascript_la_LDFLAGS = -module -no-undefined
-javascript_la_LIBADD = ../lib_weechat_plugins_scripts.la $(V8_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/logger/Makefile.am b/src/plugins/logger/Makefile.am
deleted file mode 100644
index 18ba8f46e..000000000
--- a/src/plugins/logger/Makefile.am
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(LOGGER_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = logger.la
-
-logger_la_SOURCES = logger.c \
- logger.h \
- logger-backlog.c \
- logger-backlog.h \
- logger-buffer.c \
- logger-buffer.h \
- logger-command.c \
- logger-command.h \
- logger-config.c \
- logger-config.h \
- logger-info.c \
- logger-info.h \
- logger-tail.c \
- logger-tail.h
-logger_la_LDFLAGS = -module -no-undefined
-logger_la_LIBADD = $(LOGGER_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/lua/Makefile.am b/src/plugins/lua/Makefile.am
deleted file mode 100644
index fa5c0de5d..000000000
--- a/src/plugins/lua/Makefile.am
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-# Copyright (C) 2006-2007 Emmanuel Bouthenot <kolter@openics.org>
-# Copyright (C) 2006-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(LUA_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = lua.la
-
-lua_la_SOURCES = weechat-lua.c \
- weechat-lua.h \
- weechat-lua-api.c \
- weechat-lua-api.h
-lua_la_LDFLAGS = -module -no-undefined
-lua_la_LIBADD = ../lib_weechat_plugins_scripts.la $(LUA_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/perl/Makefile.am b/src/plugins/perl/Makefile.am
deleted file mode 100644
index ef7bee013..000000000
--- a/src/plugins/perl/Makefile.am
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(PERL_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = perl.la
-
-perl_la_SOURCES = weechat-perl.c \
- weechat-perl.h \
- weechat-perl-api.c \
- weechat-perl-api.h
-perl_la_LDFLAGS = -module -no-undefined
-perl_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PERL_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/php/Makefile.am b/src/plugins/php/Makefile.am
deleted file mode 100644
index b56a7768c..000000000
--- a/src/plugins/php/Makefile.am
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# Copyright (C) 2006-2017 Adam Saponara <as@php.net>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(PHP_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = php.la
-
-php_la_SOURCES = weechat-php.c \
- weechat-php.h \
- weechat-php-api.c \
- weechat-php-api.h \
- weechat-php_arginfo.h \
- weechat-php_legacy_arginfo.h
-php_la_LDFLAGS = -module -no-undefined
-php_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PHP_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/python/Makefile.am b/src/plugins/python/Makefile.am
deleted file mode 100644
index 88393cc4e..000000000
--- a/src/plugins/python/Makefile.am
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(PYTHON_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = python.la
-
-python_la_SOURCES = weechat-python.c \
- weechat-python.h \
- weechat-python-api.c \
- weechat-python-api.h
-python_la_LDFLAGS = -module -no-undefined
-python_la_LIBADD = ../lib_weechat_plugins_scripts.la $(PYTHON_LIBS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/relay/Makefile.am b/src/plugins/relay/Makefile.am
deleted file mode 100644
index 18536ff3b..000000000
--- a/src/plugins/relay/Makefile.am
+++ /dev/null
@@ -1,66 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS) $(GNUTLS_CFLAGS) $(ZLIB_CFLAGS) $(ZSTD_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = relay.la
-
-relay_la_SOURCES = relay.c \
- relay.h \
- relay-auth.c \
- relay-auth.h \
- relay-buffer.c \
- relay-buffer.h \
- relay-client.c \
- relay-client.h \
- relay-command.c \
- relay-command.h \
- relay-completion.c \
- relay-completion.h \
- relay-config.c \
- relay-config.h \
- relay-info.c \
- relay-info.h \
- relay-network.c \
- relay-network.h \
- relay-raw.c \
- relay-raw.h \
- relay-server.c \
- relay-server.h \
- relay-upgrade.c \
- relay-upgrade.h \
- relay-websocket.c \
- relay-websocket.h \
- irc/relay-irc.c \
- irc/relay-irc.h \
- weechat/relay-weechat.c \
- weechat/relay-weechat.h \
- weechat/relay-weechat-msg.c \
- weechat/relay-weechat-msg.h \
- weechat/relay-weechat-nicklist.c \
- weechat/relay-weechat-nicklist.h \
- weechat/relay-weechat-protocol.c \
- weechat/relay-weechat-protocol.h
-
-relay_la_LDFLAGS = -module -no-undefined
-relay_la_LIBADD = $(RELAY_LFLAGS) $(GCRYPT_LFLAGS) $(GNUTLS_LFLAGS) $(ZLIB_LFLAGS) $(ZSTD_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/ruby/Makefile.am b/src/plugins/ruby/Makefile.am
deleted file mode 100644
index 18c4cf3b8..000000000
--- a/src/plugins/ruby/Makefile.am
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(RUBY_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = ruby.la
-
-ruby_la_SOURCES = weechat-ruby.c \
- weechat-ruby.h \
- weechat-ruby-api.c \
- weechat-ruby-api.h
-ruby_la_LDFLAGS = -module -no-undefined
-ruby_la_LIBADD = ../lib_weechat_plugins_scripts.la $(RUBY_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/script/Makefile.am b/src/plugins/script/Makefile.am
deleted file mode 100644
index 92b74ecce..000000000
--- a/src/plugins/script/Makefile.am
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ZLIB_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = script.la
-
-script_la_SOURCES = script.c \
- script.h \
- script-action.c \
- script-action.h \
- script-buffer.c \
- script-buffer.h \
- script-command.c \
- script-command.h \
- script-completion.c \
- script-completion.h \
- script-config.c \
- script-config.h \
- script-info.c \
- script-info.h \
- script-mouse.c \
- script-mouse.h \
- script-repo.c \
- script-repo.h
-
-script_la_LDFLAGS = -module -no-undefined
-script_la_LIBADD = $(SCRIPT_LFLAGS) $(ZLIB_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/spell/Makefile.am b/src/plugins/spell/Makefile.am
deleted file mode 100644
index 4a081c008..000000000
--- a/src/plugins/spell/Makefile.am
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# Copyright (C) 2006 Emmanuel Bouthenot <kolter@openics.org>
-# Copyright (C) 2006-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(ASPELL_CFLAGS) $(ENCHANT_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = spell.la
-
-spell_la_SOURCES = spell.c \
- spell.h \
- spell-bar-item.c \
- spell-bar-item.h \
- spell-command.c \
- spell-command.h \
- spell-completion.c \
- spell-completion.h \
- spell-config.c \
- spell-config.h \
- spell-info.c \
- spell-info.h \
- spell-speller.c \
- spell-speller.h
-spell_la_LDFLAGS = -module -no-undefined
-spell_la_LIBADD = $(ASPELL_LFLAGS) $(ENCHANT_LIBS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/tcl/Makefile.am b/src/plugins/tcl/Makefile.am
deleted file mode 100644
index bbfafbcc8..000000000
--- a/src/plugins/tcl/Makefile.am
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-# Copyright (C) 2008-2010 Dmitry Kobylin <fnfal@academ.tsc.ru>
-# Copyright (C) 2008-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(TCL_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = tcl.la
-
-tcl_la_SOURCES = weechat-tcl.c \
- weechat-tcl.h \
- weechat-tcl-api.c \
- weechat-tcl-api.h
-tcl_la_LDFLAGS = -module -no-undefined
-tcl_la_LIBADD = ../lib_weechat_plugins_scripts.la $(TCL_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/trigger/Makefile.am b/src/plugins/trigger/Makefile.am
deleted file mode 100644
index 67fc4081b..000000000
--- a/src/plugins/trigger/Makefile.am
+++ /dev/null
@@ -1,42 +0,0 @@
-#
-# Copyright (C) 2014-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(TRIGGER_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = trigger.la
-
-trigger_la_SOURCES = trigger.c \
- trigger.h \
- trigger-buffer.c \
- trigger-buffer.h \
- trigger-callback.c \
- trigger-callback.h \
- trigger-command.c \
- trigger-command.h \
- trigger-completion.c \
- trigger-completion.h \
- trigger-config.c \
- trigger-config.h
-
-trigger_la_LDFLAGS = -module -no-undefined
-trigger_la_LIBADD = $(TRIGGER_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/typing/Makefile.am b/src/plugins/typing/Makefile.am
deleted file mode 100644
index 711e6152d..000000000
--- a/src/plugins/typing/Makefile.am
+++ /dev/null
@@ -1,37 +0,0 @@
-#
-# Copyright (C) 2021-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(TYPING_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = typing.la
-
-typing_la_SOURCES = typing.c \
- typing.h \
- typing-bar-item.c \
- typing-bar-item.h \
- typing-config.c \
- typing-config.h \
- typing-status.c \
- typing-status.h
-typing_la_LDFLAGS = -module -no-undefined
-typing_la_LIBADD = $(TYPING_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/src/plugins/xfer/Makefile.am b/src/plugins/xfer/Makefile.am
deleted file mode 100644
index a8f7df7e5..000000000
--- a/src/plugins/xfer/Makefile.am
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(GCRYPT_CFLAGS)
-
-libdir = ${weechat_libdir}/plugins
-
-lib_LTLIBRARIES = xfer.la
-
-xfer_la_SOURCES = xfer.c \
- xfer.h \
- xfer-buffer.c \
- xfer-buffer.h \
- xfer-chat.c \
- xfer-chat.h \
- xfer-command.c \
- xfer-command.h \
- xfer-completion.c \
- xfer-completion.h \
- xfer-config.c \
- xfer-config.h \
- xfer-dcc.c \
- xfer-dcc.h \
- xfer-file.c \
- xfer-file.h \
- xfer-info.c \
- xfer-info.h \
- xfer-network.c \
- xfer-network.h \
- xfer-upgrade.c \
- xfer-upgrade.h
-
-xfer_la_LDFLAGS = -module -no-undefined
-xfer_la_LIBADD = $(XFER_LFLAGS) $(GCRYPT_LFLAGS)
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/tests/Makefile.am b/tests/Makefile.am
deleted file mode 100644
index 6ae03b98a..000000000
--- a/tests/Makefile.am
+++ /dev/null
@@ -1,130 +0,0 @@
-#
-# Copyright (C) 2014-2023 Sébastien Helleu <flashcode@flashtux.org>
-#
-# This file is part of WeeChat, the extensible chat client.
-#
-# WeeChat is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
-# (at your option) any later version.
-#
-# WeeChat is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
-#
-
-AM_CPPFLAGS = -DLOCALEDIR=\"$(datadir)/locale\" $(CPPUTEST_CFLAGS) -I$(abs_top_srcdir)
-
-noinst_LIBRARIES = lib_weechat_unit_tests_core.a
-
-lib_weechat_unit_tests_core_a_SOURCES = unit/core/test-core-arraylist.cpp \
- unit/core/test-core-calc.cpp \
- unit/core/test-core-command.cpp \
- unit/core/test-core-config-file.cpp \
- unit/core/test-core-crypto.cpp \
- unit/core/test-core-dir.cpp \
- unit/core/test-core-eval.cpp \
- unit/core/test-core-hashtable.cpp \
- unit/core/test-core-hdata.cpp \
- unit/core/test-core-hook.cpp \
- unit/core/test-core-infolist.cpp \
- unit/core/test-core-list.cpp \
- unit/core/test-core-network.cpp \
- unit/core/test-core-secure.cpp \
- unit/core/test-core-signal.cpp \
- unit/core/test-core-string.cpp \
- unit/core/test-core-url.cpp \
- unit/core/test-core-utf8.cpp \
- unit/core/test-core-util.cpp \
- unit/gui/test-gui-bar-item.cpp \
- unit/gui/test-gui-bar-item-custom.cpp \
- unit/gui/test-gui-bar-window.cpp \
- unit/gui/test-gui-buffer.cpp \
- unit/gui/test-gui-chat.cpp \
- unit/gui/test-gui-color.cpp \
- unit/gui/test-gui-filter.cpp \
- unit/gui/test-gui-input.cpp \
- unit/gui/test-gui-line.cpp \
- unit/gui/test-gui-nick.cpp \
- scripts/test-scripts.cpp
-
-noinst_PROGRAMS = tests
-
-# Due to circular references, we must link two times with libweechat_core.a
-# (and it must be 2 different path/names to be kept by linker)
-tests_LDADD = ./../src/core/lib_weechat_core.a \
- ../src/plugins/lib_weechat_plugins.a \
- ../src/gui/lib_weechat_gui_common.a \
- ../src/gui/curses/headless/lib_weechat_gui_headless.a \
- ../src/gui/curses/headless/lib_weechat_ncurses_fake.a \
- lib_weechat_unit_tests_core.a \
- ../src/core/lib_weechat_core.a \
- $(PLUGINS_LFLAGS) \
- $(GCRYPT_LFLAGS) \
- $(GNUTLS_LFLAGS) \
- $(CURL_LFLAGS) \
- $(ZLIB_LFLAGS) \
- $(ZSTD_LFLAGS) \
- $(CPPUTEST_LFLAGS) \
- -lm
-tests_LDFLAGS = -rdynamic
-
-tests_SOURCES = tests.cpp \
- tests.h
-
-lib_LTLIBRARIES = lib_weechat_unit_tests_plugins.la
-
-if PLUGIN_IRC
-tests_irc = unit/plugins/irc/test-irc-buffer.cpp \
- unit/plugins/irc/test-irc-channel.cpp \
- unit/plugins/irc/test-irc-color.cpp \
- unit/plugins/irc/test-irc-config.cpp \
- unit/plugins/irc/test-irc-ignore.cpp \
- unit/plugins/irc/test-irc-join.cpp \
- unit/plugins/irc/test-irc-message.cpp \
- unit/plugins/irc/test-irc-mode.cpp \
- unit/plugins/irc/test-irc-nick.cpp \
- unit/plugins/irc/test-irc-protocol.cpp \
- unit/plugins/irc/test-irc-sasl.cpp \
- unit/plugins/irc/test-irc-server.cpp \
- unit/plugins/irc/test-irc-tag.cpp
-endif
-
-if PLUGIN_LOGGER
-tests_logger = unit/plugins/logger/test-logger-backlog.cpp
-endif
-
-if PLUGIN_RELAY
-tests_relay = unit/plugins/relay/test-relay-auth.cpp
-endif
-
-if PLUGIN_TRIGGER
-tests_trigger = unit/plugins/trigger/test-trigger.cpp \
- unit/plugins/trigger/test-trigger-config.cpp
-endif
-
-if PLUGIN_TYPING
-tests_typing = unit/plugins/typing/test-typing.cpp \
- unit/plugins/typing/test-typing-status.cpp
-endif
-
-if PLUGIN_XFER
-tests_xfer = unit/plugins/xfer/test-xfer-file.cpp \
- unit/plugins/xfer/test-xfer-network.cpp
-endif
-
-lib_weechat_unit_tests_plugins_la_SOURCES = unit/plugins/test-plugins.cpp \
- $(tests_irc) \
- $(tests_logger) \
- $(tests_relay) \
- $(tests_trigger) \
- $(tests_typing) \
- $(tests_xfer)
-
-lib_weechat_unit_tests_plugins_la_LDFLAGS = -module -no-undefined
-
-EXTRA_DIST = CMakeLists.txt
diff --git a/tests/tests.cpp b/tests/tests.cpp
index 2dc33ee5a..00363e0d7 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -54,10 +54,6 @@ extern "C"
#define WEECHAT_TESTS_HOME "./tmp_weechat_test"
-/* lib with tests on plugins when autotools is used to compile */
-#define WEECHAT_TESTS_PLUGINS_LIB_DEFAULT \
- "./tests/.libs/lib_weechat_unit_tests_plugins.so.0.0.0"
-
/* import tests from libs */
/* core */
IMPORT_TEST_GROUP(CoreArraylist);
@@ -320,7 +316,6 @@ main (int argc, char *argv[])
{
int rc, length, weechat_argc;
char *weechat_tests_args, *args, **weechat_argv, *tests_plugins_lib;
- const char *tests_plugins_lib_default = WEECHAT_TESTS_PLUGINS_LIB_DEFAULT;
const char *ptr_path;
void *handle;
@@ -384,7 +379,14 @@ main (int argc, char *argv[])
/* load plugins tests */
tests_plugins_lib = getenv ("WEECHAT_TESTS_PLUGINS_LIB");
ptr_path = (tests_plugins_lib && tests_plugins_lib[0]) ?
- tests_plugins_lib : tests_plugins_lib_default;
+ tests_plugins_lib : NULL;
+ if (!ptr_path)
+ {
+ fprintf (stderr,
+ "ERROR: environment variable WEECHAT_TESTS_PLUGINS_LIB "
+ "is not defined\n");
+ return 1;
+ }
printf ("Loading tests on plugins: \"%s\"\n", ptr_path);
handle = dlopen (ptr_path, RTLD_GLOBAL | RTLD_NOW);
if (!handle)
diff --git a/tools/build_test.sh b/tools/build_test.sh
index b2916e2a6..273519d96 100755
--- a/tools/build_test.sh
+++ b/tools/build_test.sh
@@ -20,18 +20,13 @@
#
# Build WeeChat according to environment variables:
-# - BUILDTOOL: cmake or autotools
-# - BUILDARGS: arguments for cmake or configure commands
+# - BUILDARGS: arguments for cmake command
#
# Syntax to run the script with environment variables:
-# BUILDTOOL=cmake ./build_test.sh
-# BUILDTOOL=autotools ./build_test.sh
-# BUILDTOOL=cmake BUILDARGS="arguments" ./build_test.sh
-# BUILDTOOL=autotools BUILDARGS="arguments" ./build_test.sh
+# BUILDARGS="arguments" ./build_test.sh
#
# Syntax to run the script with arguments on command line:
-# ./build_test.sh cmake [arguments]
-# ./build_test.sh autotools [arguments]
+# ./build_test.sh [arguments]
#
# This script is used to build WeeChat in CI environment.
#
@@ -42,19 +37,9 @@ set -e
BUILDDIR="build-tmp-$$"
if [ $# -ge 1 ]; then
- BUILDTOOL="$1"
- shift
-fi
-
-if [ $# -ge 1 ]; then
BUILDARGS="$*"
fi
-if [ -z "$BUILDTOOL" ]; then
- echo "Syntax: $0 cmake|autotools"
- exit 1
-fi
-
run ()
{
"$@"
@@ -67,28 +52,16 @@ set -x
mkdir "$BUILDDIR"
cd "$BUILDDIR"
-if [ "$BUILDTOOL" = "cmake" ]; then
- # build with CMake
- run cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON "${BUILDARGS}"
- if [ -f "build.ninja" ]; then
- ninja -v
- ninja -v changelog
- ninja -v rn
- sudo ninja install
- else
- make VERBOSE=1 --jobs="$(nproc)"
- make VERBOSE=1 changelog
- make VERBOSE=1 rn
- sudo make install
- fi
- ctest -V
-fi
-
-if [ "$BUILDTOOL" = "autotools" ]; then
- # build with autotools
- ../autogen.sh
- run ../configure --enable-man --enable-doc --enable-tests "${BUILDARGS}"
- make --jobs="$(nproc)"
+run cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON "${BUILDARGS}"
+if [ -f "build.ninja" ]; then
+ ninja -v
+ ninja -v changelog
+ ninja -v rn
+ sudo ninja install
+else
+ make VERBOSE=1 --jobs="$(nproc)"
+ make VERBOSE=1 changelog
+ make VERBOSE=1 rn
sudo make install
- ./tests/tests -v
fi
+ctest -V