autotools: Fix check for tcmalloc.

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>