If you find bugs in Xapian, please report them so we can actually fix them! I stumbled across this page completely by accident. I've just fixed the first issue (down to m4 quoting). The second "fix" isn't correct for all platforms - for my Tcl installation (Ubuntu Hardy) - I get TCL_LIB=/usr/lib, and I don't want the Tcl bindings to go in /usr/xapian1.0.6! Suggestions for a better way to determine where to install are welcome. - OllyBetts Sorry about not doing a bug report - one-track mind going somewhere else at the time :-( This time, answer both there and here: TCL_LIB=/usr/lib + tcllibdir = @TCL_LIB@/../xapian at VERSION@ gives you /usr/xapian1.0.6, which is why I changed it, ending up with /usr/lib/xapian1.0.6 . Most Tcl extensions use that, though some use /usr/lib/tcl8.x/whatever. Apparently the right approach for determining where to install is to find and use tclConfig.sh which is part of the Tcl installation. HTH Eric