[Xapian-discuss] Tcl binding - issues with configure

Olly Betts olly at survex.com
Fri Apr 18 01:48:34 BST 2008


On Thu, Apr 17, 2008 at 06:33:21PM +0200, Michael Schlenker wrote:
> [18:21]	dgp	the issue is that the $::tcl_pkgPath variable is not  
> defined in Tcl on Windows.

OK, that's worth knowing.  I wonder what we should do there.  At least
people can specify TCL_LIB, but a sane default would be nice.

> [18:24]	dgp	got a tclsh on Debian handy?
> [18:25]	schlenk	no, but debian has a policy where to put such stuff
> [18:25]	dgp	looking for the value of $::tcl_pkgPath there
> [18:27]	dgp	ok, found a system here
> [18:28]	dgp	/usr/lib /usr/share
> [18:29]	dgp	so, my advice for the "default" answer...
> [18:30]	dgp	TCL_PKG_DIR=`echo 'lindex $tcl_pkgPath 0'|$TCLSH`
> [18:30]	dgp	tcllibdir = @TCL_PKG_DIR@/xapian at VERSION@

This is essentially what we're already doing, except we skip any entries
which match the regexp /share(/|$) to avoid arch-independent
directories should any system list them first.

Cheers,
    Olly



More information about the Xapian-discuss mailing list