I think I have the solution now: ./bootstrap && LD_RUN_PATH=/usr/lib/xulrunner-1.9.1.4 ./configure --with-js-lib=/usr/lib/xulrunner-1.9.1.4 --with-js-include=/usr/lib/xulrunner-devel-1.9.1.4/include && LD_RUN_PATH=/usr/lib/xulrunner-1.9.1.4 make && sudo make install && sudo /usr/local/etc/init.d/couchdb restart
This builds the rpath into the couchjs binary, so that
libmozjs.so => /usr/lib/xulrunner-1.9.1.4/libmozjs.so
Regards,
Brian.
