a new macro controlling the output of checksum

if STORE_CHECKSUM_VALUE is defined, then store
the checksum into a global variable `global_checksum' rather
than printing it out to stdout