configure.ac: Define HAVE_JSON_C properly

Signed-off-by: Gergely Nagy <algernon@balabit.hu>