#!/bin/sh

for cc in clang gcc; do
  make clean > /dev/null
  CC=$cc ./configure --debug > /dev/null
  printf "Check $cc... "
  if ! make check > /dev/null ; then
    echo "fail."
    exit 1
  else
    echo "ok."
  fi
done


