On Fri, 11 Sep 2020 at 17:47:58 +0200, Dominique Dumont wrote: > However pan still depends on libgtk2.0-dev even though Debian's build is done > with Gtk3.
>From a brief look at configure.ac, it seems that might be just so it has the necessary GTK 2 macros to run autoreconf successfully? If that's the case, you could replace AM_PATH_GTK_2_0($GTK_REQUIRED,,exit 1,gthread) with PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= $GTK_REQUIRED, gthread-2.0]) which is basically equivalent and should be upstreamable. (AM_PATH_GTK_2_0 also does a test-build of some C code against GTK, but that's basically unnecessary this decade, because pkg-config is well-understood by now.) smcv