$ cd wireshark-0.99.6

$ ./configure --disable-wireshark --disable-capinfos --disable-editcap --disable-dumpcap --disable-mergecap --disable-text2pcap --disable-idl2eth --disable-randpkt --disable-dftest --disable-ipv6 --disable-threads --without-plugins
configure result

Http dissector and dns, vlan, ftp, smtp, imap, pop, mysql, vnc, tftp, telnet:
-removed temporary ldap/snmp/ssl for crash reason
-enabled http over udp (ssdp/discover) for http.location matches "[^\n]{100}"
-enabled irc,nntp,socks,ssh dissectors
$ patch -p0 < patch01g-azwalaro-wireshark0996compilation.diff.gz (75ko)

$ cd epan && make

$ cd ../wiretap && make

$ cd .. && make tshark

$ ./tshark -v
TShark 0.99.6 (SVN Rev 22249)

Copyright 1998-2007 Gerald Combs and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GLib 2.12.4, with libpcap 0.9.5, with libz 1.2.3, with libpcre
6.7, without Net-SNMP, without ADNS, without Lua, without GnuTLS, without
Gcrypt, without Kerberos.

Running on Linux 2.6.18-4-686, with libpcap version 0.9.5.

Built using gcc 4.1.2 20061115