Compiling tin 2.6.5 and lynx 2.9.3 on OmniOS stable

Newsreader tin and text-based web browser lynx are not available from OmniOS standard pkg repositories. In case you want to build either of them, here are the instructions. I spent a lot of time trying to find correct configure flags so I hope this will save somebody's time a little bit.

First of all, it is good to install pkg-config since I think some Autoconf configure scripts make use of it. As root, run:

pkg install pkg:/developer/pkg-config@0.29.2-151058.0

To compile tin 2.6.5:

./configure --prefix=/opt/site --with-screen=ncurses
make build

To compile lynx 2.9.3:

./configure --prefix=/opt/site --with-ssl
make

That is it. I wasted lots of time with trying to configure lynx because I tried to do it the same way it is done by Fedora 44 RPM specfile. That is, I was trying to give a parameter to --with-ssl. Even when you give a correct path to libssl.so, it fails for some reason.