From 1bcbe4100cdbde09ce3f3f8511d9c5fe05a5fe81 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 27 Nov 2003 14:36:23 +0000 Subject: 2003-11-27 Ralf Corsepius * 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. --- cpukit/acinclude.m4 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'cpukit/acinclude.m4') diff --git a/cpukit/acinclude.m4 b/cpukit/acinclude.m4 index 8cceb11682..fdf2bec89b 100644 --- a/cpukit/acinclude.m4 +++ b/cpukit/acinclude.m4 @@ -2,11 +2,20 @@ AC_DEFUN([RTEMS_CPUOPT], [ - echo >> cpuopts.tmp - echo "/* $4 */" >> cpuopts.tmp if $2; then - echo "#define $1 $3" >> cpuopts.tmp +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 - echo "/* #undef $1 */" >> cpuopts.tmp - fi +cat >>cpuopts.tmp <<\_ACEOF + +/* $4 */ +/* #undef $1 */ +_ACEOF + fi ]) -- cgit v1.2.3