When building bitcoin with upnp completely disabled in the build via setting this in makefile.unix...
<code>USE_UPNP:=</code> ...then I get this build warning:
<pre> obj/db.o: In function `CWalletDB::LoadWallet()': bitcoin/db.cpp:811: undefined reference to `fUseUPnP' obj/db.o: In function `Unserialize<CDataStream>': bitcoin/serialize.h:136: undefined reference to `fUseUPnP' </pre>
Based on how fHaveUPnP is used in other files, it looks like db.cpp needs to wrap its fHaveUPnP usages with
<pre> #if USE_UPNP ... #endif </pre>