OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [aclocal/] [check-posix.m4] - Blame information for rev 1781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
dnl check-posix.m4,v 1.8 2001/12/20 17:33:23 joel Exp
2
dnl
3
AC_DEFUN(RTEMS_CHECK_POSIX_API,
4
[dnl
5
AC_REQUIRE([RTEMS_CHECK_CPU])dnl
6
AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
7
 
8
AC_CACHE_CHECK([whether CPU supports libposix],
9
  rtems_cv_HAS_POSIX_API,
10
  [dnl
11
    case "$RTEMS_CPU" in
12
    unix*)
13
      rtems_cv_HAS_POSIX_API="no"
14
      ;;
15
    *)
16
      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
17
        rtems_cv_HAS_POSIX_API="yes";
18
      else
19
        rtems_cv_HAS_POSIX_API="disabled";
20
      fi
21
      ;;
22
    esac])
23
if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
24
  HAS_POSIX_API="yes";
25
else
26
  HAS_POSIX_API="no";
27
fi
28
AC_SUBST(HAS_POSIX_API)dnl
29
])
30
 
31
AC_DEFUN(RTEMS_DEFINE_POSIX_API,
32
[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
33
AS_IF(
34
  [test x"${HAS_POSIX_API}" = x"yes"],
35
  [AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
36
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.