summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/check-cpuopts.m4
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/aclocal/check-cpuopts.m4')
-rw-r--r--testsuites/aclocal/check-cpuopts.m414
1 files changed, 8 insertions, 6 deletions
diff --git a/testsuites/aclocal/check-cpuopts.m4 b/testsuites/aclocal/check-cpuopts.m4
index dcbb3a7c4a..f7fc99ed74 100644
--- a/testsuites/aclocal/check-cpuopts.m4
+++ b/testsuites/aclocal/check-cpuopts.m4
@@ -1,14 +1,16 @@
# RTEMS_CHECK_CPUOPTS(define)
AC_DEFUN([RTEMS_CHECK_CPUOPTS],
[
-AC_MSG_CHECKING([for $1])
-AC_COMPILE_IFELSE([
+AC_CACHE_CHECK(
+ [for $1],
+ [rtems_cv_$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])
+ ],
+ [rtems_cv_$1=yes],
+ [rtems_cv_$1=no])
+ ])
])