summaryrefslogtreecommitdiffstats
path: root/c/acinclude.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-10-02 01:43:48 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-10-02 01:43:48 +0000
commit1b16201e7f7a0dd20460bc721693516f486d1640 (patch)
tree20cdeaca6be3633aa5c1f322c07bf611c315f027 /c/acinclude.m4
parent2003-10-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-1b16201e7f7a0dd20460bc721693516f486d1640.tar.bz2
2003-10-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* acinclude.m4: New. Add RTEMS_CHECK_CPU.
Diffstat (limited to 'c/acinclude.m4')
-rw-r--r--c/acinclude.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/c/acinclude.m4 b/c/acinclude.m4
new file mode 100644
index 0000000000..4b7ff6bd16
--- /dev/null
+++ b/c/acinclude.m4
@@ -0,0 +1,18 @@
+dnl $Id$
+
+dnl check if RTEMS support a cpu
+AC_DEFUN(RTEMS_CHECK_CPU,
+[dnl
+AC_REQUIRE([RTEMS_TOP])
+AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])
+
+# Is this a supported CPU?
+AC_MSG_CHECKING([if cpu $RTEMS_CPU is supported])
+# FIXME: Temporary hack
+if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/$RTEMS_CPU"; then
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_ERROR(no)
+fi
+])dnl
+