I have found the following snippets in my "archives":
apt-get install libyajl-dev
cd yajl-tcl
autoconf
./configure --enable-threads --with-tcl=/usr/local/naviserver-4.99.6/lib
make
sudo make install
I hope this helps a bit; I have not tested it now...