#!/bin/sh
#
# Added by Tim Booth <tbooth@ceh.ac.uk>
# QIIME wants very much to use the USEARCH binary, but this is not free software.
# However, it is available right now free-of-charge if you only want the 
# 32-bit version.
# Redistribution requires a licence, which I could apply for, but then nobody
# but me can redistribute BL, which is no good!

# See if usearch.real is available anywhere
if which usearch61.real >/dev/null ; then
    exec usearch61.real "$@"
fi

echo """\r\
USEARCH 6 is not freely redistributable and is thus not included in the
default QIIME package.
You may obtain a personal copy of the 32-bit program at no charge.

To use this feature, please go to:
    http://www.drive5.com/usearch/download.html

Download USEARCH v6.1, then:
    sudo mv usearch* /usr/local/bin/usearch61
    sudo chmod a+x /usr/local/bin/usearch61

You probably also want to install USEARCH 5 as /usr/local/bin/usearch
"""
exit 1
