To compile the Tcl interface with a particular version of Tcl, use the --with-tcl option to specify the Tcl installation directory that contains the tclConfig.sh file.
See Changing compile or load options for more information.
The Berkeley DB Tcl interface requires Tcl version 8.1 or greater.
If the Tcl installation was moved after it was configured and installed, try reconfiguring and reinstalling Tcl.
Also, some systems do not search for shared libraries by default, or do not search for shared libraries named the way the Tcl installation names them, or are searching for a different kind of library than those in your Tcl installation. For example, Linux systems often require linking "libtcl.a" to "libtcl#.#.a", whereas AIX systems often require adding the "-brtl" flag to the linker. A simpler solution that almost always works on all systems is to create a link from "libtcl.#.#.a" or "libtcl.so" (or whatever you happen to have) to "libtcl.a" and reconfigure.
In some versions of Tcl, the "tclConfig.sh" autoconfiguration script created by the Tcl installation does not work properly under AIX. To build a working Berkeley DB Tcl API when this happens, use the "--enable-tcl" flag to configure Berkeley DB (rather than "--with-tcl"). In addition, you will have to specify any necessary include and library paths and linker flags needed to build with Tcl by setting the CPPFLAGS, LIBS, and LDFLAGS environment variables before running configure.
Copyright Sleepycat Software