I don't exactly understand what happen in configure.in, but it results with
`-I/usr/local/BerkeleyDB/include`. If I do `./configure --with-db-inc=/usr/include/db4.6; make` all goes normal.
Maybe this is a common problem for many packages relying on bdb. But for example net-nds/openldap have no such problem in configure script.
Created attachment 220761 [details]
Created attachment 220763 [details]