summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/aclocal')
-rw-r--r--testsuites/aclocal/check-cpuopts.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuites/aclocal/check-cpuopts.m4 b/testsuites/aclocal/check-cpuopts.m4
new file mode 100644
index 0000000000..dcbb3a7c4a
--- /dev/null
+++ b/testsuites/aclocal/check-cpuopts.m4
@@ -0,0 +1,14 @@
+# RTEMS_CHECK_CPUOPTS(define)
+AC_DEFUN([RTEMS_CHECK_CPUOPTS],
+[
+AC_MSG_CHECKING([for $1])
+AC_COMPILE_IFELSE([
+#include <rtems/score/cpuopts.h>
+#ifndef $1
+choke me
+#endif
+],
+[rtems_cv_$1=yes],
+[rtems_cv_$1=no])
+AC_MSG_RESULT([$rtems_cv_$1])
+])