diff options
Diffstat (limited to '')
-rw-r--r-- | aclocal/enable-tests.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/aclocal/enable-tests.m4 b/aclocal/enable-tests.m4 new file mode 100644 index 0000000000..106c00f309 --- /dev/null +++ b/aclocal/enable-tests.m4 @@ -0,0 +1,15 @@ +dnl $Id$ + +AC_DEFUN(RTEMS_ENABLE_TESTS, +[ +# If the tests are enabled, then find all the test suite Makefiles +AC_MSG_CHECKING([if the test suites are enabled? ]) +tests_enabled=yes +AC_ARG_ENABLE(tests, +[ --enable-tests enable tests (default:disabled)], + [case "${enableval}" in + yes) AC_MSG_RESULT(yes) ;; + no) AC_MSG_RESULT(no) ; tests_enabled=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for tests option) ;; + esac], AC_MSG_RESULT(no)) +]) |