[rtems commit] Add RTEMS_CHECK_ATOMIC, RTEMS_CPUOPT([RTEMS_ATOMIC]), AM_CONDITIONAL ATOMIC.
Ralf Corsepius
ralf at rtems.org
Thu Feb 14 22:43:44 UTC 2013
Module: rtems
Branch: master
Commit: a718918fbaf4e230551fd7a2e48b12558643b847
Changeset: http://git.rtems.org/rtems/commit/?id=a718918fbaf4e230551fd7a2e48b12558643b847
Author: Ralf Corsépius <ralf.corsepius at rtems.org>
Date: Thu Feb 14 23:35:33 2013 +0100
Add RTEMS_CHECK_ATOMIC, RTEMS_CPUOPT([RTEMS_ATOMIC]), AM_CONDITIONAL ATOMIC.
---
cpukit/configure.ac | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index e3c4dd4..f0bbfac 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -149,6 +149,7 @@ RTEMS_CHECK_MULTIPROCESSING
RTEMS_CHECK_POSIX_API
RTEMS_CHECK_NETWORKING
RTEMS_CHECK_SMP
+RTEMS_CHECK_ATOMIC
rtems_major=`echo _RTEMS_VERSION | sed "s/\..*//"`
rtems_minor=`echo _RTEMS_VERSION | sed "s/[[0-9]][[0-9]]*\.//;s/\..*//"`
@@ -186,6 +187,11 @@ RTEMS_CPUOPT([RTEMS_NETWORKING],
[1],
[if networking is enabled])
+RTEMS_CPUOPT([RTEMS_ATOMIC],
+ [test x"$rtems_cv_ATOMIC" = xyes],
+ [1],
+ [if cpu supports atomic operations])
+
RTEMS_CPUOPT([RTEMS_VERSION],
[true],
["]_RTEMS_VERSION["],
@@ -304,6 +310,7 @@ AM_CONDITIONAL(HAS_SMP,[test "$RTEMS_HAS_SMP" = "yes"])
AM_CONDITIONAL(HAS_PTHREADS,test x"$rtems_cv_HAS_POSIX_API" = x"yes")
AM_CONDITIONAL(LIBNETWORKING,test x"$rtems_cv_HAS_NETWORKING" = x"yes")
+AM_CONDITIONAL([ATOMIC],[test x"$rtems_cv_ATOMIC" = x"yes"])
AM_CONDITIONAL([LIBSHELL],[test x"$HAVE_ASSIGNABLE_STDIO" = x"yes"])
AM_CONDITIONAL([LIBSERDBG],[test x"$rtems_cv_cc_attribute_weak" = x"yes"])
More information about the vc
mailing list