Changeset a2be291 in rtems


Ignore:
Timestamp:
Nov 14, 2006, 4:26:08 PM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Children:
7c17be8
Parents:
ccf5bfa
Message:

RTEMS_PROVIDES_STDINT_H, RTEMS_PROVIDES_INTTYPES_H. Use external stdint.h, inttypes.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/configure.ac

    rccf5bfa ra2be291  
    8383
    8484## Check if the installed toolchain has these headers
    85 AC_CHECK_HEADER([stdint.h])
    86 AC_CHECK_HEADER([inttypes.h])
    8785AC_CHECK_HEADER([tar.h])
    8886
     
    9290  [AC_MSG_ERROR([Missing required header sys/errno.h])])
    9391
    94 ## if using newlib, we provide stdint.h and inttypes.h
    95 AM_CONDITIONAL([RTEMS_PROVIDES_STDINT_H],
    96   [test x"${RTEMS_USE_NEWLIB}" = xyes \
    97   && test x"${ac_cv_header_stdint_h}" = xno])
    98 AM_CONDITIONAL([RTEMS_PROVIDES_INTTYPES_H],
    99   [test x"${RTEMS_USE_NEWLIB}" = xyes \
    100   && test x"${ac_cv_header_inttypes_h}" = xno])
    101 
    102 ## if using newlib, force using stdint.h
    103 AS_IF([test x"${RTEMS_USE_NEWLIB}" = xyes],
     92## if libc provides stdint.h, use it.
     93AS_IF([test x"${ac_cv_header_stdint_h}" = xyes],
    10494[RTEMS_USES_STDINT_H=yes],
    105 [RTEMS_USES_STDINT_H=$ac_cv_header_stdint_h])
     95[RTEMS_USES_STDINT_H=no])
     96
     97## error out if libc doesn't at least provide inttypes.h
     98AS_IF([test x"${ac_cv_header_inttypes_h}" != xyes],
     99[AC_MSG_ERROR([Required header inttypes.h not found])])
    106100
    107101AS_IF([test x"${RTEMS_USE_NEWLIB}" = xyes],
Note: See TracChangeset for help on using the changeset viewer.