mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
33 lines
738 B
Plaintext
33 lines
738 B
Plaintext
dnl
|
|
AC_DEFUN([RTEMS_CHECK_POSIX_API],
|
|
[dnl
|
|
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl
|
|
AC_REQUIRE([RTEMS_ENABLE_POSIX])dnl
|
|
|
|
AC_CACHE_CHECK([whether CPU supports libposix],
|
|
rtems_cv_HAS_POSIX_API,
|
|
[dnl
|
|
case "$RTEMS_CPU" in
|
|
*)
|
|
if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
|
|
rtems_cv_HAS_POSIX_API="yes";
|
|
else
|
|
rtems_cv_HAS_POSIX_API="disabled";
|
|
fi
|
|
;;
|
|
esac])
|
|
if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
|
|
HAS_POSIX_API="yes";
|
|
else
|
|
HAS_POSIX_API="no";
|
|
fi
|
|
AC_SUBST(HAS_POSIX_API)dnl
|
|
])
|
|
|
|
AC_DEFUN([RTEMS_DEFINE_POSIX_API],
|
|
[AC_REQUIRE([RTEMS_CHECK_POSIX_API])dnl
|
|
AS_IF(
|
|
[test x"${HAS_POSIX_API}" = x"yes"],
|
|
[AC_DEFINE_UNQUOTED(RTEMS_POSIX_API,1,[if posix api is supported])])
|
|
])
|