diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-03-04 16:20:05 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-03-04 16:20:05 +0000 |
commit | ff1eb4c09bb9a008d1a50a625f920c3a28638028 (patch) | |
tree | ab7bc6904db5a003731f7ea556cc6eab5660e505 /cpukit/configure.ac | |
parent | 2005-03-03 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-ff1eb4c09bb9a008d1a50a625f920c3a28638028.tar.bz2 |
2005-03-04 Ralf Corsepius <ralf.corsepius@rtems.org>
* configure.ac: Check for newlib with stdint.h/inttypes.h.
* Makefile.am: Conditionally use external stdint.h/inttypes.h for
newlib.
Diffstat (limited to '')
-rw-r--r-- | cpukit/configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/configure.ac b/cpukit/configure.ac index d9be56702f..21763c5640 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -94,8 +94,12 @@ AC_CHECK_HEADER([inttypes.h]) AC_CHECK_HEADER([tar.h]) ## if using newlib, we provide stdint.h and inttypes.h -AM_CONDITIONAL([RTEMS_PROVIDES_STDINT_H],[test x"${RTEMS_USE_NEWLIB}" = xyes]) -AM_CONDITIONAL([RTEMS_PROVIDES_INTTYPES_H],[test x"${RTEMS_USE_NEWLIB}" = xyes]) +AM_CONDITIONAL([RTEMS_PROVIDES_STDINT_H], + [test x"${RTEMS_USE_NEWLIB}" = xyes \ + && test x"${ac_cv_header_stdint_h}" = xno]) +AM_CONDITIONAL([RTEMS_PROVIDES_INTTYPES_H], + [test x"${RTEMS_USE_NEWLIB}" = xyes \ + && test x"${ac_cv_header_inttypes_h}" = xno]) ## if using newlib, force using stdint.h AS_IF([test x"${RTEMS_USE_NEWLIB}" = xyes], |