Files
rtems/cpukit/acinclude.m4
Ralf Corsepius 1bcbe4100c 2003-11-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use here-documents to generate cpuopts.tmp.
	Various fixes and changes to argument processing.
	Reflect changes to librpc Makefile.ams.
	* acinclude.m4: Use here-documents to generate cpuopts.tmp.
	* aclocal/check-itron.m4: Remove HAS_IRON_API.
	* aclocal/check-multiprocessing.m4: Remove HAS_MP.
	* aclocal/check-posix.m4: Remove HAS_POSIX_API.
2003-11-27 14:36:23 +00:00

22 lines
351 B
Plaintext

# RTEMS_CPUOPT(NAME,CONDITION,VALUE,EXPLANATION)
AC_DEFUN([RTEMS_CPUOPT],
[
if $2; then
cat >>cpuopts.tmp <<\_ACEOF
/* $4 */
#define $1 $3
_ACEOF
## FIXME: Duplicate the define to the autoheader
## Sanity check - Should be removed in future
AC_DEFINE([$1],[$3],[$4])
else
cat >>cpuopts.tmp <<\_ACEOF
/* $4 */
/* #undef $1 */
_ACEOF
fi
])