diff options
author | Ralf Corsépius <ralf.corsepius@rtems.org> | 2013-02-14 23:45:23 +0100 |
---|---|---|
committer | Ralf Corsépius <ralf.corsepius@rtems.org> | 2013-02-14 23:45:23 +0100 |
commit | 390258c4f84cef6789013b36349be2569d5af7c5 (patch) | |
tree | 28da6f423d92582b15fb3c42b3021314b1bd51b0 /cpukit | |
parent | Include <stdint.h> (diff) | |
download | rtems-390258c4f84cef6789013b36349be2569d5af7c5.tar.bz2 |
New.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/aclocal/check-atomic.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/aclocal/check-atomic.m4 b/cpukit/aclocal/check-atomic.m4 new file mode 100644 index 0000000000..97943eb768 --- /dev/null +++ b/cpukit/aclocal/check-atomic.m4 @@ -0,0 +1,13 @@ +dnl +AC_DEFUN([RTEMS_CHECK_ATOMIC], +[dnl +AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl + +AC_CACHE_CHECK([whether CPU supports atomic operations], + [rtems_cv_ATOMIC],[ + AS_IF( + [test -f "${srcdir}/score/cpu/$RTEMS_CPU/rtems/score/cpuatomic.h"], + [rtems_cv_ATOMIC="yes"], + [rtems_cv_ATOMIC="no"]) + ]) +]) |