source: rtems/c/src/aclocal/check-networking.m4 @ b580e71

4.104.11
Last change on this file since b580e71 was b580e71, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 20, 2009 at 11:56:17 PM

2009-08-20 Joel Sherrill <joel.sherrill@…>

  • aclocal/check-networking.m4: Disable TCP/IP on targets without enough physical address to support BSD TCP/IP stack.
  • Property mode set to 100644
File size: 741 bytes
Line 
1dnl $Id$
2dnl
3AC_DEFUN([RTEMS_CHECK_NETWORKING],
4[dnl
5AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
6AC_REQUIRE([RTEMS_ENABLE_NETWORKING])dnl
7
8AC_CACHE_CHECK([whether BSP supports networking],
9  rtems_cv_HAS_NETWORKING,
10  [dnl
11    case "$RTEMS_CPU" in
12    avr*|m32c*)       # do not have address space to hold BSD TCP/IP stack
13      rtems_cv_HAS_NETWORKING="no"
14      ;;
15    unix*)
16      rtems_cv_HAS_NETWORKING="no"
17      ;;
18    *)
19      if test "${RTEMS_HAS_NETWORKING}" = "yes"; then
20        rtems_cv_HAS_NETWORKING="yes";
21      else
22        rtems_cv_HAS_NETWORKING="disabled";
23      fi
24      ;;
25    esac])
26if test "$rtems_cv_HAS_NETWORKING" = "yes"; then
27  HAS_NETWORKING="yes";
28else
29  HAS_NETWORKING="no";
30fi
31AC_SUBST(HAS_NETWORKING)dnl
32])
Note: See TracBrowser for help on using the repository browser.