mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 21:44:05 +08:00
Add config.cache support.
This commit is contained in:
@@ -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])
|
||||
])
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user