Christian wrote:

> > James McCoy wrote:
> > 
> > > On Sun, Jan 31, 2021 at 04:46:51PM +0100, Bram Moolenaar wrote:
> > > > 
> > > > [...]
> > > > +       Add GUI support (ignore compiler warnings):
> > > > +       % sudo apt install libgtk2.0-dev
> > > 
> > > This should really be libgtk-3-dev.  GTK+2 has been unsupported for
> > > years and GTK+3 is already going to maintenance mode as work transitions
> > > to GTK+4.
> > 
> > Well, the GTK 2 version works well, while GTK 3 still has a few
> > drawbacks, I believe it's slower.
> > 
> > Also, that one package does not appear to be sufficient.  If I remove
> > the libgtk2.0-dev package and install libgtk-3-dev:
> > 
> > configure:9420: checking for pkg-config
> > configure:9438: found /usr/bin/pkg-config
> > configure:9450: result: /usr/bin/pkg-config
> > configure:9477: checking --disable-gtktest argument
> > configure:9487: result: gtk test enabled
> > configure:9533: checking for GTK -dev package
> > configure:9611: result: no
> > 
> > Hmm, pkg-config does list "gtk+-3.0", not sure what is wrong...
> > It seems configure doesn't check for GTK 3 for some reason.
> > Debugging shell scripts...
> 
> For GTK3 you explicitly need to call configure with the --gui=gtk3 
> argument, else it will always try to use the gtk2 toolkit and fail if 
> that is not available.

Yeah, the configure script had a few half-finished changes for GTK3,
made by someone who copy-pasted GTK2 checks without considering all
situations.

I made patch 8.2.2442 which hopefully fixes this.  Now when GTK2 is not
installed and GTK3 is, then it should automatically pick up GTK3.  The
implementation is a bit hacky because I feel uncomfortable changing this
shell script stuff.

-- 
This is an airconditioned room, do not open Windows.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202101312000.10VK0nCO1045713%40masaka.moolenaar.net.

Raspunde prin e-mail lui