diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-11-18 03:41:42 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-11-18 03:41:42 +0000 |
commit | d4cbf3466684677b4590b7924cbe4539c535202c (patch) | |
tree | 9508e8353353c34b821dd87c69061f18540f35c0 /cpukit | |
parent | 2006-11-18 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-d4cbf3466684677b4590b7924cbe4539c535202c.tar.bz2 |
Integrate type checks.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/aclocal/check-networking.m4 | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/cpukit/aclocal/check-networking.m4 b/cpukit/aclocal/check-networking.m4 index 289c1b3eb2..d46bc91fe6 100644 --- a/cpukit/aclocal/check-networking.m4 +++ b/cpukit/aclocal/check-networking.m4 @@ -13,16 +13,23 @@ AC_CACHE_CHECK([whether CPU supports networking], rtems_cv_HAS_NETWORKING="no" ;; *) - if test "${RTEMS_HAS_NETWORKING}" = "yes"; then - rtems_cv_HAS_NETWORKING="yes"; - else - rtems_cv_HAS_NETWORKING="disabled"; - fi + AS_IF([test "${RTEMS_HAS_NETWORKING}" = "yes"],[ +# suppress libnetworking if one these types is not available + AS_IF([test x"$ac_cv_type_int8_t" = xyes \ + && test x"$ac_cv_type_uint8_t" = xyes \ + && test x"$ac_cv_type_int16_t" = xyes \ + && test x"$ac_cv_type_uint16_t" = xyes \ + && test x"$ac_cv_type_int32_t" = xyes \ + && test x"$ac_cv_type_uint32_t" = xyes \ + && test x"$ac_cv_type_int64_t" = xyes \ + && test x"$ac_cv_type_uint64_t" = xyes], + [rtems_cv_HAS_NETWORKING=yes], + [rtems_cv_HAS_NETWORKING=no]) + ],[ + rtems_cv_HAS_NETWORKING=disabled + ]) ;; - esac]) -if test "$rtems_cv_HAS_NETWORKING" = "yes"; then - HAS_NETWORKING="yes"; -else - HAS_NETWORKING="no"; -fi + esac + ]) + ]) ]) |