I've reworked my SWIG wrapper into a patch (attached). I'm no expert on automake and pretty new to SWIG - I've copy-n-pasted most of the SWIG stuff from Xapian. All the best, Tim.