Line | |
---|
1 | AC_DEFUN([RTEMS_CHECK_NETWORKING], |
---|
2 | [dnl |
---|
3 | AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl |
---|
4 | AC_REQUIRE([RTEMS_ENABLE_NETWORKING])dnl |
---|
5 | |
---|
6 | AC_CACHE_CHECK([whether CPU supports networking], |
---|
7 | rtems_cv_HAS_NETWORKING, |
---|
8 | [dnl |
---|
9 | case "$host" in |
---|
10 | *-*-rtems*) |
---|
11 | AS_IF([test "${RTEMS_HAS_NETWORKING}" = "yes"],[ |
---|
12 | # suppress libnetworking if one these types is not available |
---|
13 | AS_IF([test x"$ac_cv_type_int8_t" = xyes \ |
---|
14 | && test x"$ac_cv_type_uint8_t" = xyes \ |
---|
15 | && test x"$ac_cv_type_int16_t" = xyes \ |
---|
16 | && test x"$ac_cv_type_uint16_t" = xyes \ |
---|
17 | && test x"$ac_cv_type_int32_t" = xyes \ |
---|
18 | && test x"$ac_cv_type_uint32_t" = xyes \ |
---|
19 | && test x"$ac_cv_type_int64_t" = xyes \ |
---|
20 | && test x"$ac_cv_type_uint64_t" = xyes], |
---|
21 | [rtems_cv_HAS_NETWORKING=yes], |
---|
22 | [rtems_cv_HAS_NETWORKING=no]) |
---|
23 | ],[ |
---|
24 | rtems_cv_HAS_NETWORKING=disabled |
---|
25 | ]) |
---|
26 | ;; |
---|
27 | esac |
---|
28 | ]) |
---|
29 | ]) |
---|
30 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.