diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-11-18 23:53:14 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-11-18 23:53:14 +0000 |
commit | 6c39eca47a9af6de451c65dc43242e29434b5b1f (patch) | |
tree | 50e1fe42ae35e05f780becad02a1d9080e686178 /cpukit/libcsupport/configure.ac | |
parent | 2002-11-18 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-6c39eca47a9af6de451c65dc43242e29434b5b1f.tar.bz2 |
2002-11-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Check for sys/cdefs.h, Add NEED_SYS_CDEFS_H.
Add check for CHAR_BIT.
* Makefile.am: Conditionally install sys/cdefs.h iff using newlib or
if the host does not provide sys/cdefs.h (Fixes Linux/posix).
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/configure.ac | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/cpukit/libcsupport/configure.ac b/cpukit/libcsupport/configure.ac index 023b7e53bc..5378a3807c 100644 --- a/cpukit/libcsupport/configure.ac +++ b/cpukit/libcsupport/configure.ac @@ -26,13 +26,25 @@ RTEMS_CHECK_MULTIPROCESSING AM_CONDITIONAL(UNIX,test x"$RTEMS_CPU" = x"unix") AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes") + AS_IF([test x"$RTEMS_USE_NEWLIB" != x"yes"],[ -# FIXME: Currently, these checks are only in here to provide +## Provide sys/cdefs.h only if the host doesn't. + AC_CHECK_HEADERS([sys/cdefs.h],[NEED_SYS_CDEFS_H=no],[NEED_SYS_CDEFS_H=yes]) +# FIXME: These checks are only in here to provide # configuration-time diagnostics and are not really used. - AC_CHECK_HEADERS([sys/cdefs.h]) AC_CHECK_HEADERS([stdint.h inttypes.h]) - AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>]) +],[ +## Using newlib, we provide sys/cdefs.h + NEED_SYS_CDEFS_H=yes ]) + +# FIXME: These checks are only in here to provide +# configuration-time diagnostics and are not really used. +AC_CHECK_DECLS([_POSIX_LOGIN_NAME_MAX],,,[#include <limits.h>]) +AC_CHECK_DECLS([CHAR_BIT],,,[#include <limits.h>]) + +AM_CONDITIONAL([NEED_SYS_CDEFS_H],[test x"$NEED_SYS_CDEFS_H" = x"yes"]) + AM_CONFIG_HEADER(src/config.h) # Explicitly list all Makefiles here |