Bournemouth have agreed a deal to sign South Africa international striker Tokelo Rantie from Swedish side Malmo.