AC_MSG_CHECKING(for test)
AC_ARG_ENABLE([test], [AS_HELP_STRING([--enable-test], [compile for test@<:@default=no@:>@])])
if test "$enable_test" == "yes" ; then
enable_test="yes"
CFLAGS="${CFLAGS} -fPIC -fprofile-arcs -ftest-coverage";
CXXFLAGS="${CXXFLAGS} -fPIC -fprofile-arcs -ftest-coverage";
LDFLAGS="${LDFLAGS} -lgcov -fprofile-arcs -ftest-coverage";
else
enable_test="no"
fi
AC_MSG_RESULT([$enable_test])