Hum, it will be hard to change the path of db.h in the whole arch system. And create a soft link is not a clean solution...
We setup berkeley db with the following:
configure --prefix=/usr --enable-compat185 --enable-shared --enable-static --enable-cxx --enable-dbm
make
make install
so he create a /usr/include/db.h.
I looked in debian, and it's the same!
$ cat /etc/debian_version
6.0
$ dpkg -L libdb5.1-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libdb5.1-dev
/usr/share/doc/libdb5.1-dev/copyright
/usr/share/doc/libdb5.1-dev/changelog.Debian.gz
/usr/include
/usr/include/db_185.h
/usr/include/db.h
/usr/lib
/usr/lib/libdb-5.1.la
/usr/lib/libdb-5.1.a
/usr/lib/libdb-5.so
/usr/lib/libdb.a
/usr/lib/libdb.so
So, why you don't just use the include path to find you db.h and you search in db51/db.h ?
This is also why autotools don't detect that berkeley db is missing, because he detect it. I think you should fix that in the code.
Hum, it will be hard to change the path of db.h in the whole arch system. And create a soft link is not a clean solution...
We setup berkeley db with the following:
configure --prefix=/usr --enable-compat185 --enable-shared --enable-static --enable-cxx --enable-dbm
make
make install
so he create a /usr/include/db.h.
I looked in debian, and it's the same! doc/libdb5. 1-dev doc/libdb5. 1-dev/copyright doc/libdb5. 1-dev/changelog .Debian. gz db_185. h libdb-5. 1.la libdb-5. 1.a
$ cat /etc/debian_version
6.0
$ dpkg -L libdb5.1-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
/usr/include
/usr/include/
/usr/include/db.h
/usr/lib
/usr/lib/
/usr/lib/
/usr/lib/libdb-5.so
/usr/lib/libdb.a
/usr/lib/libdb.so
So, why you don't just use the include path to find you db.h and you search in db51/db.h ?
This is also why autotools don't detect that berkeley db is missing, because he detect it. I think you should fix that in the code.