source: rtems/c/src/aclocal/check-posix.m4 @ 44b4cf4

4.104.114.84.95
Last change on this file since 44b4cf4 was 9550125e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/26/03 at 06:18:03

2003-11-26 Ralf Corsepius <corsepiu@…>

  • aclocal/bsp-arg-enable.m4, aclocal/canonical-target-name.m4, aclocal/canonicalize-tools.m4, aclocal/check-custom-bsp.m4, aclocal/check-posix.m4, aclocal/check-rdbg.m4, aclocal/check-tool.m4, aclocal/config-subdirs.m4, aclocal/enable-bare.m4, aclocal/enable-cxx.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rdbg.m4, aclocal/enable-rtemsbsp.m4, aclocal/env-rtemsbsp.m4, aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/gcc-specs.m4, aclocal/i386-gas-code16.m4, aclocal/multilib.m4, aclocal/path-ksh.m4, aclocal/prog-cc.m4, aclocal/prog-cxx.m4, aclocal/project-root.m4, aclocal/rtems-top.m4, aclocal/target.m4, aclocal/tool-paths.m4: Fix underquoting to silence automake-1.8.
  • Property mode set to 100644
File size: 801 bytes
Line 
1dnl $Id$
2dnl
3AC_DEFUN([RTEMS_CHECK_POSIX_API],
4[dnl
5AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
6AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
7
8AC_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])
23if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
24  HAS_POSIX_API="yes";
25else
26  HAS_POSIX_API="no";
27fi
28AC_SUBST(HAS_POSIX_API)dnl
29])
30
31AC_DEFUN([RTEMS_DEFINE_POSIX_API],
32[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
33AS_IF(
34  [test x"${HAS_POSIX_API}" = x"yes"],
35  [AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
36])
Note: See TracBrowser for help on using the repository browser.