a single configure macro for vmath threshold