tests/Makefile.am: Use `AM_SCM_LOG_FLAGS' to set compiler's options.

* tests/Makefile.am (SCM_LOG_COMPILER): Move compiler's options to
  `AM_SCM_LOG_FLAGS' variable.
  (AM_SCM_LOG_FLAGS): New variable.