diff options
Diffstat (limited to 'cpukit/acinclude.m4')
-rw-r--r-- | cpukit/acinclude.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/acinclude.m4 b/cpukit/acinclude.m4 new file mode 100644 index 0000000000..8cceb11682 --- /dev/null +++ b/cpukit/acinclude.m4 @@ -0,0 +1,12 @@ +# RTEMS_CPUOPT(NAME,CONDITION,VALUE,EXPLANATION) + +AC_DEFUN([RTEMS_CPUOPT], +[ + echo >> cpuopts.tmp + echo "/* $4 */" >> cpuopts.tmp + if $2; then + echo "#define $1 $3" >> cpuopts.tmp + else + echo "/* #undef $1 */" >> cpuopts.tmp + fi +]) |