From e20bae6609def7c07cfd325aad96f736f0d30ee5 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 9 Jun 2020 00:14:36 +0200 Subject: [PATCH] swig: search for swig4.0 * configure.ac: Use swig4.0 when available. * HACKING: Update. --- HACKING | 4 +++- configure.ac | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/HACKING b/HACKING index 7cc609c1d..1b37af6aa 100644 --- a/HACKING +++ b/HACKING @@ -32,7 +32,9 @@ since the generated files they produce are distributed.) a separate and more recent org-mode package, or you can simply upgrade from ELPA). Groff (a.k.a. GNU troff) >= 1.20 - SWIG >= 3.0 (for its better C++11/C++14 support) + SWIG >= 3.0.2 (for its better C++11/C++14 support) + Note that if you use Macports you should consider to install the + swig-python package in addition to the swig package. Doxygen >= 1.4.0 R used by some examples in the documentation Perl, with its Gettext module (it might be called something like diff --git a/configure.ac b/configure.ac index a898e735f..30d621866 100644 --- a/configure.ac +++ b/configure.ac @@ -195,9 +195,10 @@ AC_CHECK_PROG([EMACS], [emacs], [emacs]) AC_CHECK_PROGS([IPYTHON], [ipython3 ipython], [ipython]) AC_CHECK_PROG([LBTT_TRANSLATE], [lbtt-translate], [lbtt-translate]) AX_CHECK_VALGRIND -# Debian has a binary for SWIG 3.0 named swig3.0 and they kept swig as -# an alias for swig-2.0. Let's use the former when available. -AC_CHECK_PROGS([SWIG], [swig3.0 swig], [swig]) +# Debian used to reserve the name 'swig' for swig-2.0. So prefer +# swig4.0 (available in Debian bullseye) to swig3.0 (available in Debian buster) +# ti swig. +AC_CHECK_PROGS([SWIG], [swig4.0 swig3.0 swig], [swig]) AC_SUBST([CROSS_COMPILING], [$cross_compiling])