forked from Imagelibrary/rtems
* 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.
22 lines
351 B
Plaintext
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
|
|
])
|