1 dnl @synopsis mc_UNIT_TESTS
3 dnl Check if unit tests enabled
5 dnl @author Slava Zanko <slavazanko@gmail.com>
6 dnl @version 2011-02-10
8 dnl @copyright Free Software Foundation, Inc.
10 AC_DEFUN([mc_UNIT_TESTS],[
14 AS_HELP_STRING([--enable-tests], [Enable unit tests (see http://check.sourceforge.net/)])
17 if test x$enable_tests != xno; then
22 [AC_MSG_WARN(['Check' utility not found. Check your environment])])
23 AC_SUBST(CHECK_CFLAGS)
26 AM_CONDITIONAL(HAVE_TESTS, test x"$have_check" = "xyes")
28 # on cygwin, the linker does not accept the "-z" option
31 TESTS_LDFLAGS="-Wl,--allow-multiple-definition"
34 TESTS_LDFLAGS="-Wl,-z,muldefs"
38 AC_SUBST(TESTS_LDFLAGS)